Go to the documentation of this file.
26 #ifndef vtkMeasurementCubeHandleRepresentation3D_h
27 #define vtkMeasurementCubeHandleRepresentation3D_h
29 #include "vtkInteractionWidgetsModule.h"
178 vtkGetMacro( SideLength,
double );
196 vtkGetMacro( RescaleFactor,
double );
208 vtkGetMacro( MinRelativeCubeScreenArea,
double );
210 vtkGetMacro( MaxRelativeCubeScreenArea,
double );
217 vtkSetStringMacro(LengthUnit);
218 vtkGetStringMacro(LengthUnit);
236 double LastPickPosition[3];
237 double LastEventPosition[2];
253 virtual void Scale(
double *p1,
double *p2,
double eventPos[2]);
277 double eventPos[2],
double requestedDisplayPos[3] );
map vtkPolyData to graphics primitives
void SetMaxRelativeCubeScreenArea(double)
a subclass of actor that always faces the camera
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkMeasurementCubeHandleRepresentation3D() override
virtual void MoveFocus(double *p1, double *p2)
virtual void Scale(double *p1, double *p2, double eventPos[2])
void Highlight(int highlight) override
Toggle highlighting (used when the cube is selected).
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
vtkTypeBool SelectedLabelVisibility
abstract class for representing widget handles
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
virtual void UpdateLabel()
Opportunity to update the label position and text during each render.
void SetDisplayPosition(double p[3]) override
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
Renders pixel-aligned text, facing the camera, anchored at a 3D point.
virtual void Translate(double *p1, double *p2)
void StartWidgetInteraction(double eventPos[2]) override
virtual void UpdateHandle()
Update the actor position.
static vtkMeasurementCubeHandleRepresentation3D * New()
Instantiate this class.
void BuildRepresentation() override
Methods to make this class properly act like a vtkWidgetRepresentation.
void ShallowCopy(vtkProp *prop) override
Methods to make this class behave as a vtkProp.
void CreateDefaultProperties()
window superclass for vtkRenderWindow
void SetMinRelativeCubeScreenArea(double)
Set the min/max cube representational area relative to the render window area.
vtkMatrix4x4 * HandleTransformMatrix
void DeepCopy(vtkProp *prop) override
void SetWorldPosition(double p[3]) override
Set the position of the point in world and display coordinates.
represents an object (geometry & properties) in a rendered scene
vtkMatrixToLinearTransform * HandleTransform
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
virtual char * GetLabelTextInput()
represent a unit cube for measuring/comparing to data.
virtual void SetUniformScale(double scale)
The handle may be scaled uniformly in all three dimensions using this API.
int ComputeInteractionState(int X, int Y, int modify=0) override
void MoveFocusRequest(double *p1, double *p2, double eventPos[2], double requestedDisplayPos[3])
Given a motion vector defined by p1 --> p2 (p1 and p2 are in world coordinates), the new display posi...
double MinRelativeCubeScreenArea
vtkCellPicker * HandlePicker
void WidgetInteraction(double eventPos[2]) override
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkBillboardTextActor3D * LabelText
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual void SetLabelTextInput(const char *label)
abstract specification for Viewports
vtkMeasurementCubeHandleRepresentation3D()
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
bool LabelAnnotationTextScaleInitialized
abstract superclass for all actors, volumes and annotations
void SetProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
double * GetBounds() override
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void SetSideLength(double)
Set the length of a side of the cube (default is 1).
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkTypeBool AdaptiveScaling
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkTypeBool LabelVisibility
vtkProperty * SelectedProperty
vtkPolyDataMapper * Mapper
represent surface properties of a geometric object
void SetSelectedProperty(vtkProperty *)
vtkPolyData * GetHandle()
Get the handle polydata.
ray-cast cell picker for all kinds of Prop3Ds
vtkTransformPolyDataFilter * HandleTransformFilter
void ScaleIfNecessary(vtkViewport *)
If adaptive scaling is enabled, rescale the cube so that its representational area in the display win...
virtual vtkAbstractTransform * GetTransform()
Get the transform used to transform the generic handle polydata before placing it in the render windo...
vtkTypeBool HandleVisibility
double MaxRelativeCubeScreenArea