/* -*- C++ -*- * * This file is a part of LEMON, a generic C++ optimization library * * Copyright (C) 2003-2006 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * * Permission to use, modify and distribute this software is granted * provided that this copyright notice appears in all copies. For * precise terms see the accompanying LICENSE file. * * This software is provided "AS IS" with no warranty of any kind, * express or implied, and with no claim as to its suitability for any * purpose. * */ /// \ingroup demos /// \file /// \brief Demo of the EPS grawing class \ref EpsDrawer() /// /// This demo program shows examples how to use the class \ref /// EpsDrawer(). It takes no input but simply creates a file /// eps_demo.eps demonstrating the capability of \ref /// EpsDrawer(). /// /// \include eps_demo.cc #include #include using namespace lemon; void kosar(EpsDrawer &ed) { double d,r; r = sqrt(2); ed.save(); ed.translate(256,256).scale(256,256); ed.lineWidth(1/256); ed.collect(); ed.moveTo(0,1); for(d=0;d