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
vtkDataAssembly
hierarchical representation to use with vtkPartitionedDataSetCollection
Definition: vtkDataAssembly.h:131
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkExtractBlockUsingDataAssembly::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractBlockUsingDataAssembly::ClearSelectors
void ClearSelectors()
API to set selectors.
vtkExtractBlockUsingDataAssembly::SetSelector
void SetSelector(const char *selector)
Convenience method to set a single selector.
vtkExtractBlockUsingDataAssembly::AddSelector
bool AddSelector(const char *selector)
API to set selectors.
vtkExtractBlockUsingDataAssembly
extract blocks from certain composite datasets
Definition: vtkExtractBlockUsingDataAssembly.h:52
vtkCompositeDataSetAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkCompositeDataSetAlgorithm
Superclass for algorithms that produce only vtkCompositeDataSet as output.
Definition: vtkCompositeDataSetAlgorithm.h:33
vtkExtractBlockUsingDataAssembly::~vtkExtractBlockUsingDataAssembly
~vtkExtractBlockUsingDataAssembly() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkExtractBlockUsingDataAssembly::RequestDataObject
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractBlockUsingDataAssembly::GetSelector
const char * GetSelector(int index) const
API to access selectors.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkExtractBlockUsingDataAssembly::New
static vtkExtractBlockUsingDataAssembly * New()
vtkExtractBlockUsingDataAssembly::GetNumberOfSelectors
int GetNumberOfSelectors() const
API to access selectors.
vtkExtractBlockUsingDataAssembly::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkPartitionedDataSetCollection
Composite dataset that groups datasets as a collection.
Definition: vtkPartitionedDataSetCollection.h:38
vtkX3D::index
@ index
Definition: vtkX3D.h:252
vtkExtractBlockUsingDataAssembly::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractBlockUsingDataAssembly::vtkExtractBlockUsingDataAssembly
vtkExtractBlockUsingDataAssembly()