Go to the documentation of this file.
32 #ifndef vtkDistanceRepresentation3D_h
33 #define vtkDistanceRepresentation3D_h
35 #include "vtkInteractionWidgetsModule.h"
72 {
return this->Distance;}
80 vtkGetMacro(GlyphScale,
double);
94 vtkGetMacro(LabelPosition,
double);
102 vtkGetMacro(MaximumNumberOfRulerTicks,
int);
169 this->SetLabelScale(
scale);
229 void UpdateLabelPosition();
map vtkPolyData to graphics primitives
represent and manipulate 3D points
vtkPolyData * LinePolyData
vtkPolyData * GlyphPolyData
a subclass of actor that always faces the camera
void BuildRepresentation() override
Method to satisfy superclasses' API.
int MaximumNumberOfRulerTicks
vtkVectorText * LabelText
void SetPoint1DisplayPosition(double pos[3]) override
static vtkDistanceRepresentation3D * New()
Instantiate class.
void SetPoint1WorldPosition(double pos[3]) override
virtual void SetLabelScale(double scale[3])
double * GetPoint2WorldPosition() override
window superclass for vtkRenderWindow
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
void SetLabelPosition(double labelPosition)
Set/Get position of the label title in normalized coordinates [0,1].
represent the vtkDistanceWidget
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual double * GetLabelScale()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetPoint1DisplayPosition(double pos[3]) override
double * GetPoint1WorldPosition() override
Methods to Set/Get the coordinates of the two points defining this representation.
represent the vtkDistanceWidget
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
double * GetBounds() override
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void GetPoint2WorldPosition(double pos[3]) override
virtual vtkProperty * GetLineProperty()
Convenience method to get the line actor property.
void GetPoint1WorldPosition(double pos[3]) override
Methods to Set/Get the coordinates of the two points defining this representation.
void GetPoint2DisplayPosition(double pos[3]) override
generate a cylinder centered at origin
~vtkDistanceRepresentation3D() override
vtkCylinderSource * GlyphCylinder
vtkDistanceRepresentation3D()
abstract specification for Viewports
vtkPolyDataMapper * LabelMapper
copy oriented and scaled glyph geometry to every input point
vtkDoubleArray * GlyphVectors
implicit function for a bounding box
vtkPolyDataMapper * GlyphMapper
vtkTransformPolyDataFilter * GlyphXForm
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual vtkProperty * GetLabelProperty()
Get the distance annotation property.
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by vtkProp superclass.
dynamic, self-adjusting array of double
represent surface properties of a geometric object
void SetGlyphScale(double scale)
Scale the glyphs used as tick marks.
double GetDistance() override
Satisfy the superclasses API.
void SetPoint2DisplayPosition(double pos[3]) override
void SetPoint2WorldPosition(double pos[3]) override
vtkPolyDataMapper * LineMapper
virtual void SetLabelActor(vtkFollower *)
void SetLabelScale(double x, double y, double z)
Scale text (font size along each dimension).