VTK
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 =========================================================================*/
33 #ifndef vtkCameraRepresentation_h
34 #define vtkCameraRepresentation_h
35 
36 #include "vtkInteractionWidgetsModule.h" // For export macro
38 
39 class vtkRenderer;
41 class vtkCamera;
43 class vtkPoints;
44 class vtkPolyData;
47 class vtkProperty2D;
48 class vtkActor2D;
49 
50 class VTKINTERACTIONWIDGETS_EXPORT vtkCameraRepresentation : public vtkBorderRepresentation
51 {
52 public:
57 
59 
63  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
71  void SetCamera(vtkCamera *camera);
72  vtkGetObjectMacro(Camera,vtkCamera);
74 
76 
84  vtkGetObjectMacro(Interpolator,vtkCameraInterpolator);
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  {size[0]=6.0; size[1]=2.0;}
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
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkCameraRepresentation::~vtkCameraRepresentation
~vtkCameraRepresentation() override
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:52
vtkCameraRepresentation::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:59
vtkCameraRepresentation::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkCameraRepresentation::New
static vtkCameraRepresentation * New()
Instantiate this class.
vtkCameraRepresentation::GetSize
void GetSize(double size[2]) override
Definition: vtkCameraRepresentation.h:120
vtkCameraRepresentation::RenderOverlay
int RenderOverlay(vtkViewport *) override
vtkCameraRepresentation::Camera
vtkCamera * Camera
Definition: vtkCameraRepresentation.h:141
vtkCameraRepresentation::BuildRepresentation
void BuildRepresentation() override
Satisfy the superclasses' API.
vtkCameraInterpolator
interpolate a series of cameras to update a new camera
Definition: vtkCameraInterpolator.h:65
vtkCameraRepresentation::AddCameraToPath
void AddCameraToPath()
These methods are used to create interpolated camera paths.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkCameraRepresentation
represent the vtkCameraWidget
Definition: vtkCameraRepresentation.h:51
vtkCameraRepresentation::Interpolator
vtkCameraInterpolator * Interpolator
Definition: vtkCameraRepresentation.h:142
vtkCameraRepresentation::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
vtkCameraRepresentation::InitializePath
void InitializePath()
vtkBorderRepresentation.h
vtkCameraRepresentation::AnimatePath
void AnimatePath(vtkRenderWindowInteractor *rwi)
vtkCameraRepresentation::GetActors2D
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkCameraRepresentation::SetInterpolator
void SetInterpolator(vtkCameraInterpolator *camInt)
Get the vtkCameraInterpolator used to interpolate and save the sequence of camera views.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCameraRepresentation::Actor
vtkActor2D * Actor
Definition: vtkCameraRepresentation.h:152
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkTransformPolyDataFilter
transform points and associated normals and vectors for polygonal dataset
Definition: vtkTransformPolyDataFilter.h:52
vtkCameraRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkCameraRepresentation::NumberOfFrames
int NumberOfFrames
Definition: vtkCameraRepresentation.h:143
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkCameraRepresentation::CurrentTime
double CurrentTime
Definition: vtkCameraRepresentation.h:144
vtkCameraRepresentation::vtkCameraRepresentation
vtkCameraRepresentation()
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:46
vtkCameraRepresentation::Points
vtkPoints * Points
Definition: vtkCameraRepresentation.h:147
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkCameraRepresentation::PolyData
vtkPolyData * PolyData
Definition: vtkCameraRepresentation.h:148
vtkCameraRepresentation::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkCameraRepresentation::Property
vtkProperty2D * Property
Definition: vtkCameraRepresentation.h:151
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:42
vtkCameraRepresentation::SetCamera
void SetCamera(vtkCamera *camera)
Specify the camera to interpolate.
vtkCameraRepresentation::Mapper
vtkPolyDataMapper2D * Mapper
Definition: vtkCameraRepresentation.h:150
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkCameraRepresentation::TransformFilter
vtkTransformPolyDataFilter * TransformFilter
Definition: vtkCameraRepresentation.h:149