COIN-OR::LEMON - Graph Library

Changeset 1089:c0f4ebdc0034 in lemon-0.x for src/lemon


Ignore:
Timestamp:
01/19/05 21:19:31 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1485
Message:
  • Nodes are drawn in a better way
  • Arrowheads made more similar in parallel vs. non-parallel modes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/graph_to_eps.h

    r1088 r1089  
    459459       << "      closepath pop pop pop} bind def\n";
    460460    // x y r cr cg cb
    461     os << "/nc { setrgbcolor 2 index 2 index 2 index c fill\n"
    462        << "     0 0 0 setrgbcolor dup "
    463        << _nodeBorderQuotient << " mul setlinewidth "
    464        << 1+_nodeBorderQuotient/2 << " div c stroke\n"
     461    os << "/nc { 0 0 0 setrgbcolor 5 index 5 index 5 index c fill\n"
     462       << "     setrgbcolor " << 1+_nodeBorderQuotient << " div c fill\n"
    465463       << "   } bind def\n";
    466     os << "/nsq { setrgbcolor 2 index 2 index 2 index sq fill\n"
    467        << "     0 0 0 setrgbcolor dup "
    468        << _nodeBorderQuotient << " mul setlinewidth "
    469        << 1+_nodeBorderQuotient/2 << " div sq stroke\n"
     464    os << "/nsq { 0 0 0 setrgbcolor 5 index 5 index 5 index sq fill\n"
     465       << "     setrgbcolor " << 1+_nodeBorderQuotient << " div sq fill\n"
    470466       << "   } bind def\n";
    471     os << "/ndi { setrgbcolor 2 index 2 index 2 index di fill\n"
    472        << "     0 0 0 setrgbcolor dup "
    473        << _nodeBorderQuotient << " mul setlinewidth "
    474        << 1+_nodeBorderQuotient/2 << " div di stroke\n"
     467    os << "/ndi { 0 0 0 setrgbcolor 5 index 5 index 5 index di fill\n"
     468       << "     setrgbcolor " << 1+_nodeBorderQuotient << " div di fill\n"
    475469       << "   } bind def\n";
    476470    os << "/arrl " << _arrowLength << " def\n";
     
    567561                 << bez.p4.x << ' ' << bez.p4.y << " curveto stroke\n";
    568562              xy<double> dd(rot(linend-apoint));
    569               dd*=(_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/
     563              dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/
    570564                sqrt(dd.normSquare());
    571565              os << "newpath " << psOut(apoint) << " moveto "
Note: See TracChangeset for help on using the changeset viewer.