![]() |
VR-Forces 4.0.4 Class Documentation
|
The plugin manager will load external loadable objects in order to provide additional functionality to the front-end. More...

Public Member Functions | |
| DtTMPlugin (const DtString &libName, bool addPlatExt=true, bool useLazyEval=true) | |
| virtual | ~DtTMPlugin () |
| virtual bool | init () |
| virtual bool | init (DtTMApplication *) |
| virtual bool | postAppInitialize (DtTMApplication *) |
| virtual void | unloadPlugin () |
| DtTMApplication * | createApplication (int argc, char **argv) |
| const DtPluginInformation & | pluginInformation () const |
| virtual void | pluginInformation (std::string &str) const |
| virtual bool | checkVersion (const QString &curVersion) |
| Returns false if there is a version mismatch. | |
| virtual bool | isValid () const |
| virtual DtString | libraryName () const |
| virtual const char * | error () const |
Protected Attributes | |
| DtPluginInformation | myPluginInformation |
| DtInitializePluginFcn | myPluginInit |
| DtPostAppInitializeFcn | myPostAppInitialize |
| DtUnloadPluginFcn | myUnloadPlugin |
| DtDynamicLibrary * | myDynamicLibrary |
The plugin manager will load external loadable objects in order to provide additional functionality to the front-end.
The file pluginExtension.h defines the template for what you can and/or need to define in order to be considered a plugin to the front-end.
The plugin manager will, upon calling the init() method, read plugins from the supplied .mtl file. It will also scan the argv command line for the --loadPlugin command to schedule to load a plugin. Once the list of loadable plugins has been created, the plugins will be found and loaded into the system, calling initializePlugin for each plugin supplied. ! Once all the plugins have been loaded and initialized, the application object will be created and returned to the user. This application will be in an uninitialized state, and it will be up to the developer to init the application from the factory. Also, it is up to the developer to delete the application object
| DtTMPlugin::DtTMPlugin | ( | const DtString & | libName, |
| bool | addPlatExt = true, |
||
| bool | useLazyEval = true |
||
| ) |
| virtual DtTMPlugin::~DtTMPlugin | ( | ) | [virtual] |
| virtual bool DtTMPlugin::init | ( | ) | [virtual] |
Reimplemented in DtEditorPlugin.
| virtual bool DtTMPlugin::init | ( | DtTMApplication * | ) | [virtual] |
| virtual bool DtTMPlugin::postAppInitialize | ( | DtTMApplication * | ) | [virtual] |
| virtual void DtTMPlugin::unloadPlugin | ( | ) | [virtual] |
| DtTMApplication* DtTMPlugin::createApplication | ( | int | argc, |
| char ** | argv | ||
| ) |
| const DtPluginInformation & DtTMPlugin::pluginInformation | ( | ) | const [inline] |
References myPluginInformation.
| virtual void DtTMPlugin::pluginInformation | ( | std::string & | str | ) | const [virtual] |
| virtual bool DtTMPlugin::checkVersion | ( | const QString & | curVersion | ) | [virtual] |
Returns false if there is a version mismatch.
| virtual bool DtTMPlugin::isValid | ( | ) | const [virtual] |
| virtual DtString DtTMPlugin::libraryName | ( | ) | const [virtual] |
| virtual const char* DtTMPlugin::error | ( | ) | const [virtual] |
DtPluginInformation DtTMPlugin::myPluginInformation [protected] |
Referenced by pluginInformation().
DtInitializePluginFcn DtTMPlugin::myPluginInit [protected] |
DtUnloadPluginFcn DtTMPlugin::myUnloadPlugin [protected] |
DtDynamicLibrary* DtTMPlugin::myDynamicLibrary [protected] |