|
| Base (PaintState _parentPaintState) |
|
virtual bool | parseXML (const exml::Element &_element, mat2 &_parentTrans, vec2 &_sizeMax) |
|
virtual void | draw (esvg::Renderer &_myRenderer, mat2 &_basicTrans, int32_t _level=1) |
|
virtual void | drawShapePoints (std::vector< std::vector< vec2 >> &_out, int32_t _recurtionMax, float _threshold, mat2 &_basicTrans, int32_t _level=1) |
|
virtual void | display (int32_t _spacing) |
|
void | parseTransform (const exml::Element &_element) |
|
void | parsePosition (const exml::Element &_element, vec2 &_pos, vec2 &_size) |
|
float | parseLength (const std::string &_dataInput) |
|
std::pair< float, enum esvg::distance > | parseLength2 (const std::string &_dataInput) |
|
void | parsePaintAttr (const exml::Element &_element) |
|
std::pair< etk::Color< float, 4 >, std::string > | parseColor (const std::string &_inputData) |
|
const std::string & | getId () const |
|
void | setId (const std::string &_newId) |
|
|
const char * | spacingDist (int32_t _spacing) |
|
§ draw()
virtual void esvg::Base::draw |
( |
esvg::Renderer & |
_myRenderer, |
|
|
mat2 & |
_basicTrans, |
|
|
int32_t |
_level = 1 |
|
) |
| |
|
virtual |
Draw the form in the renderer.
- Parameters
-
[in] | _myRenderer | Renderer engine |
[in] | _basicTrans | Parant transformation of the environement |
[in] | _level | Level of the tree |
Reimplemented in esvg::Document, esvg::RadialGradient, esvg::LinearGradient, esvg::Polygon, esvg::Rectangle, esvg::Circle, esvg::Ellipse, esvg::Group, esvg::Line, esvg::Path, and esvg::Polyline.
§ drawShapePoints()
virtual void esvg::Base::drawShapePoints |
( |
std::vector< std::vector< vec2 >> & |
_out, |
|
|
int32_t |
_recurtionMax, |
|
|
float |
_threshold, |
|
|
mat2 & |
_basicTrans, |
|
|
int32_t |
_level = 1 |
|
) |
| |
|
virtual |
§ getId()
const std::string& esvg::Base::getId |
( |
| ) |
const |
Get the ID of the Element.
- Returns
- UniqueId in the svg file
§ parseColor()
std::pair<etk::Color<float,4>, std::string> esvg::Base::parseColor |
( |
const std::string & |
_inputData | ) |
|
parse a color specification from the svg file
- Parameters
-
[in] | _inputData | Data C String with the xml definition |
- Returns
- The parsed color (color used and the link if needed)
§ parseLength()
float esvg::Base::parseLength |
( |
const std::string & |
_dataInput | ) |
|
parse a lenght of the xml element
- Parameters
-
[in] | _dataInput | Data C String with the printed lenght |
- Returns
- standard number of pixels
§ parsePaintAttr()
void esvg::Base::parsePaintAttr |
( |
const exml::Element & |
_element | ) |
|
parse a Painting attribute of a specific node
- Parameters
-
[in] | _element | Basic node of the XML that might be parsed |
§ parsePosition()
parse x, y, width, height attribute of the xml node
- Parameters
-
[in] | _element | XML node |
[out] | _pos | parsed position |
[out] | _size | parsed dimention |
§ parseXML()
virtual bool esvg::Base::parseXML |
( |
const exml::Element & |
_element, |
|
|
mat2 & |
_parentTrans, |
|
|
vec2 & |
_sizeMax |
|
) |
| |
|
virtual |
§ setId()
void esvg::Base::setId |
( |
const std::string & |
_newId | ) |
|
Set the ID of the Element.
- Parameters
-
[in] | _newId | New Id of the element |
§ m_id
std::string esvg::Base::m_id |
|
protected |
unique ID of the element.
§ m_transformMatrix
mat2 esvg::Base::m_transformMatrix |
|
protected |
specific render of the curent element
The documentation for this class was generated from the following file: