Added PrintProperties visitor

This commit is contained in:
Robert Osfield
2013-09-04 16:25:18 +00:00
parent ccf7bbdb50
commit 856ec46467
5 changed files with 84 additions and 10 deletions

View File

@@ -83,7 +83,16 @@ struct OSGPRESENTATION_EXPORT PlayAction : public Action
void apply(osgPresentation::Element& element);
};
struct PrintSupportedProperties : public osgPresentation::Action
struct OSGPRESENTATION_EXPORT PrintProperties : public osgPresentation::Action
{
PrintProperties(std::ostream& output) : osgPresentation::Action(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN), _output(output) {}
void apply(osgPresentation::Group& group);
std::ostream& _output;
};
struct OSGPRESENTATION_EXPORT PrintSupportedProperties : public osgPresentation::Action
{
PrintSupportedProperties(std::ostream& output) : osgPresentation::Action(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN), _output(output) {}

View File

@@ -31,6 +31,12 @@ class OSGPRESENTATION_EXPORT Model : public osgPresentation::Element
META_Presentation(Model);
/** load the text subgraph.*/
virtual bool load();
/** Get all types of Properties supported by Presentation Object type, return true if the Properties are supported, false otherwise.*/
virtual bool getSupportedProperties(PropertyList&);
protected :
virtual ~Model() {}