28#ifndef vtkSplineRepresentation_h
29#define vtkSplineRepresentation_h
32#include "vtkInteractionWidgetsModule.h"
112 void RebuildRepresentation();
115 std::vector<vtkSmartPointer<vtkPointHandleSource>> PointHandles;
116 std::vector<vtkSmartPointer<vtkActor>> HandleActors;
abstract representation for a spline.
represents an object (geometry & properties) in a rendered scene
interface that can be inherited to define handler sources for any kind of interaction.
a simple class to control print indentation
parametric function for 1D interpolating splines
handle source used to represent points.
represent and manipulate 3D points
abstract superclass for all actors, volumes and annotations
representation for a spline.
vtkHandleSource * GetHandleSource(int index) override
void BuildRepresentation() override
Method that satisfy vtkWidgetRepresentation API.
void AllocateHandles(int npts)
Allocate/Reallocate the handles according to npts.
~vtkSplineRepresentation() override
vtkActor * GetHandleActor(int index) override
void ClearHandles()
Delete all the handles.
void CreateDefaultHandles(int npts)
Create npts default handles.
int InsertHandleOnLine(double *pos) override
Specialized method to insert a handle on the spline.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetParametricSpline(vtkParametricSpline *spline) override
Set the parametric spline object.
void ReconfigureHandles(int npts)
Recreate the handles according to a number of points equal to npts.
virtual int GetHandleIndex(vtkProp *prop) override
returns handle index or -1 on fail
void InitializeHandles(vtkPoints *points) override
Convenience method to allocate and set the handles from a vtkPoints instance.
vtkSplineRepresentation()
virtual void SetNumberOfHandles(int npts) override
Set the number of handles for this widget, while keeping a similar spline.
static vtkSplineRepresentation * New()