VTK  9.7.20260917
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
32
33#ifndef vtkCameraActor_h
34#define vtkCameraActor_h
35
36#include "vtkProp3D.h"
37#include "vtkRenderingCoreModule.h" // For export macro
38#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
39
40VTK_ABI_NAMESPACE_BEGIN
41class vtkCamera;
44class vtkActor;
45class vtkProperty;
46
47class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkCameraActor : public vtkProp3D
48{
49public:
51 vtkTypeMacro(vtkCameraActor, vtkProp3D);
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
58 void SetCamera(vtkCamera* camera);
59 vtkGetObjectMacro(Camera, vtkCamera);
61
63
67 vtkSetMacro(WidthByHeightRatio, double);
68 vtkGetMacro(WidthByHeightRatio, double);
70
74 int RenderOpaqueGeometry(vtkViewport* viewport) override;
75
80
87
91 double* GetBounds() override;
92
97
102
107
108protected:
110 ~vtkCameraActor() override;
111
113
116
120
121private:
122 vtkCameraActor(const vtkCameraActor&) = delete;
123 void operator=(const vtkCameraActor&) = delete;
124};
125
126VTK_ABI_NAMESPACE_END
127#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
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?
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
represent surface properties of a geometric object
abstract specification for Viewports
Definition vtkViewport.h:66
window superclass for vtkRenderWindow
Definition vtkWindow.h:62
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:318
#define VTK_MARSHALAUTO