148 ///will be explicitly deallocated by the destructor. |
148 ///will be explicitly deallocated by the destructor. |
149 ///By default it is <tt>std::cout</tt> |
149 ///By default it is <tt>std::cout</tt> |
150 DefaultGraphToEpsTraits(const G &_g,std::ostream& _os=std::cout, |
150 DefaultGraphToEpsTraits(const G &_g,std::ostream& _os=std::cout, |
151 bool _pros=false) : |
151 bool _pros=false) : |
152 g(_g), os(_os), |
152 g(_g), os(_os), |
153 _coords(dim2::Point<double>(1,1)), _nodeSizes(.01), _nodeShapes(0), |
153 _coords(dim2::Point<double>(1,1)), _nodeSizes(1), _nodeShapes(0), |
154 _nodeColors(WHITE), _arcColors(BLACK), |
154 _nodeColors(WHITE), _arcColors(BLACK), |
155 _arcWidths(1.0), _arcWidthScale(0.003), |
155 _arcWidths(1.0), _arcWidthScale(0.003), |
156 _nodeScale(1.0), _xBorder(10), _yBorder(10), _scale(1.0), |
156 _nodeScale(.01), _xBorder(10), _yBorder(10), _scale(1.0), |
157 _nodeBorderQuotient(.1), |
157 _nodeBorderQuotient(.1), |
158 _drawArrows(false), _arrowLength(1), _arrowWidth(0.3), |
158 _drawArrows(false), _arrowLength(1), _arrowWidth(0.3), |
159 _showNodes(true), _showArcs(true), |
159 _showNodes(true), _showArcs(true), |
160 _enableParallel(false), _parArcDist(1), |
160 _enableParallel(false), _parArcDist(1), |
161 _showNodeText(false), _nodeTexts(false), _nodeTextSize(1), |
161 _showNodeText(false), _nodeTexts(false), _nodeTextSize(1), |
494 /// If both nodeSizes() and autoNodeScale() are used, then the |
494 /// If both nodeSizes() and autoNodeScale() are used, then the |
495 /// node sizes will be scaled in such a way that the greatest size will be |
495 /// node sizes will be scaled in such a way that the greatest size will be |
496 /// equal to \c d. |
496 /// equal to \c d. |
497 /// \sa nodeSizes() |
497 /// \sa nodeSizes() |
498 /// \sa autoNodeScale() |
498 /// \sa autoNodeScale() |
499 GraphToEps<T> &nodeScale(double d) {_nodeScale=d;return *this;} |
499 GraphToEps<T> &nodeScale(double d=.01) {_nodeScale=d;return *this;} |
500 ///Turns on/off the automatic node width scaling. |
500 ///Turns on/off the automatic node width scaling. |
501 |
501 |
502 ///Turns on/off the automatic node width scaling. |
502 ///Turns on/off the automatic node width scaling. |
503 /// |
503 /// |
504 ///\sa nodeScale() |
504 ///\sa nodeScale() |
547 /// autoArcWidthScale() is not, then the arc withs given by |
547 /// autoArcWidthScale() is not, then the arc withs given by |
548 /// arcWidths() will be multiplied by the value \c d. |
548 /// arcWidths() will be multiplied by the value \c d. |
549 /// If both arcWidths() and autoArcWidthScale() are used, then the |
549 /// If both arcWidths() and autoArcWidthScale() are used, then the |
550 /// arc withs will be scaled in such a way that the greatest width will be |
550 /// arc withs will be scaled in such a way that the greatest width will be |
551 /// equal to \c d. |
551 /// equal to \c d. |
552 GraphToEps<T> &arcWidthScale(double d) {_arcWidthScale=d;return *this;} |
552 GraphToEps<T> &arcWidthScale(double d=.003) {_arcWidthScale=d;return *this;} |
553 ///Turns on/off the automatic arc width scaling. |
553 ///Turns on/off the automatic arc width scaling. |
554 |
554 |
555 ///Turns on/off the automatic arc width scaling. |
555 ///Turns on/off the automatic arc width scaling. |
556 /// |
556 /// |
557 ///\sa arcWidthScale() |
557 ///\sa arcWidthScale() |