VTK  9.0.3
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 "vtkProp3D.h"
30 #include "vtkRenderingCoreModule.h" // For export macro
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 
78 
82  double* GetBounds() override;
83 
87  vtkMTimeType GetMTime() override;
88 
93 
98 
99 protected:
101  ~vtkCameraActor() override;
102 
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:46
a frustum to represent a camera.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
static vtkCameraActor * New()
vtkPolyDataMapper * FrustumMapper
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkFrustumSource * FrustumSource
double WidthByHeightRatio
vtkProperty * GetProperty()
Get property of the internal actor.
void UpdateViewProps()
vtkMTimeType GetMTime() override
Get the actors mtime plus consider its properties and texture if set.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry? No.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCamera * Camera
vtkActor * FrustumActor
~vtkCameraActor() override
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
void SetCamera(vtkCamera *camera)
The camera to represent.
void SetProperty(vtkProperty *p)
Set property of the internal actor.
a virtual camera for 3D rendering
Definition: vtkCamera.h:46
create a polygonal representation of a frustum
a simple class to control print indentation
Definition: vtkIndent.h:34
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:44
represent surface properties of a geometric object
Definition: vtkProperty.h:62
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293