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:
56  static vtkCameraRepresentation *New();
57 
59 
61  void PrintSelf(ostream& os, vtkIndent indent);
63 
65 
67  void SetCamera(vtkCamera *camera);
68  vtkGetObjectMacro(Camera,vtkCamera);
70 
72 
76  void SetInterpolator(vtkCameraInterpolator *camInt);
77  vtkGetObjectMacro(Interpolator,vtkCameraInterpolator);
79 
81 
82  vtkSetClampMacro(NumberOfFrames,int,1,VTK_INT_MAX);
83  vtkGetMacro(NumberOfFrames,int);
85 
87 
89  vtkGetObjectMacro(Property,vtkProperty2D);
91 
93 
98  void AddCameraToPath();
99  void AnimatePath(vtkRenderWindowInteractor *rwi);
100  void InitializePath();
102 
104 
105  virtual void BuildRepresentation();
106  virtual void GetSize(double size[2])
107  {size[0]=6.0; size[1]=2.0;}
109 
111 
113  virtual void GetActors2D(vtkPropCollection*);
114  virtual void ReleaseGraphicsResources(vtkWindow*);
115  virtual int RenderOverlay(vtkViewport*);
116  virtual int RenderOpaqueGeometry(vtkViewport*);
118  virtual int HasTranslucentPolygonalGeometry();
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
interpolate a series of cameras to update a new camera
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual void GetSize(double size[2])
#define VTK_INT_MAX
Definition: vtkType.h:132
a actor that draws 2D data
Definition: vtkActor2D.h:44
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void GetActors2D(vtkPropCollection *)
abstract specification for renderers
Definition: vtkRenderer.h:63
transform points and associated normals and vectors for polygonal dataset
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
static vtkBorderRepresentation * New()
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
platform-independent render window interaction including picking and frame rate control.
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkCameraInterpolator * Interpolator
a virtual camera for 3D rendering
Definition: vtkCamera.h:48
virtual int RenderOpaqueGeometry(vtkViewport *)
virtual void BuildRepresentation()
virtual int RenderOverlay(vtkViewport *)
represent a vtkBorderWidget
represent the vtkCameraWidget
represent surface properties of a 2D image
Definition: vtkProperty2D.h:39
virtual int HasTranslucentPolygonalGeometry()
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkTransformPolyDataFilter * TransformFilter
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:38
vtkPolyDataMapper2D * Mapper