esvg::LinearGradient Class Reference
Inheritance diagram for esvg::LinearGradient:
esvg::Base

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::DimensiongetPosition1 ()
 
const esvg::DimensiongetPosition2 ()
 
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::distanceparseLength2 (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 void esvg::LinearGradient::draw ( esvg::Renderer _myRenderer,
mat2 _basicTrans,
int32_t  _level 
)
virtual

Draw the form in the renderer.

Parameters
[in]_myRendererRenderer engine
[in]_basicTransParant transformation of the environement
[in]_levelLevel of the tree

Reimplemented from esvg::Base.

§ parseXML()

virtual bool esvg::LinearGradient::parseXML ( const exml::Element _element,
mat2 _parentTrans,
vec2 _sizeMax 
)
virtual

parse all the element needed in the basic node

Parameters
[in]_elementstandart XML node
Returns
true if no problem arrived

Reimplemented from esvg::Base.


The documentation for this class was generated from the following file: