40 #ifndef __vtkLineRepresentation_h
41 #define __vtkLineRepresentation_h
75 void GetPoint1WorldPosition(
double pos[3]);
76 double* GetPoint1WorldPosition();
77 void GetPoint1DisplayPosition(
double pos[3]);
78 double* GetPoint1DisplayPosition();
79 void SetPoint1WorldPosition(
double pos[3]);
80 void SetPoint1DisplayPosition(
double pos[3]);
81 void GetPoint2DisplayPosition(
double pos[3]);
82 double* GetPoint2DisplayPosition();
83 void GetPoint2WorldPosition(
double pos[3]);
84 double* GetPoint2WorldPosition();
85 void SetPoint2WorldPosition(
double pos[3]);
86 void SetPoint2DisplayPosition(
double pos[3]);
99 void InstantiateHandleRepresentation();
113 vtkGetObjectMacro(SelectedEndPointProperty,
vtkProperty);
120 vtkGetObjectMacro(SelectedEndPoint2Property,
vtkProperty);
127 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
134 vtkSetClampMacro(Tolerance,
int,1,100);
135 vtkGetMacro(Tolerance,
int);
142 void SetResolution(
int res);
185 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
191 virtual void SetRepresentationState(
int);
192 vtkGetMacro(RepresentationState,
int);
204 vtkSetMacro( DistanceAnnotationVisibility,
int );
205 vtkGetMacro( DistanceAnnotationVisibility,
int );
206 vtkBooleanMacro( DistanceAnnotationVisibility,
int );
213 vtkSetStringMacro(DistanceAnnotationFormat);
214 vtkGetStringMacro(DistanceAnnotationFormat);
219 void SetDistanceAnnotationScale(
double x,
double y,
double z)
225 this->SetDistanceAnnotationScale(scale);
227 virtual void SetDistanceAnnotationScale(
double scale[3] );
228 virtual double * GetDistanceAnnotationScale();
232 double GetDistance();
237 void SetLineColor(
double r,
double g,
double b);
240 virtual vtkProperty *GetDistanceAnnotationProperty();
278 void CreateDefaultProperties();
285 void ClampPosition(
double x[3]);
286 void HighlightPoint(
int ptId,
int highlight);
287 void HighlightLine(
int highlight);
288 int InBounds(
double x[3]);
294 double StartLineHandle[3];
296 double LastEventPosition[3];