Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkTableExtentTranslator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTableExtentTranslator.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00025 #ifndef __vtkTableExtentTranslator_h
00026 #define __vtkTableExtentTranslator_h
00027 
00028 #include "vtkExtentTranslator.h"
00029 
00030 class VTK_COMMON_EXPORT vtkTableExtentTranslator : public vtkExtentTranslator
00031 {
00032 public:
00033   vtkTypeRevisionMacro(vtkTableExtentTranslator,vtkExtentTranslator);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035   
00036   static vtkTableExtentTranslator* New();
00037   
00038 
00039   // Set the number of pieces into which the whole extent will be
00040   // split.  If this is 1 then the whole extent will be returned.  If
00041   // this is more than the number of pieces in the table then the
00042   // extra pieces will be empty data.  If this is more than one but
00043   // less than the number of pieces in the table then only this many
00044   // pieces will be returned (FIXME).
00045   void SetNumberOfPieces(int pieces);
00046 
00048 
00049   void SetNumberOfPiecesInTable(int pieces);
00050   vtkGetMacro(NumberOfPiecesInTable, int);
00052   
00055   int PieceToExtent();  
00056   
00058   int PieceToExtentByPoints();
00059   
00061 
00062   int PieceToExtentThreadSafe(int piece, int numPieces, 
00063                               int ghostLevel, int *wholeExtent, 
00064                               int *resultExtent, int splitMode, 
00065                               int byPoints);
00067   
00070   virtual void SetExtentForPiece(int piece, int* extent);
00071   
00073 
00076   virtual void GetExtentForPiece(int piece, int* extent);
00077   virtual int* GetExtentForPiece(int piece);
00079   
00081 
00084   vtkSetMacro(MaximumGhostLevel, int);
00085   vtkGetMacro(MaximumGhostLevel, int);
00087   
00089 
00091   virtual void SetPieceAvailable(int piece, int available);
00092   virtual int GetPieceAvailable(int piece);
00094   
00095 protected:
00096   vtkTableExtentTranslator();
00097   ~vtkTableExtentTranslator();
00098   
00099   // Store the extent table in a single array.  Every 6 values form an extent.
00100   int* ExtentTable;
00101   int NumberOfPiecesInTable;
00102   int MaximumGhostLevel;
00103   
00104   // Store a flag for the availability of each piece.
00105   int* PieceAvailable;
00106   
00107 private:
00108   vtkTableExtentTranslator(const vtkTableExtentTranslator&);  // Not implemented.
00109   void operator=(const vtkTableExtentTranslator&);  // Not implemented.
00110 };
00111 
00112 #endif

Generated on Mon Jan 21 23:07:18 2008 for VTK by  doxygen 1.4.3-20050530