Go to the documentation of this file.
19 #ifndef viskores_filter_vector_analysis_DotProduct_h
20 #define viskores_filter_vector_analysis_DotProduct_h
29 namespace vector_analysis
51 const std::string& name,
54 this->SetActiveField(name, association);
60 return this->GetActiveFieldName();
65 return this->GetActiveFieldAssociation();
71 this->SetUseCoordinateSystemAsField(flag);
76 return this->GetUseCoordinateSystemAsField();
82 this->SetActiveCoordinateSystem(coord_idx);
87 return this->GetActiveCoordinateSystemIndex();
97 const std::string& name,
100 this->SetActiveField(1, name, association);
106 return this->GetActiveFieldName(1);
111 return this->GetActiveFieldAssociation(1);
117 this->SetUseCoordinateSystemAsField(1, flag);
122 return this->GetUseCoordinateSystemAsField(1);
128 this->SetActiveCoordinateSystem(1, index);
133 return this->GetActiveCoordinateSystemIndex(1);
144 #endif // viskores_filter_vector_analysis_DotProduct_h
void SetPrimaryCoordinateSystem(viskores::Id coord_idx)
Specify the primary field to operate on.
Definition: DotProduct.h:80
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
Association
Identifies what elements of a data set a field is associated with.
Definition: Field.h:46
@ Any
Any field regardless of the association.
const std::string & GetPrimaryFieldName() const
Specify the primary field to operate on.
Definition: DotProduct.h:58
Base class for all filters.
Definition: Filter.h:171
void SetSecondaryCoordinateSystem(viskores::Id index)
Specify the secondary field to operate on.
Definition: DotProduct.h:126
viskores::Id GetSecondaryCoordinateSystemIndex() const
Specify the secondary field to operate on.
Definition: DotProduct.h:131
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
bool GetUseCoordinateSystemAsSecondaryField() const
Specify the secondary field to operate on.
Definition: DotProduct.h:120
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::cont::Field::Association GetSecondaryFieldAssociation() const
Specify the secondary field to operate on.
Definition: DotProduct.h:109
void SetUseCoordinateSystemAsPrimaryField(bool flag)
Specify the primary field to operate on.
Definition: DotProduct.h:69
bool GetUseCoordinateSystemAsPrimaryField() const
Specify the primary field to operate on.
Definition: DotProduct.h:74
Compute the dot product of vector fields.
Definition: DotProduct.h:39
const std::string & GetSecondaryFieldName() const
Specify the secondary field to operate on.
Definition: DotProduct.h:104
void SetPrimaryField(const std::string &name, viskores::cont::Field::Association association=viskores::cont::Field::Association::Any)
Specify the primary field to operate on.
Definition: DotProduct.h:50
viskores::cont::Field::Association GetPrimaryFieldAssociation() const
Specify the primary field to operate on.
Definition: DotProduct.h:63
viskores::Id GetPrimaryCoordinateSystemIndex() const
Specify the primary field to operate on.
Definition: DotProduct.h:85
void SetUseCoordinateSystemAsSecondaryField(bool flag)
Specify the secondary field to operate on.
Definition: DotProduct.h:115
void SetSecondaryField(const std::string &name, viskores::cont::Field::Association association=viskores::cont::Field::Association::Any)
Specify the secondary field to operate on.
Definition: DotProduct.h:96