20 #ifndef MIRTK_ExternalForceTerm_H 21 #define MIRTK_ExternalForceTerm_H 23 #include "mirtk/EnergyMeasure.h" 39 EFT_Unknown = EFT_Begin,
51 if (em <= EFT_Begin || em >= EFT_End)
return ToString(
"Unknown", w, c, left);
60 if (
FromString(str, em) && EFT_Begin < em && em < EFT_End) {
72 #endif // MIRTK_ExternalForceTerm_H
Implicit surface distance force.
string ToString(const EnergyMeasure &value, int w, char c, bool left)
Convert energy measure enumeration value to string.
bool FromString(const char *str, EnergyMeasure &value)
Convert energy measure string to enumeration value.
EnergyMeasure
Enumeration of all available energy terms.
Unknown/invalid energy term.