Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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
22
mitk::Stepper::Pointer
stepperB =
mitk::Stepper::New
();
23
stepperA->SetSteps(4);
24
stepperB->SetSteps(6);
25
mitk::MultiStepper::Pointer
multiStepper =
mitk::MultiStepper::New
();
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
}
mitkMultiStepperTest
int mitkMultiStepperTest(int, char *[])
Definition:
mitkMultiStepperTest.cpp:17
mitkTestingMacros.h
mitk::Stepper::New
static Pointer New()
mitkStepper.h
mitkMultiStepper.h
itk::SmartPointer< Self >
mitk::MultiStepper::New
static Pointer New()
Source
Modules
DataTypesExt
test
mitkMultiStepperTest.cpp
Generated on Thu Mar 12 2020 10:23:56 for Medical Imaging Interaction Toolkit by
1.8.13