20#ifndef vtkPolyLineRepresentation_h 
   21#define vtkPolyLineRepresentation_h 
   24#include "vtkInteractionWidgetsModule.h"  
   26VTK_ABI_NAMESPACE_BEGIN
 
  122  std::vector<vtkSmartPointer<vtkPointHandleSource>> PointHandles;
 
  123  std::vector<vtkSmartPointer<vtkActor>> HandleActors;
 
represents an object (geometry & properties) in a rendered scene
 
base class for a widget that represents a curve that connects control points.
 
dynamic, self-adjusting array of double
 
interface that can be inherited to define handler sources for any kind of interaction.
 
a simple class to control print indentation
 
Allocate and hold a VTK object.
 
handle source used to represent points.
 
represent and manipulate 3D points
 
concrete dataset represents vertices, lines, polygons, and triangle strips
 
vtkWidgetRepresentation for a poly line.
 
vtkHandleSource * GetHandleSource(int index) override
 
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.
 
void AllocateHandles(int npts)
Allocate/Reallocate the handles according to npts.
 
void CreateDefaultHandles(int npts)
Create npts default handles.
 
double GetSummedLength() override
Get the true length of the poly line.
 
vtkNew< vtkPolyLineSource > PolyLineSource
 
vtkDoubleArray * GetHandlePositions() override
Get the positions of the handles.
 
vtkPolyLineRepresentation()
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
void ReconfigureHandles(int npts)
Recreate the handles according to a number of points equal to npts.
 
~vtkPolyLineRepresentation() override
 
void InitializeHandles(vtkPoints *points) override
Convenience method to allocate and set the handles from a vtkPoints instance.
 
int GetHandleIndex(vtkProp *prop) override
returns handle index or -1 on fail
 
vtkActor * GetHandleActor(int index) override
 
void ClearHandles()
Delete all the handles.
 
int InsertHandleOnLine(double *pos) override
Specialized method to insert a handle on the poly line.
 
create a poly line from a list of input points
 
abstract superclass for all actors, volumes and annotations