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
32class vtkCamera;
35class vtkActor;
36class vtkProperty;
37
38class VTKRENDERINGCORE_EXPORT vtkCameraActor : public vtkProp3D
39{
40public:
42 vtkTypeMacro(vtkCameraActor, vtkProp3D);
43 void PrintSelf(ostream& os, vtkIndent indent);
44
46
49 void SetCamera(vtkCamera *camera);
50 vtkGetObjectMacro(Camera, vtkCamera);
52
54
58 vtkSetMacro(WidthByHeightRatio, double);
59 vtkGetMacro(WidthByHeightRatio, double);
61
65 virtual int RenderOpaqueGeometry(vtkViewport *viewport);
66
71
78
82 double *GetBounds();
83
88
93
98
99protected:
102
104
107
111
112private:
113 vtkCameraActor(const vtkCameraActor&) VTK_DELETE_FUNCTION;
114 void operator=(const vtkCameraActor&) VTK_DELETE_FUNCTION;
115};
116
117#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
a frustum to represent a camera.
vtkPolyDataMapper * FrustumMapper
vtkProperty * GetProperty()
Get property of the internal actor.
static vtkCameraActor * New()
vtkFrustumSource * FrustumSource
double WidthByHeightRatio
void UpdateViewProps()
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
Support the standard render methods.
double * GetBounds()
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkCamera * Camera
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry? No.
vtkActor * FrustumActor
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetCamera(vtkCamera *camera)
The camera to represent.
void SetProperty(vtkProperty *p)
Set property of the internal actor.
vtkMTimeType GetMTime()
Get the actors mtime plus consider its properties and texture if set.
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
create a polygonal representation of a frustum
a simple class to control print indentation
Definition: vtkIndent.h:40
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
represent surface properties of a geometric object
Definition: vtkProperty.h:65
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248