VTK  9.2.6
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=========================================================================*/
29#ifndef vtkImageToAMR_h
30#define vtkImageToAMR_h
31
32#include "vtkFiltersAMRModule.h" // For export macro
34
35class VTKFILTERSAMR_EXPORT vtkImageToAMR : public vtkOverlappingAMRAlgorithm
36{
37public:
38 static vtkImageToAMR* New();
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
46 vtkSetClampMacro(NumberOfLevels, int, 1, VTK_INT_MAX);
47 vtkGetMacro(NumberOfLevels, int);
49
51
55 vtkSetClampMacro(RefinementRatio, int, 2, VTK_INT_MAX);
56 vtkGetMacro(RefinementRatio, int);
58
60
63 vtkSetClampMacro(MaximumNumberOfBlocks, int, 1, VTK_INT_MAX);
64 vtkGetMacro(MaximumNumberOfBlocks, int);
66
67protected:
69 ~vtkImageToAMR() override;
70
76 int FillInputPortInformation(int port, vtkInformation* info) override;
77
82 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
83 vtkInformationVector* outputVector) override;
84
88
89private:
90 vtkImageToAMR(const vtkImageToAMR&) = delete;
91 void operator=(const vtkImageToAMR&) = delete;
92};
93
94#endif
filter to convert any vtkImageData to a vtkOverlappingAMR.
Definition: vtkImageToAMR.h:36
int MaximumNumberOfBlocks
Definition: vtkImageToAMR.h:86
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:40
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