29 #ifndef vtkPolyLineRepresentation_h
30 #define vtkPolyLineRepresentation_h
33 #include "vtkInteractionWidgetsModule.h"
vtkWidgetRepresentation base class for a widget that represents an curve that connects control points...
dynamic, self-adjusting array of double
a simple class to control print indentation
represent and manipulate 3D points
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkWidgetRepresentation for a poly line.
void BuildRepresentation() override
Build the representation for the poly line.
void GetPolyData(vtkPolyData *pd) override
Grab the polydata (including points) that defines the poly line.
static vtkPolyLineRepresentation * New()
void SetNumberOfHandles(int npts) override
Set the number of handles for this widget.
double GetSummedLength() override
Get the true length of the poly line.
vtkPolyLineSource * PolyLineSource
vtkPolyLineRepresentation()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkPolyLineRepresentation() override
void InitializeHandles(vtkPoints *points) override
Convenience method to allocate and set the handles from a vtkPoints instance.
vtkDoubleArray * GetHandlePositions() override
Get the positions of the handles.
int InsertHandleOnLine(double *pos) override
Returns the position of insertion or -1 on fail.
create a poly line from a list of input points