vtkPolyDataMapper.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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&);
00105 void operator=(const vtkPolyDataMapper&);
00106 };
00107
00108 #endif