diff --git a/examples/osgpresentation/CMakeLists.txt b/examples/osgpresentation/CMakeLists.txt index c3d112c03..a3ad9a94d 100644 --- a/examples/osgpresentation/CMakeLists.txt +++ b/examples/osgpresentation/CMakeLists.txt @@ -1,4 +1,6 @@ SET(TARGET_SRC osgpresentation.cpp ) +SET(TARGET_ADDED_LIBRARIES osgPresentation ) + #### end var setup ### SETUP_EXAMPLE(osgpresentation) diff --git a/examples/osgpresentation/osgpresentation.cpp b/examples/osgpresentation/osgpresentation.cpp index f90ad58ef..f0d43f6cc 100644 --- a/examples/osgpresentation/osgpresentation.cpp +++ b/examples/osgpresentation/osgpresentation.cpp @@ -27,6 +27,37 @@ #include #include +#include + +class PrintSupportedProperties : public osg::NodeVisitor +{ +public: + PrintSupportedProperties() : osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN) {} + + void apply(osg::Node& node) + { + osgPresentation::Group* pres_group = dynamic_cast(&node); + if (pres_group) + { + OSG_NOTICE<<"osgPresentation object : "<className()<getSupportedProperties(properties)) + { + for(osgPresentation::PropertyList::iterator itr = properties.begin(); + itr != properties.end(); + ++itr) + { + osgPresentation::ObjectDescription& od = *itr; + OSG_NOTICE<<" "<className()<<" : "<getName()<<", description = "<addChild(new osgPresentation::Volume); + PrintSupportedProperties psp; + presentation->accept(psp); + viewer.setSceneData( presentation.get() ); diff --git a/src/osgPresentation/Text.cpp b/src/osgPresentation/Text.cpp index 3a38f865f..f35cb6c99 100644 --- a/src/osgPresentation/Text.cpp +++ b/src/osgPresentation/Text.cpp @@ -20,6 +20,7 @@ using namespace osgPresentation; bool Text::load() { + OSG_NOTICE<<"Not implemented yet"<