20#ifndef vtkDistanceRepresentation3D_h
21#define vtkDistanceRepresentation3D_h
24#include "vtkInteractionWidgetsModule.h"
27VTK_ABI_NAMESPACE_BEGIN
69 vtkGetMacro(GlyphScale,
double);
71 vtkGetMacro(GlyphScaleSpecified,
bool);
72 vtkSetMacro(GlyphScaleSpecified,
bool);
86 vtkGetMacro(LabelPosition,
double);
93 vtkSetClampMacro(MaximumNumberOfRulerTicks,
int, 1,
VTK_INT_MAX);
94 vtkGetMacro(MaximumNumberOfRulerTicks,
int);
121 double* GetPoint1WorldPosition() override;
123 double* GetPoint2WorldPosition() override;
125 void GetPoint1WorldPosition(
double pos[3]) VTK_FUTURE_CONST override;
127 void GetPoint2WorldPosition(
double pos[3]) VTK_FUTURE_CONST override;
129 void SetPoint1WorldPosition(
double pos[3]) override;
131 void SetPoint2WorldPosition(
double pos[3]) override;
135 void SetPoint1DisplayPosition(
double pos[3]) override;
137 void SetPoint2DisplayPosition(
double pos[3]) override;
139 void GetPoint1DisplayPosition(
double pos[3]) VTK_FUTURE_CONST override;
141 void GetPoint2DisplayPosition(
double pos[3]) VTK_FUTURE_CONST override;
147 void BuildRepresentation() override;
148 double* GetBounds() override;
157 int RenderTranslucentPolygonalGeometry(
vtkViewport* viewport) override;
165 void SetLabelScale(
double x,
double y,
double z)
171 this->SetLabelScale(scale);
231 void UpdateLabelPosition();
represents an object (geometry & properties) in a rendered scene
implicit function for a bounding box
generate a polygonal cylinder centered at the origin
represent the vtkDistanceWidget
vtkCylinderSource * GlyphCylinder
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
virtual vtkProperty * GetLineProperty()
Convenience method to get the line actor property.
virtual vtkProperty * GetLabelProperty()
Get the distance annotation property.
~vtkDistanceRepresentation3D() override
vtkTransformPolyDataFilter * GlyphXForm
static vtkDistanceRepresentation3D * New()
Instantiate class.
void SetLabelPosition(double labelPosition)
Set/Get position of the label title in normalized coordinates [0,1].
vtkDistanceRepresentation3D()
void SetGlyphScale(double scale)
Scale the glyphs used as tick marks.
vtkPolyDataMapper * GlyphMapper
vtkPolyDataMapper * LabelMapper
vtkPolyData * GlyphPolyData
vtkPolyDataMapper * LineMapper
vtkDoubleArray * GlyphVectors
vtkVectorText * LabelText
virtual double * GetLabelScale()
Scale text (font size along each dimension).
int MaximumNumberOfRulerTicks
double GetDistance() override
Satisfy the superclasses API.
virtual void SetLabelScale(double scale[3])
Scale text (font size along each dimension).
vtkPolyData * LinePolyData
virtual void SetLabelActor(vtkFollower *)
Convenience method Get the label actor.
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
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
#define VTK_MARSHALEXCLUDE(reason)