Added PrintProperties visitor
This commit is contained in:
@@ -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) {}
|
||||
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user