Hi Clement,

On 27 July 2012 15:40,  <clement....@csiro.au> wrote:
>    I tried osgVolume::SwitchProperty on testing code, but how to do to switch 
> property during runtime?  I added keyboard event.  When 1 is pressed, it will 
> call sp->setActiveProperty(1).  I cannot see any change.  Anyone know how to 
> do?  Thanks.

setActiveProperty() should work just fine, I've been using it with
present3D for over a year now without problems via the
PropertyAdjustmentCallback, see src/osgVolume/Property.cpp so see how
PropertyAdjustmentCallback is implemented.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to