COIN-OR::LEMON - Graph Library

Changeset 198:d6cc0579b94b in glemon-0.x for mapstorage.cc


Ignore:
Timestamp:
03/01/07 17:28:13 (17 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3211
Message:

Shape feature of EPS can be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mapstorage.cc

    r195 r198  
    592592}
    593593
    594 void MapStorage::exportGraphToEPS(std::vector<bool> options, std::string filename)
    595 {
     594void MapStorage::exportGraphToEPS(std::vector<bool> options, std::string filename, std::string shapemap)
     595{
     596  Graph::NodeMap<int> _shapes(graph, 0);
    596597  Graph::NodeMap<int> _nodeColors(graph, 0);
    597598  Graph::EdgeMap<int> _edgeColors(graph, 0);
     
    643644        }
    644645    }
     646  if(shapemap!="")
     647    {
     648      if((minOfNodeMap(shapemap)>=0)&&(maxOfNodeMap(shapemap)<=4))
     649        {
     650          _shapes=*(nodemap_storage[shapemap]);
     651        }
     652    }
    645653
    646654  Palette palette;
     
    653661    nodeScale(2).nodeSizes(_nodeSizes).
    654662    coords(coords).
     663    nodeShapes(_shapes).
    655664    nodeColors(composeMap(paletteW,_nodeColors)).
    656665    edgeColors(composeMap(palette,_edgeColors)).
    657666    edgeWidthScale(0.3).edgeWidths(_edgeWidths).
    658667    nodeTexts(_nodeTextMap).nodeTextSize(7).
    659     enableParallel(_enableParallel).parEdgeDist(4).
     668    enableParallel(_enableParallel).parEdgeDist(5).
    660669    drawArrows(_drawArrows).arrowWidth(7).arrowLength(7).
    661670    run();
Note: See TracChangeset for help on using the changeset viewer.