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