57 #ifndef vtkLineRepresentation_h
58 #define vtkLineRepresentation_h
61 #include "vtkInteractionWidgetsModule.h"
102 void GetPoint1DisplayPosition(
double pos[3]);
104 void SetPoint1WorldPosition(
double pos[3]);
105 void SetPoint1DisplayPosition(
double pos[3]);
106 void GetPoint2DisplayPosition(
double pos[3]);
108 void GetPoint2WorldPosition(
double pos[3]);
110 void SetPoint2WorldPosition(
double pos[3]);
111 void SetPoint2DisplayPosition(
double pos[3]);
126 void InstantiateHandleRepresentation();
171 vtkSetClampMacro(Tolerance,
int, 1, 100);
172 vtkGetMacro(Tolerance,
int);
181 void SetResolution(
int res);
199 void PlaceWidget(
double bounds[6]) override;
200 void BuildRepresentation() override;
201 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
202 void StartWidgetInteraction(
double e[2]) override;
203 void WidgetInteraction(
double e[2]) override;
240 vtkSetClampMacro(InteractionState,
int, Outside, Scaling);
249 vtkGetMacro(RepresentationState,
int);
258 vtkGetMacro(DirectionalLine,
bool);
259 vtkBooleanMacro(DirectionalLine,
bool);
288 vtkSetStringMacro(DistanceAnnotationFormat);
289 vtkGetStringMacro(DistanceAnnotationFormat);
302 this->SetDistanceAnnotationScale(
scale);
311 double GetDistance();
317 void SetLineColor(
double r,
double g,
double b);
344 void SetRestrictFlag(
int restrict_flag);
357 int RepresentationState;
358 bool DirectionalLine;
378 void CreateDefaultProperties();
385 void ClampPosition(
double x[3]);
386 void HighlightPoint(
int ptId,
int highlight);
387 void HighlightLine(
int highlight);
388 int InBounds(
double x[3]);
394 double StartLineHandle[3];
396 double LastEventPosition[3];
405 int InitializedDisplayPosition;
409 char* DistanceAnnotationFormat;
415 bool AnnotationTextScaleInitialized;