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

Public Member Functions

 Rectangle (PaintState _parentPaintState)
 
bool parseXML (const exml::Element &_element, mat2 &_parentTrans, vec2 &_sizeMax) override
 
void display (int32_t _spacing) override
 
void draw (esvg::Renderer &_myRenderer, mat2 &_basicTrans, int32_t _level) override
 
void drawShapePoints (std::vector< std::vector< vec2 >> &_out, int32_t _recurtionMax, float _threshold, mat2 &_basicTrans, int32_t _level=1) override
 
- Public Member Functions inherited from esvg::Base
 Base (PaintState _parentPaintState)
 
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)
 

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()

void esvg::Rectangle::draw ( esvg::Renderer _myRenderer,
mat2 _basicTrans,
int32_t  _level 
)
overridevirtual

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.

§ drawShapePoints()

void esvg::Rectangle::drawShapePoints ( std::vector< std::vector< vec2 >> &  _out,
int32_t  _recurtionMax,
float  _threshold,
mat2 _basicTrans,
int32_t  _level = 1 
)
overridevirtual

Draw rhe shape with all points.

Parameters
[in]_outwhere the lines are added
[in]_recurtionMaxinterpolation recurtion max
[in]_thresholdthreshold to stop recurtion
[in]_basicTransParant transformation of the environement
[in]_levelLevel of the tree

Reimplemented from esvg::Base.

§ parseXML()

bool esvg::Rectangle::parseXML ( const exml::Element _element,
mat2 _parentTrans,
vec2 _sizeMax 
)
overridevirtual

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: