root/OpenSceneGraph/trunk/src/osgPlugins/dot/SimpleDotVisitor.h @ 13041

Revision 13041, 1.9 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
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
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#pragma once
15#ifndef __SIMPLEDOTVISITOR_H__
16#define __SIMPLEDOTVISITOR_H__
17
18#ifndef __cplusplus
19#error "this is a c++ - header!"
20#endif
21
22#include "BaseDotVisitor.h"
23
24namespace osgDot {
25
26  class SimpleDotVisitor : public BaseDotVisitor {
27  public:
28    SimpleDotVisitor();
29
30    virtual ~SimpleDotVisitor();
31
32  protected:
33    virtual void handle(osg::Node& node, int id);
34    virtual void handle(osg::Geode& geode, int id);
35    virtual void handle(osg::Group& node, int id);
36
37    virtual void handle(osg::StateSet& stateset, int id);
38    virtual void handle(osg::Drawable& drawable, int id);
39
40    virtual void handle(osg::Node& node, osg::StateSet& stateset, int parentID, int childID );
41    virtual void handle(osg::Geode& geometry, osg::Drawable& drawable, int parentID, int childID );
42    virtual void handle(osg::Group& parent, osg::Node& child, int parentID, int childID );
43    virtual void handle(osg::Drawable& drawable, osg::StateSet& stateset, int parentID, int childID );
44
45    virtual void drawNode( int id, const std::string& shape, const std::string& style, const std::string& label, const std::string& color, const std::string& fillColor );
46
47    virtual void drawEdge( int sourceId, int sinkId, const std::string& style );
48
49  };
50
51} // namespace osgDot
52
53#endif // __SIMPLEDOTVISITOR_H__
Note: See TracBrowser for help on using the browser.