36 lines
673 B
C++
36 lines
673 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) override = default;
|
|
|
|
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&) override;
|
|
|
|
private:
|
|
osgWidget::Canvas* _operate;
|
|
osgWidget::Canvas* _N;
|
|
osgWidget::Canvas* _light;
|
|
osgWidget::Canvas* _background;
|
|
|
|
CompositeWidgetManager* _cw;
|
|
|
|
double _num;
|
|
bool _move;
|
|
double _angle;
|
|
|
|
};
|
|
|
|
#endif
|