[Paraview-developers] Mismatch of progressBar text + value
Bjoern Peeters
bjoern.code at googlemail.com
Tue Feb 9 04:14:35 EST 2016
Hi all,
for the development of a reader plugin I try to show the current progress
as a value and a text. Therefore I use the code below in the RequestData
function.
If I ran this code the progress is either not shown or the combination
of the
stored text, (ParaView-added) current value and the visible progress
mismatch.
You can clearly see it in the third line of the output, where the right
progress but
the text from the first and the printed value from the second one are shown.
Code (in RequestData):
this->UpdateProgress(0.1);
this->SetProgressText("text01");
cout << "progressBar01 value:: " << this->GetProgress()
<< ", text: " << this->GetProgressText() << endl;
std::this_thread::sleep_for(std::chrono::seconds(5));
this->UpdateProgress(0.3);
this->SetProgressText("text03");
cout << "progressBar03 value:: " << this->GetProgress()
<< ", text: " << this->GetProgressText() << endl;
std::this_thread::sleep_for(std::chrono::seconds(5));
...
the same for 0.5 and 0.7
Output:
------------ output of code ------------ ----- output of
progressBar -----
progressBar01 value :: 0.1, text : text01 -> 0 % visible, no text
progressBar03 value :: 0.3, text : text03 -> 30 % visible, no text
progressBar05 value :: 0.5, text : text05 -> 50 % visible, text :
"text01: 30"
progressBar07 value :: 0.7, text : text07 -> 70 % visible, text :
"text03: 50"
Do you have any explanation for this behaviour and an idea how I can fix
this ?
Thanks
Bjorn
More information about the Paraview-developers
mailing list