libatomprobe
Library for Atom Probe Tomography (APT) computation
|
#include <progress.h>
Public Member Functions | |
ProgressBar () | |
~ProgressBar () | |
void | setLength (unsigned int l) |
Set the number of markers in the progress bar. More... | |
void | init () |
Draw the initial progress bar. More... | |
void | reset () |
reset the progress bar internals, in case we want to re-use it More... | |
void | update (unsigned int newProgress) |
Draw the progress bar as needed, using the given progress value [0,100]. More... | |
void | finish () |
Finalise the progress bar. It is not necessary for the progress to be set to 100%, this is done for you. More... | |
void | abort () |
Abort drawing the progress. More... | |
Definition at line 25 of file progress.h.
|
inline |
Definition at line 37 of file progress.h.
References reset(), and ~ProgressBar().
AtomProbe::ProgressBar::~ProgressBar | ( | ) |
Definition at line 29 of file progress.cpp.
References finish().
Referenced by ProgressBar().
|
inline |
Abort drawing the progress.
Definition at line 55 of file progress.h.
void AtomProbe::ProgressBar::finish | ( | ) |
Finalise the progress bar. It is not necessary for the progress to be set to 100%, this is done for you.
Definition at line 52 of file progress.cpp.
References update().
Referenced by main(), setLength(), update(), and ~ProgressBar().
void AtomProbe::ProgressBar::init | ( | ) |
Draw the initial progress bar.
Definition at line 35 of file progress.cpp.
Referenced by main(), setLength(), and update().
void AtomProbe::ProgressBar::reset | ( | ) |
reset the progress bar internals, in case we want to re-use it
Definition at line 43 of file progress.cpp.
Referenced by ProgressBar(), and setLength().
|
inline |
void AtomProbe::ProgressBar::update | ( | unsigned int | newProgress | ) |
Draw the progress bar as needed, using the given progress value [0,100].
Definition at line 58 of file progress.cpp.
References finish(), init(), progress, setLength(), and update().
Referenced by callback(), finish(), AtomProbe::generate1DAxialDistHistSweep(), main(), setLength(), and update().