41 #ifndef vtkLineRepresentation_h
42 #define vtkLineRepresentation_h
44 #include "vtkInteractionWidgetsModule.h"
83 void GetPoint1WorldPosition(
double pos[3]);
84 double* GetPoint1WorldPosition();
85 void GetPoint1DisplayPosition(
double pos[3]);
86 double* GetPoint1DisplayPosition();
87 void SetPoint1WorldPosition(
double pos[3]);
88 void SetPoint1DisplayPosition(
double pos[3]);
89 void GetPoint2DisplayPosition(
double pos[3]);
90 double* GetPoint2DisplayPosition();
91 void GetPoint2WorldPosition(
double pos[3]);
92 double* GetPoint2WorldPosition();
93 void SetPoint2WorldPosition(
double pos[3]);
94 void SetPoint2DisplayPosition(
double pos[3]);
109 void InstantiateHandleRepresentation();
127 vtkGetObjectMacro(SelectedEndPointProperty,
vtkProperty);
136 vtkGetObjectMacro(SelectedEndPoint2Property,
vtkProperty);
145 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
154 vtkSetClampMacro(Tolerance,
int,1,100);
155 vtkGetMacro(Tolerance,
int);
164 void SetResolution(
int res);
214 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
222 virtual void SetRepresentationState(
int);
223 vtkGetMacro(RepresentationState,
int);
231 void SetDirectionalLine(
bool val);
232 vtkGetMacro(DirectionalLine,
bool);
252 vtkGetMacro( DistanceAnnotationVisibility,
int );
262 vtkSetStringMacro(DistanceAnnotationFormat);
276 this->SetDistanceAnnotationScale(scale);
278 virtual void SetDistanceAnnotationScale(
double scale[3] );
279 virtual double * GetDistanceAnnotationScale();
285 double GetDistance();
292 void SetLineColor(
double r,
double g,
double b);
297 virtual vtkProperty *GetDistanceAnnotationProperty();
306 enum { RestrictNone = 0, RestrictToX, RestrictToY, RestrictToZ };
312 vtkSetClampMacro(RestrictFlag,
int, RestrictNone, RestrictToZ);
346 void CreateDefaultProperties();
353 void ClampPosition(
double x[3]);
354 void HighlightPoint(
int ptId,
int highlight);
355 void HighlightLine(
int highlight);
356 int InBounds(
double x[3]);
362 double StartLineHandle[3];
364 double LastEventPosition[3];
int DistanceAnnotationVisibility
represents an object (geometry & properties) in a rendered scene
represent the position of a point in 3D space
abstract specification for Viewports
represent surface properties of a geometric object
vtkPointHandleRepresentation3D * Point2Representation
vtkPolyDataMapper ** HandleMapper
void SetDistanceAnnotationScale(double x, double y, double z)
Scale text (font size along each dimension).
vtkProperty * SelectedEndPoint2Property
vtkProperty * SelectedEndPointProperty
abstract specification for renderers
vtkProperty * LineProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPolyDataMapper * TextMapper
vtkTypeUInt64 vtkMTimeType
vtkCellPicker * LinePicker
vtkPointHandleRepresentation3D * Point1Representation
window superclass for vtkRenderWindow
vtkPointHandleRepresentation3D * HandleRepresentation
vtkPolyDataAlgorithm ** HandleGeometry
Superclass for algorithms that produce only polydata as output.
vtkLineSource * LineSource
vtkProperty * EndPointProperty
bool AnnotationTextScaleInitialized
a simple class to control print indentation
vtkVectorText * TextInput
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkPolyDataMapper * LineMapper
int InitializedDisplayPosition
char * DistanceAnnotationFormat
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a line defined by two end points
map vtkPolyData to graphics primitives
a subclass of actor that always faces the camera
ray-cast cell picker for all kinds of Prop3Ds
vtkProperty * SelectedLineProperty
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkProperty * EndPoint2Property
vtkPointHandleRepresentation3D * LineHandleRepresentation
implicit function for a bounding box
a class defining the representation for a vtkLineWidget2