MmProcess
The GeMA Mesh Mapping Process Plugin
Loading...
Searching...
No Matches
gmpMmProcess.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_MM_PROCESS_H_
25#define _GEMA_PLUGIN_MM_PROCESS_H_
26
27#include "gmProcess.h"
28#include "gmPrintUtils.h"
29
30struct lua_State;
31class Unit;
32
33class GmResultsSerializer;
34class GmMesh;
35
38class GmpMmProcess : public GmProcess
39{
40public:
42 virtual ~GmpMmProcess();
43
44 // Comments on the base class
45 virtual const char* pluginName() const { return "MmProcess"; }
46
47 // Comments on the base class
48 virtual const char* pluginType() const { return "mm"; }
49
50 // Comments on the base class
51 virtual void loadFunctions(LuaTable& table) { registerFunctions<GmpMmProcess>(table, processMethodTable()); }
52
53 // Comments on the base class
54 virtual QStringList functionList() const { return buildFunctionList<GmpMmProcess>(processMethodTable()); }
55
56private:
57
59
60 int buildBucketIndex(lua_State* L);
61 int meshMapping (lua_State* L);
62};
63
64#endif
65
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 Mesh mapping process plugin object.
Definition gmpMmProcess.h:39
int buildBucketIndex(lua_State *L)
The mm.buildBucketIndex() process implementation.
Definition gmpMmProcess.cpp:93
virtual ~GmpMmProcess()
Destructor.
Definition gmpMmProcess.cpp:51
GmpMmProcess(GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger)
Constructor. Will be called by the plugin loading code.
Definition gmpMmProcess.cpp:45
GmProcessMethodRedirector< GmpMmProcess >::MethodRegistry * processMethodTable() const
Returns the table storing the process exported function names / methods.
Definition gmpMmProcess.cpp:56
int meshMapping(lua_State *L)
The mm.meshMapping() process implementation.
Definition gmpMmProcess.cpp:189