![]() |
GemaLuaCoreLib
The GeMA Lua Core library
|
A proxy class to export GmContactBoundaryCondition methods to the Lua environment. More...
#include <gmLuaBoundaryCondition.h>
Public Member Functions | |
GmLuaContactBoundaryCondition (GmContactBoundaryCondition *bc, const GmLogCategory &logger) | |
virtual const char * | typeName () const |
Returns the object type as will be stored in the object metatable. | |
virtual QString | toString () const |
Default method used by the __tostring metamethod to capture the result of tostring() over an object. | |
virtual void | fillMetatable (lua_State *L, int index) |
Prepares the object metatable for calling methods. | |
virtual void * | getClassMetatableID () |
Returns an unique identifier to identify an user object as a GmLuaMesh object. | |
GmContactBoundaryCondition * | cbc () const |
Returns the associated contact boundary condition object. | |
![]() | |
virtual | ~GmLuaBoundaryConditionBase () |
Destructor. | |
![]() | |
virtual | ~GmLuaObject () |
Destrutor. | |
virtual void | populateMetatable (lua_State *L, int index) |
Fills the object metatable to allow for the proxy to export its methods. | |
QVariant | ptrToVariant () |
Constructs a QVariant storing a POINTER to the current object. | |
void | ref () |
Increments the object reference count. Use with care. | |
Private Member Functions | |
int | isGlobal (lua_State *L) |
Returns the wheather this contact bc includes local (false) or global (true) contact conditions. | |
int | numPropertyValues (lua_State *L) |
Returns the number o property values. | |
int | propertyAccessor (lua_State *L) |
Returns an accessor object for querying property values or nil on error. More... | |
int | materialAccessor (lua_State *L) |
Returns an accessor for querying / changing the material associated with each contact application point(BC lines) | |
int | materialList (lua_State *L) |
Returns a table filled with the materials associated with this contact BC. | |
int | addPropertyLines (lua_State *L) |
Adds the given number of lines to the contact boundary condition property values table. Returns the index of the first added line. | |
int | setMaterialList (lua_State *L) |
Replaces the material list with the contents of the given table. | |
int | setPropertyMaterialId (lua_State *L) |
Replaces the material id of a property value for the the given bc index. Returns true or false. | |
int | rebuildMaterialMapping (lua_State *L) |
Rebuilds the internal mapping used by contactIndex(). Returns true or false. | |
int | contactIndex (lua_State *L) |
Given a pair of contact boundary condition line indices, returns the index in the user property values that contains the properties for the given material pair or nil if no such pair exists. | |
Additional Inherited Members | |
![]() | |
GmLuaBoundaryConditionBase (GmBoundaryConditionBase *bc, const GmLogCategory &logger) | |
Constructor. Receives the boundary to be wrapped. | |
![]() | |
GmLuaObject (const GmLogCategory &logger) | |
Construtor protegido. Somente classes derivadas devem ser instanciadas. | |
![]() | |
GmBoundaryConditionBase * | _bc |
The boundary condition 'wrapped' by this proxy object. | |
![]() | |
const GmLogCategory & | _logger |
A logger used by the proxy when needed. | |
QAtomicInteger< int > | _refCount |
Lua objects are reference counted to enable sharing them among different states. This is needed to allow for passing objects as parameters in a parallel call. The garbage collection method releases memory only for the last reference. | |
A proxy class to export GmContactBoundaryCondition methods to the Lua environment.
|
private |
Returns an accessor object for querying property values or nil on error.
Receives as stack parameter the name of the desired property and, optionally, the unit in which values should be returned