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 =========================================================================*/
50 #ifndef vtkPointCloudWidget_h
51 #define vtkPointCloudWidget_h
52 
53 #include "vtkAbstractWidget.h"
54 #include "vtkInteractionWidgetsModule.h" // For export macro
55 
57 
58 class VTKINTERACTIONWIDGETS_EXPORT vtkPointCloudWidget : public vtkAbstractWidget
59 {
60 public:
62 
67  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
76  {
77  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
78  }
79 
84  void CreateDefaultRepresentation() override;
85 
90  void SetEnabled(int enabling) override;
91 
92 protected:
95 
98  {
99  Start = 0,
100  Active
101  };
102 
103  // These methods handle mouse events
107 
108 private:
109  vtkPointCloudWidget(const vtkPointCloudWidget&) = delete;
110  void operator=(const vtkPointCloudWidget&) = delete;
111 };
112 
113 #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