MeVisLab Toolbox Reference
mlProgress.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
5
11//----------------------------------------------------------------------------------
12#ifndef __mlProgress_H
13#define __mlProgress_H
14
16
17#include <mlTypeDefs.h>
18#include <boost/function.hpp>
19
21
23{
24public:
27 Progress(boost::function<void(float)> *setProgress);
28
30 void setStep(float step);
31
33 void update();
34
36 void reset();
37
38private:
39 void setProgress();
40
41 boost::function<void(float)> *_setProgress;
42 MLfloat _progress;
43 MLfloat _step;
44};
45
47
48#endif // __mlProgress_H
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERS_EXPORT
void reset()
Set all internal fields to default values: step = 0 and progress = 0.
void setStep(float step)
Set progress step. This is added to the current progress anytime update function is invoked.
Progress(boost::function< void(float)> *setProgress)
Constructor.
void update()
Adds current step to the progress.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
float MLfloat
Definition mlTypeDefs.h:201