36 lines
653 B
C
36 lines
653 B
C
|
|
#ifndef OperateHandle_H_
|
|||
|
|
#define OperateHandle_H_
|
|||
|
|
|
|||
|
|
#include <osgGA/GUIEventHandler>
|
|||
|
|
#include <osgWidget/Canvas>
|
|||
|
|
#include "CompositeWidget.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
#include <iostream>
|
|||
|
|
|
|||
|
|
class CompositeWidgetManager;
|
|||
|
|
class CompositeHandle :public osgGA::GUIEventHandler
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
CompositeHandle(CompositeWidgetManager* cw);
|
|||
|
|
|
|||
|
|
~CompositeHandle(void);
|
|||
|
|
|
|||
|
|
virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&);
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
osgWidget::Canvas* _operate;
|
|||
|
|
osgWidget::Canvas* _N;
|
|||
|
|
osgWidget::Canvas* _light;
|
|||
|
|
osgWidget::Canvas* _background;
|
|||
|
|
|
|||
|
|
CompositeWidgetManager* _cw;
|
|||
|
|
|
|||
|
|
double _num;
|
|||
|
|
bool _move;
|
|||
|
|
double _angle;
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif
|