Allow access to minimum/maximum values of NumericalPropertys

This commit is contained in:
Alexander Bock
2014-12-06 17:18:05 +01:00
parent 98aeeb7d13
commit 8719f98a23
2 changed files with 13 additions and 0 deletions
@@ -42,6 +42,9 @@ public:
bool setLua(lua_State* state) override;
int typeLua() const override;
T minValue() const;
T maxValue() const;
virtual std::string className() const override;
using TemplateProperty<T>::operator=;
@@ -200,5 +200,15 @@ int NumericalProperty<T>::typeLua() const {
}
template <typename T>
T NumericalProperty<T>::minValue() const {
return _minimumValue;
}
template <typename T>
T NumericalProperty<T>::maxValue() const {
return _maximumValue;
}
} // namespace properties
} // namespace openspace