Changeset 198:d6cc0579b94b in glemon-0.x for mapstorage.cc
- Timestamp:
- 03/01/07 17:28:13 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3211
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mapstorage.cc
r195 r198 592 592 } 593 593 594 void MapStorage::exportGraphToEPS(std::vector<bool> options, std::string filename) 595 { 594 void MapStorage::exportGraphToEPS(std::vector<bool> options, std::string filename, std::string shapemap) 595 { 596 Graph::NodeMap<int> _shapes(graph, 0); 596 597 Graph::NodeMap<int> _nodeColors(graph, 0); 597 598 Graph::EdgeMap<int> _edgeColors(graph, 0); … … 643 644 } 644 645 } 646 if(shapemap!="") 647 { 648 if((minOfNodeMap(shapemap)>=0)&&(maxOfNodeMap(shapemap)<=4)) 649 { 650 _shapes=*(nodemap_storage[shapemap]); 651 } 652 } 645 653 646 654 Palette palette; … … 653 661 nodeScale(2).nodeSizes(_nodeSizes). 654 662 coords(coords). 663 nodeShapes(_shapes). 655 664 nodeColors(composeMap(paletteW,_nodeColors)). 656 665 edgeColors(composeMap(palette,_edgeColors)). 657 666 edgeWidthScale(0.3).edgeWidths(_edgeWidths). 658 667 nodeTexts(_nodeTextMap).nodeTextSize(7). 659 enableParallel(_enableParallel).parEdgeDist( 4).668 enableParallel(_enableParallel).parEdgeDist(5). 660 669 drawArrows(_drawArrows).arrowWidth(7).arrowLength(7). 661 670 run();
Note: See TracChangeset
for help on using the changeset viewer.