GemaLuaCoreLib
The GeMA Lua Core library
Loading...
Searching...
No Matches
GmLuaDiscontinuity Class Reference

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

#include <gmLuaDiscontinuitySet.h>

Inheritance diagram for GmLuaDiscontinuity:
Collaboration diagram for GmLuaDiscontinuity:

Public Member Functions

 GmLuaDiscontinuity (GmDiscontinuity *d, GmDiscontinuitySet *ds, const GmLogCategory &logger)
 Constructor. Receives the discontinuity to be wrapped.
 
virtual ~GmLuaDiscontinuity ()
 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.
 
GmDiscontinuitydisc () const
 Returns the associated discontinuity 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.
 
- Public Member Functions inherited from LuaProxy::Base

Private Member Functions

int index (lua_State *L)
 Returns the discontinuity index.
 
int id (lua_State *L)
 Returns the discontinuity name.
 
int cellGroupIndex (lua_State *L)
 Returns the index of the cell group associated with this discontinuity. Retuns nil if there is none.
 
int propertyIndex (lua_State *L)
 Given a property set number, returns the line of the property set that contains property values for this discontinuity.
 
int numSegments (lua_State *L)
 Returns the number of geometry "segments" for this discontinuity.
 

Private Attributes

GmDiscontinuity_d
 The discontinuity 'wrapped' by this proxy object.
 
GmDiscontinuitySet_ds
 The discontinuity set that _d belongs to.
 

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 GmDiscontinuity methods to the Lua environment.

Member Function Documentation

◆ fillMetatable()

void GmLuaDiscontinuity::fillMetatable ( lua_State * L,
int index )
virtual

Prepares the object metatable for calling methods.

Implements GmLuaObject.

◆ getClassMetatableID()

virtual void * GmLuaDiscontinuity::getClassMetatableID ( )
inlinevirtual

Returns an unique identifier to identify an user object as a GmLuaMesh object.

Implements LuaProxy::Base.

◆ toString()

QString GmLuaDiscontinuity::toString ( ) const
virtual

Default method used by the __tostring metamethod to capture the result of tostring() over an object.

Reimplemented from GmLuaObject.

◆ typeName()

virtual const char * GmLuaDiscontinuity::typeName ( ) const
inlinevirtual

Returns the object type as will be stored in the object metatable.

Implements GmLuaObject.


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