Viskores  1.0
CompositeVectors.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_filter_field_transform_CompositeVectors_h
19 #define viskores_filter_field_transform_CompositeVectors_h
20 
21 #include <viskores/filter/Filter.h>
23 
24 namespace viskores
25 {
26 namespace filter
27 {
28 namespace field_transform
29 {
30 
41 class VISKORES_FILTER_FIELD_TRANSFORM_EXPORT CompositeVectors : public viskores::filter::Filter
42 {
43 
44 public:
46  CompositeVectors() { this->SetOutputFieldName("CompositedField"); };
47 
49  VISKORES_CONT void SetFieldNameList(
50  const std::vector<std::string>& fieldNameList,
52 
56  VISKORES_CONT viskores::IdComponent GetNumberOfFields() const;
57 
58 private:
59  viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& input) override;
60 };
61 } // namespace field_transform
62 } // namespace viskores::filter
63 } // namespace viskores
64 
65 #endif //viskores_filter_field_transform_CompositeVectors_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::field_transform::CompositeVectors::CompositeVectors
CompositeVectors()
Definition: CompositeVectors.h:46
viskores::cont::Field::Association
Association
Identifies what elements of a data set a field is associated with.
Definition: Field.h:46
viskores::cont::Field::Association::Any
@ Any
Any field regardless of the association.
viskores::filter::Filter
Base class for all filters.
Definition: Filter.h:171
viskores::IdComponent
viskores::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:202
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::filter::field_transform::CompositeVectors
Combine multiple scalar fields into a single vector field.
Definition: CompositeVectors.h:41
viskores_filter_field_transform_export.h
Filter.h