 |
VTK
9.1.0
|
Go to the documentation of this file.
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 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]);
map vtkPolyData to graphics primitives
void Translate(const double *p1, const double *p2) override
Translates world position by vector p1p2 projected on the constraint axis if any.
void SetSelectedProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods to make this class behave as a vtkProp.
a subclass of actor that always faces the camera
void MoveFocusRequest(const double *p1, const double *p2, const double eventPos[2], double requestedDisplayPos[3])
vtkTypeBool HandleVisibility
~vtkAbstractPolygonalHandleRepresentation3D() override
void WidgetInteraction(double eventPos[2]) override
Methods to make this class properly act like a vtkWidgetRepresentation.
vtkPolyDataMapper * Mapper
void Highlight(int highlight) override
void DeepCopy(vtkProp *prop) override
Methods to make this class behave as a vtkProp.
bool LabelAnnotationTextScaleInitialized
void BuildRepresentation() override
Methods to make this class properly act like a vtkWidgetRepresentation.
abstract class for representing widget handles
void StartWidgetInteraction(double eventPos[2]) override
Methods to make this class properly act like a vtkWidgetRepresentation.
represent a user defined handle geometry in 3D while maintaining a fixed orientation w....
virtual void SetLabelTextScale(double scale[3])
Scale text (font size along each dimension).
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
void ReleaseGraphicsResources(vtkWindow *) override
Methods to make this class behave as a vtkProp.
void SetProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
vtkTransformPolyDataFilter * HandleTransformFilter
vtkPolyData * GetHandle()
Set/get the handle polydata.
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()
void GetActors(vtkPropCollection *) override
Methods to make this class behave as a vtkProp.
int DetermineConstraintAxis(int constraint, double *x, double *startPickPos)
vtkMatrixToLinearTransform * HandleTransform
vtkFollower * LabelTextActor
virtual void SetLabelText(const char *label)
A label may be associated with the seed.
virtual void UpdateHandle()
Update the actor position.
virtual void Scale(const double *p1, const double *p2, const double eventPos[2])
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 char * GetLabelText()
A label may be associated with the seed.
vtkAbstractPolygonalHandleRepresentation3D()
virtual void MoveFocus(const double *p1, const double *p2)
abstract specification for Viewports
vtkVectorText * LabelTextInput
vtkTypeBool LabelVisibility
void SetWorldPosition(double p[3]) override
Set the position of the point in world and display coordinates.
vtkPolyDataMapper * LabelTextMapper
abstract superclass for all actors, volumes and annotations
void ShallowCopy(vtkProp *prop) override
Methods to make this class behave as a vtkProp.
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any.
void SetLabelTextScale(double x, double y, double z)
Scale text (font size along each dimension).
vtkCellPicker * HandlePicker
virtual double * GetLabelTextScale()
Scale text (font size along each dimension).
concrete dataset represents vertices, lines, polygons, and triangle strips
int ComputeInteractionState(int X, int Y, int modify=0) override
Methods to make this class properly act like a vtkWidgetRepresentation.
vtkMatrix4x4 * HandleTransformMatrix
represent surface properties of a geometric object
int RenderOpaqueGeometry(vtkViewport *viewport) override
Methods to make this class behave as a vtkProp.
ray-cast cell picker for all kinds of Prop3Ds
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
double * GetBounds() override
Methods to make this class behave as a vtkProp.
void SetHandle(vtkPolyData *)
Set/get the handle polydata.
void SetDisplayPosition(double p[3]) override
Set the position of the point in world and display coordinates.
virtual void UpdateLabel()
Opportunity to update the label position and text during each render.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Methods to make this class behave as a vtkProp.