Removed old volume rendering scene graph code from osgvolume example.

Moved createNormalMapTexture and applyTransferFunction functions from osgvolume example into include/osgVolume/Layer.
This commit is contained in:
Robert Osfield
2009-01-16 17:59:38 +00:00
parent 9d4b44f956
commit b176c3a223
5 changed files with 275 additions and 979 deletions

View File

@@ -15,6 +15,7 @@
#define OSGVOLUME_LAYER 1
#include <osg/Image>
#include <osg/TransferFunction>
#include <osgVolume/Locator>
#include <osgVolume/Property>
@@ -208,6 +209,12 @@ class OSGVOLUME_EXPORT CompositeLayer : public Layer
Layers _layers;
};
/** Compute a 3d image that represent the normal map of the specified 3d image.*/
extern OSGVOLUME_EXPORT osg::Image* createNormalMapTexture(osg::Image* image_3d);
/** Create an image that has a transfer function applied specified Image.*/
extern OSGVOLUME_EXPORT osg::Image* applyTransferFunction(osg::Image* image, osg::TransferFunction1D* transferFunction);
}
#endif