VTK  9.3.1
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 
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkCamera;
33 class vtkMapper;
34 
35 class VTKRENDERINGCORE_EXPORT vtkProp3DFollower : public vtkProp3D
36 {
37 public:
41  static vtkProp3DFollower* New();
42 
44 
47  vtkTypeMacro(vtkProp3DFollower, vtkProp3D);
48  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  virtual void SetProp3D(vtkProp3D* prop);
56  virtual vtkProp3D* GetProp3D();
58 
60 
64  virtual void SetCamera(vtkCamera*);
65  vtkGetObjectMacro(Camera, vtkCamera);
67 
69 
74  int RenderOpaqueGeometry(vtkViewport* viewport) override;
75  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
76  int RenderVolumetricGeometry(vtkViewport* viewport) override;
78 
83 
87  void ReleaseGraphicsResources(vtkWindow*) override;
88 
93  void ComputeMatrix() override;
94 
98  void ShallowCopy(vtkProp* prop) override;
99 
103  double* GetBounds() override;
104 
106 
110  void InitPathTraversal() override;
111  vtkAssemblyPath* GetNextPath() override;
113 
114 protected:
116  ~vtkProp3DFollower() override;
117 
120 
121  // Internal matrices to avoid New/Delete for performance reasons
123 
124 private:
125  vtkProp3DFollower(const vtkProp3DFollower&) = delete;
126  void operator=(const vtkProp3DFollower&) = delete;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:45
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:30
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
abstract specification for Viewports
Definition: vtkViewport.h:44
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:213
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:277
virtual vtkAssemblyPath * GetNextPath()
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker).
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:38
int vtkTypeBool
Definition: vtkABI.h:64
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:298
window superclass for vtkRenderWindow
Definition: vtkWindow.h:27
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:215
void InitPathTraversal() override
Overload vtkProp's method for setting up assembly paths.
a list of nodes that form an assembly path
virtual void ComputeMatrix()
Generate the matrix based on ivars.
a simple class to control print indentation
Definition: vtkIndent.h:28
a virtual camera for 3D rendering
Definition: vtkCamera.h:40
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
a vtkProp3D that always faces the camera
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:76
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:214
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMatrix4x4 * InternalMatrix