VTK  9.0.1
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 
29 #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) 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() override;
67 
74 
79  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
80  vtkInformationVector* outputVector) override;
81 
85 
86 private:
87  vtkImageToAMR(const vtkImageToAMR&) = delete;
88  void operator=(const vtkImageToAMR&) = delete;
89 };
90 
91 #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:155
int MaximumNumberOfBlocks
Definition: vtkImageToAMR.h:83
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store zero or more vtkInformation instances.
static vtkOverlappingAMRAlgorithm * New()
filter to convert any vtkImageData to a vtkOverlappingAMR.
Definition: vtkImageToAMR.h:32
int FillInputPortInformation(int port, vtkInformation *info) override
See algorithm for more info.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.