Show
Ignore:
Timestamp:
08/28/14 17:11:29 (2 days ago)
Author:
robert
Message:

Improved support for controlling the ShadingModel? via the VolumeSettings? object

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgGA/GUIEventAdapter.cpp

    r13041 r13376  
    123123    _touchData->addTouchPoint(id, phase, x, y, tapCount); 
    124124} 
     125 
     126void GUIEventAdapter::copyPointerDataFrom(const osgGA::GUIEventAdapter& sourceEvent) 
     127{ 
     128    setGraphicsContext(const_cast<osg::GraphicsContext*>(sourceEvent.getGraphicsContext())); 
     129    setX(sourceEvent.getX()); 
     130    setY(sourceEvent.getY()); 
     131    setInputRange(sourceEvent.getXmin(), sourceEvent.getYmin(), sourceEvent.getXmax(), sourceEvent.getYmax()); 
     132    setButtonMask(sourceEvent.getButtonMask()); 
     133    setMouseYOrientation(sourceEvent.getMouseYOrientation()); 
     134    setPointerDataList(sourceEvent.getPointerDataList()); 
     135}