##// END OF EJS Templates
Minor fix...
Minor fix By default sets the management mode of the thresholds of a color scale to 'manual', to avoid the recalculation of the thresholds for scalars and vectors

File last commit:

r946:49134789d5f3
r1110:0e96e473601d
Show More
Unit.h
27 lines | 667 B | text/x-c | CLexer
Alexandre Leroux
Minor changes...
r858 #ifndef SCIQLOP_UNIT_H
#define SCIQLOP_UNIT_H
Alexandre Leroux
Parser refactoring (3)...
r946 #include <Common/MetaTypes.h>
Alexandre Leroux
Minor changes...
r858 #include <QString>
#include <tuple>
struct Unit {
explicit Unit(const QString &name = {}, bool timeUnit = false)
: m_Name{name}, m_TimeUnit{timeUnit}
{
}
inline bool operator==(const Unit &other) const
{
return std::tie(m_Name, m_TimeUnit) == std::tie(other.m_Name, other.m_TimeUnit);
}
inline bool operator!=(const Unit &other) const { return !(*this == other); }
QString m_Name; ///< Unit name
bool m_TimeUnit; ///< The unit is a unit of time (UTC)
};
Alexandre Leroux
Parser refactoring (3)...
r946 SCIQLOP_REGISTER_META_TYPE(UNIT_REGISTRY, Unit)
Alexandre Leroux
Minor changes...
r858 #endif // SCIQLOP_UNIT_H