VTK  9.7.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
32 class vtkCellGrid;
34 
35 class VTKFILTERSGENERAL_EXPORT vtkPassSelectedArrays : public vtkPassInputTypeAlgorithm
36 {
37 public:
38  static vtkPassSelectedArrays* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
47  vtkSetMacro(Enabled, bool);
48  vtkGetMacro(Enabled, bool);
49  vtkBooleanMacro(Enabled, bool);
51 
58  vtkDataArraySelection* GetArraySelection(int association);
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 
91 protected:
93  ~vtkPassSelectedArrays() override;
94 
97 
98  int HandleCellGridAttributes(vtkCellGrid* output);
99 
100 private:
102  void operator=(const vtkPassSelectedArrays&) = delete;
103 
104  bool Enabled;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #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.
Visualization data composed of cells of arbitrary type.
Definition: vtkCellGrid.h:48
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()