Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkStatusBar.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkStatusBar_h
14 #define mitkStatusBar_h
16 #include <MitkCoreExports.h>
17 #include <itkObject.h>
18 #include <mitkPoint.h>
19 #include <mitkTimeGeometry.h>
20 #include <itkIndex.h>
21 
22 namespace mitk
23 {
35  class MITKCORE_EXPORT StatusBar : public itk::Object
36  {
37  public:
38  itkTypeMacro(StatusBar, itk::Object);
39 
48 
59 
65  void DisplayText(const char *t);
66 
73  void DisplayText(const char *t, int ms);
74 
80  void DisplayErrorText(const char *t);
81 
87  void DisplayWarningText(const char *t);
88 
95  void DisplayWarningText(const char *t, int ms);
96 
102  void DisplayGenericOutputText(const char *t);
103 
109  void DisplayDebugText(const char *t);
110 
116  void DisplayGreyValueText(const char *t);
117 
125 
134  void DisplayImageInfo(Point3D point, itk::Index<3> index, TimePointType time, ScalarType pixelValue);
135 
144  void DisplayImageInfo(Point3D point, itk::Index<3> index, TimePointType time, const char* pixelValue);
145 
150 
154  void Clear();
155 
164  void SetSizeGripEnabled(bool enable);
165 
166  protected:
168  ~StatusBar() override;
169 
172  };
173 
174 } // end namespace mitk
175 #endif
#define MITKCORE_EXPORT
GUI-independent interface for all GUI-dependent implementations of a status bar.
Sends messages to the application's status bar.
Definition: mitkStatusBar.h:36
void DisplayGreyValueText(const char *t)
Display a grey value text in the status bar.
static StatusBarImplementation * m_Implementation
~StatusBar() override
void DisplayImageInfo(Point3D point, itk::Index< 3 > index, TimePointType time, ScalarType pixelValue)
Display position, index, time and numeric pixel value.
void DisplayText(const char *t, int ms)
Send a string with a time delay to the application's status bar.
void DisplayWarningText(const char *t, int ms)
Display a warning message with a time delay in the status bar.
void DisplayText(const char *t)
Send a string to the application's status bar.
void DisplayImageInfoInvalid()
Display placeholder text for invalid image information.
void DisplayWarningText(const char *t)
Display a warning message in the status bar.
void DisplayDebugText(const char *t)
Display a debug message in the status bar.
void DisplayErrorText(const char *t)
Display an error message in the status bar.
void Clear()
Remove any temporary message being shown.
static void SetImplementation(StatusBarImplementation *instance)
Supply a GUI-dependent StatusBarImplementation.
void DisplayRendererInfo(Point3D point, TimePointType time)
Display position and time information for a renderer.
void SetSizeGripEnabled(bool enable)
Set the size grip of the window to enabled or disabled.
static StatusBar * m_Instance
void DisplayImageInfo(Point3D point, itk::Index< 3 > index, TimePointType time, const char *pixelValue)
Display position, index, time and custom pixel value string.
void DisplayGenericOutputText(const char *t)
Display a generic output message in the status bar.
static StatusBar * GetInstance()
Get the singleton StatusBar instance.
Find image slices visible on a given plane.
mitk::ScalarType TimePointType
Type for time point values in milliseconds (ms).
double ScalarType
Scalar type used throughout MITK for geometric computations.