MCPcopy Create free account
hub / github.com/MITK/MITK / Decrease

Method Decrease

Modules/Core/src/Controllers/mitkStepper.cpp:121–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void mitk::Stepper::Decrease()
122{
123 if (this->GetPos() > 0)
124 {
125 this->SetPos(this->GetPos() - 1);
126 }
127 else if (m_AutoRepeat)
128 {
129 if (!m_PingPong)
130 {
131 this->SetPos(this->GetSteps() - 1);
132 }
133 else
134 {
135 m_InverseDirection = false;
136 if (this->GetPos() < this->GetSteps() - 1)
137 {
138 this->SetPos(this->GetPos() + 1);
139 }
140 }
141 }
142}
143
144void mitk::Stepper::Next()
145{

Callers 2

NextMethod · 0.95
PreviousMethod · 0.95

Calls 2

GetPosMethod · 0.45
SetPosMethod · 0.45

Tested by

no test coverage detected