1.1 --- a/lemon/eps.h Wed Mar 15 09:45:10 2006 +0000
1.2 +++ b/lemon/eps.h Wed Mar 15 09:45:59 2006 +0000
1.3 @@ -49,6 +49,36 @@
1.4
1.5 std::ostream &out;
1.6
1.7 + ///Node shapes
1.8 + ///
1.9 + enum NodeShapes {
1.10 + /// = 0
1.11 + ///\image html nodeshape_0.png
1.12 + ///\image latex nodeshape_0.eps "CIRCLE shape (0)" width=2cm
1.13 + CIRCLE=0,
1.14 + /// = 1
1.15 + ///\image html nodeshape_1.png
1.16 + ///\image latex nodeshape_1.eps "SQUARE shape (1)" width=2cm
1.17 + ///
1.18 + SQUARE=1,
1.19 + /// = 2
1.20 + ///\image html nodeshape_2.png
1.21 + ///\image latex nodeshape_2.eps "DIAMOND shape (2)" width=2cm
1.22 + ///
1.23 + DIAMOND=2,
1.24 + /// = 3
1.25 + ///\image html nodeshape_3.png
1.26 + ///\image latex nodeshape_2.eps "MALE shape (4)" width=2cm
1.27 + ///
1.28 + ///\warning Not implemented
1.29 + MALE=3,
1.30 + /// = 4
1.31 + ///\image html nodeshape_4.png
1.32 + ///\image latex nodeshape_2.eps "FEMALE shape (4)" width=2cm
1.33 + ///
1.34 + ///\warning Not implemented
1.35 + FEMALE=4
1.36 + };
1.37 ///\e
1.38
1.39 ///The generated file is put to \c os.
1.40 @@ -246,6 +276,32 @@
1.41 return color(c.red(),c.green(),c.blue());
1.42 }
1.43
1.44 + ///Draw a node shape
1.45 +
1.46 + ///Draw a node shape.
1.47 + ///
1.48 + ///\param t The shape of the drawn object
1.49 + ///\param x The \c x coordinate of the node
1.50 + ///\param y The \c y coordinate of the node
1.51 + ///\param col Color of the node. The default color is white
1.52 + ///\param brd Color of the node border. The default color is black
1.53 + EpsDrawer &node(NodeShapes t, double x, double y, double r,
1.54 + Color col=Color(1,1,1), Color brd=Color(0,0,0));
1.55 + ///Draw a node shape
1.56 +
1.57 + ///Draw a node shape.
1.58 + ///
1.59 + ///\param t The shape of the drawn object
1.60 + ///\param pos Position of the node
1.61 + ///\param col Color of the node. The default color is white
1.62 + ///\param brd Color of the node border. The default color is black
1.63 + template<class T>
1.64 + EpsDrawer &node(NodeShapes t, xy<T> pos, double r,
1.65 + Color col=Color(1,1,1), Color brd=Color(0,0,0))
1.66 + {
1.67 + return node(t,pos.x,pos.y,r,col,brd);
1.68 + }
1.69 +
1.70 ///Translate the coordinate system
1.71 EpsDrawer &translate(double x,double y);
1.72 ///Translate the coordinate system