VTK  9.3.0
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 
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:
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
102 
103 private:
104  vtkPointCloudWidget(const vtkPointCloudWidget&) = delete;
105  void operator=(const vtkPointCloudWidget&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #endif
define the API for widget / widget representation
a simple class to control print indentation
Definition: vtkIndent.h:29
represent the vtkPointCloudWidget
select and manipulate a point from a point cloud
static void EndSelectAction(vtkAbstractWidget *)
void SetRepresentation(vtkPointCloudRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
~vtkPointCloudWidget() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
static void SelectAction(vtkAbstractWidget *)
static vtkPointCloudWidget * New()
Standard methods for instantiation, type information, and printing.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void MoveAction(vtkAbstractWidget *)
abstract class defines interface between the widget and widget representation classes
#define VTK_DEPRECATED_IN_9_2_0(reason)