cgv
|
convenience class to register a factory of the given class type that uses a constructor with one argument of type CA More...
#include <register.h>
Public Member Functions | |
factory_registration_1 (const std::string &_created_type_name, const CA &_ca, const std::string &_options="", bool _is_singleton=false, const std::string &_object_options="") | |
this registers an instance of a standard factory implementation | |
factory_registration_1 (const char *item_text, char shortcut, const CA &_ca, bool is_singleton=false) | |
this constructor is only provided for downward compatibility and should not be used anymore. | |
convenience class to register a factory of the given class type that uses a constructor with one argument of type CA
Definition at line 323 of file register.h.
|
inline |
this registers an instance of a standard factory implementation
parameters:
_ca
... argument passed to the constructor of the created instances_created_type_name
... name of the type of the instances created by the factory_options
... semicolon separated options used to register the factory. For gui integration these can include assignments to "menu_path" and "shortcut"_is_singleton
... whether the factory can create only one instance_object_options
... options used to register created instances Definition at line 333 of file register.h.
References cgv::base::register_object().
|
inline |
this constructor is only provided for downward compatibility and should not be used anymore.
Item text and shortcut can be specified in the option string via "menu_path=\"geometry/sphere\";shortcut='Q'".
Definition at line 339 of file register.h.