[Lemon-commits] Alpar Juttner: Aliases added to some graphToEps(...
Lemon HG
hg at lemon.cs.elte.hu
Thu Apr 17 18:22:47 CEST 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/88c4f7943b75
changeset: 130:88c4f7943b75
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Sun Apr 13 08:20:43 2008 +0100
description:
Aliases added to some graphToEps() named params.
diffstat:
1 file changed, 63 insertions(+), 1 deletion(-)
lemon/graph_to_eps.h | 64 +++++++++++++++++++++++++++++++++++++++++++++++++-
diffs (74 lines):
diff -r e99385bca9fe -r 88c4f7943b75 lemon/graph_to_eps.h
--- a/lemon/graph_to_eps.h Thu Apr 03 11:26:19 2008 +0100
+++ b/lemon/graph_to_eps.h Sun Apr 13 08:20:43 2008 +0100
@@ -1091,7 +1091,69 @@
//CleanUp:
if(_pleaseRemoveOsStream) {delete &os;}
- }
+ }
+
+ ///\name Aliases
+ ///These are just some aliases to other parameter setting functions.
+
+ ///@{
+
+ ///An alias for arcWidths()
+
+ ///An alias for arcWidths()
+ ///
+ template<class X> GraphToEps<ArcWidthsTraits<X> > edgeWidths(const X &x)
+ {
+ return arcWidths(x);
+ }
+
+ ///An alias for arcColors()
+
+ ///An alias for arcColors()
+ ///
+ template<class X> GraphToEps<ArcColorsTraits<X> >
+ edgeColors(const X &x)
+ {
+ return arcColors(x);
+ }
+
+ ///An alias for arcWidthScale()
+
+ ///An alias for arcWidthScale()
+ ///
+ GraphToEps<T> &edgeWidthScale(double d) {return arcWidthScale(d);}
+
+ ///An alias for autoArcWidthScale()
+
+ ///An alias for autoArcWidthScale()
+ ///
+ GraphToEps<T> &autoEdgeWidthScale(bool b=true)
+ {
+ return autoArcWidthScale(b);
+ }
+
+ ///An alias for absoluteArcWidths()
+
+ ///An alias for absoluteArcWidths()
+ ///
+ GraphToEps<T> &absoluteEdgeWidths(bool b=true)
+ {
+ return absoluteArcWidths(b);
+ }
+
+ ///An alias for parArcDist()
+
+ ///An alias for parArcDist()
+ ///
+ GraphToEps<T> &parEdgeDist(double d) {return parArcDist(d);}
+
+ ///An alias for hideArcs()
+
+ ///An alias for hideArcs()
+ ///
+ GraphToEps<T> &hideEdges(bool b=true) {return hideArcs(b);}
+
+ ///@}
};
template<class T>
More information about the Lemon-commits
mailing list