Updates to NodeTrackerManipulator.cpp
This commit is contained in:
parent
e4f22c72bd
commit
bb7c423849
@ -90,6 +90,8 @@ class OSGGA_EXPORT NodeTrackerManipulator : public MatrixManipulator
|
||||
/** Return node if attached.*/
|
||||
virtual osg::Node* getNode();
|
||||
|
||||
virtual void computeHomePosition();
|
||||
|
||||
/** Move the camera to the default position.
|
||||
May be ignored by manipulators if home functionality is not appropriate.*/
|
||||
virtual void home(const GUIEventAdapter& ea,GUIActionAdapter& us);
|
||||
|
@ -249,6 +249,9 @@ void NodeTrackerManipulator::addMouseEvent(const GUIEventAdapter& ea)
|
||||
|
||||
void NodeTrackerManipulator::setByMatrix(const osg::Matrixd& matrix)
|
||||
{
|
||||
osg::Vec3d eye,center,up;
|
||||
matrix.getLookAt(eye,center,up,_distance);
|
||||
computePosition(eye,center,up);
|
||||
}
|
||||
|
||||
void NodeTrackerManipulator::computeNodeWorldToLocal(osg::Matrixd& worldToLocal) const
|
||||
|
Loading…
Reference in New Issue
Block a user