esvg::LinearGradient Class Reference
Inheritance diagram for esvg::LinearGradient:
Public Member Functions | |
LinearGradient (PaintState _parentPaintState) | |
virtual bool | parseXML (const exml::Element &_element, mat2 &_parentTrans, vec2 &_sizeMax) |
virtual void | display (int32_t _spacing) |
virtual void | draw (esvg::Renderer &_myRenderer, mat2 &_basicTrans, int32_t _level) |
const esvg::Dimension & | getPosition1 () |
const esvg::Dimension & | getPosition2 () |
const std::vector< std::pair< float, etk::Color< float, 4 > > > & | getColors (esvg::Document *_document) |
Public Member Functions inherited from esvg::Base | |
Base (PaintState _parentPaintState) | |
virtual void | drawShapePoints (std::vector< std::vector< vec2 >> &_out, int32_t _recurtionMax, float _threshold, mat2 &_basicTrans, int32_t _level=1) |
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) |
Public Attributes | |
enum gradientUnits | m_unit |
enum spreadMethod | m_spread |
Additional Inherited Members | |
Protected Member Functions inherited from esvg::Base | |
const char * | spacingDist (int32_t _spacing) |
Protected Attributes inherited from esvg::Base | |
PaintState | m_paint |
mat2 | m_transformMatrix |
std::string | m_id |
Member Function Documentation
§ draw()
|
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 from esvg::Base.
§ parseXML()
|
virtual |
parse all the element needed in the basic node
- Parameters
-
[in] _element standart XML node
- Returns
- true if no problem arrived
Reimplemented from esvg::Base.
The documentation for this class was generated from the following file:
- framework/atria-soft/esvg/esvg/LinearGradient.hpp