Changeset 1910:f95eea8c34b0 in lemon-0.x for lemon/graph_to_eps.h
- Timestamp:
- 01/26/06 17:24:40 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2485
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_to_eps.h
r1909 r1910 235 235 char *_nodePsTextsPreamble; 236 236 237 bool _u; 237 bool _undirected; 238 238 239 bool _pleaseRemoveOsStream; 239 240 … … 273 274 _showNodeText(false), _nodeTexts(false), _nodeTextSize(1), 274 275 _showNodePsText(false), _nodePsTexts(false), _nodePsTextsPreamble(0), 275 _u (false),276 _undirected(false), 276 277 _pleaseRemoveOsStream(_pros), _scaleToA4(false), 277 278 _nodeTextColorType(SAME_COL), _nodeTextColors(Color(0,0,0)), … … 330 331 using T::_nodePsTextsPreamble; 331 332 332 using T::_u; 333 using T::_undirected; 334 333 335 using T::_pleaseRemoveOsStream; 334 336 … … 735 737 ///Sets whether the the graph is undirected 736 738 /// 737 GraphToEps<T> &u(bool b=true) {_u=b;return *this;} 739 GraphToEps<T> &undirected(bool b=true) {_undirected=b;return *this;} 740 738 741 ///Sets whether the the graph is directed 739 742 740 743 ///Sets whether the the graph is directed. 741 744 ///Use it to show the undirected edges as a pair of directed ones. 742 GraphToEps<T> &bidir(bool b=true) {_u =!b;return *this;}745 GraphToEps<T> &bidir(bool b=true) {_undirected=!b;return *this;} 743 746 744 747 ///Sets the title. … … 959 962 std::vector<Edge> el; 960 963 for(EdgeIt e(g);e!=INVALID;++e) 961 if((!_u ||g.source(e)<g.target(e))&&_edgeWidths[e]>0)964 if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0) 962 965 el.push_back(e); 963 966 std::sort(el.begin(),el.end(),edgeLess(g)); … … 1047 1050 } 1048 1051 else for(EdgeIt e(g);e!=INVALID;++e) 1049 if((!_u ||g.source(e)<g.target(e))&&_edgeWidths[e]>0)1052 if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0) 1050 1053 if(_drawArrows) { 1051 1054 xy<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
Note: See TracChangeset
for help on using the changeset viewer.