VTK
dox/Hybrid/vtkImageDataLIC2DExtentTranslator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageDataLIC2DExtentTranslator.h
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 =========================================================================*/
00019 #ifndef __vtkImageDataLIC2DExtentTranslator_h
00020 #define __vtkImageDataLIC2DExtentTranslator_h
00021 
00022 #include "vtkExtentTranslator.h"
00023 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
00024 
00025 class vtkImageDataLIC2D;
00026 
00027 class VTK_HYBRID_EXPORT vtkImageDataLIC2DExtentTranslator : public vtkExtentTranslator
00028 {
00029 public:
00030   static vtkImageDataLIC2DExtentTranslator* New();
00031   vtkTypeMacro(vtkImageDataLIC2DExtentTranslator, vtkExtentTranslator);
00032   void PrintSelf(ostream& os, vtkIndent indent);
00033 
00035 
00037   void SetAlgorithm(vtkImageDataLIC2D*);
00038   vtkImageDataLIC2D* GetAlgorithm();
00040 
00041   void SetInputExtentTranslator(vtkExtentTranslator*);
00042   vtkGetObjectMacro(InputExtentTranslator, vtkExtentTranslator);
00043 
00044   vtkSetVector6Macro(InputWholeExtent, int);
00045   vtkGetVector6Macro(InputWholeExtent, int);
00046 
00047   virtual int PieceToExtentThreadSafe(int piece, int numPieces, 
00048                                      int ghostLevel, int *wholeExtent, 
00049                                      int *resultExtent, int splitMode, 
00050                                      int byPoints);
00051 
00052 //BTX
00053 protected:
00054   vtkImageDataLIC2DExtentTranslator();
00055   ~vtkImageDataLIC2DExtentTranslator();
00056 
00057   int InputWholeExtent[6];
00058   vtkExtentTranslator* InputExtentTranslator;
00059   vtkWeakPointer<vtkImageDataLIC2D> Algorithm;
00060 private:
00061   vtkImageDataLIC2DExtentTranslator(const vtkImageDataLIC2DExtentTranslator&); // Not implemented.
00062   void operator=(const vtkImageDataLIC2DExtentTranslator&); // Not implemented.
00063 //ETX
00064 };
00065 
00066 #endif