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

dox/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 =========================================================================*/ 00038 #ifndef __vtkPolyDataMapper_h 00039 #define __vtkPolyDataMapper_h 00040 00041 #include "vtkMapper.h" 00042 00043 class vtkPolyData; 00044 class vtkRenderer; 00045 00046 class VTK_RENDERING_EXPORT vtkPolyDataMapper : public vtkMapper 00047 { 00048 public: 00049 static vtkPolyDataMapper *New(); 00050 vtkTypeRevisionMacro(vtkPolyDataMapper,vtkMapper); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) = 0; 00055 00057 virtual void Render(vtkRenderer *ren, vtkActor *act); 00058 00060 00061 void SetInput(vtkPolyData *in); 00062 vtkPolyData *GetInput(); 00064 00066 void Update(); 00067 00069 00070 vtkSetMacro(Piece, int); 00071 vtkGetMacro(Piece, int); 00072 vtkSetMacro(NumberOfPieces, int); 00073 vtkGetMacro(NumberOfPieces, int); 00074 vtkSetMacro(NumberOfSubPieces, int); 00075 vtkGetMacro(NumberOfSubPieces, int); 00077 00079 00080 vtkSetMacro(GhostLevel, int); 00081 vtkGetMacro(GhostLevel, int); 00083 00085 00087 virtual float *GetBounds(); 00088 virtual void GetBounds(float bounds[6]) 00089 {this->Superclass::GetBounds(bounds);}; 00091 00093 void ShallowCopy(vtkAbstractMapper *m); 00094 00095 protected: 00096 vtkPolyDataMapper(); 00097 ~vtkPolyDataMapper() {}; 00098 00099 int Piece; 00100 int NumberOfPieces; 00101 int NumberOfSubPieces; 00102 int GhostLevel; 00103 private: 00104 vtkPolyDataMapper(const vtkPolyDataMapper&); // Not implemented. 00105 void operator=(const vtkPolyDataMapper&); // Not implemented. 00106 }; 00107 00108 #endif