VTK  9.0.1
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 =========================================================================*/
30 #ifndef vtkCameraRepresentation_h
31 #define vtkCameraRepresentation_h
32 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
35 
36 class vtkRenderer;
38 class vtkCamera;
40 class vtkPoints;
41 class vtkPolyData;
44 class vtkProperty2D;
45 class vtkActor2D;
46 
47 class VTKINTERACTIONWIDGETS_EXPORT vtkCameraRepresentation : public vtkBorderRepresentation
48 {
49 public:
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
68  void SetCamera(vtkCamera* camera);
69  vtkGetObjectMacro(Camera, vtkCamera);
71 
73 
81  vtkGetObjectMacro(Interpolator, vtkCameraInterpolator);
83 
85 
88  vtkSetClampMacro(NumberOfFrames, int, 1, VTK_INT_MAX);
89  vtkGetMacro(NumberOfFrames, int);
91 
93 
97  vtkGetObjectMacro(Property, vtkProperty2D);
99 
101 
112 
116  void BuildRepresentation() override;
117  void GetSize(double size[2]) override
118  {
119  size[0] = 6.0;
120  size[1] = 2.0;
121  }
122 
124 
130  int RenderOverlay(vtkViewport*) override;
135 
136 protected:
139 
140  // the camera and the interpolator
144  double CurrentTime;
145 
146  // representation of the camera
153 
154 private:
156  void operator=(const vtkCameraRepresentation&) = delete;
157 };
158 
159 #endif
a actor that draws 2D data
Definition: vtkActor2D.h:40
represent a vtkBorderWidget
interpolate a series of cameras to update a new camera
represent the vtkCameraWidget
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkCameraInterpolator * Interpolator
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
void GetSize(double size[2]) override
void BuildRepresentation() override
Satisfy the superclasses' API.
void SetInterpolator(vtkCameraInterpolator *camInt)
Get the vtkCameraInterpolator used to interpolate and save the sequence of camera views.
vtkPolyDataMapper2D * Mapper
void SetCamera(vtkCamera *camera)
Specify the camera to interpolate.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTransformPolyDataFilter * TransformFilter
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
~vtkCameraRepresentation() override
int RenderOverlay(vtkViewport *) override
void AnimatePath(vtkRenderWindowInteractor *rwi)
static vtkCameraRepresentation * New()
Instantiate this class.
void AddCameraToPath()
These methods are used to create interpolated camera paths.
a virtual camera for 3D rendering
Definition: vtkCamera.h:46
a simple class to control print indentation
Definition: vtkIndent.h:34
represent and manipulate 3D points
Definition: vtkPoints.h:34
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
an ordered list of Props
represent surface properties of a 2D image
Definition: vtkProperty2D.h:38
platform-independent render window interaction including picking and frame rate control.
abstract specification for renderers
Definition: vtkRenderer.h:59
transform points and associated normals and vectors for polygonal dataset
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ size
Definition: vtkX3D.h:259
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_INT_MAX
Definition: vtkType.h:155