graphvizgraph.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef AUTOLAYOUTGRAPHVIZGRAPH_H
00016 #define AUTOLAYOUTGRAPHVIZGRAPH_H
00017
00018 #include "baseinclude.h"
00019 #include "_graph.h"
00020 #include "graphviznode.h"
00021 #include <deque>
00022 #include <graphviz/types.h>
00023
00024 namespace Autolayout
00025 {
00026
00030 class GraphvizGraph : virtual public Autolayout::Graph
00031 {
00032 public:
00033 GraphvizGraph();
00034
00035 virtual ~GraphvizGraph();
00036
00037 virtual Node* getNode(const char* arg1);
00038 virtual bool empty();
00039 virtual void addEdge(const char* nodea, const char* nodeb, int weight=10);
00040 virtual void addNode(const char* name, int width, int heigt);
00041 void setCompressShapes(bool b);
00042 void setCenterDiagram(bool b);
00043 void setShapeSeparation(int i);
00044 void setCanvas(Canvas* );
00045 Agraph_t* _agraph;
00046 Agsym_t* a_width;
00047 Agsym_t* a_height;
00048 Agsym_t* a_label;
00049 Agsym_t* a_weight;
00050 std::deque<Node*> nodelist;
00051 GVC_t* gvc;
00052 bool empty_flag;
00053 friend class GraphvizAutolayouter;
00054 };
00055
00056 }
00057
00058 #endif
This file is part of the documentation for umbrello Version 3.1.0.