VTK  9.3.20240328
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 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKFILTERSEXTRACTION_EXPORT vtkExtractLevel : public vtkMultiBlockDataSetAlgorithm
26 {
27 public:
28  static vtkExtractLevel* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
37  void AddLevel(unsigned int level);
38  void RemoveLevel(unsigned int level);
41 
42 protected:
44  ~vtkExtractLevel() override;
45 
47 
50 
53 
54 private:
55  vtkExtractLevel(const vtkExtractLevel&) = delete;
56  void operator=(const vtkExtractLevel&) = delete;
57 
58  class vtkSet;
59  vtkSet* Levels;
60 };
61 
62 VTK_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.
@ info
Definition: vtkX3D.h:376
@ level
Definition: vtkX3D.h:395
@ port
Definition: vtkX3D.h:447