24#include <util/coExport.h>
26#include <osg/Drawable>
49#define COVERPLUGIN(Plugin) \
50 extern "C" PLUGINEXPORT opencover::coVRPlugin *coVRPluginInit() \
52 opencover::coVRPlugin *p = new Plugin; \
54 p->setName(#Plugin); \
111 return m_name.c_str();
133 virtual void removeNode(osg::Node *,
bool isGroup, osg::Node *realNode)
223 virtual void param(
const char *paramName,
bool inMapLoading)
230 virtual void key(
int type,
int keySym,
int mod)
244 virtual void message(
int toWhom,
int type,
int length,
const void *data)
377 void requestTimestepWrapper(
int t);
382 int m_outstandingTimestep;
void * CO_SHLIB_HANDLE
Definition: coVRDynLib.h:36
double OSGVRUIEXPORT mod(double a, double b)
Definition: ARToolKit.h:33
Definition: coClusterStat.h:29
Definition: coTabletUI.h:51
collaborative interface manager
Definition: coVRCommunication.h:41
@ Fatal
Definition: coVRPluginSupport.h:143
abstract feedback class for interacting with parameters of visualization modules (e....
Definition: coInteractor.h:37
make sure to clean up properly in the plugin's dtor
Definition: coVRPlugin.h:73
const char * getName() const
retrieve the plugin's name
Definition: coVRPlugin.h:109
virtual void postFrame()
this function is called from the main thread after a frame was rendered
Definition: coVRPlugin.h:198
virtual void removeObject(const char *objName, bool replaceFlag)
this function is called when a COVISE Object is removed
Definition: coVRPlugin.h:151
virtual void windowUpdateContents(int num)
Definition: coVRPlugin.h:350
virtual bool requestInteraction(coInteractor *inter, osg::Node *triggerNode, bool isMouse)
this function is called when COVER wants to enable interaction with an interactor,...
Definition: coVRPlugin.h:165
virtual void windowCheckEvents(int num)
Definition: coVRPlugin.h:345
virtual void postSwapBuffers(int)
this function is called from the draw thread after swapbuffers
Definition: coVRPlugin.h:218
virtual void requestTimestep(int t)
Definition: coVRPlugin.h:268
virtual void expandBoundingSphere(osg::BoundingSphere &bs)
allow plugin to expand bounding sphere
Definition: coVRPlugin.h:334
void commitTimestep(int t)
call as a response to requestTimestep(t) when timestep t is prepared
virtual std::string collaborativeSessionId() const
for visualisation system plugins: return string identifying collaborative session uniquely
Definition: coVRPlugin.h:314
virtual void windowDestroy(int num)
Definition: coVRPlugin.h:355
virtual bool init()
this function is called when COVER is up and running and the plugin is initialized
Definition: coVRPlugin.h:91
virtual void guiToRenderMsg(const char *msg)
this function is called if a message from the gui is received
Definition: coVRPlugin.h:180
virtual void clusterSyncDraw()
this function is called from the main thread after rendering has finished on all nodes and before any...
Definition: coVRPlugin.h:213
virtual bool windowCreate(int num)
Definition: coVRPlugin.h:339
virtual void windowFullScreen(int num, bool state)
Definition: coVRPlugin.h:360
NotificationLevel
Definition: coVRPlugin.h:77
@ Error
Definition: coVRPlugin.h:80
@ Info
Definition: coVRPlugin.h:78
@ Warning
Definition: coVRPlugin.h:79
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:203
virtual void getMatrix(int station, osg::Matrix &mat)
for Trackingsystem plugins: return the Matrix of device station
Definition: coVRPlugin.h:274
virtual void param(const char *paramName, bool inMapLoading)
this function is called whenever a module parameter of the renderer has changed
Definition: coVRPlugin.h:223
virtual void preSwapBuffers(int)
this function is called from the draw thread before swapbuffers
Definition: coVRPlugin.h:208
virtual bool destroy()
reimplement to do early cleanup work and return false to prevent unloading
Definition: coVRPlugin.h:103
coVRPlugin()
called early, if loaded from config, before COVER is fully initialized
virtual unsigned int button(int station)
for Trackingsystem plugins: return the button state of device station
Definition: coVRPlugin.h:281
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:133
virtual bool updateViewer()
let the plugin that has a grab on viewer update viewer matrix
Definition: coVRPlugin.h:367
virtual void userEvent(int mod)
this functions is called when a user event arrives
Definition: coVRPlugin.h:238
virtual bool sendVisMessage(const covise::Message *msg)
for visualisation system plugins: send message to system - return true if delivered
Definition: coVRPlugin.h:301
virtual void addNode(osg::Node *, const RenderObject *=NULL)
Definition: coVRPlugin.h:128
virtual bool executeAll()
for visualisation system plugins: execute data flow network - return true if delivered
Definition: coVRPlugin.h:328
virtual bool becomeCollaborativeMaster()
for visualisation system plugins: request to become master - return true if delivered
Definition: coVRPlugin.h:308
virtual void requestQuit(bool killSession)
for visualisation system plugins: request to terminate COVER or COVISE session
Definition: coVRPlugin.h:295
virtual int wheel(int station)
for Trackingsystem plugins: return the wheel state of device station
Definition: coVRPlugin.h:288
void setName(const char *sn)
set the plugin's name
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:139
virtual ~coVRPlugin()
called before plugin is unloaded
virtual void preFrame()
this function is called from the main thread before rendering a frame
Definition: coVRPlugin.h:193
virtual void UDPmessage(covise::UdpMessage *msg)
Definition: coVRPlugin.h:252
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:158
virtual void key(int type, int keySym, int mod)
this functions is called when a key is pressed or released
Definition: coVRPlugin.h:230
virtual covise::Message * waitForVisMessage(int messageType)
for visualisation system plugins: wait for message, return NULL if no such plugin
Definition: coVRPlugin.h:321
virtual bool update()
Definition: coVRPlugin.h:187
virtual bool init2()
this function is called when files have been loaded
Definition: coVRPlugin.h:97
virtual void coviseError(const char *error)
this function is called if a error message from the controller is received
Definition: coVRPlugin.h:174
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:118
virtual void message(int toWhom, int type, int length, const void *data)
Definition: coVRPlugin.h:244
virtual void setTimestep(int t)
Definition: coVRPlugin.h:261
Definition: coVRPluginList.h:53
base class for data received from visualization systems (e.g. COVISE or Vistle)
Definition: RenderObject.h:147