Xfem
The Xfem Plugin
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XfemLuaFracture Class Reference

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

#include <xfemLuaFracture.h>

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

Public Member Functions

 XfemLuaFracture (XfemFracture *f, XfemMesh *m, const GmLogCategory &logger)
 Constructor.
 
virtual const char * typeName () const
 
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 XfemLuaFracture object.
 
- Public Member Functions inherited from GmLuaObject
virtual void populateMetatable (lua_State *L, int index)
 
QVariant ptrToVariant ()
 
void ref ()
 

Private Member Functions

int numPoints (lua_State *L)
 Returns the number of points of the fracture.
 
int pointCoordinate (lua_State *L)
 Returns a vector with the coordinate of the given point index.
 
int numCrackPaths (lua_State *L)
 Returns the number of 'crack paths' in the fracture.
 
int crackPath (lua_State *L)
 Returns three values with information about the element and the nodes of the given crack path.
 
int appendCrackPath (lua_State *L)
 Given an element and two node indices plus a boolean, appends (boolean = true) or prepends (false) the given values to the path.
 
int splitCrackPath (lua_State *L)
 Given a crack path index, splits it in two on the given vertex.
 
int numElemCutPos (lua_State *L)
 Returns the number of 'element cut positions' in the fracture.
 
int elemCutPos (lua_State *L)
 Returns three values with information about the element and the edges of the given crack path.
 
int appendElemCutPos (lua_State *L)
 Given an element and two edge indices plus a boolean, appends (boolean = true) or prepends (false) the given values to the path.
 
int splitElemCutPos (lua_State *L)
 Given a crack path index, splits it in two on the given edge.
 

Private Attributes

XfemFracture_fracture
 The fracture 'wrapped' by this proxy object.
 
XfemMesh_mesh
 The mesh that this fracture belongs to.
 

Additional Inherited Members

- Protected Member Functions inherited from GmLuaObject
 GmLuaObject (const GmLogCategory &logger)
 
virtual QString toString () const
 
- Protected Attributes inherited from GmLuaObject
const GmLogCategory_logger
 
QAtomicInteger< int > _refCount
 

Detailed Description

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


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