Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
izoneinterpolate.h
Go to the documentation of this file.
1 // izoneinterpolate.h
2 #pragma once
3 
4 #include "iblockdef.h"
5 
11 namespace itasca {
12  class Archive2;
13  class IParse;
14 }
15 
16 namespace block
17 {
18  using itasca::Archive2;
19  using itasca::IParse;
20  class IZoneData;
21  class IVertexThing;
22 
26  {
27  public:
29  enum Method {
34  };
36  virtual const QObject *getQObject() const=0;
38  virtual QObject * getQObject()=0;
40 
42  virtual int getMethod() const=0;
43  virtual bool getMethodActive() const=0;
45  virtual QStringList getMethodKeywords() const=0;
47  virtual QStringList getMethodNames() const=0;
49  virtual double getRadRatio() const=0;
51  virtual double getPower() const=0;
53  virtual double getTolerance() const=0;
55 
56  virtual bool getRadRatioActive() const=0;
58 
59  virtual bool getPowerActive() const=0;
61 
62  virtual bool getToleranceActive() const=0;
63 
65 
69  virtual double getGpValue(const IVertexThing *gp,const IZoneData *zoneData) const=0;
70  virtual void setHideNull(bool b)=0;
71  virtual bool getHideNull() const =0;
72 
74 
77  virtual void initialize(const IZoneData *zoneData)=0;
78  virtual void reset()=0;
80  virtual void destroy()=0;
81 
82  virtual void save(Archive2 &a) const=0;
83  virtual bool restore(Archive2 &a,quint64 label)=0;
84  virtual bool parse(IParse &par)=0;
85  virtual QStringList getCommandSwitches() const=0;
86 
87  // public slots
88  virtual void setActive(bool active)=0;
90 
94  virtual void setMethod(int method)=0;
96  virtual void setRadRatio(const double &radRatio)=0;
98  virtual void setPower(const double &power)=0;
100  virtual void setTolerance(const double &tol)=0;
101 
102  // signals
104  virtual void methodChanged(int method)=0;
106  virtual void radRatioChanged(const double &radRatio)=0;
108  virtual void powerChanged(const double &power)=0;
110  virtual void toleranceChanged(const double &tol)=0;
111  virtual void methodActiveChanged(bool b)=0;
113  virtual void radRatioActiveChanged(bool b)=0;
115  virtual void powerActiveChanged(bool b)=0;
117  virtual void toleranceActiveChanged(bool b)=0;
118  };
119 } // namespace block
120 // EoF
virtual double getPower() const =0
Returns the power used by the Inverse Distance Weighting method.
virtual void initialize(const IZoneData *zoneData)=0
Initializes the interpolation computation.
Definition: izoneinterpolate.h:32
virtual bool getRadRatioActive() const =0
Returns true if the radii ratio parameter is used during the computation.
virtual const QObject * getQObject() const =0
Returns a const pointer to a QObject representing this object.
namespace Itasca
Definition: basememory.cpp:9
virtual void radRatioActiveChanged(bool b)=0
Signal emitted when the radii ratio parameter becomes active.
virtual void radRatioChanged(const double &radRatio)=0
Signal emitted when the radii ratio parameter is changed.
virtual double getTolerance() const =0
Returns the tolerance used to assess quantity gradient by the Polynomial Extrapolation method.
Fortran to C++ type declarations.
Definition: izoneinterpolate.h:30
virtual void setRadRatio(const double &radRatio)=0
Sets the radii ratio parameter to be used by the Inverse Distance Weighting method.
virtual QStringList getMethodKeywords() const =0
Returns a QStringList comprising the keywords corresponding to all interpolation methods,...
virtual double getRadRatio() const =0
Returns the radii ratio used by the Inverse Distance Weighting method.
virtual bool getPowerActive() const =0
Returns true if the power parameter is used during the computation.
virtual void powerChanged(const double &power)=0
Signal emitted when the power parameter is changed.
Method
Interpolation method enumeration.
Definition: izoneinterpolate.h:29
virtual void toleranceChanged(const double &tol)=0
Signal emitted when the tolerance parameter is changed.
virtual void setPower(const double &power)=0
Sets the power parameter to be used by the Inverse Distance Weighting method.
virtual void destroy()=0
Destroys the current instanciation.
virtual bool getToleranceActive() const =0
Returns true if the tolerance parameter is used during the computation.
Definition: izoneinterpolate.h:33
virtual double getGpValue(const IVertexThing *gp, const IZoneData *zoneData) const =0
Returns the interpolated field value at gridpoint gp.
virtual void setMethod(int method)=0
Sets the current interpolation method.
This is the interface for VertexThing. This will be stored in a container and the ID will be stored i...
Definition: ivertexthing.h:28
Interface for accessing the zone interpolation class.
Definition: izoneinterpolate.h:25
virtual void methodChanged(int method)=0
Signal emitted when the interpolation method is changed.
virtual void setTolerance(const double &tol)=0
Sets the tolerance parameter to be used by the Polynomial Extrapolation method.
virtual void powerActiveChanged(bool b)=0
Signal emitted when the power parameter becomes active.
virtual int getMethod() const =0
Returns an integer corresponding to the active interpolation method.
virtual void toleranceActiveChanged(bool b)=0
Signal emitted when the tolerance parameter becomes active.
Interface to the main command processing class.
Definition: iparse.h:50
Access to zone scalar data in a generic way. This class maintains a list of scalar data (sxx,...
Definition: izonedata.h:25
Definition: izoneinterpolate.h:31
virtual QStringList getMethodNames() const =0
Returns a QStringList comprising names corresponding to all interpolation methods,...