24 #include <util/coExport.h>
26 #include <osg/Drawable>
47 #define COVERPLUGIN(Plugin) \
48 extern "C" PLUGINEXPORT opencover::coVRPlugin *coVRPluginInit() \
50 opencover::coVRPlugin *p = new Plugin; \
52 p->setName(#Plugin); \
109 return m_name.c_str();
113 void setName(
const char *sn);
131 virtual void removeNode(osg::Node *,
bool isGroup, osg::Node *realNode)
221 virtual void param(
const char *paramName,
bool inMapLoading)
228 virtual void key(
int type,
int keySym,
int mod)
242 virtual void message(
int toWhom,
int type,
int length,
const void *data)
359 void commitTimestep(
int t);
362 void requestTimestepWrapper(
int t);
367 int m_outstandingTimestep;
virtual void windowUpdateContents(int num)
Definition: coVRPlugin.h:335
NotificationLevel
Definition: coVRPlugin.h:75
virtual bool updateViewer()
let the plugin that has a grab on viewer update viewer matrix
Definition: coVRPlugin.h:352
virtual unsigned int button(int station)
for Trackingsystem plugins: return the button state of device station
Definition: coVRPlugin.h:273
base class for data received from visualization systems (e.g. COVISE or Vistle)
Definition: RenderObject.h:146
virtual covise::Message * waitForVisMessage(int messageType)
for visualisation system plugins: wait for message, return NULL if no such plugin ...
Definition: coVRPlugin.h:306
abstract feedback class for interacting with parameters of visualization modules (e.g. COVISE or Vistle)
Definition: coInteractor.h:36
virtual bool executeAll()
for visualisation system plugins: execute data flow network - return true if delivered ...
Definition: coVRPlugin.h:313
virtual int wheel(int station)
for Trackingsystem plugins: return the wheel state of device station
Definition: coVRPlugin.h:280
virtual void userEvent(int mod)
this functions is called when a user event arrives
Definition: coVRPlugin.h:236
Definition: coVRPluginList.h:45
virtual void expandBoundingSphere(osg::BoundingSphere &bs)
allow plugin to expand bounding sphere
Definition: coVRPlugin.h:319
virtual void removeObject(const char *objName, bool replaceFlag)
this function is called when a COVISE Object is removed
Definition: coVRPlugin.h:149
virtual void postSwapBuffers(int)
this function is called from the draw thread after swapbuffers
Definition: coVRPlugin.h:216
virtual bool init2()
this function is called when files have been loaded
Definition: coVRPlugin.h:95
virtual void addObject(const RenderObject *container, osg::Group *parent, const RenderObject *geometry, const RenderObject *normals, const RenderObject *colors, const RenderObject *texture)
this function is called whenever a COVISE object is received
Definition: coVRPlugin.h:137
virtual void param(const char *paramName, bool inMapLoading)
this function is called whenever a module parameter of the renderer has changed
Definition: coVRPlugin.h:221
virtual bool requestInteraction(coInteractor *inter, osg::Node *triggerNode, bool isMouse)
this function is called when COVER wants to enable interaction with an interactor, return true if plugin accepts request
Definition: coVRPlugin.h:163
virtual bool sendVisMessage(const covise::Message *msg)
for visualisation system plugins: send message to system - return true if delivered ...
Definition: coVRPlugin.h:293
virtual bool destroy()
reimplement to do early cleanup work and return false to prevent unloading
Definition: coVRPlugin.h:101
virtual void preFrame()
this function is called from the main thread before rendering a frame
Definition: coVRPlugin.h:191
virtual void key(int type, int keySym, int mod)
this functions is called when a key is pressed or released
Definition: coVRPlugin.h:228
virtual void notify(NotificationLevel level, const char *text)
this function is called when COVER wants to display a message to the user
Definition: coVRPlugin.h:116
virtual void windowCheckEvents(int num)
Definition: coVRPlugin.h:330
virtual void coviseError(const char *error)
this function is called if a error message from the controller is received
Definition: coVRPlugin.h:172
double OSGVRUIEXPORT mod(double a, double b)
virtual bool update()
Definition: coVRPlugin.h:185
make sure to clean up properly in the plugin's dtor
Definition: coVRPlugin.h:70
virtual bool windowCreate(int num)
Definition: coVRPlugin.h:324
Definition: coVRPlugin.h:77
Definition: coVRPluginSupport.h:143
virtual void preSwapBuffers(int)
this function is called from the draw thread before swapbuffers
Definition: coVRPlugin.h:206
virtual void clusterSyncDraw()
this function is called from the main thread after rendering has finished on all nodes and before any...
Definition: coVRPlugin.h:211
void * CO_SHLIB_HANDLE
Definition: coVRDynLib.h:36
virtual void setTimestep(int t)
Definition: coVRPlugin.h:253
virtual void getMatrix(int station, osg::Matrix &mat)
for Trackingsystem plugins: return the Matrix of device station
Definition: coVRPlugin.h:266
virtual void guiToRenderMsg(const char *msg)
this function is called if a message from the gui is received
Definition: coVRPlugin.h:178
virtual void requestTimestep(int t)
Definition: coVRPlugin.h:260
virtual void message(int toWhom, int type, int length, const void *data)
Definition: coVRPlugin.h:242
virtual void newInteractor(const RenderObject *container, coInteractor *it)
this function is called when COVER gets a new COVISE object with feedback attributes ...
Definition: coVRPlugin.h:156
virtual void windowDestroy(int num)
Definition: coVRPlugin.h:340
virtual void addNode(osg::Node *, const RenderObject *=NULL)
Definition: coVRPlugin.h:126
const char * getName() const
retrieve the plugin's name
Definition: coVRPlugin.h:107
virtual void postFrame()
this function is called from the main thread after a frame was rendered
Definition: coVRPlugin.h:196
virtual bool init()
this function is called when COVER is up and running and the plugin is initialized ...
Definition: coVRPlugin.h:89
virtual void requestQuit(bool killSession)
for visualisation system plugins: request to terminate COVER or COVISE session
Definition: coVRPlugin.h:287
Definition: coVRPlugin.h:76
virtual bool becomeCollaborativeMaster()
for visualisation system plugins: request to become master - return true if delivered ...
Definition: coVRPlugin.h:300
virtual void removeNode(osg::Node *, bool isGroup, osg::Node *realNode)
this function is called if a node in the scene graph is removed
Definition: coVRPlugin.h:131
Definition: coVRPlugin.h:78
virtual void windowFullScreen(int num, bool state)
Definition: coVRPlugin.h:345
virtual void preDraw(osg::RenderInfo &)
this function is called from the draw thread before drawing the scenegraph (after drawing the AR back...
Definition: coVRPlugin.h:201