VTK  9.1.0
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 
51 
52 class VTKINTERACTIONWIDGETS_EXPORT vtkPointCloudWidget : public vtkAbstractWidget
53 {
54 public:
56 
61  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
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:
89 
92  {
93  Start = 0,
94  Active
95  };
96 
97  // These methods handle mouse events
101 
102 private:
103  vtkPointCloudWidget(const vtkPointCloudWidget&) = delete;
104  void operator=(const vtkPointCloudWidget&) = delete;
105 };
106 
107 #endif
define the API for widget / widget representation
a simple class to control print indentation
Definition: vtkIndent.h:34
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