31 #ifndef vtkAbstractPolygonalHandleRepresentation3D_h
32 #define vtkAbstractPolygonalHandleRepresentation3D_h
34 #include "vtkInteractionWidgetsModule.h"
99 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
100 void WidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
101 int ComputeInteractionState(
int X,
int Y,
int modify=0) VTK_OVERRIDE;
108 void ShallowCopy(
vtkProp *prop) VTK_OVERRIDE;
109 void DeepCopy(
vtkProp *prop) VTK_OVERRIDE;
111 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE;
112 int RenderOpaqueGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
113 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
114 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
115 double *GetBounds() VTK_OVERRIDE;
124 vtkGetMacro( LabelVisibility,
int );
126 virtual
void SetLabelText( const
char * label );
127 virtual
char * GetLabelText();
134 virtual
void SetLabelTextScale(
double scale[3] );
135 void SetLabelTextScale(
double x,
double y,
double z)
137 double scale[3] = {x, y, z};
138 this->SetLabelTextScale(scale);
140 virtual double * GetLabelTextScale();
155 virtual void SetUniformScale(
double scale );
162 vtkGetMacro( HandleVisibility,
int );
166 void Highlight(
int highlight) VTK_OVERRIDE;
181 vtkGetMacro( SmoothMotion,
int );
195 double LastPickPosition[3];
196 double LastEventPosition[2];
200 int WaitingForMotion;
202 int HandleVisibility;
205 void RegisterPickers() VTK_OVERRIDE;
208 virtual
void Translate(
double *p1,
double *p2);
209 virtual
void Scale(
double *p1,
double *p2,
double eventPos[2]);
210 virtual
void MoveFocus(
double *p1,
double *p2);
212 void CreateDefaultProperties();
223 void MoveFocusRequest(
double *p1,
double *p2,
224 double eventPos[2],
double requestedDisplayPos[3] );
226 int DetermineConstraintAxis(
int constraint,
double *x,
double *startPickPos);
237 virtual
void UpdateHandle();
242 virtual
void UpdateLabel();
249 bool LabelAnnotationTextScaleInitialized;
abstract superclass for all actors, volumes and annotations
virtual void SetWorldPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
represents an object (geometry & properties) in a rendered scene
represent and manipulate 4x4 transformation matrices
abstract class for representing widget handles
abstract specification for Viewports
represent surface properties of a geometric object
concrete dataset represents vertices, lines, polygons, and triangle strips
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
window superclass for vtkRenderWindow
a simple class to control print indentation
represent a user defined handle geometry in 3D while maintaining a fixed orientation w...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
map vtkPolyData to graphics primitives
a subclass of actor that always faces the camera
ray-cast cell picker for all kinds of Prop3Ds
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual void SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...