OpenSceneGraph/examples/osgviewerFOX/FOX_OSG_MDIView.h

42 lines
800 B
C
Raw Normal View History

#ifndef _FOXOSGMDIVIEW_H_
#define _FOXOSGMDIVIEW_H_
#include "FOX_OSG.h"
#include <fx.h>
#include <osgViewer/Viewer>
using namespace FX;
class FOX_OSG_MDIView : public FXMDIChild{
2007-09-14 19:00:32 +08:00
FXDECLARE(FOX_OSG_MDIView)
public:
2007-09-14 19:00:32 +08:00
FOX_OSG_MDIView(FXMDIClient *p, const FXString &name,
FXIcon *ic=NULL, FXPopup *pup=NULL, FXuint opts=0,
FXint x=0, FXint y=0, FXint w=0, FXint h=0);
2007-09-14 19:00:32 +08:00
virtual ~FOX_OSG_MDIView();
2007-09-14 19:00:32 +08:00
enum{
ID_CHORE=FXMDIChild::ID_LAST,
ID_LAST
};
2007-09-14 19:00:32 +08:00
// callback
long OnIdle(FXObject* , FXSelector, void*);
2007-09-14 19:00:32 +08:00
void SetViewer(osgViewer::Viewer *viewer);
protected:
2007-09-14 19:00:32 +08:00
FOX_OSG_MDIView(){};
private:
2007-09-14 19:00:32 +08:00
osg::ref_ptr<osgViewer::Viewer> m_osgViewer;
GraphicsWindowFOX* m_gwFox;
};
#endif // _FOXOSGMDIVIEW_H_