Changeset 11480

Show
Ignore:
Timestamp:
05/28/10 18:04:19 (2 years ago)
Author:
robert
Message:

Converted osg::notify to OSG_INFO etc.

Location:
OpenSceneGraph/trunk/src/osgVolume
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgVolume/FixedFunctionTechnique.cpp

    r10135 r11480  
    9999void FixedFunctionTechnique::init() 
    100100{ 
    101     osg::notify(osg::INFO)<<"FixedFunctionTechnique::init()"<<std::endl; 
     101    OSG_INFO<<"FixedFunctionTechnique::init()"<<std::endl; 
    102102 
    103103    if (!_volumeTile) 
    104104    { 
    105         osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::init(), error no volume tile assigned."<<std::endl; 
     105        OSG_NOTICE<<"FixedFunctionTechnique::init(), error no volume tile assigned."<<std::endl; 
    106106        return; 
    107107    } 
     
    109109    if (_volumeTile->getLayer()==0) 
    110110    { 
    111         osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::init(), error no layer assigend to volume tile."<<std::endl; 
     111        OSG_NOTICE<<"FixedFunctionTechnique::init(), error no layer assigend to volume tile."<<std::endl; 
    112112        return; 
    113113    } 
     
    115115    if (_volumeTile->getLayer()->getImage()==0) 
    116116    { 
    117         osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::init(), error no image assigned to layer."<<std::endl; 
     117        OSG_NOTICE<<"FixedFunctionTechnique::init(), error no image assigned to layer."<<std::endl; 
    118118        return; 
    119119    } 
     
    153153    { 
    154154        masterLocator = _volumeTile->getLayer()->getLocator(); 
    155         osg::notify(osg::NOTICE)<<"assigning locator = "<<masterLocator<<std::endl; 
     155        OSG_NOTICE<<"assigning locator = "<<masterLocator<<std::endl; 
    156156    } 
    157157 
     
    162162    } 
    163163     
    164     osg::notify(osg::NOTICE)<<"Matrix = "<<matrix<<std::endl; 
     164    OSG_NOTICE<<"Matrix = "<<matrix<<std::endl; 
    165165 
    166166    osg::Texture::FilterMode minFilter = osg::Texture::NEAREST; 
     
    258258void FixedFunctionTechnique::update(osgUtil::UpdateVisitor* uv) 
    259259{ 
    260 //    osg::notify(osg::NOTICE)<<"FixedFunctionTechnique:update(osgUtil::UpdateVisitor* nv):"<<std::endl; 
     260//    OSG_NOTICE<<"FixedFunctionTechnique:update(osgUtil::UpdateVisitor* nv):"<<std::endl; 
    261261} 
    262262 
    263263void FixedFunctionTechnique::cull(osgUtil::CullVisitor* cv) 
    264264{ 
    265     //osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::cull(osgUtil::CullVisitor* nv)"<<std::endl;     
     265    //OSG_NOTICE<<"FixedFunctionTechnique::cull(osgUtil::CullVisitor* nv)"<<std::endl;     
    266266    if (_node.valid()) 
    267267    { 
     
    272272void FixedFunctionTechnique::cleanSceneGraph() 
    273273{ 
    274     osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::cleanSceneGraph()"<<std::endl; 
     274    OSG_NOTICE<<"FixedFunctionTechnique::cleanSceneGraph()"<<std::endl; 
    275275} 
    276276 
    277277void FixedFunctionTechnique::traverse(osg::NodeVisitor& nv) 
    278278{ 
    279     // osg::notify(osg::NOTICE)<<"FixedFunctionTechnique::traverse(osg::NodeVisitor& nv)"<<std::endl; 
     279    // OSG_NOTICE<<"FixedFunctionTechnique::traverse(osg::NodeVisitor& nv)"<<std::endl; 
    280280    if (!_volumeTile) return; 
    281281 
     
    306306    if (_volumeTile->getDirty())  
    307307    { 
    308         osg::notify(osg::INFO)<<"******* Doing init ***********"<<std::endl; 
     308        OSG_INFO<<"******* Doing init ***********"<<std::endl; 
    309309        _volumeTile->init(); 
    310310    } 
  • OpenSceneGraph/trunk/src/osgVolume/Layer.cpp

    r10580 r11480  
    6060    getLocator()->computeLocalBounds(left, right); 
    6161 
    62     //osg::notify(osg::NOTICE)<<"left = "<<left<<std::endl; 
    63     //osg::notify(osg::NOTICE)<<"right = "<<right<<std::endl; 
     62    //OSG_NOTICE<<"left = "<<left<<std::endl; 
     63    //OSG_NOTICE<<"right = "<<right<<std::endl; 
    6464 
    6565    return osg::BoundingSphere((left+right)*0.5, (right-left).length()*0.5); 
     
    146146    if (computeMinMax(minValue, maxValue)) 
    147147    { 
    148         osg::notify(osg::NOTICE)<<"ImageLayer::offsetAndScaleImage("<<offset<<" and "<<scale<<")"<<std::endl; 
    149         osg::notify(osg::NOTICE)<<"     before    _texelOffset "<<_texelOffset<<std::endl; 
    150         osg::notify(osg::NOTICE)<<"     before    _texelScale "<<_texelScale<<std::endl; 
    151         osg::notify(osg::NOTICE)<<"     before    minValue "<<minValue<<std::endl; 
    152         osg::notify(osg::NOTICE)<<"     before    maxValue "<<maxValue<<std::endl; 
    153         osg::notify(osg::NOTICE)<<"     before    minValue transformed "<<minValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
    154         osg::notify(osg::NOTICE)<<"     before    maxValue transformed "<<maxValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
     148        OSG_NOTICE<<"ImageLayer::offsetAndScaleImage("<<offset<<" and "<<scale<<")"<<std::endl; 
     149        OSG_NOTICE<<"     before    _texelOffset "<<_texelOffset<<std::endl; 
     150        OSG_NOTICE<<"     before    _texelScale "<<_texelScale<<std::endl; 
     151        OSG_NOTICE<<"     before    minValue "<<minValue<<std::endl; 
     152        OSG_NOTICE<<"     before    maxValue "<<maxValue<<std::endl; 
     153        OSG_NOTICE<<"     before    minValue transformed "<<minValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
     154        OSG_NOTICE<<"     before    maxValue transformed "<<maxValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
    155155    } 
    156156#endif 
     
    178178    if (computeMinMax(minValue, maxValue)) 
    179179    { 
    180         osg::notify(osg::NOTICE)<<"     after     _texelOffset "<<_texelOffset<<std::endl; 
    181         osg::notify(osg::NOTICE)<<"     after     _texelScale "<<_texelScale<<std::endl; 
    182         osg::notify(osg::NOTICE)<<"     after     minValue "<<minValue<<std::endl; 
    183         osg::notify(osg::NOTICE)<<"     after     maxValue "<<maxValue<<std::endl; 
    184         osg::notify(osg::NOTICE)<<"     after     minValue transformed "<<minValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
    185         osg::notify(osg::NOTICE)<<"     after     maxValue transformed "<<maxValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
     180        OSG_NOTICE<<"     after     _texelOffset "<<_texelOffset<<std::endl; 
     181        OSG_NOTICE<<"     after     _texelScale "<<_texelScale<<std::endl; 
     182        OSG_NOTICE<<"     after     minValue "<<minValue<<std::endl; 
     183        OSG_NOTICE<<"     after     maxValue "<<maxValue<<std::endl; 
     184        OSG_NOTICE<<"     after     minValue transformed "<<minValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
     185        OSG_NOTICE<<"     after     maxValue transformed "<<maxValue[0]*_texelScale[0]+_texelOffset[0]<<std::endl; 
    186186    } 
    187187#endif 
     
    190190void ImageLayer::rescaleToZeroToOneRange() 
    191191{ 
    192     osg::notify(osg::INFO)<<"ImageLayer::rescaleToZeroToOneRange()"<<std::endl; 
     192    OSG_INFO<<"ImageLayer::rescaleToZeroToOneRange()"<<std::endl; 
    193193 
    194194    osg::Vec4 minValue, maxValue; 
     
    208208        float offset = -minComponent * scale; 
    209209 
    210         osg::notify(osg::INFO)<<"         scale "<<scale<<std::endl; 
    211         osg::notify(osg::INFO)<<"         offset "<<offset<<std::endl; 
     210        OSG_INFO<<"         scale "<<scale<<std::endl; 
     211        OSG_INFO<<"         offset "<<offset<<std::endl; 
    212212 
    213213        offsetAndScaleImage(osg::Vec4(offset, offset, offset, offset), 
     
    292292osg::Image* osgVolume::createNormalMapTexture(osg::Image* image_3d) 
    293293{ 
    294     osg::notify(osg::INFO)<<"Computing NormalMapTexture"<<std::endl; 
     294    OSG_INFO<<"Computing NormalMapTexture"<<std::endl; 
    295295 
    296296    GLenum dataType = image_3d->getDataType(); 
     
    318318        break; 
    319319    default: 
    320         osg::notify(osg::NOTICE)<<"Source pixel format not support for normal map generation."<<std::endl; 
     320        OSG_NOTICE<<"Source pixel format not support for normal map generation."<<std::endl; 
    321321        return 0; 
    322322    } 
     
    402402                    grad.normalize(); 
    403403 
    404                     //osg::notify(osg::NOTICE)<<"normal "<<grad<<std::endl; 
     404                    //OSG_NOTICE<<"normal "<<grad<<std::endl; 
    405405 
    406406                    if (grad.x()==0.0f && grad.y()==0.0f && grad.z()==0.0f) 
     
    482482 
    483483 
    484     osg::notify(osg::INFO)<<"Created NormalMapTexture"<<std::endl; 
     484    OSG_INFO<<"Created NormalMapTexture"<<std::endl; 
    485485 
    486486    return normalmap_3d.release(); 
     
    533533osg::Image* osgVolume::applyTransferFunction(osg::Image* image, osg::TransferFunction1D* transferFunction) 
    534534{ 
    535     osg::notify(osg::INFO)<<"Applying transfer function"<<std::endl; 
     535    OSG_INFO<<"Applying transfer function"<<std::endl; 
    536536 
    537537    osg::Image* output_image = new osg::Image; 
  • OpenSceneGraph/trunk/src/osgVolume/Locator.cpp

    r10560 r11480  
    110110bool Locator::computeLocalBounds(osg::Vec3d& bottomLeft, osg::Vec3d& topRight) const 
    111111{ 
    112     osg::notify(osg::NOTICE)<<"Locator::computeLocalBounds"<<std::endl; 
     112    OSG_NOTICE<<"Locator::computeLocalBounds"<<std::endl; 
    113113 
    114114    typedef std::list<osg::Vec3d> Corners; 
  • OpenSceneGraph/trunk/src/osgVolume/Property.cpp

    r9523 r11480  
    338338            if (_updateAlphaCutOff && cpv._isoProperty.valid()) 
    339339            { 
    340                 osg::notify(osg::INFO)<<"Setting isoProperty to "<<v<<std::endl; 
     340                OSG_INFO<<"Setting isoProperty to "<<v<<std::endl; 
    341341                cpv._isoProperty->setValue(v); 
    342342            } 
     
    344344            if (_updateAlphaCutOff && cpv._afProperty.valid()) 
    345345            { 
    346                 osg::notify(osg::INFO)<<"Setting afProperty to "<<v2<<std::endl; 
     346                OSG_INFO<<"Setting afProperty to "<<v2<<std::endl; 
    347347                cpv._afProperty->setValue(v2); 
    348348            } 
     
    350350            if (_updateTransparency && cpv._transparencyProperty.valid()) 
    351351            { 
    352                 osg::notify(osg::INFO)<<"Setting transparency to "<<v2<<std::endl; 
     352                OSG_INFO<<"Setting transparency to "<<v2<<std::endl; 
    353353                cpv._transparencyProperty->setValue(v2); 
    354354            } 
     
    356356            if (_updateSampleDensity && cpv._sampleDensityProperty.valid()) 
    357357            { 
    358                 osg::notify(osg::INFO)<<"Setting sample density to "<<v4<<std::endl; 
     358                OSG_INFO<<"Setting sample density to "<<v4<<std::endl; 
    359359                cpv._sampleDensityProperty->setValue(v4); 
    360360            } 
  • OpenSceneGraph/trunk/src/osgVolume/RayTracedTechnique.cpp

    r10592 r11480  
    9797void RayTracedTechnique::init() 
    9898{ 
    99     osg::notify(osg::INFO)<<"RayTracedTechnique::init()"<<std::endl; 
     99    OSG_INFO<<"RayTracedTechnique::init()"<<std::endl; 
    100100 
    101101    if (!_volumeTile) 
    102102    { 
    103         osg::notify(osg::NOTICE)<<"RayTracedTechnique::init(), error no volume tile assigned."<<std::endl; 
     103        OSG_NOTICE<<"RayTracedTechnique::init(), error no volume tile assigned."<<std::endl; 
    104104        return; 
    105105    } 
     
    107107    if (_volumeTile->getLayer()==0) 
    108108    { 
    109         osg::notify(osg::NOTICE)<<"RayTracedTechnique::init(), error no layer assigend to volume tile."<<std::endl; 
     109        OSG_NOTICE<<"RayTracedTechnique::init(), error no layer assigend to volume tile."<<std::endl; 
    110110        return; 
    111111    } 
     
    113113    if (_volumeTile->getLayer()->getImage()==0) 
    114114    { 
    115         osg::notify(osg::NOTICE)<<"RayTracedTechnique::init(), error no image assigned to layer."<<std::endl; 
     115        OSG_NOTICE<<"RayTracedTechnique::init(), error no image assigned to layer."<<std::endl; 
    116116        return; 
    117117    } 
     
    187187    } 
    188188 
    189     osg::notify(osg::INFO)<<"RayTracedTechnique::init() : geometryMatrix = "<<geometryMatrix<<std::endl; 
    190     osg::notify(osg::INFO)<<"RayTracedTechnique::init() : imageMatrix = "<<imageMatrix<<std::endl; 
     189    OSG_INFO<<"RayTracedTechnique::init() : geometryMatrix = "<<geometryMatrix<<std::endl; 
     190    OSG_INFO<<"RayTracedTechnique::init() : imageMatrix = "<<imageMatrix<<std::endl; 
    191191 
    192192    osg::Texture::InternalFormatMode internalFormatMode = osg::Texture::USE_IMAGE_DATA_FORMAT; 
     
    272272#if 1 
    273273            osgDB::writeImageFile(*(tf->getImage()),"tf.png"); 
    274             osg::notify(osg::NOTICE)<<"imageLayer->getTexelOffset()[3]="<<imageLayer->getTexelOffset()[3]<<std::endl; 
    275             osg::notify(osg::NOTICE)<<"imageLayer->getTexelScale()[3]="<<imageLayer->getTexelScale()[3]<<std::endl; 
    276             osg::notify(osg::NOTICE)<<"tfOffset="<<tfOffset<<std::endl; 
    277             osg::notify(osg::NOTICE)<<"tfScale="<<tfScale<<std::endl; 
    278             osg::notify(osg::NOTICE)<<"tf->getMinimum()="<<tf->getMinimum()<<std::endl; 
    279             osg::notify(osg::NOTICE)<<"tf->getMaximum()="<<tf->getMaximum()<<std::endl; 
     274            OSG_NOTICE<<"imageLayer->getTexelOffset()[3]="<<imageLayer->getTexelOffset()[3]<<std::endl; 
     275            OSG_NOTICE<<"imageLayer->getTexelScale()[3]="<<imageLayer->getTexelScale()[3]<<std::endl; 
     276            OSG_NOTICE<<"tfOffset="<<tfOffset<<std::endl; 
     277            OSG_NOTICE<<"tfScale="<<tfScale<<std::endl; 
     278            OSG_NOTICE<<"tf->getMinimum()="<<tf->getMinimum()<<std::endl; 
     279            OSG_NOTICE<<"tf->getMaximum()="<<tf->getMaximum()<<std::endl; 
    280280#endif 
    281281 
     
    350350                if (fragmentShader) 
    351351                { 
    352                     osg::notify(osg::INFO)<<"Shader found"<<std::endl; 
     352                    OSG_INFO<<"Shader found"<<std::endl; 
    353353                 
    354354                    program->addShader(fragmentShader); 
     
    356356                else 
    357357                { 
    358                     osg::notify(osg::INFO)<<"No Shader found"<<std::endl; 
     358                    OSG_INFO<<"No Shader found"<<std::endl; 
    359359 
    360360                    #include "Shaders/volume_iso_frag.cpp" 
     
    539539void RayTracedTechnique::update(osgUtil::UpdateVisitor* uv) 
    540540{ 
    541 //    osg::notify(osg::NOTICE)<<"RayTracedTechnique:update(osgUtil::UpdateVisitor* nv):"<<std::endl; 
     541//    OSG_NOTICE<<"RayTracedTechnique:update(osgUtil::UpdateVisitor* nv):"<<std::endl; 
    542542} 
    543543 
    544544void RayTracedTechnique::cull(osgUtil::CullVisitor* cv) 
    545545{ 
    546     //osg::notify(osg::NOTICE)<<"RayTracedTechnique::cull(osgUtil::CullVisitor* nv)"<<std::endl;     
     546    //OSG_NOTICE<<"RayTracedTechnique::cull(osgUtil::CullVisitor* nv)"<<std::endl;     
    547547    if (_transform.valid()) 
    548548    { 
     
    553553void RayTracedTechnique::cleanSceneGraph() 
    554554{ 
    555     osg::notify(osg::NOTICE)<<"RayTracedTechnique::cleanSceneGraph()"<<std::endl; 
     555    OSG_NOTICE<<"RayTracedTechnique::cleanSceneGraph()"<<std::endl; 
    556556} 
    557557 
    558558void RayTracedTechnique::traverse(osg::NodeVisitor& nv) 
    559559{ 
    560     // osg::notify(osg::NOTICE)<<"RayTracedTechnique::traverse(osg::NodeVisitor& nv)"<<std::endl; 
     560    // OSG_NOTICE<<"RayTracedTechnique::traverse(osg::NodeVisitor& nv)"<<std::endl; 
    561561    if (!_volumeTile) return; 
    562562 
     
    587587    if (_volumeTile->getDirty())  
    588588    { 
    589         osg::notify(osg::INFO)<<"******* Doing init ***********"<<std::endl; 
     589        OSG_INFO<<"******* Doing init ***********"<<std::endl; 
    590590        _volumeTile->init(); 
    591591    } 
  • OpenSceneGraph/trunk/src/osgVolume/Volume.cpp

    r9494 r11480  
    9595    if (_volumeTileSet.size() > s_maxNumVolumeTiles) s_maxNumVolumeTiles = _volumeTileSet.size(); 
    9696 
    97     // osg::notify(osg::NOTICE)<<"Volume::registerVolumeTile "<<volumeTile<<" total number of VolumeTile "<<_volumeTileSet.size()<<" max = "<<s_maxNumVolumeTiles<<std::endl; 
     97    // OSG_NOTICE<<"Volume::registerVolumeTile "<<volumeTile<<" total number of VolumeTile "<<_volumeTileSet.size()<<" max = "<<s_maxNumVolumeTiles<<std::endl; 
    9898} 
    9999 
     
    111111    _volumeTileSet.erase(volumeTile); 
    112112 
    113     // osg::notify(osg::NOTICE)<<"Volume::unregisterVolumeTile "<<volumeTile<<" total number of VolumeTile "<<_volumeTileSet.size()<<" max = "<<s_maxNumVolumeTiles<<std::endl; 
     113    // OSG_NOTICE<<"Volume::unregisterVolumeTile "<<volumeTile<<" total number of VolumeTile "<<_volumeTileSet.size()<<" max = "<<s_maxNumVolumeTiles<<std::endl; 
    114114} 
  • OpenSceneGraph/trunk/src/osgVolume/VolumeTechnique.cpp

    r9494 r11480  
    3535void VolumeTechnique::init() 
    3636{ 
    37     osg::notify(osg::NOTICE)<<className()<<"::initialize(..) not implementated yet"<<std::endl; 
     37    OSG_NOTICE<<className()<<"::initialize(..) not implementated yet"<<std::endl; 
    3838} 
    3939 
    4040void VolumeTechnique::update(osgUtil::UpdateVisitor* uv) 
    4141{ 
    42     osg::notify(osg::NOTICE)<<className()<<"::update(..) not implementated yet"<<std::endl; 
     42    OSG_NOTICE<<className()<<"::update(..) not implementated yet"<<std::endl; 
    4343    if (_volumeTile) _volumeTile->osg::Group::traverse(*uv); 
    4444} 
     
    4646void VolumeTechnique::cull(osgUtil::CullVisitor* cv) 
    4747{ 
    48     osg::notify(osg::NOTICE)<<className()<<"::cull(..) not implementated yet"<<std::endl; 
     48    OSG_NOTICE<<className()<<"::cull(..) not implementated yet"<<std::endl; 
    4949    if (_volumeTile) _volumeTile->osg::Group::traverse(*cv); 
    5050} 
     
    5252void VolumeTechnique::cleanSceneGraph() 
    5353{ 
    54     osg::notify(osg::NOTICE)<<className()<<"::cleanSceneGraph(..) not implementated yet"<<std::endl; 
     54    OSG_NOTICE<<className()<<"::cleanSceneGraph(..) not implementated yet"<<std::endl; 
    5555} 
    5656 
  • OpenSceneGraph/trunk/src/osgVolume/VolumeTile.cpp

    r9748 r11480  
    113113                    if (volume)  
    114114                    { 
    115                         osg::notify(osg::INFO)<<"Assigning volume system "<<volume<<std::endl;                         
     115                        OSG_INFO<<"Assigning volume system "<<volume<<std::endl;                         
    116116                        setVolume(volume); 
    117117                    }