Skip to content

Commit

Permalink
Added support for osgVolume::ProperyAdjustmentCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Jan 29, 2009
1 parent 5140314 commit 6710fbc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/osgPlugins/osgVolume/CMakeLists.txt
Expand Up @@ -10,6 +10,7 @@ SET(TARGET_SRC
CompositeProperty.cpp
SwitchProperty.cpp
ScalarProperty.cpp
PropertyAdjustmentCallback.cpp
)

SET(TARGET_ADDED_LIBRARIES osgVolume )
Expand Down
37 changes: 37 additions & 0 deletions src/osgPlugins/osgVolume/PropertyAdjustmentCallback.cpp
@@ -0,0 +1,37 @@
#include <osgVolume/VolumeTile>

#include <iostream>
#include <string>

#include <osg/Vec3>
#include <osg/Vec4>
#include <osg/io_utils>

#include <osgDB/ReadFile>
#include <osgDB/Registry>
#include <osgDB/Input>
#include <osgDB/Output>
#include <osgDB/ParameterOutput>

bool PropertyAdjustmentCallback_readLocalData(osg::Object &obj, osgDB::Input &fr);
bool PropertyAdjustmentCallback_writeLocalData(const osg::Object &obj, osgDB::Output &fw);

osgDB::RegisterDotOsgWrapperProxy PropertyAdjustmentCallback_Proxy
(
new osgVolume::PropertyAdjustmentCallback,
"PropertyAdjustmentCallback",
"Object NodeCallback PropertyAdjustmentCallback",
PropertyAdjustmentCallback_readLocalData,
PropertyAdjustmentCallback_writeLocalData
);


bool PropertyAdjustmentCallback_readLocalData(osg::Object& obj, osgDB::Input &fr)
{
return false;
}

bool PropertyAdjustmentCallback_writeLocalData(const osg::Object& obj, osgDB::Output& fw)
{
return true;
}

0 comments on commit 6710fbc

Please sign in to comment.