VTK  9.2.6
vtkExtractBlockUsingDataAssembly.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkExtractBlockUsingDataAssembly.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
43
44#ifndef vtkExtractBlockUsingDataAssembly_h
45#define vtkExtractBlockUsingDataAssembly_h
46
48#include "vtkFiltersExtractionModule.h" // For export macro
49
50class vtkDataAssembly;
52
53class VTKFILTERSEXTRACTION_EXPORT vtkExtractBlockUsingDataAssembly
55{
56public:
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
62
72 bool AddSelector(const char* selector);
75
80 void SetSelector(const char* selector);
81
83
87 const char* GetSelector(int index) const;
89
91
99 vtkSetStringMacro(AssemblyName);
100 vtkGetStringMacro(AssemblyName);
102
104
108 vtkSetMacro(SelectSubtrees, bool);
109 vtkGetMacro(SelectSubtrees, bool);
110 vtkBooleanMacro(SelectSubtrees, bool);
112
114
118 vtkSetMacro(PruneDataAssembly, bool);
119 vtkGetMacro(PruneDataAssembly, bool);
120 vtkBooleanMacro(PruneDataAssembly, bool);
122
123protected:
126
127 int FillInputPortInformation(int port, vtkInformation* info) override;
130
131private:
133 void operator=(const vtkExtractBlockUsingDataAssembly&) = delete;
134
135 class vtkInternals;
136 vtkInternals* Internals;
137
138 bool SelectSubtrees;
139 bool PruneDataAssembly;
140 char* AssemblyName;
141};
142
143#endif
hierarchical representation to use with vtkPartitionedDataSetCollection
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that groups datasets as a collection.