![]() |
VR-Forces 4.0.4 Class Documentation
|

Signals | |
| void | pluginLoaded (const DtTMPlugin *) |
| Called when plugin is loaded from disk. | |
Public Member Functions | |
| DtTMPluginManager () | |
| virtual | ~DtTMPluginManager () |
| Calls unloadPlugins as part of destructor. | |
| const QList< DtTMPlugin * > & | plugins () const |
| virtual DtTMPlugin * | loadPlugin (const QString &, DtTMApplication *app) |
| Creates a DtTMPlugin object which will load the plugin from disk and call the initalizePlugin method. | |
| virtual void | postAppInitialize (DtTMApplication *) |
| void | setLoadIfVersionMismatch (bool) |
| Set to true if plugins should be loaded regardless of whether or not there is a version mismatch. | |
| bool | loadIfVersionMismatch () const |
| virtual bool | init (const DtFilename &pluginFile, DtTMApplication *app, int argc, char **argv) |
Static Public Member Functions | |
| static DtlObjPtr | addMtlPlugin (const DtlObjPtr &args, const DtlObjPtr &) |
| static DtTMPluginManager * | create () |
Protected Member Functions | |
| virtual void | readPluginsFromPluginFile (const DtString &) |
| Reads plugins from myPluginFile and puts them into myPluginsToLoad. | |
| virtual void | readPluginsFromCommandLine (DtTMApplication *app, int argc, char **argv) |
| Goes through all command line arguments and looks for --loadPlugin items. | |
| virtual void | loadAllPlugins (DtTMApplication *app) |
| Loads all plugins off disk, calling initalizePlugin() to setup factory methods. | |
| virtual void | initPluginVariables (DtTMApplication *app) |
| Initializes any variables that can be used in the myPluginFile .mtl file: Mode - Debug or Release Platform - Windows, Linux, Irix, Unknown. | |
| virtual void | unloadPlugins () |
| virtual void | processPluginsDirectory (const DtFilename &) |
| Iterates through all the .mtl files in the plugins directory. | |
Protected Attributes | |
| QString | myPluginFile |
| QList< DtTMPlugin * > | myPlugins |
| DtMtlEnvironment * | myMtlEnv |
| bool | myLoadIfVersionMismatch |
Static Protected Attributes | |
| static std::vector< DtString > | thePluginsFromPluginFile |
| virtual DtTMPluginManager::~DtTMPluginManager | ( | ) | [virtual] |
Calls unloadPlugins as part of destructor.
| const QList< DtTMPlugin * > & DtTMPluginManager::plugins | ( | ) | const [inline] |
References myPlugins.
| virtual DtTMPlugin* DtTMPluginManager::loadPlugin | ( | const QString & | , |
| DtTMApplication * | app | ||
| ) | [virtual] |
Creates a DtTMPlugin object which will load the plugin from disk and call the initalizePlugin method.
Reimplemented in DtEditorPluginManager.
| virtual void DtTMPluginManager::postAppInitialize | ( | DtTMApplication * | ) | [virtual] |
Reimplemented in DtEditorPluginManager.
| void DtTMPluginManager::setLoadIfVersionMismatch | ( | bool | b | ) | [inline] |
Set to true if plugins should be loaded regardless of whether or not there is a version mismatch.
By default, this is false. Note that the version check is done by a string compare
References myLoadIfVersionMismatch.
| bool DtTMPluginManager::loadIfVersionMismatch | ( | ) | const [inline] |
References myLoadIfVersionMismatch.
| virtual bool DtTMPluginManager::init | ( | const DtFilename & | pluginFile, |
| DtTMApplication * | app, | ||
| int | argc, | ||
| char ** | argv | ||
| ) | [virtual] |
| static DtlObjPtr DtTMPluginManager::addMtlPlugin | ( | const DtlObjPtr & | args, |
| const DtlObjPtr & | |||
| ) | [static] |
| static DtTMPluginManager* DtTMPluginManager::create | ( | ) | [static] |
Reimplemented in DtEditorPluginManager.
| virtual void DtTMPluginManager::readPluginsFromPluginFile | ( | const DtString & | ) | [protected, virtual] |
Reads plugins from myPluginFile and puts them into myPluginsToLoad.
| virtual void DtTMPluginManager::readPluginsFromCommandLine | ( | DtTMApplication * | app, |
| int | argc, | ||
| char ** | argv | ||
| ) | [protected, virtual] |
Goes through all command line arguments and looks for --loadPlugin items.
If there, sets the plugin as a potential plugin to read
| virtual void DtTMPluginManager::loadAllPlugins | ( | DtTMApplication * | app | ) | [protected, virtual] |
Loads all plugins off disk, calling initalizePlugin() to setup factory methods.
When this routine is complete, will also create application object. Will emit a pluginLoaded signal for each plugin loaded
| virtual void DtTMPluginManager::initPluginVariables | ( | DtTMApplication * | app | ) | [protected, virtual] |
Initializes any variables that can be used in the myPluginFile .mtl file: Mode - Debug or Release Platform - Windows, Linux, Irix, Unknown.
Reimplemented in DtEditorPluginManager.
| virtual void DtTMPluginManager::unloadPlugins | ( | ) | [protected, virtual] |
| virtual void DtTMPluginManager::processPluginsDirectory | ( | const DtFilename & | ) | [protected, virtual] |
Iterates through all the .mtl files in the plugins directory.
Reimplemented in DtEditorPluginManager.
| void DtTMPluginManager::pluginLoaded | ( | const DtTMPlugin * | ) | [signal] |
Called when plugin is loaded from disk.
QString DtTMPluginManager::myPluginFile [protected] |
QList<DtTMPlugin*> DtTMPluginManager::myPlugins [protected] |
Referenced by plugins().
DtMtlEnvironment* DtTMPluginManager::myMtlEnv [protected] |
std::vector<DtString> DtTMPluginManager::thePluginsFromPluginFile [static, protected] |
bool DtTMPluginManager::myLoadIfVersionMismatch [protected] |
Referenced by loadIfVersionMismatch(), and setLoadIfVersionMismatch().