24 m_InverseDirection(false),
71 return (m_HasRange && m_RangeValid);
81 m_UnitName = std::string(unitName);
88 return m_UnitName.c_str();
93 m_HasUnitName =
false;
104 if (this->GetPos() < this->GetSteps() - 1)
106 this->SetPos(this->GetPos() + 1);
108 else if (m_AutoRepeat)
116 m_InverseDirection =
true;
117 if (this->GetPos() > 0)
119 this->SetPos(this->GetPos() - 1);
127 if (this->GetPos() > 0)
129 this->SetPos(this->GetPos() - 1);
131 else if (m_AutoRepeat)
135 this->SetPos(this->GetSteps() - 1);
139 m_InverseDirection =
false;
140 if (this->GetPos() < this->GetSteps() - 1)
142 this->SetPos(this->GetPos() + 1);
150 if (!m_InverseDirection)
162 if (!m_InverseDirection)
179 this->SetPos(this->GetSteps() - 1);
bool HasValidRange() const
ScalarType GetRangeMax() const
void SetRange(ScalarType min, ScalarType max)
ScalarType GetRangeMin() const
const char * GetUnitName() const
void SetUnitName(const char *unitName)