19#ifndef vtkMultiLineRepresentation_h
20#define vtkMultiLineRepresentation_h
22#include "vtkInteractionWidgetsModule.h"
26VTK_ABI_NAMESPACE_BEGIN
83 vtkGetMacro(LineCount,
int)
120 vtkGetMacro(Tolerance,
int);
130 vtkGetMacro(Resolution,
int);
184 vtkGetMacro(RepresentationState,
int);
204 vtkGetMacro(DirectionalLine,
bool);
205 vtkBooleanMacro(DirectionalLine,
bool);
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;
implicit function for a bounding box
dynamic, self-adjusting array of double
a simple class to control print indentation
a class defining the representation for a vtkLineWidget2
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
void SetLineColor(double r, double g, double b)
Convenience method to set the lines color.
void SetPoint2WorldPosition(int index, double pos[3])
Methods to Set/Get the coordinates of the two points defining a line representation.
vtkMTimeType GetMTime() override
Overload the superclasses' GetMTime() because internal classes are used to keep the state of the repr...
vtkDoubleArray * GetPoint2DisplayPositions()
Methods to Set/Get the coordinates of the two points defining a line representation.
vtkDoubleArray * GetPoint2WorldPositions()
Methods to Set/Get the coordinates of the two points defining a line representation.
void SetResolution(int res)
Set/Get the resolution (number of subdivisions, minimum 1) of the line.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods supporting the rendering process.
void SetTolerance(int tol)
The tolerance representing the distance to a line (in pixels) in which the cursor is considered near ...
vtkDoubleArray * GetPoint1DisplayPositions()
Methods to Set/Get the coordinates of the two points defining a line representation.
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkMultiLineRepresentation()
~vtkMultiLineRepresentation() override
double * GetPoint1WorldPosition(int index)
Methods to Set/Get the coordinates of the two points defining a line representation.
static vtkMultiLineRepresentation * New()
double * GetBounds() override
These are methods that satisfy vtkWidgetRepresentation's API.
void GetPolyData(int index, vtkPolyData *pd)
Retrieve the polydata (including points) that defines the line.
void GetActors(vtkPropCollection *pc) override
Methods supporting the rendering process.
void SetInteractionColor(double, double, double)
Set the widget color, and the color of interactive handles.
void SetRenderer(vtkRenderer *ren) override
Overridden to set the rendererer on the internal representations.
int ComputeInteractionState(int X, int Y, int modify=0) override
These are methods that satisfy vtkWidgetRepresentation's API.
void SetPoint2DisplayPosition(int index, double pos[3])
Methods to Set/Get the coordinates of the two points defining a line representation.
void ReleaseGraphicsResources(vtkWindow *window) override
Methods supporting the rendering process.
vtkDoubleArray * GetPoint1WorldPositions()
Methods to Set/Get the coordinates of the two points defining a line representation.
void SetForegroundColor(double c[3])
Set the widget color, and the color of interactive handles.
void PlaceWidget(double bounds[6]) override
These are methods that satisfy vtkWidgetRepresentation's API.
void GetPoint1DisplayPosition(int index, double pos[3]) VTK_FUTURE_CONST
Methods to Set/Get the coordinates of the two points defining a line representation.
void SetPoint1DisplayPosition(int index, double pos[3])
Methods to Set/Get the coordinates of the two points defining a line representation.
void SetInteractionColor(double c[3])
Set the widget color, and the color of interactive handles.
void GetPoint2WorldPosition(int index, double pos[3]) VTK_FUTURE_CONST
Methods to Set/Get the coordinates of the two points defining a line representation.
void SetDirectionalLine(bool val)
Sets the representation of each line to be a directional line with point 1 represented as a cone.
void GetPoint1WorldPosition(int index, double pos[3]) VTK_FUTURE_CONST
Methods to Set/Get the coordinates of the two points defining a line representation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetPoint2DisplayPosition(int index, double pos[3]) VTK_FUTURE_CONST
Methods to Set/Get the coordinates of the two points defining a line representation.
void SetLineCount(int n)
Set/Get the number of vtkLineRepresentation in this widget.
vtkLineRepresentation * GetLineRepresentation(int index)
Gets the individual representation of a specific line as a vtkLineRepresentation.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Methods supporting the rendering process.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Methods supporting the rendering process.
double GetDistance(int index)
Get the distance between the points of the line at the provided index.
void SetPoint1WorldPosition(int index, double pos[3])
Methods to Set/Get the coordinates of the two points defining a line representation.
void SetForegroundColor(double, double, double)
Set the widget color, and the color of interactive handles.
Allocate and hold a VTK object.
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
abstract specification for renderers
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALEXCLUDE(reason)