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 "vtkRenderingCoreModule.h" // For export macro
29 #include "vtkProp3D.h"
30 
31 class vtkCamera;
32 class vtkFrustumSource;
33 class vtkPolyDataMapper;
34 class vtkActor;
35 class vtkProperty;
36 
38 {
39 public:
40  static vtkCameraActor *New();
41  vtkTypeMacro(vtkCameraActor, vtkProp3D);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  void SetCamera(vtkCamera *camera);
47  vtkGetObjectMacro(Camera, vtkCamera);
49 
51 
53  vtkSetMacro(WidthByHeightRatio, double);
54  vtkGetMacro(WidthByHeightRatio, double);
56 
58  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
59 
61  virtual int HasTranslucentPolygonalGeometry();
62 
67 
69  double *GetBounds();
70 
72  unsigned long int GetMTime();
73 
75  vtkProperty *GetProperty();
76 
78  void SetProperty(vtkProperty *p);
79 
80 protected:
82  ~vtkCameraActor();
83 
84  void UpdateViewProps();
85 
88 
92 
93 private:
94  vtkCameraActor(const vtkCameraActor&); // Not implemented.
95  void operator=(const vtkCameraActor&); // Not implemented.
96 };
97 
98 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
abstract specification for Viewports
Definition: vtkViewport.h:46
represent surface properties of a geometric object
Definition: vtkProperty.h:63
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:198
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:262
vtkActor * FrustumActor
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:42
a frustum to represent a camera.
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:270
vtkCamera * Camera
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
a virtual camera for 3D rendering
Definition: vtkCamera.h:49
double WidthByHeightRatio
vtkPolyDataMapper * FrustumMapper
create a polygonal representation of a frustum
map vtkPolyData to graphics primitives
vtkFrustumSource * FrustumSource
#define VTKRENDERINGCORE_EXPORT
virtual double * GetBounds()=0
static vtkObject * New()
unsigned long int GetMTime()