VTK
vtkCameraActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCameraActor.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 =========================================================================*/
25 #ifndef __vtkCameraActor_h
26 #define __vtkCameraActor_h
27 
28 #include "vtkProp3D.h"
29 
30 class vtkCamera;
31 class vtkFrustumSource;
32 class vtkPolyDataMapper;
33 class vtkActor;
34 class vtkProperty;
35 
37 {
38 public:
39  static vtkCameraActor *New();
40  vtkTypeMacro(vtkCameraActor,vtkProp3D);
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  void SetCamera(vtkCamera *camera);
46  vtkGetObjectMacro(Camera,vtkCamera);
48 
50 
52  vtkSetMacro(WidthByHeightRatio,double);
53  vtkGetMacro(WidthByHeightRatio,double);
55 
57  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
58 
60  virtual int HasTranslucentPolygonalGeometry();
61 
66 
68  double *GetBounds();
69 
71  unsigned long int GetMTime();
72 
74  vtkProperty *GetProperty();
75 
77  void SetProperty(vtkProperty *p);
78 
79 protected:
81  ~vtkCameraActor();
82 
83  void UpdateViewProps();
84 
87 
91 
92 private:
93  vtkCameraActor(const vtkCameraActor&); // Not implemented.
94  void operator=(const vtkCameraActor&); // Not implemented.
95 };
96 
97 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
abstract specification for Viewports
Definition: vtkViewport.h:45
represent surface properties of a geometric object
Definition: vtkProperty.h:61
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:171
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:230
vtkActor * FrustumActor
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:41
a frustum to represent a camera.
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:236
vtkCamera * Camera
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
a virtual camera for 3D rendering
Definition: vtkCamera.h:47
double WidthByHeightRatio
vtkPolyDataMapper * FrustumMapper
#define VTK_RENDERING_EXPORT
create a polygonal representation of a frustum
map vtkPolyData to graphics primitives
vtkFrustumSource * FrustumSource
virtual double * GetBounds()=0
static vtkObject * New()
unsigned long int GetMTime()