24 #ifndef _GEMALUA_INTERPOLATOR_H_ 25 #define _GEMALUA_INTERPOLATOR_H_ 47 virtual const char*
typeName()
const {
return "nodeToPointInterpolator"; }
61 int interpolate(lua_State* L);
80 virtual const char*
typeName()
const {
return "gaussToPointInterpolator"; }
94 int interpolate(lua_State* L);
110 virtual const char*
typeName()
const {
return "gaussToNodeInterpolator"; }
124 int interpolate(lua_State* L);
140 virtual const char*
typeName()
const {
return "gaussNeighborsToNodeInterpolator"; }
154 int interpolate(lua_State* L);
171 virtual const char*
typeName()
const {
return "nodeCloudToPointInterpolator"; }
185 int interpolate(lua_State* L);
202 virtual const char*
typeName()
const {
return "gaussCloudToPointInterpolator"; }
216 int interpolate(lua_State* L);
228 const GmLogCategory& logger,
bool resultsCanBeEmpty =
false);
234 const V* valueAc,
const QList<const V*>& valueAcList,
const char* acType);
237 int* interpType,
QVariant* interpParam,
int* searchMode,
double* searchDomain,
241 const GmLogCategory** logger,
int* searchMode,
double* searchDomain,
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaInterpolator.h:47
void parseCommonSplineParams(lua_State *L, bool nodeBased, int solverIndex, const char *fname, const GmLogCategory **logger, int *searchMode, double *searchDomain, GmSpatialIndex **spIndex, GmNumSolver **solver)
Parses the set of common parameters used by all types of LuaSplineMeshXxxToMeshXxxInterpolation() imp...
Definition: gmLuaInterpolator.cpp:1643
Declaration of the GmLuaObject class.
A proxy class to export GmNodeToCellPointInterpolator, GmNodeToCellPointMInterpolator,...
Definition: gmLuaInterpolator.h:41
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaInterpolator.h:54
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition: gmLuaInterpolator.h:128
void checkRuleSets(lua_State *L, const QList< GmGaussAccessor * > &list, const GmLogCategory &logger, bool warn)
Overload for non constant accessors.
Definition: gmLuaInterpolator.cpp:1715
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition: gmLuaInterpolator.h:64
int pushResults(lua_State *L, const GmVector &result, const QList< GmVector > &resultList, const GmLogCategory &logger, bool resultsCanBeEmpty=false)
Auxiliary function that given the results filing either result or resultLIst, pushes in the lua stack...
Definition: gmLuaInterpolator.cpp:1429
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition: gmLuaInterpolator.h:158
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition: gmLuaInterpolator.h:66
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition: gmLuaInterpolator.h:189
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaInterpolator.h:80
A proxy class to export GmGaussCloudToPointInterpolator and GmGaussCloudToPointMInterpolator methods ...
Definition: gmLuaInterpolator.h:196
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition: gmLuaInterpolator.h:219
A proxy class to export GmNodeCloudToPointInterpolator and GmNodeCloudToPointMInterpolator methods to...
Definition: gmLuaInterpolator.h:165
bool _resultAc
Does the interpolator stores result accessors?
Definition: gmLuaInterpolator.h:67
virtual void fillMetatable(lua_State *L, int index)=0
Function called by populateMetatable() to fill the metatable with exported methods by derived classes...
void parseValueAccessors(lua_State *L, int vIndex, int cIndex, const T *&valueAc, QList< const T * > &valueAcList, const GmValueAccessor *&coordAc, const char *acType)
Loads from the Lua stack the set of value accessors and the coordinate accessor, filling either value...
Definition: gmLuaInterpolator.cpp:1486
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaInterpolator.h:209
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition: gmLuaInterpolator.h:220
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition: gmLuaInterpolator.h:188
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition: gmLuaInterpolator.h:97
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaInterpolator.h:140
A proxy class to export GmGaussNeighborsToNodeInterpolator and GmGaussNeighborsToNodeMInterpolator me...
Definition: gmLuaInterpolator.h:134
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaInterpolator.h:202
bool _elementBased
Is the interpolator element based (true) or cell based (false)?
Definition: gmLuaInterpolator.h:65
Aux functions used by several of the interpolator proxy classes.
Definition: gmLuaInterpolator.h:225
virtual QString toString() const
Default method used by the __tostring metamethod to capture the result of tostring() over an object.
Definition: gmLuaObject.h:55
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition: gmLuaInterpolator.h:157
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaInterpolator.h:110
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaInterpolator.h:117
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaInterpolator.h:147
bool _resultAc
Does the interpolator stores result accessors?
Definition: gmLuaInterpolator.h:159
A proxy class to export object methods to the Lua environment.
Definition: gmLuaObject.h:35
void parseResultAccessors(lua_State *L, int index, T *&resultAc, QList< T * > &resultAcList, const V *valueAc, const QList< const V * > &valueAcList, const char *acType)
Loads from the Lua stack the set of result accessors, if any, filling either resultAc or resultAcList...
Definition: gmLuaInterpolator.cpp:1520
A proxy class to export GmGaussToElementNodeInterpolator and GmGaussToElementNodeMInterpolator method...
Definition: gmLuaInterpolator.h:104
A proxy class to export GmGaussToElementPointInterpolator and GmGaussToElementPointMInterpolator meth...
Definition: gmLuaInterpolator.h:74
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaInterpolator.h:87
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition: gmLuaInterpolator.h:127
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaInterpolator.h:171
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition: gmLuaInterpolator.h:98
void parseCommonParams(lua_State *L, bool nodeBased, const char *fname, const GmLogCategory **logger, int *interpType, QVariant *interpParam, int *searchMode, double *searchDomain, GmSpatialIndex **spIndex)
Parses the set of common parameters used by all types of LuaMeshXxxToMeshXxxInterpolation() implement...
Definition: gmLuaInterpolator.cpp:1583
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaInterpolator.h:178