VTK
vtkImageToAMR.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageToAMR.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkImageToAMR_h
27 #define vtkImageToAMR_h
28 
30 #include "vtkFiltersAMRModule.h" // For export macro
31 
32 class VTKFILTERSAMR_EXPORT vtkImageToAMR : public vtkOverlappingAMRAlgorithm
33 {
34 public:
35  static vtkImageToAMR* New();
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
40 
43  vtkSetClampMacro(NumberOfLevels, int, 1, VTK_INT_MAX);
44  vtkGetMacro(NumberOfLevels, int);
46 
48 
52  vtkSetClampMacro(RefinementRatio, int, 2, VTK_INT_MAX);
53  vtkGetMacro(RefinementRatio, int);
55 
57 
60  vtkSetClampMacro(MaximumNumberOfBlocks, int, 1, VTK_INT_MAX);
61  vtkGetMacro(MaximumNumberOfBlocks, int);
63 
64 protected:
65  vtkImageToAMR();
66  ~vtkImageToAMR() VTK_OVERRIDE;
67 
73  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
74 
79  int RequestData(vtkInformation *request,
80  vtkInformationVector **inputVector,
81  vtkInformationVector *outputVector) VTK_OVERRIDE;
82 
83  int NumberOfLevels;
84  int MaximumNumberOfBlocks;
85  int RefinementRatio;
86 
87 
88 private:
89  vtkImageToAMR(const vtkImageToAMR&) VTK_DELETE_FUNCTION;
90  void operator=(const vtkImageToAMR&) VTK_DELETE_FUNCTION;
91 
92 };
93 
94 #endif
A base class for all algorithms that take as input vtkOverlappingAMR and produce vtkOverlappingAMR.
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:157
a simple class to control print indentation
Definition: vtkIndent.h:33
Store zero or more vtkInformation instances.
static vtkOverlappingAMRAlgorithm * New()
filter to convert any vtkImageData to a vtkOverlappingAMR.
Definition: vtkImageToAMR.h:32
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.