Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Rendering/vtkFollower.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkFollower.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00041 #ifndef __vtkFollower_h
00042 #define __vtkFollower_h
00043 
00044 #include "vtkActor.h"
00045 
00046 class vtkCamera;
00047 
00048 class VTK_RENDERING_EXPORT vtkFollower : public vtkActor
00049 {
00050  public:
00051   vtkTypeRevisionMacro(vtkFollower,vtkActor);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055   static vtkFollower *New();
00056 
00058 
00060   virtual void SetCamera(vtkCamera*);
00061   vtkGetObjectMacro(Camera,vtkCamera);
00063 
00065 
00068   virtual int RenderOpaqueGeometry(vtkViewport *viewport);
00069   virtual int RenderTranslucentGeometry(vtkViewport *viewport);
00070   virtual void Render(vtkRenderer *ren);
00072   
00074 
00075   virtual void GetMatrix(vtkMatrix4x4 *m);
00076   virtual void GetMatrix(double m[16]);
00077   virtual vtkMatrix4x4* GetMatrix()
00078     {return this->vtkActor::GetMatrix();}
00080 
00082   void ShallowCopy(vtkProp *prop);
00083 
00084 protected:
00085   vtkFollower();
00086   ~vtkFollower();
00087 
00088   vtkCamera *Camera; 
00089   vtkActor  *Device;
00090 private:
00091   // hide the two parameter Render() method from the user and the compiler.
00092   virtual void Render(vtkRenderer *, vtkMapper *) {};
00093 private:
00094   vtkFollower(const vtkFollower&);  // Not implemented.
00095   void operator=(const vtkFollower&);  // Not implemented.
00096 };
00097 
00098 #endif
00099 
00100 
00101