umbrello API Documentation

diagram.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 AUTOLAYOUTABLEDIAGRAM_H
00016 #define AUTOLAYOUTABLEDIAGRAM_H
00017 #include <dotneato.h>
00018 #define internal_renderizer
00019 #include "autolayout.h"
00024 namespace Autolayout{
00025 class Diagram//: public virtual Graph, public virtual Canvas{
00026 {
00027 private:
00028     Agraph_t* g;
00029     Agsym_t* a_width;
00030     Agsym_t* a_height;
00031     Agsym_t* a_label;
00032 #ifndef internal_renderizer
00033     GVC_t* gvc;
00034 #endif
00035 public:
00036     Diagram(int,int);
00037 
00038     ~Diagram();
00039 
00040     void addNode(const char *name, int width,int heigt);
00041     void addEdge(const char* nodea,const char*nodeb);
00042     void autolayout();
00043     void save();
00044     Node getNode(const char*);
00045 
00046 };
00047 
00048 
00049 }
00050 #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:56 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003