VTK  9.2.6
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 =========================================================================*/
45 #ifndef vtkCameraActor_h
46 #define vtkCameraActor_h
47 
48 #include "vtkProp3D.h"
49 #include "vtkRenderingCoreModule.h" // For export macro
50 
51 class vtkCamera;
52 class vtkFrustumSource;
53 class vtkPolyDataMapper;
54 class vtkActor;
55 class vtkProperty;
56 
57 class VTKRENDERINGCORE_EXPORT vtkCameraActor : public vtkProp3D
58 {
59 public:
60  static vtkCameraActor* New();
61  vtkTypeMacro(vtkCameraActor, vtkProp3D);
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
68  void SetCamera(vtkCamera* camera);
69  vtkGetObjectMacro(Camera, vtkCamera);
71 
73 
77  vtkSetMacro(WidthByHeightRatio, double);
78  vtkGetMacro(WidthByHeightRatio, double);
80 
84  int RenderOpaqueGeometry(vtkViewport* viewport) override;
85 
90 
97 
101  double* GetBounds() override;
102 
106  vtkMTimeType GetMTime() override;
107 
112 
117 
118 protected:
120  ~vtkCameraActor() override;
121 
123 
126 
130 
131 private:
132  vtkCameraActor(const vtkCameraActor&) = delete;
133  void operator=(const vtkCameraActor&) = delete;
134 };
135 
136 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:161
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:161
create a polygonal representation of a frustum
a simple class to control print indentation
Definition: vtkIndent.h:119
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:99
represent surface properties of a geometric object
Definition: vtkProperty.h:177
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287