VTK
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 =========================================================================*/
36 #ifndef __vtkProp3DFollower_h
37 #define __vtkProp3DFollower_h
38 
39 #include "vtkRenderingCoreModule.h" // For export macro
40 #include "vtkProp3D.h"
41 
42 class vtkCamera;
43 class vtkMapper;
44 
45 
46 class VTKRENDERINGCORE_EXPORT vtkProp3DFollower : public vtkProp3D
47 {
48  public:
50  static vtkProp3DFollower *New();
51 
53 
55  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  virtual void SetProp3D(vtkProp3D *prop);
61  virtual vtkProp3D *GetProp3D();
63 
65 
67  virtual void SetCamera(vtkCamera*);
68  vtkGetObjectMacro(Camera,vtkCamera);
70 
72 
75  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
76  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
77  virtual int RenderVolumetricGeometry(vtkViewport *viewport);
79 
81  virtual int HasTranslucentPolygonalGeometry();
82 
85  virtual void ReleaseGraphicsResources(vtkWindow*);
86 
90  virtual void ComputeMatrix();
91 
93  void ShallowCopy(vtkProp *prop);
94 
96  virtual double *GetBounds();
97 
99 
101  void InitPathTraversal();
102  virtual vtkAssemblyPath *GetNextPath();
104 
105 protected:
108 
111 
112 private:
113  vtkProp3DFollower(const vtkProp3DFollower&); // Not implemented.
114  void operator=(const vtkProp3DFollower&); // Not implemented.
115 
116  //Internal matrices to avoid New/Delete for performance reasons
117  vtkMatrix4x4 *InternalMatrix;
118 
119 };
120 
121 #endif