VTK
dox/Rendering/HybridOpenGL/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 "vtkRenderingHybridOpenGLModule.h" // For export macro
00023 #include "vtkExtentTranslator.h"
00024 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
00025 
00026 class vtkImageDataLIC2D;
00027 
00028 class VTKRENDERINGHYBRIDOPENGL_EXPORT vtkImageDataLIC2DExtentTranslator
00029   : public vtkExtentTranslator
00030 {
00031 public:
00032   static vtkImageDataLIC2DExtentTranslator* New();
00033   vtkTypeMacro(vtkImageDataLIC2DExtentTranslator, vtkExtentTranslator);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00037 
00039   void SetAlgorithm(vtkImageDataLIC2D*);
00040   vtkImageDataLIC2D* GetAlgorithm();
00042 
00043   void SetInputExtentTranslator(vtkExtentTranslator*);
00044   vtkGetObjectMacro(InputExtentTranslator, vtkExtentTranslator);
00045 
00046   vtkSetVector6Macro(InputWholeExtent, int);
00047   vtkGetVector6Macro(InputWholeExtent, int);
00048 
00049   virtual int PieceToExtentThreadSafe(int piece, int numPieces,
00050                                      int ghostLevel, int *wholeExtent,
00051                                      int *resultExtent, int splitMode,
00052                                      int byPoints);
00053 
00054 //BTX
00055 protected:
00056   vtkImageDataLIC2DExtentTranslator();
00057   ~vtkImageDataLIC2DExtentTranslator();
00058 
00059   int InputWholeExtent[6];
00060   vtkExtentTranslator* InputExtentTranslator;
00061   vtkWeakPointer<vtkImageDataLIC2D> Algorithm;
00062 private:
00063   vtkImageDataLIC2DExtentTranslator(const vtkImageDataLIC2DExtentTranslator&); // Not implemented.
00064   void operator=(const vtkImageDataLIC2DExtentTranslator&); // Not implemented.
00065 //ETX
00066 };
00067 
00068 #endif