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

dox/Parallel/vtkBranchExtentTranslator.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkBranchExtentTranslator.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 =========================================================================*/ 00036 #ifndef __vtkBranchExtentTranslator_h 00037 #define __vtkBranchExtentTranslator_h 00038 00039 #include "vtkExtentTranslator.h" 00040 00041 class vtkImageData; 00042 00043 class VTK_PARALLEL_EXPORT vtkBranchExtentTranslator : public vtkExtentTranslator 00044 { 00045 public: 00046 static vtkBranchExtentTranslator *New(); 00047 00048 vtkTypeRevisionMacro(vtkBranchExtentTranslator,vtkExtentTranslator); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00053 virtual void SetOriginalSource(vtkImageData*); 00054 vtkGetObjectMacro(OriginalSource,vtkImageData); 00056 00058 int PieceToExtent(); 00059 00061 00067 vtkSetMacro(AssignedPiece, int); 00068 vtkGetMacro(AssignedPiece, int); 00069 vtkSetMacro(AssignedNumberOfPieces, int); 00070 vtkGetMacro(AssignedNumberOfPieces, int); 00072 00073 protected: 00074 vtkBranchExtentTranslator(); 00075 ~vtkBranchExtentTranslator(); 00076 00077 vtkImageData *OriginalSource; 00078 int AssignedPiece; 00079 int AssignedNumberOfPieces; 00080 private: 00081 vtkBranchExtentTranslator(const vtkBranchExtentTranslator&); // Not implemented. 00082 void operator=(const vtkBranchExtentTranslator&); // Not implemented. 00083 }; 00084 00085 #endif 00086