OpenCOVER
|
#include <coVRPluginList.h>
Public Types | |
enum | PluginDomain { Default , Vis , Window , Input , NumPluginDomains } |
Public Member Functions | |
void | loadDefault () |
load configured plugins More... | |
coVRPlugin * | getPlugin (const char *name) const |
returns the plugin called name More... | |
coVRPlugin * | addPlugin (const char *name, PluginDomain domain=Default) |
load a plugin, call init, add to list of managed plugins More... | |
void | unload (coVRPlugin *m) |
mark plugin for unloading More... | |
void | notify (int level, const char *text) const |
call notify method of all plugins More... | |
void | addNode (osg::Node *, const RenderObject *o=NULL, coVRPlugin *addingPlugin=NULL) const |
call addNode method of all plugins More... | |
void | addObject (const RenderObject *container, osg::Group *root, const RenderObject *geometry, const RenderObject *normals, const RenderObject *colors, const RenderObject *texture) const |
call addObject method of all plugins More... | |
void | newInteractor (const RenderObject *container, coInteractor *it) const |
call newInteractor method of all plugins More... | |
bool | requestInteraction (coInteractor *inter, osg::Node *triggerNode, bool isMouse) |
call enableInteraction method of all plugins until one is accepting the request More... | |
void | coviseError (const char *error) const |
call coviseError method of all plugins More... | |
void | guiToRenderMsg (const char *msg) const |
call guiToRenderMsg method of all plugins More... | |
void | removeObject (const char *objName, bool replaceFlag) const |
call removeObject method of all plugins More... | |
void | removeNode (osg::Node *node, bool isGroup=false, osg::Node *realNode=NULL) const |
call removeNode method of all plugins More... | |
bool | update () const |
call update method of all plugins More... | |
void | preFrame () |
call preFrame method of all plugins More... | |
void | postFrame () const |
call postFrame method of all plugins More... | |
void | preDraw (osg::RenderInfo &renderInfo) const |
call preDraw method of all plugins More... | |
void | preSwapBuffers (int windowNumber) const |
call preSwapBuffers method of all plugins More... | |
void | clusterSyncDraw () const |
call clusterSyncDraw() method of all plugins More... | |
void | postSwapBuffers (int windowNumber) const |
call postSwapBuffers method of all plugins More... | |
void | param (const char *paramName, bool inMapLoading) const |
call param method of all plugins More... | |
bool | key (int type, int keySym, int mod) const |
call key method of all plugins More... | |
bool | userEvent (int mod) const |
call userEvent method of all plugins More... | |
void | requestTimestep (int timestep) |
call requestTimestep method of all plugins More... | |
void | setTimestep (int timestep) |
call setTimestep method of all plugins More... | |
void | message (int toWhom, int t, int l, const void *b) const |
send a message to all plugins More... | |
void | UDPmessage (covise::UdpMessage *msg) const |
send a UDPmessage to all plugins More... | |
void | forwardMessage (const covise::DataHandle &dh) const |
void | requestQuit (bool killSession) const |
request to terminate COVER or COVISE session More... | |
bool | sendVisMessage (const covise::Message *msg) const |
send a message to COVISE/visualisation system - delivered via only one plugin More... | |
bool | becomeCollaborativeMaster () const |
request to become master of a collaborative session - return true if delivered More... | |
covise::Message * | waitForVisMessage (int messageType) const |
for visualisation system plugins: wait for message, return NULL if no such plugin More... | |
bool | executeAll () const |
for visualisation system plugins: execute data flow network - return true if delivered More... | |
void | expandBoundingSphere (osg::BoundingSphere &bs) const |
allow plugins to expand scene bounding sphere More... | |
void | commitTimestep (int t, coVRPlugin *caller) |
called by plugin's commitTimestep method when timestep is prepared More... | |
void | unloadAllPlugins (PluginDomain domain=Default) |
Static Public Member Functions | |
static coVRPluginList * | instance () |
singleton More... | |
Friends | |
class | coVRPluginSupport |
class | OpenCOVER |
void opencover::coVRPluginList::addNode | ( | osg::Node * | , |
const RenderObject * | o = NULL , |
||
coVRPlugin * | addingPlugin = NULL |
||
) | const |
call addNode method of all plugins
void opencover::coVRPluginList::addObject | ( | const RenderObject * | container, |
osg::Group * | root, | ||
const RenderObject * | geometry, | ||
const RenderObject * | normals, | ||
const RenderObject * | colors, | ||
const RenderObject * | texture | ||
) | const |
call addObject method of all plugins
coVRPlugin * opencover::coVRPluginList::addPlugin | ( | const char * | name, |
PluginDomain | domain = Default |
||
) |
load a plugin, call init, add to list of managed plugins
bool opencover::coVRPluginList::becomeCollaborativeMaster | ( | ) | const |
request to become master of a collaborative session - return true if delivered
void opencover::coVRPluginList::clusterSyncDraw | ( | ) | const |
call clusterSyncDraw() method of all plugins
void opencover::coVRPluginList::commitTimestep | ( | int | t, |
coVRPlugin * | caller | ||
) |
called by plugin's commitTimestep method when timestep is prepared
void opencover::coVRPluginList::coviseError | ( | const char * | error | ) | const |
call coviseError method of all plugins
bool opencover::coVRPluginList::executeAll | ( | ) | const |
for visualisation system plugins: execute data flow network - return true if delivered
void opencover::coVRPluginList::expandBoundingSphere | ( | osg::BoundingSphere & | bs | ) | const |
allow plugins to expand scene bounding sphere
void opencover::coVRPluginList::forwardMessage | ( | const covise::DataHandle & | dh | ) | const |
add new plugins, if not already loaded unpack and distribute a Message
coVRPlugin * opencover::coVRPluginList::getPlugin | ( | const char * | name | ) | const |
returns the plugin called name
void opencover::coVRPluginList::guiToRenderMsg | ( | const char * | msg | ) | const |
call guiToRenderMsg method of all plugins
|
static |
singleton
bool opencover::coVRPluginList::key | ( | int | type, |
int | keySym, | ||
int | mod | ||
) | const |
call key method of all plugins
void opencover::coVRPluginList::loadDefault | ( | ) |
load configured plugins
void opencover::coVRPluginList::message | ( | int | toWhom, |
int | t, | ||
int | l, | ||
const void * | b | ||
) | const |
send a message to all plugins
void opencover::coVRPluginList::newInteractor | ( | const RenderObject * | container, |
coInteractor * | it | ||
) | const |
call newInteractor method of all plugins
void opencover::coVRPluginList::notify | ( | int | level, |
const char * | text | ||
) | const |
call notify method of all plugins
void opencover::coVRPluginList::param | ( | const char * | paramName, |
bool | inMapLoading | ||
) | const |
call param method of all plugins
void opencover::coVRPluginList::postFrame | ( | ) | const |
call postFrame method of all plugins
void opencover::coVRPluginList::postSwapBuffers | ( | int | windowNumber | ) | const |
call postSwapBuffers method of all plugins
void opencover::coVRPluginList::preDraw | ( | osg::RenderInfo & | renderInfo | ) | const |
call preDraw method of all plugins
void opencover::coVRPluginList::preFrame | ( | ) |
call preFrame method of all plugins
void opencover::coVRPluginList::preSwapBuffers | ( | int | windowNumber | ) | const |
call preSwapBuffers method of all plugins
void opencover::coVRPluginList::removeNode | ( | osg::Node * | node, |
bool | isGroup = false , |
||
osg::Node * | realNode = NULL |
||
) | const |
call removeNode method of all plugins
void opencover::coVRPluginList::removeObject | ( | const char * | objName, |
bool | replaceFlag | ||
) | const |
call removeObject method of all plugins
bool opencover::coVRPluginList::requestInteraction | ( | coInteractor * | inter, |
osg::Node * | triggerNode, | ||
bool | isMouse | ||
) |
call enableInteraction method of all plugins until one is accepting the request
void opencover::coVRPluginList::requestQuit | ( | bool | killSession | ) | const |
request to terminate COVER or COVISE session
void opencover::coVRPluginList::requestTimestep | ( | int | timestep | ) |
call requestTimestep method of all plugins
bool opencover::coVRPluginList::sendVisMessage | ( | const covise::Message * | msg | ) | const |
send a message to COVISE/visualisation system - delivered via only one plugin
void opencover::coVRPluginList::setTimestep | ( | int | timestep | ) |
call setTimestep method of all plugins
void opencover::coVRPluginList::UDPmessage | ( | covise::UdpMessage * | msg | ) | const |
send a UDPmessage to all plugins
void opencover::coVRPluginList::unload | ( | coVRPlugin * | m | ) |
mark plugin for unloading
void opencover::coVRPluginList::unloadAllPlugins | ( | PluginDomain | domain = Default | ) |
bool opencover::coVRPluginList::update | ( | ) | const |
call update method of all plugins
bool opencover::coVRPluginList::userEvent | ( | int | mod | ) | const |
call userEvent method of all plugins
covise::Message * opencover::coVRPluginList::waitForVisMessage | ( | int | messageType | ) | const |
for visualisation system plugins: wait for message, return NULL if no such plugin
|
friend |
|
friend |