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

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 =========================================================================*/
00047 #ifndef __vtkBranchExtentTranslator_h
00048 #define __vtkBranchExtentTranslator_h
00049 
00050 #include "vtkExtentTranslator.h"
00051 
00052 class vtkImageData;
00053 
00054 class VTK_PARALLEL_EXPORT vtkBranchExtentTranslator : public vtkExtentTranslator
00055 {
00056 public:
00057   static vtkBranchExtentTranslator *New();
00058 
00059   vtkTypeRevisionMacro(vtkBranchExtentTranslator,vtkExtentTranslator);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00061 
00063 
00064   virtual void SetOriginalSource(vtkImageData*);
00065   vtkGetObjectMacro(OriginalSource,vtkImageData);
00067 
00069   int PieceToExtent();
00070 
00072 
00078   vtkSetMacro(AssignedPiece, int);
00079   vtkGetMacro(AssignedPiece, int);
00080   vtkSetMacro(AssignedNumberOfPieces, int);
00081   vtkGetMacro(AssignedNumberOfPieces, int);
00083 
00084 protected:
00085   vtkBranchExtentTranslator();
00086   ~vtkBranchExtentTranslator();
00087 
00088   vtkImageData *OriginalSource;
00089   int AssignedPiece;
00090   int AssignedNumberOfPieces;
00091 private:
00092   vtkBranchExtentTranslator(const vtkBranchExtentTranslator&);  // Not implemented.
00093   void operator=(const vtkBranchExtentTranslator&);  // Not implemented.
00094 };
00095 
00096 #endif
00097