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);
237 int* interpType,
QVariant* interpParam,
int* searchMode,
double* searchDomain,
241 const GmLogCategory** logger,
int* searchMode,
double* searchDomain,
A proxy class to export GmGaussCloudToPointInterpolator and GmGaussCloudToPointMInterpolator methods ...
Definition gmLuaInterpolator.h:197
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition gmLuaInterpolator.h:219
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition gmLuaInterpolator.h:220
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition gmLuaInterpolator.h:209
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition gmLuaInterpolator.h:202
A proxy class to export GmGaussNeighborsToNodeInterpolator and GmGaussNeighborsToNodeMInterpolator me...
Definition gmLuaInterpolator.h:135
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition gmLuaInterpolator.h:140
bool _resultAc
Does the interpolator stores result accessors?
Definition gmLuaInterpolator.h:159
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition gmLuaInterpolator.h:147
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition gmLuaInterpolator.h:158
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition gmLuaInterpolator.h:157
A proxy class to export GmGaussToElementNodeInterpolator and GmGaussToElementNodeMInterpolator method...
Definition gmLuaInterpolator.h:105
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition gmLuaInterpolator.h:127
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition gmLuaInterpolator.h:128
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
A proxy class to export GmGaussToElementPointInterpolator and GmGaussToElementPointMInterpolator meth...
Definition gmLuaInterpolator.h:75
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition gmLuaInterpolator.h:80
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:97
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition gmLuaInterpolator.h:98
A proxy class to export GmNodeCloudToPointInterpolator and GmNodeCloudToPointMInterpolator methods to...
Definition gmLuaInterpolator.h:166
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition gmLuaInterpolator.h:178
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition gmLuaInterpolator.h:171
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition gmLuaInterpolator.h:188
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition gmLuaInterpolator.h:189
A proxy class to export GmNodeToCellPointInterpolator, GmNodeToCellPointMInterpolator,...
Definition gmLuaInterpolator.h:42
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition gmLuaInterpolator.h:47
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition gmLuaInterpolator.h:54
bool _resultAc
Does the interpolator stores result accessors?
Definition gmLuaInterpolator.h:67
GmInterpolator * _interp
The interpolator, owned by this proxy object.
Definition gmLuaInterpolator.h:64
bool _multi
Is the interpolator a multi attribute interpolator or for a single one?
Definition gmLuaInterpolator.h:66
bool _elementBased
Is the interpolator element based (true) or cell based (false)?
Definition gmLuaInterpolator.h:65
A proxy class to export object methods to the Lua environment.
Definition gmLuaObject.h:36
virtual QString toString() const
Default method used by the __tostring metamethod to capture the result of tostring() over an object.
Definition gmLuaObject.h:55
virtual void fillMetatable(lua_State *L, int index)=0
Function called by populateMetatable() to fill the metatable with exported methods by derived classes...
Declaration of the GmLuaObject class.
Aux functions used by several of the interpolator proxy classes.
Definition gmLuaInterpolator.h:226
void checkRuleSets(lua_State *L, const QVector< GmGaussAccessor * > &list, const GmLogCategory &logger, bool warn)
Overload for non constant accessors.
Definition gmLuaInterpolator.cpp:1863
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:1791
void parseResultAccessors(lua_State *L, int index, T *&resultAc, QVector< T * > &resultAcList, const V *valueAc, const QVector< 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:1668
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:1731
void parseValueAccessors(lua_State *L, int vIndex, int cIndex, const T *&valueAc, QVector< 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:1634
int pushResults(lua_State *L, const GmVector &result, const QVector< 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:1577