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

vtkAbstractMapper3D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkAbstractMapper3D.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 =========================================================================*/
00045 #ifndef __vtkAbstractMapper3D_h
00046 #define __vtkAbstractMapper3D_h
00047 
00048 #include "vtkAbstractMapper.h"
00049 
00050 class vtkWindow;
00051 class vtkDataSet;
00052 
00053 class VTK_RENDERING_EXPORT vtkAbstractMapper3D : public vtkAbstractMapper
00054 {
00055 public:
00056   vtkTypeRevisionMacro(vtkAbstractMapper3D,vtkAbstractMapper);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00061   virtual double *GetBounds()=0;
00062 
00064   virtual void GetBounds(double bounds[6]);
00065   
00067 
00068   double *GetCenter();
00069   void GetCenter(double center[3]) 
00070     {
00071       double *rc = this->GetCenter();
00072       center[0] = rc[0]; center[1] = rc[1]; center[2] = rc[2];
00073     };
00075   
00077   double GetLength();
00078 
00081   virtual int IsARayCastMapper() {return 0;};
00082 
00086   virtual int IsARenderIntoImageMapper() {return 0;};
00087 
00089   virtual void Update()=0;
00090 
00091 protected:
00092    vtkAbstractMapper3D();
00093   ~vtkAbstractMapper3D() {};
00094 
00095   double Bounds[6];
00096   double Center[3];
00097 
00098 private:
00099   vtkAbstractMapper3D(const vtkAbstractMapper3D&);  // Not implemented.
00100   void operator=(const vtkAbstractMapper3D&);  // Not implemented.
00101 };
00102 
00103 #endif