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

Method SetPos

Modules/DataTypesExt/src/mitkMultiStepper.cpp:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}*/
55
56void mitk::MultiStepper::SetPos(unsigned int pos)
57{
58 Stepper::SetPos(pos);
59 for (auto it = m_SubSteppers.begin(); it != m_SubSteppers.end(); it++)
60 {
61 unsigned int count = (*it)->GetSteps() * m_ScaleFactors[(*it)];
62 if ((this->GetSteps() != 0) && ((*it)->GetSteps() != 0))
63 {
64 (*it)->SetPos((pos * count / this->GetSteps()) % (*it)->GetSteps());
65 }
66 }
67};
68
69void mitk::MultiStepper::SetSteps(unsigned int /*steps*/)
70{

Callers 15

mainFunction · 0.45
mainFunction · 0.45
SaveSliceOrImageAsPNGFunction · 0.45
SaveSliceOrImageAsPNGFunction · 0.45
mitkStepperTestFunction · 0.45
UpdateMethod · 0.45
IncreaseMethod · 0.45
DecreaseMethod · 0.45
MoveSliceMethod · 0.45

Calls 3

SetPosFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 2

mitkStepperTestFunction · 0.36
SetTimeStepMethod · 0.36