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 
9 namespace itasca {
10  class Archive2;
11  class IParse;
12 }
13 
14 namespace zone {
15  using itasca::Archive2;
16  using itasca::IParse;
17  class IGp;
18  class IZoneData;
19 
23  public:
25  enum Method {
29 #ifdef THREED
30  PolyMethod
31 #endif
32  };
34  virtual const QObject *getQObject() const=0;
36  virtual QObject * getQObject()=0;
38 
40  virtual int getMethod() const=0;
41  virtual bool getMethodActive() const=0;
43  virtual QStringList getMethodKeywords() const=0;
45  virtual QStringList getMethodNames() const=0;
47  virtual double getRadRatio() const=0;
49  virtual double getPower() const=0;
51  virtual double getTolerance() const=0;
53 
54  virtual bool getRadRatioActive() const=0;
56 
57  virtual bool getPowerActive() const=0;
59 
60  virtual bool getToleranceActive() const=0;
62 
66  virtual double getGpValue(const IGp *gp,const IZoneData *zoneData,quint32 thread=0,quint32 block=0) const=0;
67 
69  virtual void setHideMechNull(bool b)=0;
71  virtual void setHideFluidNull(bool b)=0;
73  virtual void setHideThermNull(bool b)=0;
75  virtual bool getHideMechNull() const = 0;
77  virtual bool getHideFluidNull() const = 0;
79  virtual bool getHideThermNull() const = 0;
80 
82 
85  virtual void initialize(const IZoneData *zoneData)=0;
86  virtual void reset()=0;
88  virtual void destroy()=0;
89 
90  virtual void save(Archive2 &a) const=0;
91  virtual bool restore(Archive2 &a,quint64 label)=0;
92  virtual bool parse(IParse &par)=0;
93  virtual QStringList getCommandSwitches() const=0;
94 
95  // public slots
96  virtual void setActive(bool active)=0;
98 
102  virtual void setMethod(int method)=0;
104  virtual void setRadRatio(const double &radRatio)=0;
106  virtual void setPower(const double &power)=0;
108  virtual void setTolerance(const double &tol)=0;
109 
110  // signals
112  virtual void methodChanged(int method)=0;
114  virtual void radRatioChanged(const double &radRatio)=0;
116  virtual void powerChanged(const double &power)=0;
118  virtual void toleranceChanged(const double &tol)=0;
119  virtual void methodActiveChanged(bool b)=0;
121  virtual void radRatioActiveChanged(bool b)=0;
123  virtual void powerActiveChanged(bool b)=0;
125  virtual void toleranceActiveChanged(bool b)=0;
126  };
127 } // namespace zone
128 // EoF
Definition: izoneinterpolate.h:28
namespace Itasca
Definition: basememory.cpp:9
Method
Interpolation method enumeration.
Definition: izoneinterpolate.h:25
Definition: izoneinterpolate.h:27
virtual bool getPowerActive() const =0
Returns true if the power parameter is used during the computation.
virtual void setTolerance(const double &tol)=0
Sets the tolerance parameter to be used by the Polynomial Extrapolation method.
virtual void setPower(const double &power)=0
Sets the power parameter to be used by the Inverse Distance Weighting method.
virtual void radRatioActiveChanged(bool b)=0
Signal emitted when the radii ratio parameter becomes active.
Definition: izoneinterpolate.h:26
virtual QStringList getMethodNames() const =0
Returns a QStringList comprising names corresponding to all interpolation methods,...
virtual void powerChanged(const double &power)=0
Signal emitted when the power parameter is changed.
virtual double getRadRatio() const =0
Returns the radii ratio used by the Inverse Distance Weighting method.
virtual void toleranceChanged(const double &tol)=0
Signal emitted when the tolerance parameter is changed.
virtual bool getRadRatioActive() const =0
Returns true if the radii ratio parameter is used during the computation.
virtual void toleranceActiveChanged(bool b)=0
Signal emitted when the tolerance parameter becomes active.
virtual bool getHideThermNull() const =0
Returns true if the interplation system is ignoring zones with a null thermal model.
virtual void initialize(const IZoneData *zoneData)=0
Initializes the interpolation computation.
virtual double getGpValue(const IGp *gp, const IZoneData *zoneData, quint32 thread=0, quint32 block=0) const =0
Returns the interpolated field value at gridpoint gp.
virtual void setHideFluidNull(bool b)=0
Indicates that the interpolation system should ingnore zones with null fluid model (default is false)
virtual const QObject * getQObject() const =0
Returns a const pointer to a QObject representing this object.
Access to zone scalar data.
Definition: izonedata.h:24
virtual void setHideThermNull(bool b)=0
Indicates that the interpolation system should ingnore zones with null thermal model (default is fals...
virtual void setHideMechNull(bool b)=0
Indicates that the interpolation system should ingnore zones with null mechanical model (default is t...
virtual bool getToleranceActive() const =0
Returns true if the tolerance parameter is used during the computation.
virtual QStringList getMethodKeywords() const =0
Returns a QStringList comprising the keywords corresponding to all interpolation methods,...
virtual void destroy()=0
Destroys the current instanciation.
virtual bool getHideFluidNull() const =0
Returns true if the interplation system is ignoring zones with a null fluid model.
Interface for accessing the zone interpolation class.
Definition: izoneinterpolate.h:22
virtual void radRatioChanged(const double &radRatio)=0
Signal emitted when the radii ratio parameter is changed.
Interface to provide access to a gridpoint.
Definition: igp.h:64
virtual void powerActiveChanged(bool b)=0
Signal emitted when the power parameter becomes active.
virtual void setMethod(int method)=0
Sets the current interpolation method.
virtual int getMethod() const =0
Returns an integer corresponding to the active interpolation method.
virtual double getPower() const =0
Returns the power used by the Inverse Distance Weighting method.
virtual double getTolerance() const =0
Returns the tolerance used to assess quantity gradient by the Polynomial Extrapolation method.
Interface to the main command processing class.
Definition: iparse.h:50
virtual void setRadRatio(const double &radRatio)=0
Sets the radii ratio parameter to be used by the Inverse Distance Weighting method.
virtual bool getHideMechNull() const =0
Returns true if the interplation system is ignoring zones with a null mechanical model.
virtual void methodChanged(int method)=0
Signal emitted when the interpolation method is changed.