vtkTableExtentTranslator.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00036 #ifndef __vtkTableExtentTranslator_h
00037 #define __vtkTableExtentTranslator_h
00038
00039 #include "vtkExtentTranslator.h"
00040
00041 class VTK_COMMON_EXPORT vtkTableExtentTranslator : public vtkExtentTranslator
00042 {
00043 public:
00044 vtkTypeRevisionMacro(vtkTableExtentTranslator,vtkExtentTranslator);
00045 void PrintSelf(ostream& os, vtkIndent indent);
00046
00047 static vtkTableExtentTranslator* New();
00048
00049
00050
00051
00052
00053
00054
00055
00056 void SetNumberOfPieces(int pieces);
00057
00059
00060 void SetNumberOfPiecesInTable(int pieces);
00061 vtkGetMacro(NumberOfPiecesInTable, int);
00063
00066 int PieceToExtent();
00067
00069 int PieceToExtentByPoints();
00070
00072
00073 int PieceToExtentThreadSafe(int piece, int numPieces,
00074 int ghostLevel, int *wholeExtent,
00075 int *resultExtent, int splitMode,
00076 int byPoints);
00078
00081 virtual void SetExtentForPiece(int piece, int* extent);
00082
00084
00087 virtual void GetExtentForPiece(int piece, int* extent);
00088 virtual int* GetExtentForPiece(int piece);
00090
00092
00095 vtkSetMacro(MaximumGhostLevel, int);
00096 vtkGetMacro(MaximumGhostLevel, int);
00098
00100
00102 virtual void SetPieceAvailable(int piece, int available);
00103 virtual int GetPieceAvailable(int piece);
00105
00106 protected:
00107 vtkTableExtentTranslator();
00108 ~vtkTableExtentTranslator();
00109
00110
00111 int* ExtentTable;
00112 int NumberOfPiecesInTable;
00113 int MaximumGhostLevel;
00114
00115
00116 int* PieceAvailable;
00117
00118 private:
00119 vtkTableExtentTranslator(const vtkTableExtentTranslator&);
00120 void operator=(const vtkTableExtentTranslator&);
00121 };
00122
00123 #endif