VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile$ 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 =========================================================================*/ 00028 #ifndef __vtkImageToAMR_h 00029 #define __vtkImageToAMR_h 00030 00031 #include "vtkOverlappingAMRAlgorithm.h" 00032 #include "vtkFiltersAMRModule.h" // For export macro 00033 00034 class VTKFILTERSAMR_EXPORT vtkImageToAMR : public vtkOverlappingAMRAlgorithm 00035 { 00036 public: 00037 static vtkImageToAMR* New(); 00038 vtkTypeMacro(vtkImageToAMR, vtkOverlappingAMRAlgorithm); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00042 00043 vtkSetClampMacro(NumberOfLevels, int, 1, VTK_INT_MAX); 00044 vtkGetMacro(NumberOfLevels, int); 00046 00048 00050 vtkSetClampMacro(RefinementRatio, int, 2, VTK_INT_MAX); 00051 vtkGetMacro(RefinementRatio, int); 00053 00055 00056 vtkSetClampMacro(MaximumNumberOfBlocks, int, 1, VTK_INT_MAX); 00057 vtkGetMacro(MaximumNumberOfBlocks, int); 00059 00060 00061 //BTX 00062 protected: 00063 vtkImageToAMR(); 00064 ~vtkImageToAMR(); 00065 00069 virtual int FillInputPortInformation(int port, vtkInformation* info); 00070 00072 00074 virtual int RequestData(vtkInformation *request, 00075 vtkInformationVector **inputVector, 00076 vtkInformationVector *outputVector); 00078 00079 int NumberOfLevels; 00080 int MaximumNumberOfBlocks; 00081 int RefinementRatio; 00082 00083 00084 private: 00085 vtkImageToAMR(const vtkImageToAMR&); // Not implemented. 00086 void operator=(const vtkImageToAMR&); // Not implemented. 00087 //ETX 00088 }; 00089 00090 #endif