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 "vtkProp3D.h"
40 
41 class vtkCamera;
42 class vtkMapper;
43 
44 
46 {
47  public:
49  static vtkProp3DFollower *New();
50 
52 
54  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  virtual void SetProp3D(vtkProp3D *prop);
60  virtual vtkProp3D *GetProp3D();
62 
64 
66  virtual void SetCamera(vtkCamera*);
67  vtkGetObjectMacro(Camera,vtkCamera);
69 
71 
74  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
75  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
76  virtual int RenderVolumetricGeometry(vtkViewport *viewport);
78 
80  virtual int HasTranslucentPolygonalGeometry();
81 
84  virtual void ReleaseGraphicsResources(vtkWindow*);
85 
89  virtual void ComputeMatrix();
90 
92  void ShallowCopy(vtkProp *prop);
93 
95  virtual double *GetBounds();
96 
98 
100  void InitPathTraversal();
101  virtual vtkAssemblyPath *GetNextPath();
103 
104 protected:
107 
110 
111 private:
112  vtkProp3DFollower(const vtkProp3DFollower&); // Not implemented.
113  void operator=(const vtkProp3DFollower&); // Not implemented.
114 
115  //Internal matrices to avoid New/Delete for performance reasons
116  vtkMatrix4x4 *InternalMatrix;
117 
118 };
119 
120 #endif