TetGenProcess
The GeMA wrapper plugin to the TetGen mesh generator
Loading...
Searching...
No Matches
gmpTetGenProcess.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMA_PLUGIN_TETGEN_PROCESS_H_
25#define _GEMA_PLUGIN_TETGEN_PROCESS_H_
26
27#include <gmProcess.h>
28#include <gmMatrix.h>
29#include "gmpTetGenProcess.h"
30
31class GmValueAccessor;
32class LuaFunction;
33class LuaEnv;
34
38{
39public:
41 virtual ~GmpTetGenProcess();
42
43 // Comments on the base class
44 virtual const char* pluginName() const { return "TetGenProcess"; }
45
46 // Comments on the base class
47 virtual const char* pluginType() const { return "tetgen"; }
48
49 // Comments on the base class
50 virtual void loadFunctions(LuaTable& table) { registerFunctions<GmpTetGenProcess>(table, processMethodTable()); }
51
52 // Comments on the base class
53 virtual QStringList functionList() const { return buildFunctionList<GmpTetGenProcess>(processMethodTable()); }
54
55private:
56
58
59 int buildTetMesh (lua_State* L);
60 int refineTetMesh (lua_State* L);
61 int buildMeshGroups (lua_State* L);
62};
63#endif
64
virtual const GmLogCategory & logger() const
QString description() const
void registerFunctions(LuaTable &table, typename GmProcessMethodRedirector< T >::MethodRegistry *methods, bool noProgressStats=false)
QStringList buildFunctionList(typename GmProcessMethodRedirector< T >::MethodRegistry *methods) const
Basic class for the Geometry Utils process plugin object.
Definition gmpTetGenProcess.h:38
GmpTetGenProcess(GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger)
Constructor. Will be called by the plugin loading code.
Definition gmpTetGenProcess.cpp:136
int buildTetMesh(lua_State *L)
The tetgen.buildMesh() process implementation.
Definition gmpTetGenProcess.cpp:163
int buildMeshGroups(lua_State *L)
The tetgen.buildGroups() process implementation.
Definition gmpTetGenProcess.cpp:375
virtual ~GmpTetGenProcess()
Destructor.
Definition gmpTetGenProcess.cpp:142
GmProcessMethodRedirector< GmpTetGenProcess >::MethodRegistry * processMethodTable() const
Returns the table storing the process exported function names / methods.
Definition gmpTetGenProcess.cpp:147
Declaration of the GmpGeomProcess class.