00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00030 #ifndef __vtkPolyDataMapper_h
00031 #define __vtkPolyDataMapper_h
00032
00033 #include "vtkMapper.h"
00034
00035 class vtkPolyData;
00036 class vtkRenderer;
00037
00038 class VTK_RENDERING_EXPORT vtkPolyDataMapper : public vtkMapper
00039 {
00040 public:
00041 static vtkPolyDataMapper *New();
00042 vtkTypeRevisionMacro(vtkPolyDataMapper,vtkMapper);
00043 void PrintSelf(ostream& os, vtkIndent indent);
00044
00046 virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) = 0;
00047
00049 virtual void Render(vtkRenderer *ren, vtkActor *act);
00050
00052
00053 void SetInput(vtkPolyData *in);
00054 vtkPolyData *GetInput();
00056
00058 void Update();
00059
00061
00062 vtkSetMacro(Piece, int);
00063 vtkGetMacro(Piece, int);
00064 vtkSetMacro(NumberOfPieces, int);
00065 vtkGetMacro(NumberOfPieces, int);
00066 vtkSetMacro(NumberOfSubPieces, int);
00067 vtkGetMacro(NumberOfSubPieces, int);
00069
00071
00072 vtkSetMacro(GhostLevel, int);
00073 vtkGetMacro(GhostLevel, int);
00075
00077
00079 virtual double *GetBounds();
00080 virtual void GetBounds(double bounds[6])
00081 {this->Superclass::GetBounds(bounds);};
00083
00085 void ShallowCopy(vtkAbstractMapper *m);
00086
00087 protected:
00088 vtkPolyDataMapper();
00089 ~vtkPolyDataMapper() {};
00090
00091 int Piece;
00092 int NumberOfPieces;
00093 int NumberOfSubPieces;
00094 int GhostLevel;
00095
00096 virtual int FillInputPortInformation(int, vtkInformation*);
00097
00098 private:
00099 vtkPolyDataMapper(const vtkPolyDataMapper&);
00100 void operator=(const vtkPolyDataMapper&);
00101 };
00102
00103 #endif