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