Added colours and different style to drawable and statesets

This commit is contained in:
Robert Osfield 2010-04-28 14:55:07 +00:00
parent 324ddd0ca3
commit b86431fdf7

View File

@ -32,7 +32,7 @@ namespace osgDot {
std::stringstream label; std::stringstream label;
label << "<top> " << node.className(); label << "<top> " << node.className();
if ( !node.getName().empty() ) { label << "| " << node.getName(); } if ( !node.getName().empty() ) { label << "| " << node.getName(); }
drawNode( id, "record", "solid", label.str(), "black", "white" ); drawNode( id, "record", "solid", label.str(), "brown", "white" );
} }
void SimpleDotVisitor::handle(osg::Group& node, int id) { void SimpleDotVisitor::handle(osg::Group& node, int id) {
@ -50,7 +50,7 @@ namespace osgDot {
std::stringstream label; std::stringstream label;
label << "<top> " << stateset.className(); label << "<top> " << stateset.className();
if ( !stateset.getName().empty() ) { label << "| " << stateset.getName(); } if ( !stateset.getName().empty() ) { label << "| " << stateset.getName(); }
drawNode( id, "record", "solid, filled", label.str(), "gray90", "white" ); drawNode( id, "Mrecord", "solid", label.str(), "green", "white" );
} }
void SimpleDotVisitor::handle(osg::Node& node, osg::StateSet& stateset, int parentID, int childID ) { void SimpleDotVisitor::handle(osg::Node& node, osg::StateSet& stateset, int parentID, int childID ) {
@ -61,7 +61,7 @@ namespace osgDot {
std::stringstream label; std::stringstream label;
label << "<top> " << drawable.className(); label << "<top> " << drawable.className();
if ( !drawable.getName().empty() ) { label << "| " << drawable.getName(); } if ( !drawable.getName().empty() ) { label << "| " << drawable.getName(); }
drawNode( id, "record", "solid, filled", label.str(), "gray90", "white" ); drawNode( id, "record", "solid", label.str(), "blue", "white" );
} }
void SimpleDotVisitor::handle(osg::Geode& geode, osg::Drawable& drawable, int parentID, int childID ) { void SimpleDotVisitor::handle(osg::Geode& geode, osg::Drawable& drawable, int parentID, int childID ) {