VTK-m  2.2
CompositeVectors.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_filter_field_transform_CompositeVectors_h
11 #define vtk_m_filter_field_transform_CompositeVectors_h
12 
13 #include <vtkm/filter/Filter.h>
15 
16 namespace vtkm
17 {
18 namespace filter
19 {
20 namespace field_transform
21 {
22 
34 {
35 
36 public:
37  VTKM_CONT
38  CompositeVectors() { this->SetOutputFieldName("CompositedField"); };
39 
41  VTKM_CONT void SetFieldNameList(
42  const std::vector<std::string>& fieldNameList,
44 
48  VTKM_CONT vtkm::IdComponent GetNumberOfFields() const;
49 
50 private:
51  vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
52 };
53 } // namespace field_transform
54 } // namespace vtkm::filter
55 } // namespace vtkm
56 
57 #endif //vtk_m_filter_field_transform_CompositeVectors_h
vtkm::filter::field_transform::CompositeVectors
Combine multiple scalar fields into a single vector field.
Definition: CompositeVectors.h:33
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::IdComponent
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
vtkm::filter::field_transform::CompositeVectors::CompositeVectors
CompositeVectors()
Definition: CompositeVectors.h:38
vtkm::cont::Field::Association
Association
Identifies what elements of a data set a field is associated with.
Definition: Field.h:38
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm_filter_field_transform_export.h
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
vtkm::cont::Field::Association::Any
@ Any
Any field regardless of the association.
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_FILTER_FIELD_TRANSFORM_EXPORT
#define VTKM_FILTER_FIELD_TRANSFORM_EXPORT
Definition: vtkm_filter_field_transform_export.h:44
Filter.h