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)
Parameter [input]: | _event | Event properties |
Return: | | true the event is used<br/>false the event is not used |
periodicCall
+ virtual void periodicCall (const ewol::event::Time & _event);
periodic call of this widget
Parameter: | _event | Current time property |
setFile
+ void setFile (const std::string & _filename);
set a mesh name file
Parameter [input]: | _filename | Name of the new mesh |
setPosition
+ void setPosition (const vec3 & _pos);
set the mesh position
setAngle
+ void setAngle (const vec3 & _angle);
set the mesh angle of view
Parameter [input]: | _angle | view angle of the mesh |
setAngleSpeed
+ void setAngleSpeed (const vec3 & _speed);
set the mesh angle speed
Parameter [input]: | _speed | Radian speed of the mesh |
setDistance
+ void setDistance (float _distance);
set the camera distance of the mesh
Parameter [input]: | _distance | Diatance of the mesh |