VTK  9.1.0
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 =========================================================================*/
41 #ifndef vtkExtractBlockUsingDataAssembly_h
42 #define vtkExtractBlockUsingDataAssembly_h
43 
45 #include "vtkFiltersExtractionModule.h" // For export macro
46 
47 class vtkDataAssembly;
49 
50 class VTKFILTERSEXTRACTION_EXPORT vtkExtractBlockUsingDataAssembly
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
69  bool AddSelector(const char* selector);
72 
77  void SetSelector(const char* selector);
78 
80 
83  int GetNumberOfSelectors() const;
84  const char* GetSelector(int index) const;
86 
88 
96  vtkSetStringMacro(AssemblyName);
97  vtkGetStringMacro(AssemblyName);
99 
101 
105  vtkSetMacro(SelectSubtrees, bool);
106  vtkGetMacro(SelectSubtrees, bool);
107  vtkBooleanMacro(SelectSubtrees, bool);
109 
111 
115  vtkSetMacro(PruneDataAssembly, bool);
116  vtkGetMacro(PruneDataAssembly, bool);
117  vtkBooleanMacro(PruneDataAssembly, bool);
119 
120 protected:
123 
127 
128 private:
130  void operator=(const vtkExtractBlockUsingDataAssembly&) = delete;
131 
132  class vtkInternals;
133  vtkInternals* Internals;
134 
135  bool SelectSubtrees;
136  bool PruneDataAssembly;
137  char* AssemblyName;
138 };
139 
140 #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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that groups datasets as a collection.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ index
Definition: vtkX3D.h:252