19#ifndef vtkSplineRepresentation_h
20#define vtkSplineRepresentation_h
23#include "vtkInteractionWidgetsModule.h"
26VTK_ABI_NAMESPACE_BEGIN
106 void RebuildRepresentation();
109 std::vector<vtkSmartPointer<vtkPointHandleSource>> PointHandles;
110 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.
int GetHandleIndex(vtkProp *prop) override
returns handle index or -1 on fail
void SetParametricSpline(vtkParametricSpline *spline) override
Set the parametric spline object.
void SetNumberOfHandles(int npts) override
Set the number of handles for this widget, while keeping a similar spline.
void ReconfigureHandles(int npts)
Recreate the handles according to a number of points equal to npts.
void InitializeHandles(vtkPoints *points) override
Convenience method to allocate and set the handles from a vtkPoints instance.
vtkSplineRepresentation()
static vtkSplineRepresentation * New()