VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkCamera;
34 class vtkMapper;
35 
36 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkProp3DFollower : public vtkProp3D
37 {
38 public:
42  static vtkProp3DFollower* New();
43 
45 
48  vtkTypeMacro(vtkProp3DFollower, vtkProp3D);
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;
76  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
77  int RenderVolumetricGeometry(vtkViewport* viewport) override;
79 
84 
88  void ReleaseGraphicsResources(vtkWindow*) override;
89 
94  void ComputeMatrix() override;
95 
99  void ShallowCopy(vtkProp* prop) override;
100 
104  double* GetBounds() override;
105 
107 
111  void InitPathTraversal() override;
112  vtkAssemblyPath* GetNextPath() override;
114 
115 protected:
117  ~vtkProp3DFollower() override;
118 
121 
122  // Internal matrices to avoid New/Delete for performance reasons
124 
125 private:
126  vtkProp3DFollower(const vtkProp3DFollower&) = delete;
127  void operator=(const vtkProp3DFollower&) = delete;
128 };
129 
130 VTK_ABI_NAMESPACE_END
131 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:31
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:236
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:300
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:39
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:321
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:238
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:41
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:77
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:237
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMatrix4x4 * InternalMatrix