Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Helper class to step through a list. More...
#include <mitkMultiStepper.h>
Public Member Functions | |
mitkClassMacro (MultiStepper, Stepper) | |
Pointer | Clone () const |
void | AddStepper (Stepper::Pointer stepper, unsigned int repeat=1) |
void | RemoveStepper (Stepper::Pointer stepper, unsigned int repeat=1) |
void | SetPos (unsigned int pos) override |
void | SetSteps (const unsigned int steps) override |
Public Member Functions inherited from mitk::Stepper | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual unsigned int | GetPos () const |
virtual unsigned int | GetSteps () const |
virtual bool | GetAutoRepeat () const |
virtual void | SetAutoRepeat (bool _arg) |
virtual void | AutoRepeatOn () |
virtual void | AutoRepeatOff () |
virtual void | SetPingPong (bool _arg) |
virtual bool | GetPingPong () const |
virtual void | PingPongOn () |
virtual void | PingPongOff () |
virtual void | SetInverseDirection (bool _arg) |
virtual bool | GetInverseDirection () const |
virtual void | InverseDirectionOn () |
virtual void | InverseDirectionOff () |
void | SetRange (ScalarType min, ScalarType max) |
void | InvalidateRange () |
ScalarType | GetRangeMin () const |
ScalarType | GetRangeMax () const |
bool | HasValidRange () const |
void | RemoveRange () |
bool | HasRange () const |
void | SetUnitName (const char *unitName) |
const char * | GetUnitName () const |
void | RemoveUnitName () |
bool | HasUnitName () const |
virtual void | Next () |
virtual void | Previous () |
virtual void | First () |
virtual void | Last () |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from mitk::Stepper | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Protected Types | |
typedef std::set< Stepper::Pointer > | StepperSet |
typedef std::map< Stepper::Pointer, unsigned int > | ScaleFactorMap |
Protected Member Functions | |
MultiStepper () | |
virtual | ~MultiStepper () |
void | UpdateStepCount () |
Protected Member Functions inherited from mitk::Stepper | |
Stepper () | |
virtual | ~Stepper () |
void | Increase () |
void | Decrease () |
Protected Attributes | |
StepperSet | m_SubSteppers |
ScaleFactorMap | m_ScaleFactors |
Stepper::Pointer | m_LargestRangeStepper |
Protected Attributes inherited from mitk::Stepper | |
unsigned int | m_Pos |
unsigned int | m_Steps |
bool | m_AutoRepeat |
bool | m_PingPong |
bool | m_InverseDirection |
ScalarType | m_RangeMin |
ScalarType | m_RangeMax |
bool | m_RangeValid |
bool | m_HasRange |
std::string | m_UnitName |
bool | m_HasUnitName |
Additional Inherited Members | |
Public Types inherited from mitk::Stepper | |
typedef Stepper | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Helper class to step through a list.
A helper class to step through a list. Does not contain the list, just the position in the list (between 0 and GetSteps()). Provides methods like First (go to the first element), Next (go to the next one), etc.
Definition at line 37 of file mitkMultiStepper.h.
|
protected |
Definition at line 55 of file mitkMultiStepper.h.
|
protected |
Definition at line 54 of file mitkMultiStepper.h.
|
protected |
Definition at line 20 of file mitkMultiStepper.cpp.
|
protectedvirtual |
Definition at line 24 of file mitkMultiStepper.cpp.
void mitk::MultiStepper::AddStepper | ( | Stepper::Pointer | stepper, |
unsigned int | repeat = 1 |
||
) |
Definition at line 27 of file mitkMultiStepper.cpp.
Pointer mitk::MultiStepper::Clone | ( | ) | const |
mitk::MultiStepper::mitkClassMacro | ( | MultiStepper | , |
Stepper | |||
) |
|
static |
Referenced by mitkMultiStepperTest().
void mitk::MultiStepper::RemoveStepper | ( | Stepper::Pointer | stepper, |
unsigned int | repeat = 1 |
||
) |
Definition at line 33 of file mitkMultiStepper.cpp.
|
overridevirtual |
Reimplemented from mitk::Stepper.
Definition at line 60 of file mitkMultiStepper.cpp.
References mitk::Stepper::SetPos().
|
overridevirtual |
Reimplemented from mitk::Stepper.
Definition at line 73 of file mitkMultiStepper.cpp.
|
protected |
Definition at line 78 of file mitkMultiStepper.cpp.
|
protected |
Definition at line 58 of file mitkMultiStepper.h.
|
protected |
Definition at line 57 of file mitkMultiStepper.h.
|
protected |
Definition at line 56 of file mitkMultiStepper.h.