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

Rendering/vtkPolyDataMapper.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPolyDataMapper.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 =========================================================================*/
00052 #ifndef __vtkPolyDataMapper_h
00053 #define __vtkPolyDataMapper_h
00054 
00055 #include "vtkMapper.h"
00056 
00057 class vtkPolyData;
00058 class vtkRenderer;
00059 
00060 class VTK_RENDERING_EXPORT vtkPolyDataMapper : public vtkMapper 
00061 {
00062 public:
00063   static vtkPolyDataMapper *New();
00064   vtkTypeRevisionMacro(vtkPolyDataMapper,vtkMapper);
00065   void PrintSelf(ostream& os, vtkIndent indent);
00066 
00068   virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) = 0;
00069 
00071   virtual void Render(vtkRenderer *ren, vtkActor *act);
00072 
00074 
00075   void SetInput(vtkPolyData *in);
00076   vtkPolyData *GetInput();
00078   
00080   void Update();
00081 
00083 
00084   vtkSetMacro(Piece, int);
00085   vtkGetMacro(Piece, int);
00086   vtkSetMacro(NumberOfPieces, int);
00087   vtkGetMacro(NumberOfPieces, int);
00088   vtkSetMacro(NumberOfSubPieces, int);
00089   vtkGetMacro(NumberOfSubPieces, int);
00091 
00093 
00094   vtkSetMacro(GhostLevel, int);
00095   vtkGetMacro(GhostLevel, int);
00097 
00099 
00101   virtual float *GetBounds();
00102   virtual void GetBounds(float bounds[6]) 
00103     {this->Superclass::GetBounds(bounds);};
00105   
00107   void ShallowCopy(vtkAbstractMapper *m);
00108 
00109 protected:  
00110   vtkPolyDataMapper();
00111   ~vtkPolyDataMapper() {};
00112 
00113   int Piece;
00114   int NumberOfPieces;
00115   int NumberOfSubPieces;
00116   int GhostLevel;
00117 private:
00118   vtkPolyDataMapper(const vtkPolyDataMapper&);  // Not implemented.
00119   void operator=(const vtkPolyDataMapper&);  // Not implemented.
00120 };
00121 
00122 #endif