VTK  9.4.20250131
vtkExtractBlockUsingDataAssembly.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
32#ifndef vtkExtractBlockUsingDataAssembly_h
33#define vtkExtractBlockUsingDataAssembly_h
34
36#include "vtkFiltersExtractionModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkDataAssembly;
41
42class VTKFILTERSEXTRACTION_EXPORT vtkExtractBlockUsingDataAssembly
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
61 bool AddSelector(const char* selector);
64
69 void SetSelector(const char* selector);
70
72
76 const char* GetSelector(int index) const;
78
80
88 vtkSetStringMacro(AssemblyName);
89 vtkGetStringMacro(AssemblyName);
91
93
97 vtkSetMacro(SelectSubtrees, bool);
98 vtkGetMacro(SelectSubtrees, bool);
99 vtkBooleanMacro(SelectSubtrees, bool);
101
103
107 vtkSetMacro(PruneDataAssembly, bool);
108 vtkGetMacro(PruneDataAssembly, bool);
109 vtkBooleanMacro(PruneDataAssembly, bool);
111
112protected:
115
116 int FillInputPortInformation(int port, vtkInformation* info) override;
119
120private:
122 void operator=(const vtkExtractBlockUsingDataAssembly&) = delete;
123
124 class vtkInternals;
125 vtkInternals* Internals;
126
127 bool SelectSubtrees;
128 bool PruneDataAssembly;
129 char* AssemblyName;
130};
131
132VTK_ABI_NAMESPACE_END
133#endif
Superclass for algorithms that produce only vtkCompositeDataSet as output.
hierarchical representation to use with vtkPartitionedDataSetCollection
extract blocks from certain composite datasets
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ClearSelectors()
API to set selectors.
bool AddSelector(const char *selector)
API to set selectors.
void SetSelector(const char *selector)
Convenience method to set a single selector.
const char * GetSelector(int index) const
API to access selectors.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int GetNumberOfSelectors() const
API to access selectors.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkExtractBlockUsingDataAssembly * New()
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that groups datasets as a collection.