Hi Martin,

On Mon, Apr 6, 2009 at 8:42 PM, Martin Beckett <[email protected]> wrote:

> Defining << for
> osg::Node* node = osgDB::readNodeFile("somefile.osg");
> std::cout << *node << std::endl;
> Isn't such a daft idea - it would certainly help with debugging - I think I
> will take a look at doing that unless it's obviously stupid?
>

Um.... so what exactly would you output if you did implement a ostream <<
operator for osg::Node? How would you format it.....

Toooooo many different variables at play to even begin to implement such an
operator.

In svn/trunk there is a osgUtil::PrintVisitor that does so very basic
printing of class name and nesting, perhaps this is sufficient for your
purposes.

Robert,
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to