40 m_Implementation = implementation;
47 m_Implementation->
PushCursor(cursor, hotspotX, hotspotY);
51 MITK_ERROR <<
"in mitk::ApplicationCursor::PushCursor(): no implementation registered." << std::endl;
52 throw std::logic_error(
"No implementation registered for mitk::ApplicationCursor.");
60 m_Implementation->
PushCursor(XPM, hotspotX, hotspotY);
64 MITK_ERROR <<
"in mitk::ApplicationCursor::PushCursor(): no implementation registered." << std::endl;
65 throw std::logic_error(
"No implementation registered for mitk::ApplicationCursor.");
77 MITK_ERROR <<
"in mitk::ApplicationCursor::PopCursor(): no implementation registered." << std::endl;
78 throw std::logic_error(
"No implementation registered for mitk::ApplicationCursor.");
90 MITK_ERROR <<
"in mitk::ApplicationCursor::GetCursorPosition(): no implementation registered." << std::endl;
91 throw std::logic_error(
"No implementation registered for mitk::ApplicationCursor.");
103 MITK_ERROR <<
"in mitk::ApplicationCursor::SetCursorPosition(): no implementation registered." << std::endl;
104 throw std::logic_error(
"No implementation registered for mitk::ApplicationCursor.");
void SetCursorPosition(const Point2I &)
Set absolute mouse position on screen.
Allows to override the application's cursor.
virtual void SetCursorPosition(const Point2I &)=0
Set absolute mouse position on screen.
DataCollection - Class to facilitate loading/accessing structured data.
static void RegisterImplementation(ApplicationCursorImplementation *implementation)
To be called by a toolkit specific ApplicationCursorImplementation.
Toolkit specific implementation of mitk::ApplicationCursor.
void PopCursor()
Restore the previous cursor.
static ApplicationCursor * GetInstance()
This class is a singleton.
void PushCursor(const char *XPM[], int hotspotX=-1, int hotspotY=-1)
Change the current application cursor.
ApplicationCursor()
Purposely hidden - singleton.
virtual void PushCursor(const char *XPM[], int hotspotX, int hotspotY)=0
Change the current application cursor.
const Point2I GetCursorPosition()
virtual const Point2I GetCursorPosition()=0
Get absolute mouse position on screen.
virtual void PopCursor()=0
Restore the previous cursor.