34 #ifndef vtkAbstractPolygonalHandleRepresentation3D_h 35 #define vtkAbstractPolygonalHandleRepresentation3D_h 37 #include "vtkInteractionWidgetsModule.h" 102 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
103 void WidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
104 int ComputeInteractionState(
int X,
int Y,
int modify=0) VTK_OVERRIDE;
111 void ShallowCopy(
vtkProp *prop) VTK_OVERRIDE;
112 void DeepCopy(
vtkProp *prop) VTK_OVERRIDE;
114 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE;
115 int RenderOpaqueGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
116 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
117 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
118 double *GetBounds() VTK_OVERRIDE;
127 vtkGetMacro( LabelVisibility,
int );
129 virtual
void SetLabelText( const
char * label );
130 virtual
char * GetLabelText();
137 virtual
void SetLabelTextScale(
double scale[3] );
138 void SetLabelTextScale(
double x,
double y,
double z)
140 double scale[3] = {x, y, z};
141 this->SetLabelTextScale(scale);
143 virtual double * GetLabelTextScale();
158 virtual void SetUniformScale(
double scale );
165 vtkGetMacro( HandleVisibility,
int );
169 void Highlight(
int highlight) VTK_OVERRIDE;
184 vtkGetMacro( SmoothMotion,
int );
198 double LastPickPosition[3];
199 double LastEventPosition[2];
211 virtual
void Translate(
double *p1,
double *p2);
212 virtual
void Scale(
double *p1,
double *p2,
double eventPos[2]);
213 virtual
void MoveFocus(
double *p1,
double *p2);
215 void CreateDefaultProperties();
226 void MoveFocusRequest(
double *p1,
double *p2,
227 double eventPos[2],
double requestedDisplayPos[3] );
229 int DetermineConstraintAxis(
int constraint,
double *x,
double *startPickPos);
240 virtual
void UpdateHandle();
245 virtual
void UpdateLabel();
252 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
vtkCellPicker * HandlePicker
represent and manipulate 4x4 transformation matrices
abstract class for representing widget handles
abstract specification for Viewports
represent surface properties of a geometric object
vtkPolyDataMapper * Mapper
vtkTransformPolyDataFilter * HandleTransformFilter
concrete dataset represents vertices, lines, polygons, and triangle strips
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
vtkProperty * SelectedProperty
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
vtkMatrixToLinearTransform * HandleTransform
ray-cast cell picker for all kinds of Prop3Ds
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkMatrix4x4 * HandleTransformMatrix
virtual void SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...