00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMultiPartExtentTranslator.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 __vtkMultiPartExtentTranslator_h 00026 #define __vtkMultiPartExtentTranslator_h 00027 00028 #include "vtkExtentTranslator.h" 00029 00030 00031 class VTK_COMMON_EXPORT vtkMultiPartExtentTranslator : public vtkExtentTranslator 00032 { 00033 public: 00034 static vtkMultiPartExtentTranslator *New(); 00035 00036 vtkTypeRevisionMacro(vtkMultiPartExtentTranslator,vtkExtentTranslator); 00037 00039 00044 virtual int PieceToExtentThreadSafe(int piece, int numPieces, 00045 int ghostLevel, int *wholeExtent, 00046 int *resultExtent, int splitMode, 00047 int byPoints); 00049 00050 protected: 00051 vtkMultiPartExtentTranslator(); 00052 ~vtkMultiPartExtentTranslator(); 00053 00054 private: 00055 vtkMultiPartExtentTranslator(const vtkMultiPartExtentTranslator&); // Not implemented. 00056 void operator=(const vtkMultiPartExtentTranslator&); // Not implemented. 00057 }; 00058 00059 #endif 00060