• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Rendering/vtkFollower.h

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

Generated by  doxygen 1.7.1