VTK  9.0.1
vtkFinitePlaneWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFinitePlaneWidget.h
5 
6  Copyright (c)
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 =========================================================================*/
75 #ifndef vtkFinitePlaneWidget_h
76 #define vtkFinitePlaneWidget_h
77 
78 #include "vtkAbstractWidget.h"
79 #include "vtkInteractionWidgetsModule.h" // For export macro
80 
82 class vtkHandleWidget;
83 
84 class VTKINTERACTIONWIDGETS_EXPORT vtkFinitePlaneWidget : public vtkAbstractWidget
85 {
86 public:
91 
93 
97  void PrintSelf(ostream& os, vtkIndent indent) override;
99 
106 
112 
113 protected:
116 
119  {
120  Start = 0,
121  Active
122  };
123 
124  // These methods handle events
128 
133  int UpdateCursorShape(int interactionState);
134 
135 private:
137  void operator=(const vtkFinitePlaneWidget&) = delete;
138 };
139 
140 #endif
define the API for widget / widget representation
represent the vtkFinitePlaneWidget.
3D widget for manipulating a finite plane
static vtkFinitePlaneWidget * New()
Instantiate the object.
static void SelectAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetRepresentation(vtkFinitePlaneRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void MoveAction(vtkAbstractWidget *)
~vtkFinitePlaneWidget() override
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
static void EndSelectAction(vtkAbstractWidget *)
a general widget for moving handles
a simple class to control print indentation
Definition: vtkIndent.h:34