class: ege::widget::Mesh


Constructor and Destructor:

+                              Mesh                (const std::string & _filename);
+ virtual ~Mesh (void );

Synopsis:

+ virtual void                 onRegenerateDisplay (void );
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual void onDraw (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void periodicCall (const ewol::event::Time & _event);
+ void setFile (const std::string & _filename);
+ void setPosition (const vec3 & _pos);
+ void setAngle (const vec3 & _angle);
+ void setAngleSpeed (const vec3 & _speed);
+ void setDistance (float _distance);

Object Hierarchy:

+ewol::Object
+--> +ewol::Widget
+--> ege::widget::Mesh

Detail:

Mesh

+  Mesh (const std::string & _filename);



~Mesh

+ virtual  ~Mesh (void );



onRegenerateDisplay

+ virtual void onRegenerateDisplay (void );
Event generated when a redraw is needed


systemDraw

+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...]) This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
Note: This function is virtual for the scrolled widget, and the more complicated openGl widget
Note: : INTERNAL EWOL SYSTEM


onDraw

+ virtual void onDraw (void );
Common widget drawing function (called by the drawing thread [Android, X11, ...])


onEventInput

+ virtual bool onEventInput (const ewol::event::Input & _event);
Event on an input of this Widget (finger, mouse, stilet)


periodicCall

+ virtual void periodicCall (const ewol::event::Time & _event);
periodic call of this widget


setFile

+ void setFile (const std::string & _filename);
set a mesh name file


setPosition

+ void setPosition (const vec3 & _pos);
set the mesh position


setAngle

+ void setAngle (const vec3 & _angle);
set the mesh angle of view


setAngleSpeed

+ void setAngleSpeed (const vec3 & _speed);
set the mesh angle speed


setDistance

+ void setDistance (float _distance);
set the camera distance of the mesh