Adds NaN mode for velocity + moves distance conversion to renderable for velocity

This commit is contained in:
Jacob Molin
2022-06-15 10:39:17 -06:00
parent ffba872244
commit e538e992c6
9 changed files with 302 additions and 333 deletions

View File

@@ -109,14 +109,14 @@ std::string getSIMPType(const MessageType& type) {
return it->first;
}
NaNRenderMode getNaNRenderMode(const std::string& type) {
if (tools::_cmapNaNModeFromString.count(type) == 0) return NaNRenderMode::Unknown;
return tools::_cmapNaNModeFromString.at(type);
ColormapNaNRenderMode getColormapNaNRenderMode(const std::string& type) {
if (tools::_colormapNaNRenderModeFromString.count(type) == 0) return ColormapNaNRenderMode::Unknown;
return tools::_colormapNaNRenderModeFromString.at(type);
}
LengthUnit getLengthUnit(const std::string& type) {
if (tools::_lengthUnitFromString.count(type) == 0) return LengthUnit::Unknown;
return tools::_lengthUnitFromString.at(type);
VelocityNaNRenderMode getVelocityNaNRenderMode(const std::string& type) {
if (tools::_velocityNaNRenderModeFromString.count(type) == 0) return VelocityNaNRenderMode::Unknown;
return tools::_velocityNaNRenderModeFromString.at(type);
}
std::string formatLengthOfSubject(size_t lengthOfSubject) {