Skip to content

Commit

Permalink
Added support for .osgt, .osgb and .osgx plugins to osgvolume example
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Jun 7, 2011
1 parent c565a7a commit 537272b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/osgvolume/osgvolume.cpp
Expand Up @@ -1653,7 +1653,7 @@ int main( int argc, char **argv )
{
std::string ext = osgDB::getFileExtension(outputFile);
std::string name_no_ext = osgDB::getNameLessExtension(outputFile);
if (ext=="osg")
if (ext=="osg" || ext=="osgt" || ext=="osgx" )
{
if (image_3d.valid())
{
Expand All @@ -1662,7 +1662,7 @@ int main( int argc, char **argv )
}
osgDB::writeNodeFile(*volume, outputFile);
}
else if (ext=="ive")
else if (ext=="ive" || ext=="osgb" )
{
osgDB::writeNodeFile(*volume, outputFile);
}
Expand Down
21 changes: 17 additions & 4 deletions src/osgWrappers/serializers/osgVolume/SampleDensityProperty.cpp
Expand Up @@ -3,9 +3,22 @@
#include <osgDB/InputStream>
#include <osgDB/OutputStream>

REGISTER_OBJECT_WRAPPER( osgVolume_SampleDensityProperty,
new osgVolume::SampleDensityProperty,
osgVolume::SampleDensityProperty,
"osg::Object osgVolume::Property osgVolume::ScalarProperty osgVolume::SampleDensityProperty" )
namespace osgVolume_SampleDensityProperty
{
REGISTER_OBJECT_WRAPPER( osgVolume_SampleDensityProperty,
new osgVolume::SampleDensityProperty,
osgVolume::SampleDensityProperty,
"osg::Object osgVolume::Property osgVolume::ScalarProperty osgVolume::SampleDensityProperty" )
{
}
}

namespace osgVolume_SampleDensityWhenMovingProperty
{
REGISTER_OBJECT_WRAPPER( osgVolume_SampleDensityWhenMovingProperty,
new osgVolume::SampleDensityWhenMovingProperty,
osgVolume::SampleDensityWhenMovingProperty,
"osg::Object osgVolume::Property osgVolume::ScalarProperty osgVolume::SampleDensityWhenMovingProperty" )
{
}
}

0 comments on commit 537272b

Please sign in to comment.