38 #ifndef vtkLineRepresentation_h
39 #define vtkLineRepresentation_h
41 #include "vtkInteractionWidgetsModule.h"
80 void GetPoint1WorldPosition(
double pos[3]);
82 void GetPoint1DisplayPosition(
double pos[3]);
84 void SetPoint1WorldPosition(
double pos[3]);
85 void SetPoint1DisplayPosition(
double pos[3]);
86 void GetPoint2DisplayPosition(
double pos[3]);
88 void GetPoint2WorldPosition(
double pos[3]);
90 void SetPoint2WorldPosition(
double pos[3]);
91 void SetPoint2DisplayPosition(
double pos[3]);
106 void InstantiateHandleRepresentation();
124 vtkGetObjectMacro(SelectedEndPointProperty,
vtkProperty);
133 vtkGetObjectMacro(SelectedEndPoint2Property,
vtkProperty);
142 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
151 vtkSetClampMacro(Tolerance,
int, 1, 100);
152 vtkGetMacro(Tolerance,
int);
161 void SetResolution(
int res);
179 void PlaceWidget(
double bounds[6]) override;
180 void BuildRepresentation() override;
181 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
182 void StartWidgetInteraction(
double e[2]) override;
183 void WidgetInteraction(
double e[2]) override;
192 void ReleaseGraphicsResources(
vtkWindow*) override;
194 int RenderTranslucentPolygonalGeometry(
vtkViewport*) override;
195 vtkTypeBool HasTranslucentPolygonalGeometry() override;
220 vtkSetClampMacro(InteractionState,
int, Outside, Scaling);
228 virtual void SetRepresentationState(
int);
229 vtkGetMacro(RepresentationState,
int);
237 void SetDirectionalLine(
bool val);
238 vtkGetMacro(DirectionalLine,
bool);
239 vtkBooleanMacro(DirectionalLine,
bool);
257 vtkSetMacro(DistanceAnnotationVisibility,
vtkTypeBool);
258 vtkGetMacro(DistanceAnnotationVisibility,
vtkTypeBool);
259 vtkBooleanMacro(DistanceAnnotationVisibility,
vtkTypeBool);
268 vtkSetStringMacro(DistanceAnnotationFormat);
269 vtkGetStringMacro(DistanceAnnotationFormat);
282 this->SetDistanceAnnotationScale(
scale);
284 virtual void SetDistanceAnnotationScale(
double scale[3]);
285 virtual double* GetDistanceAnnotationScale()
VTK_SIZEHINT(3);
291 double GetDistance();
297 void SetLineColor(
double r,
double g,
double b);
302 virtual
vtkProperty* GetDistanceAnnotationProperty();
323 VTK_LEGACY(
void SetRestrictFlag(
int restrict_flag));
357 void CreateDefaultProperties();
364 void ClampPosition(
double x[3]);
365 void HighlightPoint(
int ptId,
int highlight);
366 void HighlightLine(
int highlight);
367 int InBounds(
double x[3]);
373 double StartLineHandle[3];
375 double LastEventPosition[3];