VTK  9.3.1
vtkPassSelectedArrays.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
23 #ifndef vtkPassSelectedArrays_h
24 #define vtkPassSelectedArrays_h
25 
26 #include "vtkDataObject.h" // for vtkDataObject::FieldAssociations
27 #include "vtkFiltersGeneralModule.h" // For export macro
29 #include "vtkSmartPointer.h" // for ivar
30 
31 VTK_ABI_NAMESPACE_BEGIN
33 
34 class VTKFILTERSGENERAL_EXPORT vtkPassSelectedArrays : public vtkPassInputTypeAlgorithm
35 {
36 public:
37  static vtkPassSelectedArrays* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetMacro(Enabled, bool);
47  vtkGetMacro(Enabled, bool);
48  vtkBooleanMacro(Enabled, bool);
50 
57  vtkDataArraySelection* GetArraySelection(int association);
58 
60 
65  {
66  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_POINTS);
67  }
69  {
70  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_CELLS);
71  }
73  {
74  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_NONE);
75  }
77  {
78  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_VERTICES);
79  }
81  {
82  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_EDGES);
83  }
85  {
86  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_ROWS);
87  }
89 
90 protected:
92  ~vtkPassSelectedArrays() override;
93 
96 
97 private:
99  void operator=(const vtkPassSelectedArrays&) = delete;
100 
101  bool Enabled;
103 };
104 
105 VTK_ABI_NAMESPACE_END
106 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
vtkDataArraySelection * GetPointDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
pass through chosen arrays
vtkDataArraySelection * GetEdgeDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
vtkDataArraySelection * GetVertexDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store on/off settings for data arrays, etc.
vtkDataArraySelection * GetCellDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataArraySelection * GetRowDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArraySelection * GetFieldDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()