VTK  9.7.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 "vtkInteractionWidgetsModule.h" // For export macro
43 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
44 
45 VTK_ABI_NAMESPACE_BEGIN
47 
48 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkPointCloudWidget : public vtkAbstractWidget
49 {
50 public:
52 
55  static vtkPointCloudWidget* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
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:
84  ~vtkPointCloudWidget() override;
85 
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:
100  void operator=(const vtkPointCloudWidget&) = delete;
101 };
102 
103 VTK_ABI_NAMESPACE_END
104 #endif
select and manipulate a point from a point cloud
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.
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...