Added support for osgVolume::Property classes
This commit is contained in:
54
src/osgPlugins/osgVolume/Property.cpp
Normal file
54
src/osgPlugins/osgVolume/Property.cpp
Normal file
@@ -0,0 +1,54 @@
|
||||
#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 Property_readLocalData(osg::Object &obj, osgDB::Input &fr);
|
||||
bool Property_writeLocalData(const osg::Object &obj, osgDB::Output &fw);
|
||||
|
||||
osgDB::RegisterDotOsgWrapperProxy Property_Proxy
|
||||
(
|
||||
new osgVolume::Property,
|
||||
"Property",
|
||||
"Object Property",
|
||||
Property_readLocalData,
|
||||
Property_writeLocalData
|
||||
);
|
||||
|
||||
osgDB::RegisterDotOsgWrapperProxy MaximumImageProjectionProperty_Proxy
|
||||
(
|
||||
new osgVolume::MaximumIntensityProjectionProperty,
|
||||
"MaximumIntensityProjectionProperty",
|
||||
"Object MaximumIntensityProjectionProperty",
|
||||
Property_readLocalData,
|
||||
Property_writeLocalData
|
||||
);
|
||||
|
||||
osgDB::RegisterDotOsgWrapperProxy LightingProperty_Proxy
|
||||
(
|
||||
new osgVolume::LightingProperty,
|
||||
"LightingProperty",
|
||||
"Object LightingProperty",
|
||||
Property_readLocalData,
|
||||
Property_writeLocalData
|
||||
);
|
||||
|
||||
bool Property_readLocalData(osg::Object& obj, osgDB::Input &fr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Property_writeLocalData(const osg::Object& obj, osgDB::Output& fw)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user