| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 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 | |
|---|
| 24 | namespace 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 | } |
|---|
| 52 | |
|---|
| 53 | #endif // __SIMPLEDOTVISITOR_H__ |
|---|