2007-07-24 22:02:53 +08:00
|
|
|
#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)
|
2007-07-24 22:02:53 +08:00
|
|
|
|
|
|
|
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-07-24 22:02:53 +08:00
|
|
|
|
2007-09-14 19:00:32 +08:00
|
|
|
virtual ~FOX_OSG_MDIView();
|
2007-07-24 22:02:53 +08:00
|
|
|
|
2007-09-14 19:00:32 +08:00
|
|
|
enum{
|
|
|
|
ID_CHORE=FXMDIChild::ID_LAST,
|
|
|
|
ID_LAST
|
|
|
|
};
|
2007-07-24 22:02:53 +08:00
|
|
|
|
2007-09-14 19:00:32 +08:00
|
|
|
// callback
|
|
|
|
long OnIdle(FXObject* , FXSelector, void*);
|
2007-07-24 22:02:53 +08:00
|
|
|
|
2007-09-14 19:00:32 +08:00
|
|
|
void SetViewer(osgViewer::Viewer *viewer);
|
2007-07-24 22:02:53 +08:00
|
|
|
|
|
|
|
protected:
|
2007-09-14 19:00:32 +08:00
|
|
|
FOX_OSG_MDIView(){};
|
2007-07-24 22:02:53 +08:00
|
|
|
|
|
|
|
private:
|
2007-09-14 19:00:32 +08:00
|
|
|
osg::ref_ptr<osgViewer::Viewer> m_osgViewer;
|
|
|
|
GraphicsWindowFOX* m_gwFox;
|
2007-07-24 22:02:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _FOXOSGMDIVIEW_H_
|