2003-05-19 23:15:17 +08:00
|
|
|
#include <osg/GL>
|
|
|
|
#include <osg/Matrix>
|
|
|
|
#include <osgGA/MatrixManipulator>
|
|
|
|
|
|
|
|
using namespace osg;
|
|
|
|
using namespace osgGA;
|
|
|
|
|
|
|
|
MatrixManipulator::MatrixManipulator()
|
|
|
|
{
|
2004-07-09 23:21:33 +08:00
|
|
|
_minimumDistance = 0.001;
|
2004-07-13 03:54:54 +08:00
|
|
|
|
|
|
|
_autoComputeHomePosition = true;
|
|
|
|
|
|
|
|
_homeEye.set(0.0,-1.0,0.0);
|
|
|
|
_homeCenter.set(0.0,0.0,0.0);
|
|
|
|
_homeUp.set(0.0,0.0,1.0);
|
2003-05-19 23:15:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MatrixManipulator::~MatrixManipulator()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool MatrixManipulator::handle(const GUIEventAdapter&,GUIActionAdapter&)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|