VTK  9.3.20240424
vtkExtractLevel.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
18#ifndef vtkExtractLevel_h
19#define vtkExtractLevel_h
20
21#include "vtkFiltersExtractionModule.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKFILTERSEXTRACTION_EXPORT vtkExtractLevel : public vtkMultiBlockDataSetAlgorithm
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
37 void AddLevel(unsigned int level);
38 void RemoveLevel(unsigned int level);
41
42protected:
44 ~vtkExtractLevel() override;
45
47
50
51 int FillInputPortInformation(int port, vtkInformation* info) override;
52 int FillOutputPortInformation(int port, vtkInformation* info) override;
53
54private:
55 vtkExtractLevel(const vtkExtractLevel&) = delete;
56 void operator=(const vtkExtractLevel&) = delete;
57
58 class vtkSet;
59 vtkSet* Levels;
60};
61
62VTK_ABI_NAMESPACE_END
63#endif
extract levels between min and max from a hierarchical box dataset.
void RemoveAllLevels()
Select the levels that should be extracted.
~vtkExtractLevel() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void AddLevel(unsigned int level)
Select the levels that should be extracted.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Implementation of the algorithm.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkExtractLevel * New()
void RemoveLevel(unsigned int level)
Select the levels that should be extracted.
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.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.