Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Common/vtkTableExtentTranslator.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkTableExtentTranslator.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00039 #ifndef __vtkTableExtentTranslator_h
    00040 #define __vtkTableExtentTranslator_h
    00041
    00042 #include "vtkExtentTranslator.h"
    00043
    00044 class VTK_COMMON_EXPORT vtkTableExtentTranslator : public vtkExtentTranslator
    00045 {
    00046 public:
    00047   vtkTypeRevisionMacro(vtkTableExtentTranslator,vtkExtentTranslator);
    00048   void PrintSelf(ostream& os, vtkIndent indent);
    00049
    00050   static vtkTableExtentTranslator* New();
    00051
    00056   void SetNumberOfPieces(int pieces);
    00057
    00060   int PieceToExtent();
    00061
    00063   int PieceToExtentByPoints();
    00064
    00066
    00067   int PieceToExtentThreadSafe(int piece, int numPieces,
    00068                               int ghostLevel, int *wholeExtent,
    00069                               int *resultExtent, int splitMode,
    00070                               int byPoints);
    00072
    00075   virtual void SetExtentForPiece(int piece, int* extent);
    00076
    00078
    00081   virtual void GetExtentForPiece(int piece, int* extent);
    00082   virtual int* GetExtentForPiece(int piece);
    00084
    00086
    00089   vtkSetMacro(MaximumGhostLevel, int);
    00090   vtkGetMacro(MaximumGhostLevel, int);
    00092
    00093 protected:
    00094   vtkTableExtentTranslator();
    00095   ~vtkTableExtentTranslator();
    00096
    00097   // Store the extent table in a single array.  Every 6 values form an extent.
    00098   int* ExtentTable;
    00099   int MaximumGhostLevel;
    00100
    00101 private:
    00102   vtkTableExtentTranslator(const vtkTableExtentTranslator&);  // Not implemented.
    00103   void operator=(const vtkTableExtentTranslator&);  // Not implemented.
    00104 };
    00105
    00106 #endif