VTK  9.3.20240417
vtkImageToAMR.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkImageToAMR_h
18 #define vtkImageToAMR_h
19 
20 #include "vtkFiltersAMRModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKFILTERSAMR_EXPORT vtkImageToAMR : public vtkOverlappingAMRAlgorithm
25 {
26 public:
27  static vtkImageToAMR* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
35  vtkSetClampMacro(NumberOfLevels, int, 1, VTK_INT_MAX);
36  vtkGetMacro(NumberOfLevels, int);
38 
40 
44  vtkSetClampMacro(RefinementRatio, int, 2, VTK_INT_MAX);
45  vtkGetMacro(RefinementRatio, int);
47 
49 
52  vtkSetClampMacro(MaximumNumberOfBlocks, int, 1, VTK_INT_MAX);
53  vtkGetMacro(MaximumNumberOfBlocks, int);
55 
56 protected:
58  ~vtkImageToAMR() override;
59 
66 
71  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector) override;
73 
77 
78 private:
79  vtkImageToAMR(const vtkImageToAMR&) = delete;
80  void operator=(const vtkImageToAMR&) = delete;
81 };
82 
83 VTK_ABI_NAMESPACE_END
84 #endif
filter to convert any vtkImageData to a vtkOverlappingAMR.
Definition: vtkImageToAMR.h:25
int MaximumNumberOfBlocks
Definition: vtkImageToAMR.h:75
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkImageToAMR * New()
~vtkImageToAMR() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A base class for all algorithms that take as input vtkOverlappingAMR and produce vtkOverlappingAMR.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
#define VTK_INT_MAX
Definition: vtkType.h:144