Register functions for ug-script and ProMesh through this class.
More...
#include <promesh_registry.h>
|
template<typename TClass > |
bridge::ExportedClass< TClass > & | add_class_ (std::string className, std::string group="", std::string tooltip="") |
| Register a class at this registry.
|
|
template<typename TClass , typename TBaseClass > |
bridge::ExportedClass< TClass > & | add_class_ (std::string className, std::string group="", std::string tooltip="") |
| Register a class at this registry together with its base class.
|
|
template<typename TClass , typename TBaseClass1 , typename TBaseClass2 > |
bridge::ExportedClass< TClass > & | add_class_ (std::string className, std::string group="", std::string tooltip="") |
| Register a class at this registry together with two base classes.
|
|
template<typename TFunc > |
ProMeshRegistry & | add_function (std::string funcName, TFunc func, std::string group="", std::string retValInfos="", std::string paramInfos="", std::string tooltip="", std::string help="", unsigned int target=RT_DEFAULT, int shortcutKey=0, ModifierKeys modifyerKey=MK_NONE) |
| adds a function to the registry
|
|
func_iter_t | functions_begin () |
|
const_func_iter_t | functions_begin () const |
|
func_iter_t | functions_end () |
|
const_func_iter_t | functions_end () const |
|
| ProMeshRegistry (bridge::Registry *reg) |
|
bridge::Registry * | registry () |
| returns a pointer to the ug::bridge::Registry which is encapsulated by this class.
|
|
Register functions for ug-script and ProMesh through this class.
The ProMeshRegistry is a small wrapper for ug::bridge::Registry and allows for the specification of additional parameters, which are later on used by ProMesh to automatically generate tools for all registered functions.
◆ const_func_iter_t
◆ func_iter_t
◆ ProMeshFunctionSet
◆ ProMeshRegistry()
◆ add_class_() [1/3]
template<typename TClass >
bridge::ExportedClass< TClass > & ug::promesh::ProMeshRegistry::add_class_ |
( |
std::string |
className, |
|
|
std::string |
group = "" , |
|
|
std::string |
tooltip = "" |
|
) |
| |
|
inline |
◆ add_class_() [2/3]
template<typename TClass , typename TBaseClass >
bridge::ExportedClass< TClass > & ug::promesh::ProMeshRegistry::add_class_ |
( |
std::string |
className, |
|
|
std::string |
group = "" , |
|
|
std::string |
tooltip = "" |
|
) |
| |
|
inline |
Register a class at this registry together with its base class.
- Parameters
-
className | name of the class to appear in the registry |
group | registry group. use / for subgroups e.g. ug4/mygroup/mysubgroup (optional) |
toolTip | describing text for the class (optional) |
◆ add_class_() [3/3]
template<typename TClass , typename TBaseClass1 , typename TBaseClass2 >
bridge::ExportedClass< TClass > & ug::promesh::ProMeshRegistry::add_class_ |
( |
std::string |
className, |
|
|
std::string |
group = "" , |
|
|
std::string |
tooltip = "" |
|
) |
| |
|
inline |
Register a class at this registry together with two base classes.
- Parameters
-
className | name of the class to appear in the registry |
group | registry group. use / for subgroups e.g. ug4/mygroup/mysubgroup (optional) |
toolTip | describing text for the class (optional) |
◆ add_function()
template<typename TFunc >
ProMeshRegistry & ug::promesh::ProMeshRegistry::add_function |
( |
std::string |
funcName, |
|
|
TFunc |
func, |
|
|
std::string |
group = "" , |
|
|
std::string |
retValInfos = "" , |
|
|
std::string |
paramInfos = "" , |
|
|
std::string |
tooltip = "" , |
|
|
std::string |
help = "" , |
|
|
unsigned int |
target = RT_DEFAULT , |
|
|
int |
shortcutKey = 0 , |
|
|
ModifierKeys |
modifyerKey = MK_NONE |
|
) |
| |
|
inline |
◆ functions_begin() [1/2]
func_iter_t ug::promesh::ProMeshRegistry::functions_begin |
( |
| ) |
|
|
inline |
◆ functions_begin() [2/2]
◆ functions_end() [1/2]
func_iter_t ug::promesh::ProMeshRegistry::functions_end |
( |
| ) |
|
|
inline |
◆ functions_end() [2/2]
◆ registry()
◆ m_counter
int ug::promesh::ProMeshRegistry::m_counter |
|
private |
◆ m_funcSet
◆ m_groupPriority
std::map<std::string, int> ug::promesh::ProMeshRegistry::m_groupPriority |
|
private |
◆ m_reg
The documentation for this class was generated from the following file: