14 #ifndef smtk_attribute_DoubleItem_h
15 #define smtk_attribute_DoubleItem_h
17 #include "smtk/CoreExports.h"
18 #include "smtk/attribute/ValueItemTemplate.h"
25 class DoubleItemDefinition;
50 bool setValue(std::size_t element,
const double& val)
override;
55 bool setValue(std::size_t element,
const double& val,
const std::string& units);
56 using ValueItem::setValueFromString;
59 bool setValueFromString(std::size_t element,
const std::string& val)
override;
60 bool appendValue(
const double& val)
override;
61 bool removeValue(std::size_t element)
override;
62 bool setNumberOfValues(std::size_t newSize)
override;
63 bool rotate(std::size_t fromPosition, std::size_t toPosition)
override;
64 bool setToDefault(std::size_t element = 0)
override;
66 using ValueItem::valueAsString;
70 std::string valueAsString(std::size_t element)
const override;
74 DoubleItem(
Item* owningItem,
int myPosition,
int mySubGroupPosition);
75 bool initializeValues()
override;
76 void updateDiscreteValue(std::size_t element)
override;
78 std::vector<std::string> m_valuesAsString;