VTK  9.1.0
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
32class VTKFILTERSAMR_EXPORT vtkImageToAMR : public vtkOverlappingAMRAlgorithm
33{
34public:
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
64protected:
66 ~vtkImageToAMR() override;
67
73 int FillInputPortInformation(int port, vtkInformation* info) override;
74
79 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
80 vtkInformationVector* outputVector) override;
81
85
86private:
87 vtkImageToAMR(const vtkImageToAMR&) = delete;
88 void operator=(const vtkImageToAMR&) = delete;
89};
90
91#endif
filter to convert any vtkImageData to a vtkOverlappingAMR.
Definition: vtkImageToAMR.h:33
int MaximumNumberOfBlocks
Definition: vtkImageToAMR.h:83
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:113
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:155