ewol::compositing::Drawing Class Reference
Inheritance diagram for ewol::compositing::Drawing:
ewol::Compositing

Public Member Functions

 Drawing ()
 
virtual ~Drawing ()
 
void draw (bool _disableDepthTest=true)
 
void clear ()
 
const vec3getPos ()
 
void setPos (const vec3 &_pos)
 
void setPos (const vec2 &_pos)
 
void setRelPos (const vec3 &_pos)
 
void setRelPos (const vec2 &_pos)
 
void setColor (const etk::Color<> &_color)
 
const etk::ColorgetColor ()
 
void setColorBg (const etk::Color<> &_color)
 
const etk::ColorgetColorBg ()
 
void setClippingWidth (const vec3 &_pos, const vec3 &_width)
 
void setClippingWidth (const vec2 &_pos, const vec2 &_width)
 
void setClipping (const vec3 &_pos, const vec3 &_posEnd)
 
void setClipping (const vec2 &_pos, const vec2 &_posEnd)
 
void setClippingMode (bool _newMode)
 
void setThickness (float _thickness)
 
void addVertex ()
 
void lineTo (const vec3 &_dest)
 
void lineTo (const vec2 &_dest)
 
void lineRel (const vec3 &_vect)
 
void lineRel (const vec2 &_vect)
 
void rectangle (const vec3 &_dest)
 
void rectangle (const vec2 &_dest)
 
void rectangleWidth (const vec3 &_size)
 
void rectangleWidth (const vec2 &_size)
 
void cube (const vec3 &_dest)
 
void circle (float _radius, float _angleStart=0, float _angleStop=2 *M_PI)
 
- Public Member Functions inherited from ewol::Compositing
 Compositing ()
 
virtual ~Compositing ()
 
virtual void resetMatrix ()
 
virtual void translate (const vec3 &_vect)
 
virtual void rotate (const vec3 &_vect, float _angle)
 
virtual void scale (const vec3 &_vect)
 
virtual void setMatrix (const mat4 &_mat)
 

Public Attributes

std::vector< vec3m_coord
 
std::vector< etk::Color< float > > m_coordColor
 

Additional Inherited Members

- Protected Attributes inherited from ewol::Compositing
mat4 m_matrixApply
 

Constructor & Destructor Documentation

§ Drawing()

ewol::compositing::Drawing::Drawing ( )

Basic constructor.

§ ~Drawing()

virtual ewol::compositing::Drawing::~Drawing ( )
virtual

Basic destructor.

Member Function Documentation

§ addVertex()

void ewol::compositing::Drawing::addVertex ( )

add a point reference at the current position (this is a vertex reference at the current position

§ circle()

void ewol::compositing::Drawing::circle ( float  _radius,
float  _angleStart = 0,
float  _angleStop = 2 *M_PI 
)

draw a 2D circle with the specify rafdius parameter.

Parameters
[in]_radiusDistence to the dorder
[in]_angleStartstart angle of this circle ([0..2PI] otherwithe == > disable)
[in]_angleStopstop angle of this circle ([0..2PI] otherwithe == > disable)

§ clear()

void ewol::compositing::Drawing::clear ( )
virtual

clear alll tre registered element in the current element

Reimplemented from ewol::Compositing.

§ cube()

void ewol::compositing::Drawing::cube ( const vec3 _dest)

draw a 3D rectangle to the position requested.

Parameters
[in]_destPosition the the end of the rectangle

§ draw()

void ewol::compositing::Drawing::draw ( bool  _disableDepthTest = true)
virtual

draw All the refistered text in the current element on openGL

Implements ewol::Compositing.

§ getColor()

const etk::Color& ewol::compositing::Drawing::getColor ( )
inline

Get the foreground color of the font.

Returns
Foreground color.

§ getColorBg()

const etk::Color& ewol::compositing::Drawing::getColorBg ( )
inline

Get the background color of the font.

Returns
Background color.

§ getPos()

const vec3& ewol::compositing::Drawing::getPos ( )
inline

get the current display position (sometime needed in the gui control)

Returns
the current position.

§ lineRel()

void ewol::compositing::Drawing::lineRel ( const vec3 _vect)
inline

Relative drawing a line (spacial vector)

Parameters
[in]_vectVector of the curent line.

§ lineTo()

void ewol::compositing::Drawing::lineTo ( const vec3 _dest)

draw a line to a specific position

Parameters
[in]_destPosition of the end of the line.

§ rectangle()

void ewol::compositing::Drawing::rectangle ( const vec3 _dest)

draw a 2D rectangle to the position requested.

Parameters
[in]_destPosition the the end of the rectangle

§ rectangleWidth()

void ewol::compositing::Drawing::rectangleWidth ( const vec3 _size)
inline

draw a 2D rectangle to the requested size.

Parameters
[in]_sizesize of the rectangle

§ setClipping()

void ewol::compositing::Drawing::setClipping ( const vec3 _pos,
const vec3 _posEnd 
)

Request a clipping area for the text (next draw only)

Parameters
[in]_posStart position of the clipping
[in]_posEndEnd position of the clipping

§ setClippingMode()

void ewol::compositing::Drawing::setClippingMode ( bool  _newMode)
inline

enable/Disable the clipping (without lose the current clipping position)

_newMode The new status of the clipping

§ setClippingWidth()

void ewol::compositing::Drawing::setClippingWidth ( const vec3 _pos,
const vec3 _width 
)
inline

Request a clipping area for the text (next draw only)

Parameters
[in]

§ setColor()

void ewol::compositing::Drawing::setColor ( const etk::Color<> &  _color)
inline

set the Color of the current foreground font

Parameters
[in]_colorColor to set on foreground (for next print)

§ setColorBg()

void ewol::compositing::Drawing::setColorBg ( const etk::Color<> &  _color)
inline

set the background color of the font (for selected Text (not the global BG))

Parameters
[in]_colorColor to set on background (for next print)

§ setPos()

void ewol::compositing::Drawing::setPos ( const vec3 _pos)
inline

set position for the next text writen

Parameters
[in]_posPosition of the text (in 3D)

§ setRelPos()

void ewol::compositing::Drawing::setRelPos ( const vec3 _pos)
inline

set relative position for the next text writen

Parameters
[in]_posofset apply of the text (in 3D)

§ setThickness()

void ewol::compositing::Drawing::setThickness ( float  _thickness)

Specify the line thickness for the next elements.

Parameters
[in]_thicknessThe thickness disired for the next print

Member Data Documentation

§ m_coord

std::vector<vec3 > ewol::compositing::Drawing::m_coord

internal position for the text display

§ m_coordColor

std::vector<etk::Color<float> > ewol::compositing::Drawing::m_coordColor

internal color of the background


The documentation for this class was generated from the following file:
  • framework/atria-soft/ewol/ewol/compositing/Drawing.hpp