VTK  9.2.6
vtkCameraRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCameraRepresentation.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
32
33#ifndef vtkCameraRepresentation_h
34#define vtkCameraRepresentation_h
35
37#include "vtkInteractionWidgetsModule.h" // For export macro
38
39class vtkRenderer;
41class vtkCamera;
43class vtkPoints;
44class vtkPolyData;
47class vtkProperty2D;
48class vtkActor2D;
49
50class VTKINTERACTIONWIDGETS_EXPORT vtkCameraRepresentation : public vtkBorderRepresentation
51{
52public:
57
59
63 void PrintSelf(ostream& os, vtkIndent indent) override;
65
67
71 void SetCamera(vtkCamera* camera);
72 vtkGetObjectMacro(Camera, vtkCamera);
74
76
86
88
91 vtkSetClampMacro(NumberOfFrames, int, 1, VTK_INT_MAX);
92 vtkGetMacro(NumberOfFrames, int);
94
96
100 vtkGetObjectMacro(Property, vtkProperty2D);
102
104
115
119 void BuildRepresentation() override;
120 void GetSize(double size[2]) override
121 {
122 size[0] = 6.0;
123 size[1] = 2.0;
124 }
125
127
138
139protected:
142
143 // the camera and the interpolator
148
149 // representation of the camera
156
157private:
159 void operator=(const vtkCameraRepresentation&) = delete;
160};
161
162#endif
a actor that draws 2D data
Definition vtkActor2D.h:46
interpolate a series of cameras to update a new camera
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
vtkCameraInterpolator * Interpolator
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void InitializePath()
These methods are used to create interpolated camera paths.
static vtkCameraRepresentation * New()
Instantiate this class.
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
void GetSize(double size[2]) override
Subclasses should implement these methods.
void BuildRepresentation() override
Satisfy the superclasses' API.
void SetInterpolator(vtkCameraInterpolator *camInt)
Get the vtkCameraInterpolator used to interpolate and save the sequence of camera views.
void SetCamera(vtkCamera *camera)
Specify the camera to interpolate.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
vtkTransformPolyDataFilter * TransformFilter
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
~vtkCameraRepresentation() override
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void AnimatePath(vtkRenderWindowInteractor *rwi)
These methods are used to create interpolated camera paths.
void AddCameraToPath()
These methods are used to create interpolated camera paths.
a virtual camera for 3D rendering
Definition vtkCamera.h:52
a simple class to control print indentation
Definition vtkIndent.h:40
represent and manipulate 3D points
Definition vtkPoints.h:40
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:91
an ordered list of Props
represent surface properties of a 2D image
platform-independent render window interaction including picking and frame rate control.
abstract specification for renderers
Definition vtkRenderer.h:73
transform points and associated normals and vectors for polygonal dataset
abstract specification for Viewports
Definition vtkViewport.h:56
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_INT_MAX
Definition vtkType.h:155