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