 |
VTK
9.1.0
|
Go to the documentation of this file.
28 #ifndef vtkCameraPathRepresentation_h
29 #define vtkCameraPathRepresentation_h
32 #include "vtkInteractionWidgetsModule.h"
143 void RebuildRepresentation();
145 void UpdateConfiguration(
int npts);
147 std::vector<vtkSmartPointer<vtkCameraHandleSource>> CameraHandles;
148 std::vector<vtkSmartPointer<vtkActor>> HandleActors;
represent and manipulate 3D points
void DeleteCameraAt(int index)
Remove a camera from the path.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkActor * GetHandleActor(int index) override
void InitializeHandles(vtkPoints *points) override
Convenience method to allocate and set the Camera handles from a vtkPoints instance (corresponding to...
void CreateDefaultHandles(int npts)
Create/Recreate npts default camera handles.
int InsertHandleOnLine(double *pos) override
Specialized method to insert a camera handle on the camera path.
void SetNumberOfHandles(int npts) override
Adjust the number of camera handles while keeping the same path.
void BuildRepresentation() override
Method that satisfy vtkWidgetRepresentation API.
void SetDirectional(bool val) override
Sets the representation to be a curve interpolating multiple cameras pointing to their focal point.
representation for a camera path.
parametric function for 1D interpolating splines
interface that can be inherited to define handler sources for any kind of interaction.
handle source used to represent one camera.
virtual int GetHandleIndex(vtkProp *prop) override
returns handle index or -1 on fail
void SizeHandles() override
Resize the camera handles on demand.
void ClearCameraHandles()
Delete all camera handles.
void AddCameraAt(vtkCamera *camera, int index)
Add a camera to the path.
vtkHandleSource * GetHandleSource(int index) override
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
vtkCameraPathRepresentation()
void EraseHandle(const int &) override
Specialized method to erase a camera handle from the camera path.
a virtual camera for 3D rendering
abstract superclass for all actors, volumes and annotations
~vtkCameraPathRepresentation() override=default
static vtkCameraPathRepresentation * New()
void InsertCamera(vtkCamera *camera, int index)
Creates a new handle from a vtkcamera and insert it in the handles collection.
abstract representation for a spline.
void SetParametricSpline(vtkParametricSpline *spline) override
Set the parametric spline object.
void ReconfigureHandles(int newNPts, int oldNPts)
Recreate the handles according to a number of points equal to newNPts.