VTK  9.1.0
vtkProp3DFollower.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkProp3DFollower.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=========================================================================*/
34#ifndef vtkProp3DFollower_h
35#define vtkProp3DFollower_h
36
37#include "vtkProp3D.h"
38#include "vtkRenderingCoreModule.h" // For export macro
39
40class vtkCamera;
41class vtkMapper;
42
43class VTKRENDERINGCORE_EXPORT vtkProp3DFollower : public vtkProp3D
44{
45public:
50
52
56 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
63 virtual void SetProp3D(vtkProp3D* prop);
64 virtual vtkProp3D* GetProp3D();
66
68
72 virtual void SetCamera(vtkCamera*);
73 vtkGetObjectMacro(Camera, vtkCamera);
75
77
82 int RenderOpaqueGeometry(vtkViewport* viewport) override;
84 int RenderVolumetricGeometry(vtkViewport* viewport) override;
86
91
96
101 void ComputeMatrix() override;
102
106 void ShallowCopy(vtkProp* prop) override;
107
111 double* GetBounds() override;
112
114
118 void InitPathTraversal() override;
121
122protected:
125
128
129 // Internal matrices to avoid New/Delete for performance reasons
131
132private:
133 vtkProp3DFollower(const vtkProp3DFollower&) = delete;
134 void operator=(const vtkProp3DFollower&) = delete;
135};
136
137#endif
a list of nodes that form an assembly path
a virtual camera for 3D rendering
Definition: vtkCamera.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:171
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
a vtkProp3D that always faces the camera
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
int RenderVolumetricGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
vtkAssemblyPath * GetNextPath() override
Overload vtkProp's method for setting up assembly paths.
static vtkProp3DFollower * New()
Creates a follower with no camera set.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources associated with this vtkProp3DFollower.
void InitPathTraversal() override
Overload vtkProp's method for setting up assembly paths.
int RenderOpaqueGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
void ComputeMatrix() override
Generate the matrix based on ivars.
double * GetBounds() override
Return the bounds of this vtkProp3D.
~vtkProp3DFollower() override
virtual void SetProp3D(vtkProp3D *prop)
Set/Get the vtkProp3D to control (i.e., face the camera).
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods for type and printing.
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkMatrix4x4 * InternalMatrix
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
virtual vtkProp3D * GetProp3D()
Set/Get the vtkProp3D to control (i.e., face the camera).
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:93
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:67
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
int vtkTypeBool
Definition: vtkABI.h:69