VTK
9.4.20250207
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkPointCloudWidget.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
38
#ifndef vtkPointCloudWidget_h
39
#define vtkPointCloudWidget_h
40
41
#include "
vtkAbstractWidget.h
"
42
#include "vtkInteractionWidgetsModule.h"
// For export macro
43
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
44
45
VTK_ABI_NAMESPACE_BEGIN
46
class
vtkPointCloudRepresentation
;
47
48
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkPointCloudWidget
:
public
vtkAbstractWidget
49
{
50
public
:
52
55
static
vtkPointCloudWidget
*
New
();
56
vtkTypeMacro(
vtkPointCloudWidget
,
vtkAbstractWidget
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
59
65
void
SetRepresentation
(
vtkPointCloudRepresentation
* r)
66
{
67
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
68
}
69
74
void
CreateDefaultRepresentation
()
override
;
75
80
void
SetEnabled
(
int
enabling)
override
;
81
82
protected
:
83
vtkPointCloudWidget
();
84
~vtkPointCloudWidget
()
override
;
85
86
int
WidgetState
;
87
enum
WidgetStateType
88
{
89
Start = 0,
90
Active
91
};
92
93
// These methods handle mouse events
94
static
void
MoveAction
(
vtkAbstractWidget
*);
95
static
void
SelectAction
(
vtkAbstractWidget
*);
96
static
void
EndSelectAction
(
vtkAbstractWidget
*);
97
98
private
:
99
vtkPointCloudWidget
(
const
vtkPointCloudWidget
&) =
delete
;
100
void
operator=(
const
vtkPointCloudWidget
&) =
delete
;
101
};
102
103
VTK_ABI_NAMESPACE_END
104
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkPointCloudRepresentation
represent the vtkPointCloudWidget
Definition
vtkPointCloudRepresentation.h:42
vtkPointCloudWidget
select and manipulate a point from a point cloud
Definition
vtkPointCloudWidget.h:49
vtkPointCloudWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkPointCloudWidget::WidgetState
int WidgetState
Definition
vtkPointCloudWidget.h:86
vtkPointCloudWidget::vtkPointCloudWidget
vtkPointCloudWidget()
vtkPointCloudWidget::SetRepresentation
void SetRepresentation(vtkPointCloudRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkPointCloudWidget.h:65
vtkPointCloudWidget::WidgetStateType
WidgetStateType
Definition
vtkPointCloudWidget.h:88
vtkPointCloudWidget::SetEnabled
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
vtkPointCloudWidget::~vtkPointCloudWidget
~vtkPointCloudWidget() override
vtkPointCloudWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkPointCloudWidget::New
static vtkPointCloudWidget * New()
Standard methods for instantiation, type information, and printing.
vtkPointCloudWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkPointCloudWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkPointCloudWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:68
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Fri Feb 7 2025 08:35:31 for VTK by
1.9.7