Build fix
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14439 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
23b8131ae5
commit
0db0bcdd5e
@ -137,7 +137,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA
|
|||||||
_startedDrag = false;
|
_startedDrag = false;
|
||||||
if (ea->getButtonMask()==osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON)
|
if (ea->getButtonMask()==osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON)
|
||||||
{
|
{
|
||||||
osg::Vec3 position;
|
osg::Vec3d position;
|
||||||
if (computePositionInLocalCoordinates(ev, ea, position))
|
if (computePositionInLocalCoordinates(ev, ea, position))
|
||||||
{
|
{
|
||||||
_startedDrag = true;
|
_startedDrag = true;
|
||||||
@ -153,7 +153,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA
|
|||||||
// OSG_NOTICE<<"Dragged "<<std::endl;
|
// OSG_NOTICE<<"Dragged "<<std::endl;
|
||||||
if (_startedDrag)
|
if (_startedDrag)
|
||||||
{
|
{
|
||||||
osg::Vec3 position;
|
osg::Vec3d position;
|
||||||
if (computePositionInLocalCoordinates(ev, ea, position))
|
if (computePositionInLocalCoordinates(ev, ea, position))
|
||||||
{
|
{
|
||||||
float delta = -(position.x()-_previousDragPosition);
|
float delta = -(position.x()-_previousDragPosition);
|
||||||
@ -166,7 +166,7 @@ bool TransferFunctionWidget::handleImplementation(osgGA::EventVisitor* ev, osgGA
|
|||||||
break;
|
break;
|
||||||
case(osgGA::GUIEventAdapter::SCROLL):
|
case(osgGA::GUIEventAdapter::SCROLL):
|
||||||
{
|
{
|
||||||
osg::Vec3 position;
|
osg::Vec3d position;
|
||||||
if (computePositionInLocalCoordinates(ev, ea, position))
|
if (computePositionInLocalCoordinates(ev, ea, position))
|
||||||
{
|
{
|
||||||
float translation = 0.0;
|
float translation = 0.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user