VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtTMPlugin Class Reference

The plugin manager will load external loadable objects in order to provide additional functionality to the front-end. More...

Inheritance diagram for DtTMPlugin:
Inheritance graph
[legend]

List of all members.

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 ()
DtTMApplicationcreateApplication (int argc, char **argv)
const DtPluginInformationpluginInformation () 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

Detailed Description

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


Constructor & Destructor Documentation

DtTMPlugin::DtTMPlugin ( const DtString libName,
bool  addPlatExt = true,
bool  useLazyEval = true 
)
virtual DtTMPlugin::~DtTMPlugin ( ) [virtual]

Member Function Documentation

virtual bool DtTMPlugin::init ( ) [virtual]

Reimplemented in DtEditorPlugin.

virtual bool DtTMPlugin::init ( DtTMApplication ) [virtual]
virtual void DtTMPlugin::unloadPlugin ( ) [virtual]
DtTMApplication* DtTMPlugin::createApplication ( int  argc,
char **  argv 
)

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]

Member Data Documentation

Referenced by pluginInformation().

DtDynamicLibrary* DtTMPlugin::myDynamicLibrary [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)