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
=========================================================================*/
44
#ifndef vtkPointCloudWidget_h
45
#define vtkPointCloudWidget_h
46
47
#include "
vtkAbstractWidget.h
"
48
#include "vtkInteractionWidgetsModule.h"
// For export macro
49
50
class
vtkPointCloudRepresentation
;
51
52
class
VTKINTERACTIONWIDGETS_EXPORT
vtkPointCloudWidget
:
public
vtkAbstractWidget
53
{
54
public
:
56
59
static
vtkPointCloudWidget
*
New
();
60
vtkTypeMacro(
vtkPointCloudWidget
,
vtkAbstractWidget
);
61
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
63
69
void
SetRepresentation
(
vtkPointCloudRepresentation
* r)
70
{
71
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
72
}
73
78
void
CreateDefaultRepresentation
()
override
;
79
84
void
SetEnabled
(
int
enabling)
override
;
85
86
protected
:
87
vtkPointCloudWidget
();
88
~vtkPointCloudWidget
()
override
;
89
90
int
WidgetState
;
91
enum
_WidgetState
92
{
93
Start = 0,
94
Active
95
};
96
97
// These methods handle mouse events
98
static
void
MoveAction
(
vtkAbstractWidget
*);
99
static
void
SelectAction
(
vtkAbstractWidget
*);
100
static
void
EndSelectAction
(
vtkAbstractWidget
*);
101
102
private
:
103
vtkPointCloudWidget
(
const
vtkPointCloudWidget
&) =
delete
;
104
void
operator=(
const
vtkPointCloudWidget
&) =
delete
;
105
};
106
107
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
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:53
vtkPointCloudWidget::_WidgetState
_WidgetState
Definition:
vtkPointCloudWidget.h:92
vtkPointCloudWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkPointCloudWidget::WidgetState
int WidgetState
Definition:
vtkPointCloudWidget.h:90
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:69
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 Sat Feb 25 2023 08:59:35 for VTK by
1.9.4