Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for osgVolume::ProperyAdjustmentCallback
- Loading branch information
1 parent
5140314
commit 6710fbc
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |