VTK  9.3.1
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
43 #include "vtkInteractionWidgetsModule.h" // For export macro
44 #include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
45 
46 VTK_ABI_NAMESPACE_BEGIN
48 
49 class VTKINTERACTIONWIDGETS_EXPORT vtkPointCloudWidget : public vtkAbstractWidget
50 {
51 public:
53 
56  static vtkPointCloudWidget* New();
58  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
67  {
68  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
69  }
70 
75  void CreateDefaultRepresentation() override;
76 
81  void SetEnabled(int enabling) override;
82 
83 protected:
85  ~vtkPointCloudWidget() override;
86 
89  {
90  Start = 0,
91  Active
92  };
93 #if !defined(VTK_LEGACY_REMOVE)
94  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
96 #endif
97 
98  // These methods handle mouse events
99  static void MoveAction(vtkAbstractWidget*);
100  static void SelectAction(vtkAbstractWidget*);
101  static void EndSelectAction(vtkAbstractWidget*);
102 
103 private:
104  vtkPointCloudWidget(const vtkPointCloudWidget&) = delete;
105  void operator=(const vtkPointCloudWidget&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #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:28
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...