VTK  9.3.20240423
vtkCameraActor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
33#ifndef vtkCameraActor_h
34#define vtkCameraActor_h
35
36#include "vtkProp3D.h"
37#include "vtkRenderingCoreModule.h" // For export macro
38
39VTK_ABI_NAMESPACE_BEGIN
40class vtkCamera;
43class vtkActor;
44class vtkProperty;
45
46class VTKRENDERINGCORE_EXPORT vtkCameraActor : public vtkProp3D
47{
48public:
50 vtkTypeMacro(vtkCameraActor, vtkProp3D);
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
57 void SetCamera(vtkCamera* camera);
58 vtkGetObjectMacro(Camera, vtkCamera);
60
62
66 vtkSetMacro(WidthByHeightRatio, double);
67 vtkGetMacro(WidthByHeightRatio, double);
69
73 int RenderOpaqueGeometry(vtkViewport* viewport) override;
74
79
86
90 double* GetBounds() override;
91
96
101
106
107protected:
109 ~vtkCameraActor() override;
110
112
115
119
120private:
121 vtkCameraActor(const vtkCameraActor&) = delete;
122 void operator=(const vtkCameraActor&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
a frustum to represent a camera.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkPolyDataMapper * FrustumMapper
vtkProperty * GetProperty()
Get property of the internal actor.
static vtkCameraActor * New()
vtkFrustumSource * FrustumSource
double WidthByHeightRatio
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.
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
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:151
create a polygonal representation of a frustum
a simple class to control print indentation
Definition vtkIndent.h:108
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:89
represent surface properties of a geometric object
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270