VTK  9.2.6
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 =========================================================================*/
37 #ifndef vtkProp3DFollower_h
38 #define vtkProp3DFollower_h
39 
40 #include "vtkProp3D.h"
41 #include "vtkRenderingCoreModule.h" // For export macro
42 
43 class vtkCamera;
44 class vtkMapper;
45 
46 class VTKRENDERINGCORE_EXPORT vtkProp3DFollower : public vtkProp3D
47 {
48 public:
52  static vtkProp3DFollower* New();
53 
55 
58  vtkTypeMacro(vtkProp3DFollower, vtkProp3D);
59  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  virtual void SetProp3D(vtkProp3D* prop);
67  virtual vtkProp3D* GetProp3D();
69 
71 
75  virtual void SetCamera(vtkCamera*);
76  vtkGetObjectMacro(Camera, vtkCamera);
78 
80 
85  int RenderOpaqueGeometry(vtkViewport* viewport) override;
86  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
87  int RenderVolumetricGeometry(vtkViewport* viewport) override;
89 
94 
98  void ReleaseGraphicsResources(vtkWindow*) override;
99 
104  void ComputeMatrix() override;
105 
109  void ShallowCopy(vtkProp* prop) override;
110 
114  double* GetBounds() override;
115 
117 
121  void InitPathTraversal() override;
122  vtkAssemblyPath* GetNextPath() override;
124 
125 protected:
127  ~vtkProp3DFollower() override;
128 
131 
132  // Internal matrices to avoid New/Delete for performance reasons
134 
135 private:
136  vtkProp3DFollower(const vtkProp3DFollower&) = delete;
137  void operator=(const vtkProp3DFollower&) = delete;
138 };
139 
140 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:56
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
abstract specification for Viewports
Definition: vtkViewport.h:55
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:224
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:288
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:49
int vtkTypeBool
Definition: vtkABI.h:69
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:309
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:226
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:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
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:87
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:225
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMatrix4x4 * InternalMatrix