VTK  9.3.20240424
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
31VTK_ABI_NAMESPACE_BEGIN
33
34class VTKFILTERSGENERAL_EXPORT vtkPassSelectedArrays : public vtkPassInputTypeAlgorithm
35{
36public:
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
90protected:
93
94 int FillInputPortInformation(int port, vtkInformation* info) override;
96
97private:
99 void operator=(const vtkPassSelectedArrays&) = delete;
100
101 bool Enabled;
103};
104
105VTK_ABI_NAMESPACE_END
106#endif
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Definition vtkIndent.h:108
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
vtkDataArraySelection * GetFieldDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
vtkDataArraySelection * GetCellDataArraySelection()
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 * GetPointDataArraySelection()
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 * GetVertexDataArraySelection()
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 * 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.
static vtkPassSelectedArrays * New()
vtkDataArraySelection * GetEdgeDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
Hold a reference to a vtkObjectBase instance.