00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkBranchExtentTranslator.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 =========================================================================*/ 00032 #ifndef __vtkBranchExtentTranslator_h 00033 #define __vtkBranchExtentTranslator_h 00034 00035 #include "vtkExtentTranslator.h" 00036 00037 class vtkImageData; 00038 00039 class VTK_PARALLEL_EXPORT vtkBranchExtentTranslator : public vtkExtentTranslator 00040 { 00041 public: 00042 static vtkBranchExtentTranslator *New(); 00043 00044 vtkTypeRevisionMacro(vtkBranchExtentTranslator,vtkExtentTranslator); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00049 virtual void SetOriginalSource(vtkImageData*); 00050 vtkGetObjectMacro(OriginalSource,vtkImageData); 00052 00054 int PieceToExtent(); 00055 00057 00063 vtkSetMacro(AssignedPiece, int); 00064 vtkGetMacro(AssignedPiece, int); 00065 vtkSetMacro(AssignedNumberOfPieces, int); 00066 vtkGetMacro(AssignedNumberOfPieces, int); 00068 00069 protected: 00070 vtkBranchExtentTranslator(); 00071 ~vtkBranchExtentTranslator(); 00072 00073 vtkImageData *OriginalSource; 00074 int AssignedPiece; 00075 int AssignedNumberOfPieces; 00076 private: 00077 vtkBranchExtentTranslator(const vtkBranchExtentTranslator&); // Not implemented. 00078 void operator=(const vtkBranchExtentTranslator&); // Not implemented. 00079 }; 00080 00081 #endif 00082