lemon/graph_to_eps.h
changeset 187 84c2a2e5cfee
parent 157 2ccc1afc2c52
child 206 4e22275a2b52
equal deleted inserted replaced
7:5d8b4ab5317c 8:42741cfcad87
  1013 	  }
  1013 	  }
  1014 	}
  1014 	}
  1015       }
  1015       }
  1016       else for(ArcIt e(g);e!=INVALID;++e)
  1016       else for(ArcIt e(g);e!=INVALID;++e)
  1017 	if((!_undirected||g.source(e)<g.target(e))&&_arcWidths[e]>0
  1017 	if((!_undirected||g.source(e)<g.target(e))&&_arcWidths[e]>0
  1018 	   &&g.source(e)!=g.target(e))
  1018 	   &&g.source(e)!=g.target(e)) {
  1019 	  if(_drawArrows) {
  1019 	  if(_drawArrows) {
  1020 	    dim2::Point<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
  1020 	    dim2::Point<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
  1021 	    double rn=_nodeSizes[g.target(e)]*_nodeScale;
  1021 	    double rn=_nodeSizes[g.target(e)]*_nodeScale;
  1022 	    int node_shape=_nodeShapes[g.target(e)];
  1022 	    int node_shape=_nodeShapes[g.target(e)];
  1023 	    double t1=0,t2=1;
  1023 	    double t1=0,t2=1;
  1033 	       << mycoords[g.source(e)].x << ' '
  1033 	       << mycoords[g.source(e)].x << ' '
  1034 	       << mycoords[g.source(e)].y << ' '
  1034 	       << mycoords[g.source(e)].y << ' '
  1035 	       << _arcColors[e].red() << ' '
  1035 	       << _arcColors[e].red() << ' '
  1036 	       << _arcColors[e].green() << ' '
  1036 	       << _arcColors[e].green() << ' '
  1037 	       << _arcColors[e].blue() << " arr\n";
  1037 	       << _arcColors[e].blue() << " arr\n";
  1038 	  }
  1038 	  } 
  1039 	  else os << mycoords[g.source(e)].x << ' '
  1039 	  else os << mycoords[g.source(e)].x << ' '
  1040 		  << mycoords[g.source(e)].y << ' '
  1040 		  << mycoords[g.source(e)].y << ' '
  1041 		  << mycoords[g.target(e)].x << ' '
  1041 		  << mycoords[g.target(e)].x << ' '
  1042 		  << mycoords[g.target(e)].y << ' '
  1042 		  << mycoords[g.target(e)].y << ' '
  1043 		  << _arcColors[e].red() << ' '
  1043 		  << _arcColors[e].red() << ' '
  1044 		  << _arcColors[e].green() << ' '
  1044 		  << _arcColors[e].green() << ' '
  1045 		  << _arcColors[e].blue() << ' '
  1045 		  << _arcColors[e].blue() << ' '
  1046 		  << _arcWidths[e]*_arcWidthScale << " l\n";
  1046 		  << _arcWidths[e]*_arcWidthScale << " l\n";
       
  1047 	}
  1047       os << "grestore\n";
  1048       os << "grestore\n";
  1048     }
  1049     }
  1049     if(_showNodes) {
  1050     if(_showNodes) {
  1050       os << "%Nodes:\ngsave\n";
  1051       os << "%Nodes:\ngsave\n";
  1051       for(NodeIt n(g);n!=INVALID;++n) {
  1052       for(NodeIt n(g);n!=INVALID;++n) {