VTK  9.4.20250509
vtkProp3DFollower.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
25#ifndef vtkProp3DFollower_h
26#define vtkProp3DFollower_h
27
28#include "vtkProp3D.h"
29#include "vtkRenderingCoreModule.h" // For export macro
30#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkCamera;
34class vtkMapper;
35
36class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkProp3DFollower : public vtkProp3D
37{
38public:
43
45
49 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
56 virtual void SetProp3D(vtkProp3D* prop);
57 virtual vtkProp3D* GetProp3D();
59
61
65 virtual void SetCamera(vtkCamera*);
66 vtkGetObjectMacro(Camera, vtkCamera);
68
70
75 int RenderOpaqueGeometry(vtkViewport* viewport) override;
77 int RenderVolumetricGeometry(vtkViewport* viewport) override;
79
84
89
94 void ComputeMatrix() override;
95
99 void ShallowCopy(vtkProp* prop) override;
100
104 double* GetBounds() override;
105
107
111 void InitPathTraversal() override;
114
115protected:
118
121
122 // Internal matrices to avoid New/Delete for performance reasons
124
125private:
126 vtkProp3DFollower(const vtkProp3DFollower&) = delete;
127 void operator=(const vtkProp3DFollower&) = delete;
128};
129
130VTK_ABI_NAMESPACE_END
131#endif
a list of nodes that form an assembly path
a virtual camera for 3D rendering
Definition vtkCamera.h:151
a simple class to control print indentation
Definition vtkIndent.h:108
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:98
represent and manipulate 4x4 transformation matrices
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:89
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
abstract specification for Viewports
Definition vtkViewport.h:66
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO