Plugins
|
Register functions for ug-script and ProMesh through this class. More...
#include <promesh_registry.h>
Public Types | |
typedef ProMeshFunctionSet::const_iterator | const_func_iter_t |
typedef ProMeshFunctionSet::iterator | func_iter_t |
typedef std::multiset< detail::ProMeshFunction > | ProMeshFunctionSet |
Public Member Functions | |
template<typename TClass > | |
bridge::ExportedClass< TClass > & | add_class_ (std::string className, std::string group="", std::string tooltip="") |
Register a class at this registry. More... | |
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. More... | |
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. More... | |
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 More... | |
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. More... | |
Private Attributes | |
int | m_counter |
ProMeshFunctionSet | m_funcSet |
std::map< std::string, int > | m_groupPriority |
bridge::Registry * | m_reg |
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.
typedef ProMeshFunctionSet::const_iterator ug::promesh::ProMeshRegistry::const_func_iter_t |
typedef ProMeshFunctionSet::iterator ug::promesh::ProMeshRegistry::func_iter_t |
typedef std::multiset<detail::ProMeshFunction> ug::promesh::ProMeshRegistry::ProMeshFunctionSet |
|
inline |
|
inline |
Register a class at this registry.
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) |
Referenced by ug::promesh::RegisterElementIterators(), ug::promesh::RegisterMesh(), and ug::promesh::RegisterMisc().
|
inline |
Register a class at this registry together with its base class.
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) |
|
inline |
Register a class at this registry together with two base classes.
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) |
|
inline |
adds a function to the registry
funcName | the name of the function |
func | function pointer of the function |
group | registry group. use / for subgroups e.g. ug4/mygroup/mysubgroup (optional) |
retValInfos | string documenting what the function returns (optional) |
paramInfos | string documenting the parameters of the function seperate parameters with an # e.g. "x#y#z" (don't specify the type of the values) (optional) |
toolTip | small documentation for the function (optional) |
help | help string for the function |
References the template function proxy_function<TFunc> and stores it with the FuntionWrapper.
References target().
Referenced by ug::promesh::RegisterCoordinateTransformTools(), ug::promesh::RegisterMeshingTools(), ug::promesh::RegisterMisc(), ug::promesh::RegisterSelectionTools(), and ug::promesh::RegisterSubsetTools().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returns a pointer to the ug::bridge::Registry which is encapsulated by this class.
|
private |
|
private |
|
private |
|
private |