From a851b0b41290f1dc41b10b901481c76a943fcbcb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 8 Sep 2009 15:36:44 +0000 Subject: [PATCH] Tweaked debugging info --- src/osgPlugins/dicom/ReaderWriterDICOM.cpp | 2 +- src/osgVolume/RayTracedTechnique.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/dicom/ReaderWriterDICOM.cpp b/src/osgPlugins/dicom/ReaderWriterDICOM.cpp index ce6cfc209..40177beaa 100644 --- a/src/osgPlugins/dicom/ReaderWriterDICOM.cpp +++ b/src/osgPlugins/dicom/ReaderWriterDICOM.cpp @@ -117,7 +117,7 @@ class ReaderWriterDICOM : public osgDB::ReaderWriter if ((*itr)[0]=='.') { - osg::notify(osg::NOTICE)<<"Ignoring tempory file "<<*itr< #include +#include namespace osgVolume { @@ -267,6 +268,17 @@ void RayTracedTechnique::init() } osg::ref_ptr tf_texture = new osg::Texture1D; tf_texture->setImage(tf->getImage()); + +#if 0 + osgDB::writeImageFile(*(tf->getImage()),"tf.png"); + osg::notify(osg::NOTICE)<<"imageLayer->getTexelOffset()[3]="<getTexelOffset()[3]<getTexelScale()[3]="<getTexelScale()[3]<getMinimum()="<getMinimum()<getMaximum()="<getMaximum()<setResizeNonPowerOfTwoHint(false); tf_texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR); tf_texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);