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