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 =========================================================================*/
26 #ifndef vtkCameraActor_h
27 #define vtkCameraActor_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkProp3D.h"
31 
32 class vtkCamera;
33 class vtkFrustumSource;
34 class vtkPolyDataMapper;
35 class vtkActor;
36 class vtkProperty;
37 
38 class VTKRENDERINGCORE_EXPORT vtkCameraActor : public vtkProp3D
39 {
40 public:
41  static vtkCameraActor *New();
42  vtkTypeMacro(vtkCameraActor, vtkProp3D);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  void SetCamera(vtkCamera *camera);
50  vtkGetObjectMacro(Camera, vtkCamera);
52 
54 
58  vtkSetMacro(WidthByHeightRatio, double);
59  vtkGetMacro(WidthByHeightRatio, double);
61 
65  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
66 
70  virtual int HasTranslucentPolygonalGeometry();
71 
78 
82  double *GetBounds();
83 
88 
92  vtkProperty *GetProperty();
93 
97  void SetProperty(vtkProperty *p);
98 
99 protected:
100  vtkCameraActor();
101  ~vtkCameraActor();
102 
103  void UpdateViewProps();
104 
107 
111 
112 private:
113  vtkCameraActor(const vtkCameraActor&) VTK_DELETE_FUNCTION;
114  void operator=(const vtkCameraActor&) VTK_DELETE_FUNCTION;
115 };
116 
117 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
abstract specification for Viewports
Definition: vtkViewport.h:47
represent surface properties of a geometric object
Definition: vtkProperty.h:64
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:222
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:294
vtkActor * FrustumActor
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
a frustum to represent a camera.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:303
vtkCamera * Camera
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a virtual camera for 3D rendering
Definition: vtkCamera.h:50
double WidthByHeightRatio
vtkPolyDataMapper * FrustumMapper
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a polygonal representation of a frustum
map vtkPolyData to graphics primitives
vtkFrustumSource * FrustumSource
vtkMTimeType GetMTime()
Get the vtkProp3D's mtime.
virtual double * GetBounds()=0
Return a reference to the Prop3D's composite transform.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...