Added support for osgVolume::ProperyAdjustmentCallback

This commit is contained in:
Robert Osfield
2009-01-29 20:40:56 +00:00
parent 51403143bd
commit 6710fbc78a
2 changed files with 38 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ SET(TARGET_SRC
CompositeProperty.cpp
SwitchProperty.cpp
ScalarProperty.cpp
PropertyAdjustmentCallback.cpp
)
SET(TARGET_ADDED_LIBRARIES osgVolume )

View File

@@ -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;
}