Aliases added to some graphToEps() named params.
authorAlpar Juttner <alpar@cs.elte.hu>
Sun, 13 Apr 2008 08:20:43 +0100
changeset 13088c4f7943b75
parent 129 e99385bca9fe
child 131 3125084667a3
Aliases added to some graphToEps() named params.
lemon/graph_to_eps.h
     1.1 --- a/lemon/graph_to_eps.h	Thu Apr 03 11:26:19 2008 +0100
     1.2 +++ b/lemon/graph_to_eps.h	Sun Apr 13 08:20:43 2008 +0100
     1.3 @@ -1091,7 +1091,69 @@
     1.4  
     1.5      //CleanUp:
     1.6      if(_pleaseRemoveOsStream) {delete &os;}
     1.7 -  } 
     1.8 +  }
     1.9 +
    1.10 +  ///\name Aliases
    1.11 +  ///These are just some aliases to other parameter setting functions.
    1.12 +
    1.13 +  ///@{
    1.14 +
    1.15 +  ///An alias for arcWidths()
    1.16 +
    1.17 +  ///An alias for arcWidths()
    1.18 +  ///
    1.19 +  template<class X> GraphToEps<ArcWidthsTraits<X> > edgeWidths(const X &x)
    1.20 +  {
    1.21 +    return arcWidths(x);
    1.22 +  }
    1.23 +
    1.24 +  ///An alias for arcColors()
    1.25 +
    1.26 +  ///An alias for arcColors()
    1.27 +  ///
    1.28 +  template<class X> GraphToEps<ArcColorsTraits<X> >
    1.29 +  edgeColors(const X &x)
    1.30 +  {
    1.31 +    return arcColors(x);
    1.32 +  }
    1.33 +
    1.34 +  ///An alias for arcWidthScale()
    1.35 +
    1.36 +  ///An alias for arcWidthScale()
    1.37 +  ///
    1.38 +  GraphToEps<T> &edgeWidthScale(double d) {return arcWidthScale(d);}
    1.39 +
    1.40 +  ///An alias for autoArcWidthScale()
    1.41 +
    1.42 +  ///An alias for autoArcWidthScale()
    1.43 +  ///
    1.44 +  GraphToEps<T> &autoEdgeWidthScale(bool b=true)
    1.45 +  {
    1.46 +    return autoArcWidthScale(b);
    1.47 +  }
    1.48 +  
    1.49 +  ///An alias for absoluteArcWidths()
    1.50 +
    1.51 +  ///An alias for absoluteArcWidths()
    1.52 +  ///
    1.53 +  GraphToEps<T> &absoluteEdgeWidths(bool b=true)
    1.54 +  {
    1.55 +    return absoluteArcWidths(b);
    1.56 +  }
    1.57 +  
    1.58 +  ///An alias for parArcDist()
    1.59 +
    1.60 +  ///An alias for parArcDist()
    1.61 +  ///
    1.62 +  GraphToEps<T> &parEdgeDist(double d) {return parArcDist(d);}
    1.63 +  
    1.64 +  ///An alias for hideArcs()
    1.65 +  
    1.66 +  ///An alias for hideArcs()
    1.67 +  ///
    1.68 +  GraphToEps<T> &hideEdges(bool b=true) {return hideArcs(b);}
    1.69 +
    1.70 +  ///@}
    1.71  };
    1.72  
    1.73  template<class T>