Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::StatusBar Class Reference

Sending a message to the applications StatusBar. More...

#include <mitkStatusBar.h>

Inheritance diagram for mitk::StatusBar:
Collaboration diagram for mitk::StatusBar:

Public Member Functions

virtual const char * GetClassName () const
 
void DisplayText (const char *t)
 Send a string to the applications StatusBar. More...
 
void DisplayText (const char *t, int ms)
 Send a string with a time delay to the applications StatusBar. More...
 
void DisplayErrorText (const char *t)
 
void DisplayWarningText (const char *t)
 
void DisplayWarningText (const char *t, int ms)
 
void DisplayGenericOutputText (const char *t)
 
void DisplayDebugText (const char *t)
 
void DisplayGreyValueText (const char *t)
 
void DisplayImageInfo (mitk::Point3D point, itk::Index< 3 > index, mitk::ScalarType time, mitk::ScalarType pixelValue)
 Display position, index, time and pixel value. More...
 
void DisplayImageInfo (mitk::Point3D point, itk::Index< 3 > index, mitk::ScalarType time, const char *pixelValue)
 
void DisplayImageInfoInvalid ()
 Display placeholder text for invalid information. More...
 
void Clear ()
 removes any temporary message being shown. More...
 
void SetSizeGripEnabled (bool enable)
 Set the SizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) to enabled or disabled. More...
 

Static Public Member Functions

static StatusBarGetInstance ()
 static method to get the GUI dependent StatusBar-instance so the methods DisplayText, etc. can be called No reference counting, cause of decentral static use! More...
 
static void SetImplementation (StatusBarImplementation *instance)
 Supply a GUI- dependent StatusBar. Has to be set by the application to connect the application dependent subclass of mitkStatusBar if you create an instance, then call ->Delete() on the supplied instance after setting it. More...
 

Protected Member Functions

 StatusBar ()
 
virtual ~StatusBar ()
 

Static Protected Attributes

static StatusBarImplementationm_Implementation
 
static StatusBarm_Instance
 

Detailed Description

Sending a message to the applications StatusBar.

Holds a GUI dependent StatusBarImplementation and sends the text further. nearly equal to itk::OutputWindow, no Window, but one line of text and a delay for clear. all mitk-classes use this class to display text on GUI-StatusBar. The mainapplication has to set the internal held StatusBarImplementation with SetInstance(..).

Definition at line 36 of file mitkStatusBar.h.

Constructor & Destructor Documentation

mitk::StatusBar::StatusBar ( )
protected

Definition at line 166 of file mitkStatusBar.cpp.

Referenced by GetInstance().

mitk::StatusBar::~StatusBar ( )
protectedvirtual

Definition at line 167 of file mitkStatusBar.cpp.

Member Function Documentation

void mitk::StatusBar::Clear ( )

removes any temporary message being shown.

Definition at line 129 of file mitkStatusBar.cpp.

References mitk::StatusBarImplementation::Clear(), and m_Implementation.

void mitk::StatusBar::DisplayDebugText ( const char *  t)
void mitk::StatusBar::DisplayErrorText ( const char *  t)
void mitk::StatusBar::DisplayGenericOutputText ( const char *  t)
void mitk::StatusBar::DisplayGreyValueText ( const char *  t)
void mitk::StatusBar::DisplayImageInfo ( mitk::Point3D  point,
itk::Index< 3 >  index,
mitk::ScalarType  time,
mitk::ScalarType  pixelValue 
)

Display position, index, time and pixel value.

Definition at line 89 of file mitkStatusBar.cpp.

References mitk::StatusBarImplementation::DisplayGreyValueText(), m_Implementation, and mitk::WriteCommonImageInfo().

void mitk::StatusBar::DisplayImageInfo ( mitk::Point3D  point,
itk::Index< 3 >  index,
mitk::ScalarType  time,
const char *  pixelValue 
)
void mitk::StatusBar::DisplayImageInfoInvalid ( )

Display placeholder text for invalid information.

Definition at line 124 of file mitkStatusBar.cpp.

References mitk::StatusBarImplementation::DisplayGreyValueText(), and m_Implementation.

void mitk::StatusBar::DisplayText ( const char *  t,
int  ms 
)

Send a string with a time delay to the applications StatusBar.

Display the text in the statusbar of the applikation for ms seconds

Definition at line 38 of file mitkStatusBar.cpp.

References mitk::StatusBarImplementation::DisplayText(), and m_Implementation.

void mitk::StatusBar::DisplayWarningText ( const char *  t)
void mitk::StatusBar::DisplayWarningText ( const char *  t,
int  ms 
)
virtual const char* mitk::StatusBar::GetClassName ( ) const
virtual
void mitk::StatusBar::SetImplementation ( StatusBarImplementation implementation)
static

Supply a GUI- dependent StatusBar. Has to be set by the application to connect the application dependent subclass of mitkStatusBar if you create an instance, then call ->Delete() on the supplied instance after setting it.

Set an instance of this; application must do this!See Header!

Definition at line 157 of file mitkStatusBar.cpp.

References m_Implementation.

void mitk::StatusBar::SetSizeGripEnabled ( bool  enable)

Set the SizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) to enabled or disabled.

Definition at line 134 of file mitkStatusBar.cpp.

References m_Implementation, and mitk::StatusBarImplementation::SetSizeGripEnabled().

Member Data Documentation

StatusBar * mitk::StatusBar::m_Instance
staticprotected

Definition at line 91 of file mitkStatusBar.h.

Referenced by GetInstance().


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