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 =========================================================================*/
36 #ifndef vtkCameraRepresentation_h
37 #define vtkCameraRepresentation_h
38 
39 #include "vtkInteractionWidgetsModule.h" // For export macro
41 
42 class vtkRenderer;
44 class vtkCamera;
46 class vtkPoints;
47 class vtkPolyData;
50 class vtkProperty2D;
51 class vtkActor2D;
52 
53 class VTKINTERACTIONWIDGETS_EXPORT vtkCameraRepresentation : public vtkBorderRepresentation
54 {
55 public:
60 
62 
66  void PrintSelf(ostream& os, vtkIndent indent);
68 
70 
74  void SetCamera(vtkCamera *camera);
75  vtkGetObjectMacro(Camera,vtkCamera);
77 
79 
87  vtkGetObjectMacro(Interpolator,vtkCameraInterpolator);
89 
91 
94  vtkSetClampMacro(NumberOfFrames,int,1,VTK_INT_MAX);
95  vtkGetMacro(NumberOfFrames,int);
97 
99 
103  vtkGetObjectMacro(Property,vtkProperty2D);
105 
107 
118 
122  virtual void BuildRepresentation();
123  virtual void GetSize(double size[2])
124  {size[0]=6.0; size[1]=2.0;}
125 
127 
133  virtual int RenderOverlay(vtkViewport*);
138 
139 protected:
142 
143  // the camera and the interpolator
147  double CurrentTime;
148 
149  // representation of the camera
156 
157 private:
158  vtkCameraRepresentation(const vtkCameraRepresentation&) VTK_DELETE_FUNCTION;
159  void operator=(const vtkCameraRepresentation&) VTK_DELETE_FUNCTION;
160 };
161 
162 #endif
a actor that draws 2D data
Definition: vtkActor2D.h:46
represent a vtkBorderWidget
interpolate a series of cameras to update a new camera
represent the vtkCameraWidget
virtual void GetActors2D(vtkPropCollection *)
These methods are necessary to make this representation behave as a vtkProp.
vtkCameraInterpolator * Interpolator
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RenderOverlay(vtkViewport *)
void SetInterpolator(vtkCameraInterpolator *camInt)
Get the vtkCameraInterpolator used to interpolate and save the sequence of camera views.
virtual void GetSize(double size[2])
vtkPolyDataMapper2D * Mapper
void SetCamera(vtkCamera *camera)
Specify the camera to interpolate.
virtual void BuildRepresentation()
Satisfy the superclasses' API.
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkTransformPolyDataFilter * TransformFilter
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
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:51
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:86
a list of Props
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
platform-independent render window interaction including picking and frame rate control.
abstract specification for renderers
Definition: vtkRenderer.h:64
transform points and associated normals and vectors for polygonal dataset
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ size
Definition: vtkX3D.h:253
#define VTK_INT_MAX
Definition: vtkType.h:153