Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit

Helper class to step through a list. More...

#include <mitkMultiStepper.h>

Inheritance diagram for mitk::MultiStepper:
Collaboration diagram for mitk::MultiStepper:

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::PointerStepperSet
 
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< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Detailed Description

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.

Member Typedef Documentation

typedef std::map<Stepper::Pointer, unsigned int> mitk::MultiStepper::ScaleFactorMap
protected

Definition at line 55 of file mitkMultiStepper.h.

typedef std::set<Stepper::Pointer> mitk::MultiStepper::StepperSet
protected

Definition at line 54 of file mitkMultiStepper.h.

Constructor & Destructor Documentation

mitk::MultiStepper::MultiStepper ( )
protected

Definition at line 20 of file mitkMultiStepper.cpp.

mitk::MultiStepper::~MultiStepper ( )
protectedvirtual

Definition at line 24 of file mitkMultiStepper.cpp.

Member Function Documentation

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 Pointer mitk::MultiStepper::New ( )
static

Referenced by mitkMultiStepperTest().

void mitk::MultiStepper::RemoveStepper ( Stepper::Pointer  stepper,
unsigned int  repeat = 1 
)

Definition at line 33 of file mitkMultiStepper.cpp.

void mitk::MultiStepper::SetPos ( unsigned int  pos)
overridevirtual

Reimplemented from mitk::Stepper.

Definition at line 60 of file mitkMultiStepper.cpp.

References mitk::Stepper::SetPos().

void mitk::MultiStepper::SetSteps ( const unsigned int  steps)
overridevirtual

Reimplemented from mitk::Stepper.

Definition at line 73 of file mitkMultiStepper.cpp.

void mitk::MultiStepper::UpdateStepCount ( )
protected

Definition at line 78 of file mitkMultiStepper.cpp.

Member Data Documentation

Stepper::Pointer mitk::MultiStepper::m_LargestRangeStepper
protected

Definition at line 58 of file mitkMultiStepper.h.

ScaleFactorMap mitk::MultiStepper::m_ScaleFactors
protected

Definition at line 57 of file mitkMultiStepper.h.

StepperSet mitk::MultiStepper::m_SubSteppers
protected

Definition at line 56 of file mitkMultiStepper.h.


The documentation for this class was generated from the following files: