VTK  9.3.0
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:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetMacro(Enabled, bool);
47  vtkGetMacro(Enabled, bool);
48  vtkBooleanMacro(Enabled, bool);
50 
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:
93 
96 
97 private:
99  void operator=(const vtkPassSelectedArrays&) = delete;
100 
101  bool Enabled;
103 };
104 
105 VTK_ABI_NAMESPACE_END
106 #endif
Store on/off settings for data arrays, etc.
@ FIELD_ASSOCIATION_VERTICES
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
pass through chosen arrays
static vtkPassSelectedArrays * New()
vtkDataArraySelection * GetPointDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkDataArraySelection * GetEdgeDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
~vtkPassSelectedArrays() override
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.
vtkDataArraySelection * GetFieldDataArraySelection()
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 * GetCellDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
vtkDataArraySelection * GetArraySelection(int association)
Returns the vtkDataArraySelection instance associated with a particular array association type (vtkDa...
vtkDataArraySelection * GetVertexDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447