GemaLuaCoreLib
The GeMA Lua Core library
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GmLuaCellBoundary Class Reference

A proxy class to export GmCellBoundary methods to the Lua environment. More...

#include <gmLuaCellBoundary.h>

Inheritance diagram for GmLuaCellBoundary:
Inheritance graph
[legend]
Collaboration diagram for GmLuaCellBoundary:
Collaboration graph
[legend]

Public Member Functions

 GmLuaCellBoundary (GmCellBoundary *boundary, const GmLogCategory &logger)
 Constructor. Receives the boundary to be wrapped.
 
virtual ~GmLuaCellBoundary ()
 Destructor.
 
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.
 
GmCellBoundaryboundary () const
 Returns the wrapped cell boundary object.
 
- Public Member Functions inherited from GmLuaObject
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 id (lua_State *L)
 Returns the boundary name.
 
int type (lua_State *L)
 Returns a string decribing the boundary type ('edges', 'faces')
 
int mesh (lua_State *L)
 Returns the mesh we are tied to.
 
int numCells (lua_State *L)
 Returns the number of pairs {cells, border} in this boundary.
 
int cell (lua_State *L)
 Returns the cell associated with the given boundary index (from 1 to numCells())
 
int cellBorder (lua_State *L)
 Returns the border associated with the given boundary index (from 1 to numCells())
 
int setBoundaryData (lua_State *L)
 Given a set of lua cells and cell borders, replaces the data in this boundary with the new one. Cells can be given either as cell indices or cell objects.
 

Private Attributes

GmCellBoundary_boundary
 The cell boundary 'wrapped' by this proxy object.
 

Additional Inherited Members

- Protected Member Functions inherited from GmLuaObject
 GmLuaObject (const GmLogCategory &logger)
 Construtor protegido. Somente classes derivadas devem ser instanciadas.
 
- Protected Attributes inherited from GmLuaObject
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.
 

Detailed Description

A proxy class to export GmCellBoundary methods to the Lua environment.


The documentation for this class was generated from the following files: