19 #ifndef vtkMultiLineRepresentation_h
20 #define vtkMultiLineRepresentation_h
22 #include "vtkInteractionWidgetsModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
48 void GetPoint1WorldPosition(
int index,
double pos[3]) VTK_FUTURE_CONST;
51 void GetPoint1DisplayPosition(
int index,
double pos[3]) VTK_FUTURE_CONST;
53 double* GetPoint1DisplayPosition(
int index)
VTK_SIZEHINT(3);
54 void SetPoint1WorldPosition(
int index,
double pos[3]);
56 void SetPoint1DisplayPosition(
int index,
double pos[3]);
58 void GetPoint2DisplayPosition(
int index,
double pos[3]) VTK_FUTURE_CONST;
60 double* GetPoint2DisplayPosition(
int index) VTK_SIZEHINT(3);
61 void GetPoint2WorldPosition(
int index,
double pos[3]) VTK_FUTURE_CONST;
62 double* GetPoint2WorldPosition(
int index) VTK_SIZEHINT(3);
63 void SetPoint2WorldPosition(
int index,
double pos[3]);
65 void SetPoint2DisplayPosition(
int index,
double pos[3]);
67 void SetPoint1WorldPosition(
int index,
double x,
double y,
double z);
68 void SetPoint1DisplayPosition(
int index,
double x,
double y,
double z);
69 void SetPoint2WorldPosition(
int index,
double x,
double y,
double z);
70 void SetPoint2DisplayPosition(
int index,
double x,
double y,
double z);
82 void SetLineCount(
int n);
83 vtkGetMacro(LineCount,
int)
92 vtkGetObjectMacro(SelectedEndPointProperty, vtkProperty);
100 vtkGetObjectMacro(EndPoint2Property, vtkProperty);
101 vtkGetObjectMacro(SelectedEndPoint2Property, vtkProperty);
109 vtkGetObjectMacro(LineProperty, vtkProperty);
110 vtkGetObjectMacro(SelectedLineProperty, vtkProperty);
119 void SetTolerance(
int tol);
120 vtkGetMacro(Tolerance,
int);
129 void SetResolution(
int res);
130 vtkGetMacro(Resolution,
int);
147 void PlaceWidget(
double bounds[6]) override;
148 void BuildRepresentation() override;
149 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
150 double*
GetBounds() VTK_SIZEHINT(6) override;
156 MOUSE_OUTSIDE_LINES = 0,
175 vtkSetClampMacro(InteractionState,
int, MOUSE_OUTSIDE_LINES, MOUSE_ON_LINE);
183 virtual void SetRepresentationState(
int);
184 vtkGetMacro(RepresentationState,
int);
203 void SetDirectionalLine(
bool val);
204 vtkGetMacro(DirectionalLine,
bool);
205 vtkBooleanMacro(DirectionalLine,
bool);
227 double GetDistance(
int index);
233 void SetLineColor(
double r,
double g,
double b);
239 void SetInteractionColor(
double,
double,
double);
241 void SetForegroundColor(
double,
double,
double);
253 void CreateDefaultProperties();
256 void AddNewLine(
int index);
257 void ApplyProperties(
int index);
258 void UpdatePoint1Positions();
259 void UpdatePoint2Positions();
262 bool DirectionalLine =
false;
265 std::vector<vtkSmartPointer<vtkLineRepresentation>> LineRepresentationVector;
293 VTK_ABI_NAMESPACE_END
void GetBounds(T a, double bds[6])
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
represent surface properties of a geometric object
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
dynamic, self-adjusting array of double
void SetInteractionColor(double c[3])
Set the widget color, and the color of interactive handles.
window superclass for vtkRenderWindow
a simple class to control print indentation
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void SetForegroundColor(double c[3])
Set the widget color, and the color of interactive handles.
#define VTK_SIZEHINT(...)
#define VTK_MARSHALEXCLUDE(reason)
a class defining the representation for a vtkMultiLineWidget
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
implicit function for a bounding box
a class defining the representation for a vtkLineWidget2
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL