VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkPointCloudWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPointCloudWidget.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
50
#ifndef vtkPointCloudWidget_h
51
#define vtkPointCloudWidget_h
52
53
#include "
vtkAbstractWidget.h
"
54
#include "vtkInteractionWidgetsModule.h"
// For export macro
55
56
class
vtkPointCloudRepresentation
;
57
58
class
VTKINTERACTIONWIDGETS_EXPORT
vtkPointCloudWidget
:
public
vtkAbstractWidget
59
{
60
public
:
62
65
static
vtkPointCloudWidget
*
New
();
66
vtkTypeMacro(
vtkPointCloudWidget
,
vtkAbstractWidget
);
67
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
69
75
void
SetRepresentation
(
vtkPointCloudRepresentation
* r)
76
{
77
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
78
}
79
84
void
CreateDefaultRepresentation
()
override
;
85
90
void
SetEnabled
(
int
enabling)
override
;
91
92
protected
:
93
vtkPointCloudWidget
();
94
~vtkPointCloudWidget
()
override
;
95
96
int
WidgetState
;
97
enum
_WidgetState
98
{
99
Start = 0,
100
Active
101
};
102
103
// These methods handle mouse events
104
static
void
MoveAction
(
vtkAbstractWidget
*);
105
static
void
SelectAction
(
vtkAbstractWidget
*);
106
static
void
EndSelectAction
(
vtkAbstractWidget
*);
107
108
private
:
109
vtkPointCloudWidget
(
const
vtkPointCloudWidget
&) =
delete
;
110
void
operator=(
const
vtkPointCloudWidget
&) =
delete
;
111
};
112
113
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:66
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkPointCloudRepresentation
represent the vtkPointCloudWidget
Definition:
vtkPointCloudRepresentation.h:48
vtkPointCloudWidget
select and manipulate a point from a point cloud
Definition:
vtkPointCloudWidget.h:59
vtkPointCloudWidget::_WidgetState
_WidgetState
Definition:
vtkPointCloudWidget.h:98
vtkPointCloudWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkPointCloudWidget::WidgetState
int WidgetState
Definition:
vtkPointCloudWidget.h:96
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:75
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:60
vtkAbstractWidget.h
Generated on Fri Apr 21 2023 10:28:53 for VTK by
1.9.6