Introduced osgVolume::Property, CompositePropery and TransferFunctionPropety classes

This commit is contained in:
Robert Osfield
2009-01-14 15:16:29 +00:00
parent c21eef7afb
commit d87ec7cb18
26 changed files with 625 additions and 111 deletions

View File

@@ -2296,7 +2296,7 @@ int main( int argc, char **argv )
volume->addChild(tile);
osg::ref_ptr<osgVolume::Layer> layer = new osgVolume::ImageLayer(image_3d);
layer->setTransferFunction(transferFunction.get());
layer->setProperty(new osgVolume::TransferFunctionProperty(transferFunction.get()));
if (matrix)
{
@@ -2305,7 +2305,7 @@ int main( int argc, char **argv )
tile->setLocator(locator);
}
tile->addLayer(layer.get());
tile->setLayer(layer.get());
if (useShader)
{