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

Method Increase

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

Source from the content-addressed store, hash-verified

96}
97
98void mitk::Stepper::Increase()
99{
100 if (this->GetPos() < this->GetSteps() - 1)
101 {
102 this->SetPos(this->GetPos() + 1);
103 }
104 else if (m_AutoRepeat)
105 {
106 if (!m_PingPong)
107 {
108 this->SetPos(0);
109 }
110 else
111 {
112 m_InverseDirection = true;
113 if (this->GetPos() > 0)
114 {
115 this->SetPos(this->GetPos() - 1);
116 }
117 }
118 }
119}
120
121void mitk::Stepper::Decrease()
122{

Callers 2

NextMethod · 0.95
PreviousMethod · 0.95

Calls 2

GetPosMethod · 0.45
SetPosMethod · 0.45

Tested by

no test coverage detected