VTK
vtkImplicitCylinderWidget.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImplicitCylinderWidget.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=========================================================================*/
91#ifndef vtkImplicitCylinderWidget_h
92#define vtkImplicitCylinderWidget_h
93
94#include "vtkInteractionWidgetsModule.h" // For export macro
95#include "vtkAbstractWidget.h"
96
98
99class VTKINTERACTIONWIDGETS_EXPORT vtkImplicitCylinderWidget : public vtkAbstractWidget
100{
101public:
106
108
112 void PrintSelf(ostream& os, vtkIndent indent);
114
121
122 // Descritpion:
123 // Disable/Enable the widget if needed.
124 // Unobserved the camera if the widget is disabled.
125 void SetEnabled(int enabling);
126
131 {return reinterpret_cast<vtkImplicitCylinderRepresentation*>(this->WidgetRep);}
132
137
138protected:
141
142 // Manage the state of the widget
144 enum _WidgetState {Start=0,Active};
145
146 // These methods handle events
153
158 int UpdateCursorShape( int interactionState );
159
160private:
161 vtkImplicitCylinderWidget(const vtkImplicitCylinderWidget&) VTK_DELETE_FUNCTION;
162 void operator=(const vtkImplicitCylinderWidget&) VTK_DELETE_FUNCTION;
163};
164
165#endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
defining the representation for a vtkImplicitCylinderWidget
3D widget for manipulating an infinite cylnder
static void ScaleAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkImplicitCylinderWidget * New()
Instantiate the object.
static void EndSelectAction(vtkAbstractWidget *)
static void MoveCylinderAction(vtkAbstractWidget *)
void SetEnabled(int enabling)
Methods for activating this widget.
vtkImplicitCylinderRepresentation * GetCylinderRepresentation()
Return the representation as a vtkImplicitCylinderRepresentation.
static void TranslateAction(vtkAbstractWidget *)
void CreateDefaultRepresentation()
Create the default widget representation if one is not set.
void SetRepresentation(vtkImplicitCylinderRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static void SelectAction(vtkAbstractWidget *)
static void MoveAction(vtkAbstractWidget *)
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
a simple class to control print indentation
Definition: vtkIndent.h:40