Go to the documentation of this file.
10 #ifndef vtk_m_filter_FieldSelection_h
11 #define vtk_m_filter_FieldSelection_h
16 #include <vtkm/filter/vtkm_filter_core_export.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
VTKM_CONT void AddField(const std::string &fieldName, Mode mode)
Definition: FieldSelection.h:133
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT void AddField(const vtkm::cont::Field &inputField, Mode mode)
Definition: FieldSelection.h:121
VTKM_CONT void AddField(const vtkm::cont::Field &inputField)
Definition: FieldSelection.h:116
A FieldSelection stores information about fields to map for input dataset to output when a filter is ...
Definition: FieldSelection.h:31
Association
Definition: cont/Field.h:34
VTKM_CONT Association GetAssociation() const
Definition: cont/Field.h:85
VTKM_CONT bool HasField(const vtkm::cont::Field &inputField) const
Returns true if the input field has been added to this selection.
Definition: FieldSelection.h:161
VTKM_CONT Mode GetFieldMode(const vtkm::cont::Field &inputField) const
Definition: FieldSelection.h:147
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: cont/Field.h:31
#define VTKM_CONT
Definition: ExportMacros.h:57
std::unique_ptr< InternalStruct > Internals
Definition: FieldSelection.h:196
VTKM_CONT void AddField(const std::string &fieldName, vtkm::cont::Field::Association association=vtkm::cont::Field::Association::Any)
Definition: FieldSelection.h:127
const VTKM_CONT std::string & GetName() const
Definition: cont/Field.h:84
VTKM_CONT 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
VTKM_CONT bool HasField(const std::string &name, vtkm::cont::Field::Association association=vtkm::cont::Field::Association::Any) const
Definition: FieldSelection.h:166
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and ...
Definition: Pair.h:29
Mode
Definition: FieldSelection.h:34