ProgressBar.cpp 633 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @file ProgressBar.cpp
  3. * @brief Show a Progress-Bar with time estimation - threaded
  4. * @author Michael Koch
  5. * @date 25/03/2010
  6. */
  7. #include "core/image/ImageT.h"
  8. #include "core/vector/VectorT.h"
  9. #include "core/vector/MatrixT.h"
  10. #include <core/imagedisplay/ImageDisplay.h>
  11. #include <iostream>
  12. #include "vislearning/baselib/ProgressBar.h"
  13. using namespace OBJREC;
  14. using namespace std;
  15. using namespace NICE;
  16. ProgressBar::ProgressBar ( std::string a ) : ProgressBarQt ( a, true )
  17. {
  18. start();
  19. }
  20. ProgressBar::~ProgressBar()
  21. {
  22. terminate();
  23. wait();
  24. }
  25. void ProgressBar::run()
  26. {
  27. if ( working )
  28. {
  29. sleep ( 1 );
  30. }
  31. }