QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
QETSVG Namespace Reference

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.

Detailed Description

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)

Function Documentation

◆ heightFromAttribute()

qreal QETSVG::heightFromAttribute ( const QDomElement & xml_element,
const qreal & def_value = 10 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ heightToAttribute()

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

QETSVG::heightToAttribute.

Parameters
height
xml_element
Here is the caller graph for this function:

◆ pointsFromAttribute()

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

QETSVG::pointsFromAttribute.

Parameters
xml_element
Returns
a vector of points stored in attribute 'points' of @xml_element. The returned vector can be empty.
Here is the caller graph for this function:

◆ pointsToAttribute()

void QETSVG::pointsToAttribute ( const QVector< QPointF > & points,
QDomElement & xml_element )
Here is the caller graph for this function:

◆ rectFromElmt()

QRectF QETSVG::rectFromElmt ( const QDomElement & xml_element)

QETSVG::rectFromElmt.

Parameters
xml_element: xml_element of an svg rect. The tag name must be 'rect' if not, the returned QRect is null.
Returns
a svg rect to QRect
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rectToElmt()

QDomElement QETSVG::rectToElmt ( const QRectF & rect,
QDomDocument & parent_document )

QETSVG::rectToElmt Write a QRect as a svg rect element.

Parameters
rect
parent_document
Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rFromAttribute()

qreal QETSVG::rFromAttribute ( const QDomElement & xml_element,
const qreal & def_value = 1 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rToAttribute()

void QETSVG::rToAttribute ( const qreal & r,
QDomElement & xml_element )
Here is the caller graph for this function:

◆ yFromAttribute()

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

QETSVG::yFromAttribute.

Parameters
xml_element
def_value
Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ yToAttribute()

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

QETSVG::yToAttribute.

Parameters
y
xml_element
Here is the caller graph for this function: