Seg3D
2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
|
#include <QtEventHandler.h>
Public Member Functions | |
QtEventHandlerContext (QApplication *qt_application) | |
virtual void | post_event (Core::EventHandle &event) |
virtual void | post_and_wait_event (Core::EventHandle &event) |
virtual bool | process_events () |
virtual bool | wait_and_process_events () |
virtual bool | is_eventhandler_thread () const |
virtual bool | start_eventhandler (Core::EventHandler *eventhandler) |
virtual bool | eventhandler_started () |
virtual void | terminate_eventhandler () |
void | empty_event_queue () |
CLASS QtInterfaceContext: This class wraps the functionality that the Application class needs in an object, so there is a clean interface between Interface and Application layer.
void QtUtils::QtEventHandlerContext::empty_event_queue | ( | ) |
EMPTY_EVENT_QUEUE: Purge all the events in the queue.
|
virtual |
EVENTHANDLER_STARTED: Check whether the eventhandler is running
Implements Core::EventHandlerContext.
|
virtual |
IS_EVENTHANDLER_THREAD: Check whether we are running on the thread that handles the events This function is needed to avoid to post and execute things in an infinite loop.
Implements Core::EventHandlerContext.
|
virtual |
POST_AND_WAIT_EVENT: Post an event onto the event handler stack. This one returns after the thread signals that the event has been executed. The function does the full hand shaking for the synchronization.
Implements Core::EventHandlerContext.
|
virtual |
POST_EVENT: Post an event onto the event handler stack. This one returns immediately after posting the event, and does not wait for the process to finish the event.
Implements Core::EventHandlerContext.
|
virtual |
PROCESS_EVENT: process the events that are queued in the event handler stack.
Implements Core::EventHandlerContext.
|
virtual |
START_EVENTHANDLER: Start the eventhandler thread and start processing events
Implements Core::EventHandlerContext.
|
virtual |
TERMINATE_EVENTHANDLER: Terminate the eventhandler
Implements Core::EventHandlerContext.
|
virtual |
WAIT_AND_PROCESS_EVENTS: process the events that are queued in the event handler mailbox.
Implements Core::EventHandlerContext.