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