Show
Ignore:
Timestamp:
09/01/14 21:13:35 (7 hours ago)
Author:
robert
Message:

Added DragCallback? class to help dialog dragging support.
Introduced a new Widget::computeExtentsPositionInLocalCoordinates() method that intersects with a ray through mouse pointer and the extents of the widget.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp

    r13940 r13944  
    10681068 
    10691069        osgVolume::AlphaFuncProperty* ap = new osgVolume::AlphaFuncProperty(alphaFunc); 
     1070        osgVolume::IsoSurfaceProperty* isop = new osgVolume::IsoSurfaceProperty(alphaFunc); 
    10701071 
    10711072        // SampleDensity is now deprecated 
     
    10881089 
    10891090            if (sdwm) cp->addProperty(sdwm); 
    1090             if (tfp) cp->addProperty(tfp); 
     1091            if (tfp) 
     1092            { 
     1093                OSG_NOTICE<<"Adding TransferFunction"<<std::endl; 
     1094                cp->addProperty(tfp); 
     1095            } 
     1096 
     1097            cp->addProperty(isop); 
    10911098 
    10921099            sp->addProperty(cp); 
     
    11131120            else cp->addProperty(sd); 
    11141121            cp->addProperty(tp); 
    1115             cp->addProperty(new osgVolume::IsoSurfaceProperty(alphaFunc)); 
     1122            cp->addProperty(isop); 
    11161123            if (sdwm) cp->addProperty(sdwm); 
    11171124            if (tfp) cp->addProperty(tfp);