40 #ifndef __vtkLineRepresentation_h
41 #define __vtkLineRepresentation_h
43 #include "vtkInteractionWidgetsModule.h"
76 void GetPoint1WorldPosition(
double pos[3]);
77 double* GetPoint1WorldPosition();
78 void GetPoint1DisplayPosition(
double pos[3]);
79 double* GetPoint1DisplayPosition();
80 void SetPoint1WorldPosition(
double pos[3]);
81 void SetPoint1DisplayPosition(
double pos[3]);
82 void GetPoint2DisplayPosition(
double pos[3]);
83 double* GetPoint2DisplayPosition();
84 void GetPoint2WorldPosition(
double pos[3]);
85 double* GetPoint2WorldPosition();
86 void SetPoint2WorldPosition(
double pos[3]);
87 void SetPoint2DisplayPosition(
double pos[3]);
100 void InstantiateHandleRepresentation();
114 vtkGetObjectMacro(SelectedEndPointProperty,
vtkProperty);
121 vtkGetObjectMacro(SelectedEndPoint2Property,
vtkProperty);
128 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
135 vtkSetClampMacro(Tolerance,
int,1,100);
136 vtkGetMacro(Tolerance,
int);
143 void SetResolution(
int res);
186 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
192 virtual void SetRepresentationState(
int);
193 vtkGetMacro(RepresentationState,
int);
205 vtkSetMacro( DistanceAnnotationVisibility,
int );
206 vtkGetMacro( DistanceAnnotationVisibility,
int );
207 vtkBooleanMacro( DistanceAnnotationVisibility,
int );
214 vtkSetStringMacro(DistanceAnnotationFormat);
220 void SetDistanceAnnotationScale(
double x,
double y,
double z)
226 this->SetDistanceAnnotationScale(scale);
228 virtual void SetDistanceAnnotationScale(
double scale[3] );
229 virtual double * GetDistanceAnnotationScale();
233 double GetDistance();
238 void SetLineColor(
double r,
double g,
double b);
241 virtual vtkProperty *GetDistanceAnnotationProperty();
279 void CreateDefaultProperties();
286 void ClampPosition(
double x[3]);
287 void HighlightPoint(
int ptId,
int highlight);
288 void HighlightLine(
int highlight);
289 int InBounds(
double x[3]);
295 double StartLineHandle[3];
297 double LastEventPosition[3];