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 =========================================================================*/
35 #ifndef vtkCameraRepresentation_h
36 #define vtkCameraRepresentation_h
37 
38 #include "vtkInteractionWidgetsModule.h" // For export macro
40 
41 class vtkRenderer;
43 class vtkCamera;
45 class vtkPoints;
46 class vtkPolyData;
49 class vtkProperty2D;
50 class vtkActor2D;
51 
53 {
54 public:
57 
59 
61  void PrintSelf(ostream& os, vtkIndent indent);
63 
65 
67  void SetCamera(vtkCamera *camera);
70 
72 
79 
81 
82  vtkSetClampMacro(NumberOfFrames,int,1,VTK_INT_MAX);
83  vtkGetMacro(NumberOfFrames,int);
85 
87 
91 
93 
102 
104 
105  virtual void BuildRepresentation();
106  virtual void GetSize(double size[2])
107  {size[0]=6.0; size[1]=2.0;}
109 
111 
115  virtual int RenderOverlay(vtkViewport*);
120 
121 protected:
124 
125  // the camera and the interpolator
129  double CurrentTime;
130 
131  // representation of the camera
138 
139 private:
140  vtkCameraRepresentation(const vtkCameraRepresentation&); //Not implemented
141  void operator=(const vtkCameraRepresentation&); //Not implemented
142 };
143 
144 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:51
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:58
vtkCameraRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCameraRepresentation::New
static vtkCameraRepresentation * New()
vtkCameraRepresentation::Camera
vtkCamera * Camera
Definition: vtkCameraRepresentation.h:126
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCameraInterpolator
interpolate a series of cameras to update a new camera
Definition: vtkCameraInterpolator.h:67
vtkInteractionWidgetsModule.h
vtkCameraRepresentation::AddCameraToPath
void AddCameraToPath()
vtkCameraRepresentation::GetSize
virtual void GetSize(double size[2])
Definition: vtkCameraRepresentation.h:106
vtkCameraRepresentation::~vtkCameraRepresentation
~vtkCameraRepresentation()
vtkCameraRepresentation::GetActors2D
virtual void GetActors2D(vtkPropCollection *)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkCameraRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkCameraRepresentation
represent the vtkCameraWidget
Definition: vtkCameraRepresentation.h:53
vtkCameraRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkCameraRepresentation::Interpolator
vtkCameraInterpolator * Interpolator
Definition: vtkCameraRepresentation.h:127
vtkCameraRepresentation::InitializePath
void InitializePath()
vtkBorderRepresentation.h
vtkCameraRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkCameraRepresentation::AnimatePath
void AnimatePath(vtkRenderWindowInteractor *rwi)
vtkCameraRepresentation::SetInterpolator
void SetInterpolator(vtkCameraInterpolator *camInt)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCameraRepresentation::Actor
vtkActor2D * Actor
Definition: vtkCameraRepresentation.h:137
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:49
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkCameraRepresentation::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
vtkTransformPolyDataFilter
transform points and associated normals and vectors for polygonal dataset
Definition: vtkTransformPolyDataFilter.h:51
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:80
vtkCameraRepresentation::NumberOfFrames
int NumberOfFrames
Definition: vtkCameraRepresentation.h:128
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkCameraRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkCameraRepresentation::CurrentTime
double CurrentTime
Definition: vtkCameraRepresentation.h:129
vtkCameraRepresentation::vtkCameraRepresentation
vtkCameraRepresentation()
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:45
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkCameraRepresentation::Points
vtkPoints * Points
Definition: vtkCameraRepresentation.h:132
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkCameraRepresentation::PolyData
vtkPolyData * PolyData
Definition: vtkCameraRepresentation.h:133
vtkCameraRepresentation::Property
vtkProperty2D * Property
Definition: vtkCameraRepresentation.h:136
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkCameraRepresentation::SetCamera
void SetCamera(vtkCamera *camera)
vtkCameraRepresentation::Mapper
vtkPolyDataMapper2D * Mapper
Definition: vtkCameraRepresentation.h:135
vtkCameraRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843
vtkCameraRepresentation::TransformFilter
vtkTransformPolyDataFilter * TransformFilter
Definition: vtkCameraRepresentation.h:134