lemon/graph_to_eps.h
changeset 2633 4f47c0f6be04
parent 2569 12c2c5c4330b
equal deleted inserted replaced
34:b6d29547a363 35:0fe9068d8060
   999 	  }
   999 	  }
  1000 	}
  1000 	}
  1001       }
  1001       }
  1002       else for(EdgeIt e(g);e!=INVALID;++e)
  1002       else for(EdgeIt e(g);e!=INVALID;++e)
  1003 	if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
  1003 	if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
  1004 	   &&g.source(e)!=g.target(e))
  1004 	   &&g.source(e)!=g.target(e)) {
  1005 	  if(_drawArrows) {
  1005 	  if(_drawArrows) {
  1006 	    dim2::Point<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
  1006 	    dim2::Point<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
  1007 	    double rn=_nodeSizes[g.target(e)]*_nodeScale;
  1007 	    double rn=_nodeSizes[g.target(e)]*_nodeScale;
  1008 	    int node_shape=_nodeShapes[g.target(e)];
  1008 	    int node_shape=_nodeShapes[g.target(e)];
  1009 	    double t1=0,t2=1;
  1009 	    double t1=0,t2=1;
  1028 		  << mycoords[g.target(e)].y << ' '
  1028 		  << mycoords[g.target(e)].y << ' '
  1029 		  << _edgeColors[e].red() << ' '
  1029 		  << _edgeColors[e].red() << ' '
  1030 		  << _edgeColors[e].green() << ' '
  1030 		  << _edgeColors[e].green() << ' '
  1031 		  << _edgeColors[e].blue() << ' '
  1031 		  << _edgeColors[e].blue() << ' '
  1032 		  << _edgeWidths[e]*_edgeWidthScale << " l\n";
  1032 		  << _edgeWidths[e]*_edgeWidthScale << " l\n";
       
  1033 	}
  1033       os << "grestore\n";
  1034       os << "grestore\n";
  1034     }
  1035     }
  1035     if(_showNodes) {
  1036     if(_showNodes) {
  1036       os << "%Nodes:\ngsave\n";
  1037       os << "%Nodes:\ngsave\n";
  1037       for(NodeIt n(g);n!=INVALID;++n) {
  1038       for(NodeIt n(g);n!=INVALID;++n) {