42 lines
920 B
C++
42 lines
920 B
C++
#ifndef ZoomWidget_H_
|
|
#define ZoomWidget_H_
|
|
|
|
#include <osg/Array>
|
|
#include <osgWidget/Util>
|
|
#include <osgWidget/WindowManager>
|
|
#include <osgWidget/Canvas>
|
|
#include <osgWidget/ViewerEventHandlers>
|
|
#include <iostream>
|
|
|
|
class ZoomManager;
|
|
|
|
class ZoomWidget : public osgWidget::Widget
|
|
{
|
|
public:
|
|
ZoomWidget(std::string name,
|
|
float w,
|
|
float h,
|
|
std::string fileName,
|
|
std::string message,
|
|
osgWidget::Widget::Layer layer,
|
|
ZoomManager *pZoomManager);
|
|
|
|
~ZoomWidget(void);
|
|
|
|
bool mousePush(double, double, const osgWidget::WindowManager*);
|
|
bool mouseRelease(double, double, const osgWidget::WindowManager*);
|
|
bool mouseDrag(double, double, const osgWidget::WindowManager*);
|
|
|
|
std::string GetOrder() { return _order; }
|
|
double GetPointerX() { return _pointX; }
|
|
double GetpointerY() { return _pointY; }
|
|
|
|
private:
|
|
double _pointX;
|
|
double _pointY;
|
|
std::string _order;
|
|
ZoomManager *_pZoomManager;
|
|
};
|
|
|
|
#endif
|