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
vtkPointCloudWidget
select and manipulate a point from a point cloud
Definition: vtkPointCloudWidget.h:59
vtkPointCloudWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkAbstractWidget.h
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:60
vtkPointCloudWidget::WidgetState
int WidgetState
Definition: vtkPointCloudWidget.h:96
vtkPointCloudWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkPointCloudWidget::SetEnabled
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
vtkPointCloudWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkPointCloudWidget::vtkPointCloudWidget
vtkPointCloudWidget()
vtkPointCloudWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkPointCloudWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkPointCloudRepresentation
represent the vtkPointCloudWidget
Definition: vtkPointCloudRepresentation.h:48
vtkPointCloudWidget::_WidgetState
_WidgetState
Definition: vtkPointCloudWidget.h:98
vtkPointCloudWidget::~vtkPointCloudWidget
~vtkPointCloudWidget() override
vtkPointCloudWidget::SetRepresentation
void SetRepresentation(vtkPointCloudRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition: vtkPointCloudWidget.h:75
vtkPointCloudWidget::New
static vtkPointCloudWidget * New()
Standard methods for instantiation, type information, and printing.