![]() |
QElectroTech 0.200.1-dev
|
the QETSVG namespace provide function read and write svg. Some function work on xml element (ex rect) and some other work on attribute of an element (ex x) More...
Functions | |
| QDomElement | rectToElmt (const QRectF &rect, QDomDocument &parent_document) |
| QETSVG::rectToElmt Write a QRect as a svg rect element. | |
| QRectF | rectFromElmt (const QDomElement &xml_element) |
| QETSVG::rectFromElmt. | |
| void | yToAttribute (const qreal &y, QDomElement &xml_element) |
| QETSVG::yToAttribute. | |
| qreal | yFromAttribute (const QDomElement &xml_element, const qreal &def_value=0) |
| QETSVG::yFromAttribute. | |
| void | heightToAttribute (const qreal &height, QDomElement &xml_element) |
| QETSVG::heightToAttribute. | |
| qreal | heightFromAttribute (const QDomElement &xml_element, const qreal &def_value=10) |
| void | rToAttribute (const qreal &r, QDomElement &xml_element) |
| qreal | rFromAttribute (const QDomElement &xml_element, const qreal &def_value=1) |
| void | pointsToAttribute (const QVector< QPointF > &points, QDomElement &xml_element) |
| QVector< QPointF > | pointsFromAttribute (const QDomElement &xml_element) |
| QETSVG::pointsFromAttribute. | |
the QETSVG namespace provide function read and write svg. Some function work on xml element (ex rect) and some other work on attribute of an element (ex x)
| qreal QETSVG::heightFromAttribute | ( | const QDomElement & | xml_element, |
| const qreal & | def_value = 10 ) |


| void QETSVG::heightToAttribute | ( | const qreal & | height, |
| QDomElement & | xml_element ) |
| height | |
| xml_element |

| QVector< QPointF > QETSVG::pointsFromAttribute | ( | const QDomElement & | xml_element | ) |
| xml_element |

| void QETSVG::pointsToAttribute | ( | const QVector< QPointF > & | points, |
| QDomElement & | xml_element ) |

| QRectF QETSVG::rectFromElmt | ( | const QDomElement & | xml_element | ) |
| xml_element | : xml_element of an svg rect. The tag name must be 'rect' if not, the returned QRect is null. |


| QDomElement QETSVG::rectToElmt | ( | const QRectF & | rect, |
| QDomDocument & | parent_document ) |
QETSVG::rectToElmt Write a QRect as a svg rect element.
| rect | |
| parent_document |


| qreal QETSVG::rFromAttribute | ( | const QDomElement & | xml_element, |
| const qreal & | def_value = 1 ) |


| void QETSVG::rToAttribute | ( | const qreal & | r, |
| QDomElement & | xml_element ) |

| qreal QETSVG::yFromAttribute | ( | const QDomElement & | xml_element, |
| const qreal & | def_value = 0 ) |
| xml_element | |
| def_value |


| void QETSVG::yToAttribute | ( | const qreal & | y, |
| QDomElement & | xml_element ) |