-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.cpp
44 lines (37 loc) · 793 Bytes
/
init.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Here are just several convenient functions to help user to know what contains the plugin
extern "C" {
void initExternalModule();
const char* getModuleName();
const char* getModuleVersion();
const char* getModuleLicense();
const char* getModuleDescription();
const char* getModuleComponentList();
}
void initExternalModule()
{
static bool first = true;
if (first)
{
first = false;
}
}
const char* getModuleName()
{
return "SofaSimpleForcefield";
}
const char* getModuleVersion()
{
return "1.0";
}
const char* getModuleLicense()
{
return "LGPL 2.1";
}
const char* getModuleDescription()
{
return "Simple implementation of a Saint-Venant-Kirchhoff force field";
}
const char* getModuleComponentList()
{
return "SVKElasticForcefield";
}