Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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
26
mitk::Stepper::Pointer
stepperB =
mitk::Stepper::New
();
27
stepperA->SetSteps(4);
28
stepperB->SetSteps(6);
29
mitk::MultiStepper::Pointer
multiStepper =
mitk::MultiStepper::New
();
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
}
mitkMultiStepperTest
int mitkMultiStepperTest(int, char *[])
Definition:
mitkMultiStepperTest.cpp:21
mitkTestingMacros.h
mitk::Stepper::New
static Pointer New()
mitkStepper.h
mitkMultiStepper.h
itk::SmartPointer< Self >
mitk::MultiStepper::New
static Pointer New()
git
MITK
Modules
DataTypesExt
test
mitkMultiStepperTest.cpp
Generated on Fri Feb 3 2017 20:52:03 for Medical Imaging Interaction Toolkit by
1.8.9.1