Itasca C++ Interface
ifaceweight.h
Go to the documentation of this file.
1 #pragma once
2 // iface.h
3 
9 #include "base/src/base.h"
10 #include "izone.h"
11 
12 namespace zone {
14 
19  class IFaceWeight {
20  public:
23  virtual DVect getVector(std::array<DVect,numGPperFace_> &vert) const=0;
25  virtual void set(const std::array<double,numGPperFace_> &w) = 0;
27  virtual double getWeight(uint32 i) const = 0;
28  };
29 
30 } // namespace zone
31 // EoF
One stop include for all objects defined as part of base interface.
Interface to face weight, used to define the location of a gridpoint in a given face.
Definition: ifaceweight.h:19
virtual double getWeight(uint32 i) const =0
Returns the weigth for a given vertex. Parameter by must be in the range 0 to numGPperFace_-1;.
virtual DVect getVector(std::array< DVect, numGPperFace_ > &vert) const =0
virtual void set(const std::array< double, numGPperFace_ > &w)=0
Set the four weights. Does not check is the sum of the weight is 1.0;.
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition: dim.h:150
Interface to provide access to a zone.