Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00034 #ifndef __vtkPolyDataMapper_h
00035 #define __vtkPolyDataMapper_h
00036 
00037 #include "vtkMapper.h"
00038 
00039 class vtkPolyData;
00040 class vtkRenderer;
00041 
00042 class VTK_RENDERING_EXPORT vtkPolyDataMapper : public vtkMapper 
00043 {
00044 public:
00045   static vtkPolyDataMapper *New();
00046   vtkTypeRevisionMacro(vtkPolyDataMapper,vtkMapper);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050   virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) = 0;
00051 
00053   virtual void Render(vtkRenderer *ren, vtkActor *act);
00054 
00056 
00057   void SetInput(vtkPolyData *in);
00058   vtkPolyData *GetInput();
00060   
00062   void Update();
00063 
00065 
00066   vtkSetMacro(Piece, int);
00067   vtkGetMacro(Piece, int);
00068   vtkSetMacro(NumberOfPieces, int);
00069   vtkGetMacro(NumberOfPieces, int);
00070   vtkSetMacro(NumberOfSubPieces, int);
00071   vtkGetMacro(NumberOfSubPieces, int);
00073 
00075 
00076   vtkSetMacro(GhostLevel, int);
00077   vtkGetMacro(GhostLevel, int);
00079 
00081 
00083   virtual double *GetBounds();
00084   virtual void GetBounds(double bounds[6]) 
00085     {this->Superclass::GetBounds(bounds);};
00087   
00089   void ShallowCopy(vtkAbstractMapper *m);
00090 
00091 protected:  
00092   vtkPolyDataMapper();
00093   ~vtkPolyDataMapper() {};
00094 
00095   int Piece;
00096   int NumberOfPieces;
00097   int NumberOfSubPieces;
00098   int GhostLevel;
00099 
00100   virtual int FillInputPortInformation(int, vtkInformation*);
00101 
00102 private:
00103   vtkPolyDataMapper(const vtkPolyDataMapper&);  // Not implemented.
00104   void operator=(const vtkPolyDataMapper&);  // Not implemented.
00105 };
00106 
00107 #endif

Generated on Mon Jan 21 23:07:35 2008 for VTK by  doxygen 1.4.3-20050530