SMILX  1.01
Classes | Macros | Typedefs | Functions | Variables
Global Methods

Common global functions and macros. More...

Classes

class  milx::BadStringConversion
 Exception Handler for stringify function. Thrown if the conversion from numeric to string is unsuccessful. More...
 

Macros

#define SMILI_EXPORT
 DLL Function Symbol for Windows. It is empty for other OSes.
 

Typedefs

typedef double milx::coordinateType
 
typedef unsigned milx::vnl_size_t
 
typedef vnl_vector_fixed< coordinateType, 3 > milx::coordinate
 

Functions

template<typename T >
void milx::Swap (T &a, T &b)
 
template<typename T >
milx::Minimum (const T &a, const T &b)
 
template<typename T >
milx::Maximum (const T &a, const T &b)
 
std::string milx::NumberToString (double num, unsigned zeroPad=0)
 Number to string converter.
 
unsigned milx::NumberOfProcessors ()
 Number of processors or cores on the machine.
 
void milx::PrintProgressBar (const size_t percent)
 Displays a generic terminal-based progress bar based on the percent provided. More...
 
void milx::PrintInfo (const std::string msg)
 Displays a generic msg to standard output with carriage return.
 
void milx::PrintWarning (const std::string msg)
 Displays a generic msg to standard output with carriage return.
 
void milx::PrintDebug (const std::string msg)
 Displays a generic msg to standard error with carriage return if in Debug mode.
 
void milx::PrintError (const std::string msg)
 Displays a generic msg to standard error with carriage return.
 

Variables

const float milx::Version = static_cast<float>(1.0)
 
const unsigned milx::imgDimension = 3
 

Detailed Description

Common global functions and macros.

Function Documentation

◆ PrintProgressBar()

milx::PrintProgressBar ( const size_t  percent)
inline

Displays a generic terminal-based progress bar based on the percent provided.

Usage for counter i would be:

milx::PrintProgressBar(static_cast<float>(i)/numberOfPoints*100);

Definition at line 149 of file milxGlobal.h.