18 #include <itkObjectFactory.h>
19 #include <itkOutputWindow.h>
78 stream <<
"Position: <" << std::fixed << point[0] <<
", "
79 << std::fixed << point[1] <<
", "
80 << std::fixed << point[2] <<
"> mm; ";
82 stream <<
"Index: <" << index[0] <<
", "
84 << index[2] <<
"> ; ";
86 stream <<
"Time: " << time <<
" ms";
94 std::ostringstream stream;
95 stream.imbue(std::locale::classic());
99 stream <<
"; Pixel value: ";
101 if (fabs(pixelValue) > 1000000 || fabs(pixelValue) < 0.01)
102 stream << std::scientific;
104 stream << pixelValue;
114 std::ostringstream stream;
115 stream.imbue(std::locale::classic());
119 stream <<
"; " << pixelValue;
void DisplayImageInfoInvalid()
Display placeholder text for invalid information.
virtual void SetSizeGripEnabled(bool enable)=0
Set the SizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) t...
void SetSizeGripEnabled(bool enable)
Set the SizeGrip of the window (the triangle in the lower right Windowcorner for changing the size) t...
void DisplayImageInfo(mitk::Point3D point, itk::Index< 3 > index, mitk::ScalarType time, mitk::ScalarType pixelValue)
Display position, index, time and pixel value.
void DisplayDebugText(const char *t)
DataCollection - Class to facilitate loading/accessing structured data.
void DisplayGenericOutputText(const char *t)
static void WriteCommonImageInfo(std::ostringstream &stream, Point3D point, itk::Index< 3 > index, ScalarType time)
GUI indepentent Interface for all Gui depentent implementations of a StatusBar.
void DisplayErrorText(const char *t)
static StatusBarImplementation * m_Implementation
void DisplayText(const char *t)
Send a string to the applications StatusBar.
virtual void DisplayGenericOutputText(const char *t)=0
virtual void DisplayErrorText(const char *t)=0
static StatusBar * m_Instance
virtual void DisplayWarningText(const char *t)=0
static StatusBar * GetInstance()
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!
void Clear()
removes any temporary message being shown.
void DisplayGreyValueText(const char *t)
virtual void DisplayText(const char *t)=0
Send a string to the applications StatusBar.
virtual void Clear()=0
removes any temporary message being shown.
Sending a message to the applications StatusBar.
static void SetImplementation(StatusBarImplementation *instance)
Supply a GUI- dependent StatusBar. Has to be set by the application to connect the application depend...
void DisplayWarningText(const char *t)
virtual void DisplayDebugText(const char *t)=0
virtual void DisplayGreyValueText(const char *t)=0