umbrello API Documentation

dotautolayouter.cpp

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 #include "dotautolayouter.h"
00015 
00016 #include <graphviz/dotprocs.h>
00017 
00018 namespace Autolayout {
00019 
00020 DotAutolayouter::DotAutolayouter()
00021         : Autolayout::GraphvizAutolayouter()
00022 {
00023 }
00024 
00025 
00026 DotAutolayouter::~DotAutolayouter()
00027 {
00028     dot_cleanup(gg->_agraph);
00029 }
00030 
00031 
00032 void DotAutolayouter::run()
00033 {
00034     //#ifndef internal_renderizer
00035     /* bind graph to GV context - currently must be done before layout */
00036     //  gvBindContext(gvc,g);
00037     //#endif
00038     // do layout
00039     //dot_layout();
00040     dot_layout( gg->_agraph );
00041 }
00042 
00043 }
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