00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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&);
00104 void operator=(const vtkPolyDataMapper&);
00105 };
00106
00107 #endif