Added initial placeholder for .osg support for osgVolume::TransferFunctionProperty

This commit is contained in:
Robert Osfield 2009-01-31 21:46:16 +00:00
parent 281800539e
commit b514b435f4
2 changed files with 44 additions and 0 deletions

View File

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

View File

@ -0,0 +1,43 @@
#include <osgVolume/Property>
#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 TransferFunctionProperty_readLocalData(osg::Object &obj, osgDB::Input &fr);
bool TransferFunctionProperty_writeLocalData(const osg::Object &obj, osgDB::Output &fw);
osgDB::RegisterDotOsgWrapperProxy TransferFunctionProperty_Proxy
(
new osgVolume::TransferFunctionProperty,
"TransferFunctionProperty",
"Object TransferFunctionProperty",
TransferFunctionProperty_readLocalData,
TransferFunctionProperty_writeLocalData
);
bool TransferFunctionProperty_readLocalData(osg::Object& obj, osgDB::Input &fr)
{
osgVolume::TransferFunctionProperty& tfp = static_cast<osgVolume::TransferFunctionProperty&>(obj);
bool itrAdvanced = false;
return itrAdvanced;
}
bool TransferFunctionProperty_writeLocalData(const osg::Object& obj, osgDB::Output& fw)
{
const osgVolume::TransferFunctionProperty& tfp = static_cast<const osgVolume::TransferFunctionProperty&>(obj);
return true;
}