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.
Public Member Functions | List of all members
QtUtils::QtEventHandlerContext Class Reference

#include <QtEventHandler.h>

Inheritance diagram for QtUtils::QtEventHandlerContext:
Core::EventHandlerContext

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 ()
 

Detailed Description

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.

Member Function Documentation

void QtUtils::QtEventHandlerContext::empty_event_queue ( )

EMPTY_EVENT_QUEUE: Purge all the events in the queue.

bool QtUtils::QtEventHandlerContext::eventhandler_started ( )
virtual

EVENTHANDLER_STARTED: Check whether the eventhandler is running

Implements Core::EventHandlerContext.

bool QtUtils::QtEventHandlerContext::is_eventhandler_thread ( ) const
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.

void QtUtils::QtEventHandlerContext::post_and_wait_event ( Core::EventHandle &  event)
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.

void QtUtils::QtEventHandlerContext::post_event ( Core::EventHandle &  event)
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.

bool QtUtils::QtEventHandlerContext::process_events ( )
virtual

PROCESS_EVENT: process the events that are queued in the event handler stack.

Implements Core::EventHandlerContext.

bool QtUtils::QtEventHandlerContext::start_eventhandler ( Core::EventHandler eventhandler)
virtual

START_EVENTHANDLER: Start the eventhandler thread and start processing events

Implements Core::EventHandlerContext.

void QtUtils::QtEventHandlerContext::terminate_eventhandler ( )
virtual

TERMINATE_EVENTHANDLER: Terminate the eventhandler

Implements Core::EventHandlerContext.

bool QtUtils::QtEventHandlerContext::wait_and_process_events ( )
virtual

WAIT_AND_PROCESS_EVENTS: process the events that are queued in the event handler mailbox.

Implements Core::EventHandlerContext.


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