VTK  9.3.0
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);
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 
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
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.
static vtkExtractBlockUsingDataAssembly * New()
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.
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that groups datasets as a collection.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246