MeVisLab Toolbox Reference
ml::WEMProgressUpdater Struct Reference

Helper struct for updating the progress bar while loading/saving. More...

#include <MLWEMIncludes.h>

Public Member Functions

 WEMProgressUpdater ()
 
 WEMProgressUpdater (ProgressField *pf, float r, float o)
 
template<typename DT >
void update (DT current)
 
template<typename DT1 , typename DT2 >
void update (DT1 current, DT2 read)
 
template<typename DT >
void addOffset (DT o)
 

Public Attributes

ProgressFieldprogressField
 
float ratio
 
float offset
 
unsigned int mod
 

Detailed Description

Helper struct for updating the progress bar while loading/saving.

Definition at line 209 of file MLWEMIncludes.h.

Constructor & Destructor Documentation

◆ WEMProgressUpdater() [1/2]

ml::WEMProgressUpdater::WEMProgressUpdater ( )
inline

Definition at line 211 of file MLWEMIncludes.h.

◆ WEMProgressUpdater() [2/2]

ml::WEMProgressUpdater::WEMProgressUpdater ( ProgressField pf,
float  r,
float  o 
)
inline

Definition at line 215 of file MLWEMIncludes.h.

Member Function Documentation

◆ addOffset()

template<typename DT >
void ml::WEMProgressUpdater::addOffset ( DT  o)
inline

Definition at line 236 of file MLWEMIncludes.h.

◆ update() [1/2]

template<typename DT >
void ml::WEMProgressUpdater::update ( DT  current)
inline

Definition at line 224 of file MLWEMIncludes.h.

References update().

Referenced by update().

◆ update() [2/2]

template<typename DT1 , typename DT2 >
void ml::WEMProgressUpdater::update ( DT1  current,
DT2  read 
)
inline

Definition at line 227 of file MLWEMIncludes.h.

Member Data Documentation

◆ mod

unsigned int ml::WEMProgressUpdater::mod

Definition at line 241 of file MLWEMIncludes.h.

◆ offset

float ml::WEMProgressUpdater::offset

Definition at line 240 of file MLWEMIncludes.h.

◆ progressField

ProgressField* ml::WEMProgressUpdater::progressField

Definition at line 238 of file MLWEMIncludes.h.

◆ ratio

float ml::WEMProgressUpdater::ratio

Definition at line 239 of file MLWEMIncludes.h.


The documentation for this struct was generated from the following file: