Show IRenderPluginABC.h syntax highlighted
#ifndef __IRENDERPLUGINABC_H__
#define __IRENDERPLUGINABC_H__ 1
#include <osg/Referenced>
#include <osg/Node>
class QWidget;
namespace osgDesigner
{
class IRenderPluginABC : public osg::Referenced
{
public:
IRenderPluginABC() : osg::Referenced() {};
virtual ~IRenderPluginABC(){};
////////////////////////
// ** Manipulation ** //
////////////////////////
// ** give the root node to the plugin
virtual void root(osg::Node *root) = 0;
// ** initialize the plugin, run once at start
virtual void init() = 0;
///////////////////
// ** control ** //
///////////////////
virtual void run() = 0;
virtual void stop() = 0;
virtual void pause() = 0;
virtual void unpause() = 0;
virtual bool isRunning() const = 0;
virtual bool isPause() const = 0;
/////////////////////////////
// ** Qt4 Compatibility ** //
/////////////////////////////
/**
* Qt4
* /@return QWidget to be integrated into mainWindow else return NULL to use own thread/window
*
*/
virtual QWidget* getQt4Widget() { return (NULL); }
};
}
#endif // ** __IRENDERPLUGINABC_H__ ** //
See more files for this project here