- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/dot/BaseDotVisitor.cpp
r12948 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 30 30 // Set the locale used by the _nodes and _edges streams to the 31 31 // classic or "C" locale. This is needed because most of the 32 // Graphviz tools are not locale sensitive and get confused 32 // Graphviz tools are not locale sensitive and get confused 33 33 // by id numbers containing commas or periods. 34 34 _nodes.imbue(std::locale("C")); 35 _edges.imbue(std::locale("C")); 35 _edges.imbue(std::locale("C")); 36 36 } 37 37 … … 68 68 if ( fout && *fout ) { 69 69 root.accept( *this ); 70 70 71 71 *fout << "digraph osg_scenegraph { "<<_rankdir<< std::endl; 72 72 73 73 *fout << _nodes.str() << _edges.str(); 74 74 75 75 *fout << "}" << std::endl; 76 76 … … 85 85 } 86 86 87 void BaseDotVisitor::apply(Node& node) { 87 void BaseDotVisitor::apply(Node& node) { 88 88 int id; 89 89 if ( getOrCreateId( &node, id ) ) { … … 120 120 121 121 } 122 122 123 123 void BaseDotVisitor::apply(Group& node) { 124 124 int id; … … 138 138 139 139 } 140 140 141 141 } 142 142 … … 170 170 void BaseDotVisitor::handle(osg::Node& node, osg::StateSet& stateset, int parentID, int childID) { 171 171 } 172 172 173 173 void BaseDotVisitor::handle(osg::Drawable& drawable, int id) { 174 174 } 175 175 176 176 void BaseDotVisitor::handle(osg::Drawable& drawable, osg::StateSet& stateset, int parentID, int childID ) { 177 177 }
