Commit 9f2c946a authored by Olivier Lagrasse's avatar Olivier Lagrasse

- Prise en compte de l'intervalle de temps et du niveau de zoom (pour

l'instant, les valeurs sont par défauts -> affiche toute la trace) lors 
de l'appel a la fonction build de DrawTrace.
- Vidage de la pile de selection a la souris a chaque trace.
parent ef2a8eb4
......@@ -92,6 +92,7 @@ Interface_console::~Interface_console(){
bool Interface_console::draw_trace(const string & filename, const int format){
Trace trace;
ParserPaje parser;
parser.set_file_to_parse(filename);
......@@ -125,8 +126,8 @@ bool Interface_console::draw_trace(const string & filename, const int format){
return false;
}
//delete _progress_dialog;
drawing_ogl.build(_render_opengl, &trace);
Interval interval(0, trace.get_max_date());
drawing_ogl.build(_render_opengl, &trace, 0, interval);
_render_opengl->build();
_render_opengl->updateGL();
_render_opengl->refresh_scroll_bars();
......@@ -152,8 +153,8 @@ bool Interface_console::draw_trace(const string & filename, const int format){
QApplication::restoreOverrideCursor();
return false;
}
drawing_svg.build(&svg, &trace);
Interval interval(0, trace.get_max_date());
drawing_svg.build(&svg, &trace, 0, interval);
svg.end();
}
break;
......
This diff is collapsed.
......@@ -1132,6 +1132,10 @@ bool Render_opengl::unbuild(){
_line_already_begun = false;
/* empty the selection stack */
while(false == _previous_selection.empty())
_previous_selection.pop();
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment