19#ifndef vtkCameraPathRepresentation_h 
   20#define vtkCameraPathRepresentation_h 
   23#include "vtkInteractionWidgetsModule.h"  
   25VTK_ABI_NAMESPACE_BEGIN
 
  135  void RebuildRepresentation();
 
  137  void UpdateConfiguration(
int npts);
 
  139  std::vector<vtkSmartPointer<vtkCameraHandleSource>> CameraHandles;
 
  140  std::vector<vtkSmartPointer<vtkActor>> HandleActors;
 
abstract representation for a spline.
 
represents an object (geometry & properties) in a rendered scene
 
handle source used to represent one camera.
 
representation for a camera path.
 
void SetNumberOfHandles(int npts) override
Adjust the number of camera handles while keeping the same path.
 
vtkHandleSource * GetHandleSource(int index) override
 
void CreateDefaultHandles(int npts)
Create/Recreate npts default camera handles.
 
vtkCameraPathRepresentation()
 
void BuildRepresentation() override
Method that satisfy vtkWidgetRepresentation API.
 
int InsertHandleOnLine(double *pos) override
Specialized method to insert a camera handle on the camera path.
 
void SetParametricSpline(vtkParametricSpline *spline) override
Set the parametric spline object.
 
vtkActor * GetHandleActor(int index) override
 
void SetDirectional(bool val) override
Sets the representation to be a curve interpolating multiple cameras pointing to their focal point.
 
static vtkCameraPathRepresentation * New()
 
void SizeHandles() override
Resize the camera handles on demand.
 
int GetHandleIndex(vtkProp *prop) override
returns handle index or -1 on fail
 
void ClearCameraHandles()
Delete all camera handles.
 
void EraseHandle(const int &) override
Specialized method to erase a camera handle from the camera path.
 
void AddCameraAt(vtkCamera *camera, int index)
Add a camera to the path.
 
~vtkCameraPathRepresentation() override=default
 
void InsertCamera(vtkCamera *camera, int index)
Creates a new handle from a vtkcamera and insert it in the handles collection.
 
void InitializeHandles(vtkPoints *points) override
Convenience method to allocate and set the Camera handles from a vtkPoints instance (corresponding to...
 
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.
 
void ReconfigureHandles(int newNPts, int oldNPts)
Recreate the handles according to a number of points equal to newNPts.
 
a virtual camera for 3D rendering
 
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
 
represent and manipulate 3D points
 
abstract superclass for all actors, volumes and annotations