umbrello API Documentation

graphvizgraph.h

00001 /*
00002  *  copyright (C) 2005
00003  *  Umbrello UML Modeller Authors <uml-devel @uml.sf.net>
00004  */
00005 
00006 /***************************************************************************
00007  *                                                                         *
00008  *   This program is free software; you can redistribute it and/or modify  *
00009  *   it under the terms of the GNU General Public License as published by  *
00010  *   the Free Software Foundation; either version 2 of the License, or     *
00011  *   (at your option) any later version.                                   *
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
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003