... | ... |
@@ -51,13 +51,15 @@ |
51 | 51 |
|
52 |
template<class MT> |
|
53 |
class _NegY { |
|
54 |
public: |
|
55 |
typedef typename MT::Key Key; |
|
56 |
typedef typename MT::Value Value; |
|
57 |
const MT ↦ |
|
58 |
int yscale; |
|
59 |
_NegY(const MT &m,bool b) : map(m), yscale(1-b*2) {} |
|
60 |
Value operator[](Key n) { return Value(map[n].x,map[n].y*yscale);} |
|
61 |
}; |
|
62 |
|
|
52 |
namespace _graph_to_eps_bits { |
|
53 |
template<class MT> |
|
54 |
class _NegY { |
|
55 |
public: |
|
56 |
typedef typename MT::Key Key; |
|
57 |
typedef typename MT::Value Value; |
|
58 |
const MT ↦ |
|
59 |
int yscale; |
|
60 |
_NegY(const MT &m,bool b) : map(m), yscale(1-b*2) {} |
|
61 |
Value operator[](Key n) { return Value(map[n].x,map[n].y*yscale);} |
|
62 |
}; |
|
63 |
} |
|
64 |
|
|
63 | 65 |
///Default traits class of \ref GraphToEps |
... | ... |
@@ -160,3 +162,3 @@ |
160 | 162 |
_showNodePsText(false), _nodePsTexts(false), _nodePsTextsPreamble(0), |
161 |
_undirected( |
|
163 |
_undirected(lemon::UndirectedTagIndicator<G>::value), |
|
162 | 164 |
_pleaseRemoveOsStream(_pros), _scaleToA4(false), |
... | ... |
@@ -670,3 +672,3 @@ |
670 | 672 |
///Use it to show the edges as a pair of directed ones. |
671 |
GraphToEps<T> & |
|
673 |
GraphToEps<T> &directed(bool b=true) {_undirected=!b;return *this;} |
|
672 | 674 |
|
... | ... |
@@ -716,3 +718,4 @@ |
716 | 718 |
|
717 |
_NegY<typename T::CoordsMapType> |
|
719 |
_graph_to_eps_bits::_NegY<typename T::CoordsMapType> |
|
720 |
mycoords(_coords,_negY); |
|
718 | 721 |
|
0 comments (0 inline)