Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
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 ()
 
 ~StatusBar () override
 

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 32 of file mitkStatusBar.h.

Constructor & Destructor Documentation

◆ StatusBar()

mitk::StatusBar::StatusBar ( )
protected

Definition at line 162 of file mitkStatusBar.cpp.

Referenced by GetInstance().

◆ ~StatusBar()

mitk::StatusBar::~StatusBar ( )
overrideprotected

Definition at line 163 of file mitkStatusBar.cpp.

Member Function Documentation

◆ Clear()

void mitk::StatusBar::Clear ( )

removes any temporary message being shown.

Definition at line 125 of file mitkStatusBar.cpp.

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

Referenced by QmitkLabelSetWidget::UpdateControls().

◆ DisplayDebugText()

void mitk::StatusBar::DisplayDebugText ( const char *  t)

◆ DisplayErrorText()

void mitk::StatusBar::DisplayErrorText ( const char *  t)

◆ DisplayGenericOutputText()

void mitk::StatusBar::DisplayGenericOutputText ( const char *  t)

◆ DisplayGreyValueText()

void mitk::StatusBar::DisplayGreyValueText ( const char *  t)

◆ DisplayImageInfo() [1/2]

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 85 of file mitkStatusBar.cpp.

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

◆ DisplayImageInfo() [2/2]

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

◆ DisplayImageInfoInvalid()

void mitk::StatusBar::DisplayImageInfoInvalid ( )

Display placeholder text for invalid information.

Definition at line 120 of file mitkStatusBar.cpp.

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

◆ DisplayText() [1/2]

◆ DisplayText() [2/2]

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 34 of file mitkStatusBar.cpp.

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

◆ DisplayWarningText() [1/2]

void mitk::StatusBar::DisplayWarningText ( const char *  t)

◆ DisplayWarningText() [2/2]

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

◆ GetClassName()

virtual const char* mitk::StatusBar::GetClassName ( ) const
virtual

◆ GetInstance()

◆ SetImplementation()

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 153 of file mitkStatusBar.cpp.

References m_Implementation.

Referenced by QmitkStatusBar::QmitkStatusBar().

◆ SetSizeGripEnabled()

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 130 of file mitkStatusBar.cpp.

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

Member Data Documentation

◆ m_Implementation

◆ m_Instance

StatusBar * mitk::StatusBar::m_Instance
staticprotected

Definition at line 87 of file mitkStatusBar.h.

Referenced by GetInstance().


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