VTK  9.1.0
vtkPassSelectedArrays.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPassSelectedArrays.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef vtkPassSelectedArrays_h
33 #define vtkPassSelectedArrays_h
34 
35 #include "vtkDataObject.h" // for vtkDataObject::FieldAssociations
36 #include "vtkFiltersGeneralModule.h" // For export macro
38 #include "vtkSmartPointer.h" // for ivar
39 
41 
42 class VTKFILTERSGENERAL_EXPORT vtkPassSelectedArrays : public vtkPassInputTypeAlgorithm
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
54  vtkSetMacro(Enabled, bool);
55  vtkGetMacro(Enabled, bool);
56  vtkBooleanMacro(Enabled, bool);
58 
66 
68 
73  {
74  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_POINTS);
75  }
77  {
78  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_CELLS);
79  }
81  {
82  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_NONE);
83  }
85  {
86  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_VERTICES);
87  }
89  {
90  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_EDGES);
91  }
93  {
94  return this->GetArraySelection(vtkDataObject::FIELD_ASSOCIATION_ROWS);
95  }
97 
98 protected:
101 
104 
105 private:
107  void operator=(const vtkPassSelectedArrays&) = delete;
108 
109  bool Enabled;
111 };
112 
113 #endif
Store on/off settings for data arrays for a vtkSource.
@ FIELD_ASSOCIATION_VERTICES
a simple class to control print indentation
Definition: vtkIndent.h:34
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:382
@ port
Definition: vtkX3D.h:453