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

vtkPolyDataMapper.h

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