* Can be useful to keep the previous stats and so do not compute them one more time, if the interval [_prev_start, _prev_end] belongs to [_new_start, _new_end]
*/
double_previous_start_time;
/*!
* \brief unused for the moment.
*/
double_previous_end_time;
// Geometrical informations about the stats shape.
...
...
@@ -125,7 +138,6 @@ public:
* \fn end_draw(T* draw_object)
* \brief Set the end of the draw.
* \param draw_object the kind of object which will be drawn (OpenGL, SVG...).
* \todo An improvment can be done by keeping the previous stats and if the user wants to have stats with an interval including the previous one.
*/
inlinevoidend_draw(T*draw_object){
_previous_start_time=_start_time;
...
...
@@ -189,6 +201,15 @@ public:
_height_for_rect_legend=15.;
_max_width=0;
}
/*!
* \fn set_width(T* draw_object)
* \brief Set the total width for the draw object
* \param draw_object The kind of object which will be drawn (OpenGL, SVG...).