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

vtkBranchExtentTranslator.h

Go to the documentation of this file.
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 =========================================================================*/
00044 #ifndef __vtkBranchExtentTranslator_h
00045 #define __vtkBranchExtentTranslator_h
00046 
00047 #include "vtkExtentTranslator.h"
00048 
00049 class vtkImageData;
00050 
00051 class VTK_PARALLEL_EXPORT vtkBranchExtentTranslator : public vtkExtentTranslator
00052 {
00053 public:
00054   static vtkBranchExtentTranslator *New();
00055 
00056   vtkTypeRevisionMacro(vtkBranchExtentTranslator,vtkExtentTranslator);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060 
00061   virtual void SetOriginalSource(vtkImageData*);
00062   vtkGetObjectMacro(OriginalSource,vtkImageData);
00064 
00066   int PieceToExtent();
00067 
00069 
00075   vtkSetMacro(AssignedPiece, int);
00076   vtkGetMacro(AssignedPiece, int);
00077   vtkSetMacro(AssignedNumberOfPieces, int);
00078   vtkGetMacro(AssignedNumberOfPieces, int);
00080 
00081 protected:
00082   vtkBranchExtentTranslator();
00083   ~vtkBranchExtentTranslator();
00084 
00085   vtkImageData *OriginalSource;
00086   int AssignedPiece;
00087   int AssignedNumberOfPieces;
00088 private:
00089   vtkBranchExtentTranslator(const vtkBranchExtentTranslator&);  // Not implemented.
00090   void operator=(const vtkBranchExtentTranslator&);  // Not implemented.
00091 };
00092 
00093 #endif
00094