Medical Imaging Interaction Toolkit  2018.4.99-93926fb8
Medical Imaging Interaction Toolkit
mitkMultiStepperTest.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkMultiStepper.h"
14 #include "mitkStepper.h"
15 #include "mitkTestingMacros.h"
16 
17 int mitkMultiStepperTest(int /*argc*/, char * /*argv*/ [])
18 {
19  mitk::Stepper::Pointer stepperA;
20  stepperA = mitk::Stepper::New();
21 
23  stepperA->SetSteps(4);
24  stepperB->SetSteps(6);
26 
27  multiStepper->AddStepper(stepperA, 2);
28  multiStepper->AddStepper(stepperB);
29 
30  for (int i = 0; i < 10; i++)
31  {
32  std::cout << i << ": A: " << stepperA->GetPos() << " B:" << stepperB->GetPos() << std::endl;
33  multiStepper->Next();
34  }
35 
36  return EXIT_SUCCESS;
37 }
int mitkMultiStepperTest(int, char *[])
static Pointer New()
static Pointer New()