Go to the documentation of this file.
10 #ifndef vtk_m_filter_FieldSelection_h
11 #define vtk_m_filter_FieldSelection_h
18 #include <initializer_list>
62 Mode mode = Mode::Select);
79 std::initializer_list<std::pair<std::string, vtkm::cont::Field::Association>> fields,
80 Mode mode = Mode::Select);
92 Mode mode = Mode::Select);
110 const std::string& name,
130 this->AddField(fieldName, association, this->GetMode());
138 VTKM_CONT void AddField(
const std::string& fieldName,
153 const std::string& fieldName,
167 const std::string& name,
170 return (this->GetFieldMode(name, association) != Mode::None);
196 struct InternalStruct;
197 std::unique_ptr<InternalStruct>
Internals;
203 #endif // vtk_m_filter_FieldSelection_h
Groups connected points that have the same field value.
Definition: Atomic.h:19
A FieldSelection stores information about fields to map for input dataset to output when a filter is ...
Definition: FieldSelection.h:31
Association
Identifies what elements of a data set a field is associated with.
Definition: Field.h:38
bool HasField(const vtkm::cont::Field &inputField) const
Returns true if the input field has been added to this selection.
Definition: FieldSelection.h:161
void AddField(const vtkm::cont::Field &inputField)
Definition: FieldSelection.h:116
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: Field.h:31
#define VTKM_FILTER_CORE_EXPORT
Definition: vtkm_filter_core_export.h:44
@ Any
Any field regardless of the association.
bool IsFieldSelected(const vtkm::cont::Field &inputField) const
Returns true if the input field should be mapped to the output dataset.
Definition: FieldSelection.h:104
#define VTKM_CONT
Definition: ExportMacros.h:57
std::unique_ptr< InternalStruct > Internals
Definition: FieldSelection.h:196
const std::string & GetName() const
Return the name of the field.
Definition: Field.h:143
bool HasField(const std::string &name, vtkm::cont::Field::Association association=vtkm::cont::Field::Association::Any) const
Definition: FieldSelection.h:166
void AddField(const std::string &fieldName, vtkm::cont::Field::Association association=vtkm::cont::Field::Association::Any)
Definition: FieldSelection.h:127
Mode GetFieldMode(const vtkm::cont::Field &inputField) const
Definition: FieldSelection.h:147
void AddField(const std::string &fieldName, Mode mode)
Definition: FieldSelection.h:133
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and ...
Definition: Pair.h:29
void AddField(const vtkm::cont::Field &inputField, Mode mode)
Definition: FieldSelection.h:121
Association GetAssociation() const
Return the association of the field.
Definition: Field.h:145
Mode
Definition: FieldSelection.h:34