VTK
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 
33 #include "vtkFiltersAMRModule.h" // For export macro
34 
35 class VTKFILTERSAMR_EXPORT vtkImageToAMR : public vtkOverlappingAMRAlgorithm
36 {
37 public:
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 
67 protected:
68  vtkImageToAMR();
69  ~vtkImageToAMR() override;
70 
77 
82  int RequestData(vtkInformation *request,
83  vtkInformationVector **inputVector,
84  vtkInformationVector *outputVector) override;
85 
89 
90 
91 private:
92  vtkImageToAMR(const vtkImageToAMR&) = delete;
93  void operator=(const vtkImageToAMR&) = delete;
94 
95 };
96 
97 #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:159
int MaximumNumberOfBlocks
Definition: vtkImageToAMR.h:87
a simple class to control print indentation
Definition: vtkIndent.h:39
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:35
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.