VTK  9.3.20241004
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
23VTK_ABI_NAMESPACE_BEGIN
24class VTKFILTERSAMR_EXPORT vtkImageToAMR : public vtkOverlappingAMRAlgorithm
25{
26public:
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
56protected:
58 ~vtkImageToAMR() override;
59
65 int FillInputPortInformation(int port, vtkInformation* info) override;
66
71 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
72 vtkInformationVector* outputVector) override;
73
77
78private:
79 vtkImageToAMR(const vtkImageToAMR&) = delete;
80 void operator=(const vtkImageToAMR&) = delete;
81};
82
83VTK_ABI_NAMESPACE_END
84#endif
filter to convert any vtkImageData to a vtkOverlappingAMR.
int MaximumNumberOfBlocks
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.
#define VTK_INT_MAX
Definition vtkType.h:144