Go to the documentation of this file.
34 #ifndef vtkAbstractPolygonalHandleRepresentation3D_h
35 #define vtkAbstractPolygonalHandleRepresentation3D_h
37 #include "vtkInteractionWidgetsModule.h"
127 vtkGetMacro( LabelVisibility,
int );
140 double scale[3] = {x, y, z};
141 this->SetLabelTextScale(
scale);
165 vtkGetMacro( HandleVisibility,
int );
184 vtkGetMacro( SmoothMotion,
int );
198 double LastPickPosition[3];
199 double LastEventPosition[2];
212 virtual void Scale(
double *p1,
double *p2,
double eventPos[2]);
227 double eventPos[2],
double requestedDisplayPos[3] );
map vtkPolyData to graphics primitives
void SetSelectedProperty(vtkProperty *)
virtual void BuildRepresentation()
Methods to make this class properly act like a vtkWidgetRepresentation.
a subclass of actor that always faces the camera
virtual void ShallowCopy(vtkProp *prop)
Methods to make this class behave as a vtkProp.
vtkPolyDataMapper * Mapper
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetWorldPosition(double p[3])
Set the position of the point in world and display coordinates.
bool LabelAnnotationTextScaleInitialized
void Highlight(int highlight)
abstract class for representing widget handles
represent a user defined handle geometry in 3D while maintaining a fixed orientation w....
virtual void Translate(double *p1, double *p2)
virtual void SetLabelTextScale(double scale[3])
Scale text (font size along each dimension).
void SetProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
vtkTransformPolyDataFilter * HandleTransformFilter
vtkPolyData * GetHandle()
window superclass for vtkRenderWindow
virtual void SetUniformScale(double scale)
The handle may be scaled uniformly in all three dimensions using this API.
vtkProperty * SelectedProperty
void CreateDefaultProperties()
int DetermineConstraintAxis(int constraint, double *x, double *startPickPos)
vtkMatrixToLinearTransform * HandleTransform
vtkFollower * LabelTextActor
~vtkAbstractPolygonalHandleRepresentation3D()
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual void SetLabelText(const char *label)
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
virtual void SetDisplayPosition(double p[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
virtual void UpdateHandle()
Update the actor position.
void MoveFocusRequest(double *p1, double *p2, double eventPos[2], double requestedDisplayPos[3])
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
virtual vtkAbstractTransform * GetTransform()
Get the transform used to transform the generic handle polydata before placing it in the render windo...
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual char * GetLabelText()
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkAbstractPolygonalHandleRepresentation3D()
virtual void MoveFocus(double *p1, double *p2)
abstract specification for Viewports
vtkVectorText * LabelTextInput
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkPolyDataMapper * LabelTextMapper
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
abstract superclass for all actors, volumes and annotations
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
void SetLabelTextScale(double x, double y, double z)
vtkCellPicker * HandlePicker
virtual void WidgetInteraction(double eventPos[2])
virtual void DeepCopy(vtkProp *prop)
virtual void Scale(double *p1, double *p2, double eventPos[2])
virtual double * GetLabelTextScale()
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkMatrix4x4 * HandleTransformMatrix
represent surface properties of a geometric object
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes.
ray-cast cell picker for all kinds of Prop3Ds
void SetHandle(vtkPolyData *)
Set/get the handle polydata.
virtual void StartWidgetInteraction(double eventPos[2])
virtual void UpdateLabel()
Opportunity to update the label position and text during each render.
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.