Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkMultiStepper.h"
18 #include "mitkStepper.h"
19 #include "mitkTestingMacros.h"
20 
21 int mitkMultiStepperTest(int /*argc*/, char * /*argv*/ [])
22 {
23  mitk::Stepper::Pointer stepperA;
24  stepperA = mitk::Stepper::New();
25 
27  stepperA->SetSteps(4);
28  stepperB->SetSteps(6);
30 
31  multiStepper->AddStepper(stepperA, 2);
32  multiStepper->AddStepper(stepperB);
33 
34  for (int i = 0; i < 10; i++)
35  {
36  std::cout << i << ": A: " << stepperA->GetPos() << " B:" << stepperB->GetPos() << std::endl;
37  multiStepper->Next();
38  }
39 
40  return EXIT_SUCCESS;
41 }
int mitkMultiStepperTest(int, char *[])
static Pointer New()
static Pointer New()