VTK
vtkFollower.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFollower.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 __vtkFollower_h
38 #define __vtkFollower_h
39 
40 #include "vtkActor.h"
41 
42 class vtkCamera;
43 
45 {
46  public:
47  vtkTypeMacro(vtkFollower,vtkActor);
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  static vtkFollower *New();
52 
54 
56  virtual void SetCamera(vtkCamera*);
57  vtkGetObjectMacro(Camera,vtkCamera);
59 
61 
64  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
65  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
66  virtual void Render(vtkRenderer *ren);
68 
70  virtual int HasTranslucentPolygonalGeometry();
71 
74  virtual void ReleaseGraphicsResources(vtkWindow*);
75 
79  virtual void ComputeMatrix();
80 
82  void ShallowCopy(vtkProp *prop);
83 
84 protected:
85  vtkFollower();
86  ~vtkFollower();
87 
90 
91 private:
92  vtkFollower(const vtkFollower&); // Not implemented.
93  void operator=(const vtkFollower&); // Not implemented.
94 
95  // hide the two parameter Render() method from the user and the compiler.
96  virtual void Render(vtkRenderer *, vtkMapper *) {};
97 
98  //Internal matrices to avoid New/Delete for performance reasons
99  vtkMatrix4x4 *InternalMatrix;
100 
101 };
102 
103 #endif
104 
105 
106