VTK  9.2.6
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
55 #include "vtkInteractionWidgetsModule.h" // For export macro
56 
58 
59 class VTKINTERACTIONWIDGETS_EXPORT vtkPointCloudWidget : public vtkAbstractWidget
60 {
61 public:
63 
66  static vtkPointCloudWidget* New();
68  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
77  {
78  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
79  }
80 
85  void CreateDefaultRepresentation() override;
86 
91  void SetEnabled(int enabling) override;
92 
93 protected:
95  ~vtkPointCloudWidget() override;
96 
99  {
100  Start = 0,
101  Active
102  };
103 #if !defined(VTK_LEGACY_REMOVE)
104  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
106 #endif
107 
108  // These methods handle mouse events
109  static void MoveAction(vtkAbstractWidget*);
110  static void SelectAction(vtkAbstractWidget*);
111  static void EndSelectAction(vtkAbstractWidget*);
112 
113 private:
114  vtkPointCloudWidget(const vtkPointCloudWidget&) = delete;
115  void operator=(const vtkPointCloudWidget&) = delete;
116 };
117 
118 #endif
select and manipulate a point from a point cloud
#define VTK_DEPRECATED_IN_9_2_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
void SetRepresentation(vtkPointCloudRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
a simple class to control print indentation
Definition: vtkIndent.h:39
represent the vtkPointCloudWidget
define the API for widget / widget representation
void SetEnabled(int) override
Methods for activating this widget.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...