VTK  9.0.1
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 
40 class vtkCamera;
41 class vtkMapper;
42 
43 class VTKRENDERINGCORE_EXPORT vtkProp3DFollower : public vtkProp3D
44 {
45 public:
49  static vtkProp3DFollower* New();
50 
52 
55  vtkTypeMacro(vtkProp3DFollower, vtkProp3D);
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;
83  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
84  int RenderVolumetricGeometry(vtkViewport* viewport) override;
86 
91 
95  void ReleaseGraphicsResources(vtkWindow*) override;
96 
101  void ComputeMatrix() override;
102 
106  void ShallowCopy(vtkProp* prop) override;
107 
111  double* GetBounds() override;
112 
114 
118  void InitPathTraversal() override;
119  vtkAssemblyPath* GetNextPath() override;
121 
122 protected:
124  ~vtkProp3DFollower() override;
125 
128 
129  // Internal matrices to avoid New/Delete for performance reasons
131 
132 private:
133  vtkProp3DFollower(const vtkProp3DFollower&) = delete;
134  void operator=(const vtkProp3DFollower&) = delete;
135 };
136 
137 #endif
vtkProp::GetNextPath
virtual vtkAssemblyPath * GetNextPath()
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkProp3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkProp::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:221
vtkProp3DFollower
a vtkProp3D that always faces the camera
Definition: vtkProp3DFollower.h:43
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:41
vtkProp3D::GetBounds
double * GetBounds() override=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkProp::HasTranslucentPolygonalGeometry
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:285
vtkProp::RenderVolumetricGeometry
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:223
vtkProp3DFollower::Camera
vtkCamera * Camera
Definition: vtkProp3DFollower.h:126
vtkProp3D::InitPathTraversal
void InitPathTraversal() override
Overload vtkProp's method for setting up assembly paths.
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:80
vtkProp3DFollower::Device
vtkProp3D * Device
Definition: vtkProp3DFollower.h:127
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:45
vtkProp3D::ComputeMatrix
virtual void ComputeMatrix()
Generate the matrix based on ivars.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkProp::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:222
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:53
vtkProp3D::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:306
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkProp3DFollower::InternalMatrix
vtkMatrix4x4 * InternalMatrix
Definition: vtkProp3DFollower.h:130
vtkProp3D.h