vtkPolyDataMapper.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00048 #ifndef __vtkPolyDataMapper_h
00049 #define __vtkPolyDataMapper_h
00050
00051 #include "vtkMapper.h"
00052
00053 class vtkPolyData;
00054 class vtkRenderer;
00055
00056 class VTK_RENDERING_EXPORT vtkPolyDataMapper : public vtkMapper
00057 {
00058 public:
00059 static vtkPolyDataMapper *New();
00060 vtkTypeRevisionMacro(vtkPolyDataMapper,vtkMapper);
00061 void PrintSelf(ostream& os, vtkIndent indent);
00062
00064 virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) = 0;
00065
00067 virtual void Render(vtkRenderer *ren, vtkActor *act);
00068
00070
00071 void SetInput(vtkPolyData *in);
00072 vtkPolyData *GetInput();
00074
00076 void Update();
00077
00079
00080 vtkSetMacro(Piece, int);
00081 vtkGetMacro(Piece, int);
00082 vtkSetMacro(NumberOfPieces, int);
00083 vtkGetMacro(NumberOfPieces, int);
00084 vtkSetMacro(NumberOfSubPieces, int);
00085 vtkGetMacro(NumberOfSubPieces, int);
00087
00089
00090 vtkSetMacro(GhostLevel, int);
00091 vtkGetMacro(GhostLevel, int);
00093
00095
00097 virtual double *GetBounds();
00098 virtual void GetBounds(double bounds[6])
00099 {this->Superclass::GetBounds(bounds);};
00101
00103 void ShallowCopy(vtkAbstractMapper *m);
00104
00105 protected:
00106 vtkPolyDataMapper();
00107 ~vtkPolyDataMapper() {};
00108
00109 int Piece;
00110 int NumberOfPieces;
00111 int NumberOfSubPieces;
00112 int GhostLevel;
00113 private:
00114 vtkPolyDataMapper(const vtkPolyDataMapper&);
00115 void operator=(const vtkPolyDataMapper&);
00116 };
00117
00118 #endif