VTK  9.3.1
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 
38 VTK_ABI_NAMESPACE_BEGIN
39 class vtkDataAssembly;
41 
42 class VTKFILTERSEXTRACTION_EXPORT vtkExtractBlockUsingDataAssembly
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
61  bool AddSelector(const char* selector);
62  void ClearSelectors();
64 
69  void SetSelector(const char* selector);
70 
72 
75  int GetNumberOfSelectors() const;
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 
112 protected:
115 
116  int FillInputPortInformation(int port, vtkInformation* info) override;
119 
120 private:
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 
132 VTK_ABI_NAMESPACE_END
133 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkCompositeDataSet as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkCompositeDataSetAlgorithm * New()
Store zero or more vtkInformation instances.
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.
Composite dataset that groups datasets as a collection.