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) override;
44 
46 
49  void SetCamera(vtkCamera *camera);
50  vtkGetObjectMacro(Camera, vtkCamera);
52 
54 
58  vtkSetMacro(WidthByHeightRatio, double);
59  vtkGetMacro(WidthByHeightRatio, double);
61 
65  int RenderOpaqueGeometry(vtkViewport *viewport) override;
66 
71 
77  void ReleaseGraphicsResources(vtkWindow *) override;
78 
82  double *GetBounds() override;
83 
87  vtkMTimeType GetMTime() override;
88 
92  vtkProperty *GetProperty();
93 
97  void SetProperty(vtkProperty *p);
98 
99 protected:
100  vtkCameraActor();
101  ~vtkCameraActor() override;
102 
103  void UpdateViewProps();
104 
107 
111 
112 private:
113  vtkCameraActor(const vtkCameraActor&) = delete;
114  void operator=(const vtkCameraActor&) = delete;
115 };
116 
117 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
abstract specification for Viewports
Definition: vtkViewport.h:47
represent surface properties of a geometric object
Definition: vtkProperty.h:66
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:224
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:296
vtkActor * FrustumActor
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
a frustum to represent a camera.
int vtkTypeBool
Definition: vtkABI.h:69
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:305
vtkCamera * Camera
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:50
double WidthByHeightRatio
vtkPolyDataMapper * FrustumMapper
create a polygonal representation of a frustum
map vtkPolyData to graphics primitives
vtkFrustumSource * FrustumSource
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMTimeType GetMTime() override
Get the vtkProp3D's mtime.