24 #ifndef _GEMALUA_INTEGRATION_RULE_H_ 25 #define _GEMALUA_INTEGRATION_RULE_H_ 42 virtual const char*
typeName()
const {
return "integrationRule"; }
55 int ruleName (lua_State* L);
56 int numPoints (lua_State* L);
57 int integrationPoint(lua_State* L);
58 int numNaturalCoord (lua_State* L);
59 int degree (lua_State* L);
74 virtual const char*
typeName()
const {
return "borderIntegrationRule"; }
82 int numBorderCoord(lua_State* L);
83 int translatePoint(lua_State* L);
Declaration of the GmLuaObject class.
A proxy class to export GmBorderIntegrationRule methods to the Lua environment.
Definition: gmLuaIntegrationRule.h:68
const GmIntegrationRule * intRule() const
Returns the wrapped integration rule.
Definition: gmLuaIntegrationRule.h:52
Aux functions used by integration rule creation functions.
Definition: gmLuaIntegrationRule.h:90
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaIntegrationRule.h:79
int parseIntegrationRuleParams(lua_State *L, const char *name, GmCellType *cellType, int *P, int *Q, int *faceType, GmIntegrationRuleType *irType, int *rule1, int *rule2=NULL, int *rule3=NULL)
Parses the set of parameters used when creating a new integration rule.
Definition: gmLuaIntegrationRule.cpp:224
virtual void fillMetatable(lua_State *L, int index)
Prepares the object metatable for calling methods.
Definition: gmLuaIntegrationRule.cpp:62
bool _newRule
Does the object owns the integration rule?
Definition: gmLuaIntegrationRule.h:63
int pushIntegrationRule(lua_State *L, GmIntegrationRule *ir, GmCellType cellType, const GmLogCategory &logger)
Pushes on the Lua stack the given integration rule as either a plain rule or a border rule.
Definition: gmLuaIntegrationRule.cpp:310
virtual void fillMetatable(lua_State *L, int index)=0
Function called by populateMetatable() to fill the metatable with exported methods by derived classes...
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaMesh object.
Definition: gmLuaIntegrationRule.h:49
A proxy class to export GmIntegrationRule methods to the Lua environment.
Definition: gmLuaIntegrationRule.h:34
const GmIntegrationRule * _ir
The integration rule 'wrapped' by this proxy object.
Definition: gmLuaIntegrationRule.h:62
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaIntegrationRule.h:74
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 const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition: gmLuaIntegrationRule.h:42
A proxy class to export object methods to the Lua environment.
Definition: gmLuaObject.h:35
GmCellGeometry _geom
The geometry corresponding to this integration rule.
Definition: gmLuaIntegrationRule.h:85