VTK  9.3.20241007
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
32class vtkCellGrid;
34
35class VTKFILTERSGENERAL_EXPORT vtkPassSelectedArrays : public vtkPassInputTypeAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
47 vtkSetMacro(Enabled, bool);
48 vtkGetMacro(Enabled, bool);
49 vtkBooleanMacro(Enabled, bool);
51
59
61
66 {
67 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_POINTS);
68 }
70 {
71 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_CELLS);
72 }
74 {
75 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_NONE);
76 }
78 {
79 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_VERTICES);
80 }
82 {
83 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_EDGES);
84 }
86 {
87 return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_ROWS);
88 }
90
91protected:
94
95 int FillInputPortInformation(int port, vtkInformation* info) override;
97
99
100private:
102 void operator=(const vtkPassSelectedArrays&) = delete;
103
104 bool Enabled;
106};
107
108VTK_ABI_NAMESPACE_END
109#endif
Visualization data composed of cells of arbitrary type.
Definition vtkCellGrid.h:49
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()
int HandleCellGridAttributes(vtkCellGrid *output)
vtkDataArraySelection * GetEdgeDataArraySelection()
Convenience methods that call GetArraySelection with corresponding association type.
Hold a reference to a vtkObjectBase instance.