IMHOTEP Framework
|
Static Public Member Functions | |
static void | startListening (Event eventType, UnityAction< object > listener) |
static void | stopListening (Event eventType, UnityAction< object > listener) |
static void | triggerEvent (Event eventType, object obj=null) |
static void | executeSavedEvents () |
Properties | |
static PatientEventSystem | instance [get] |
Event system for all patient-related events. Listeners can register for specific events and will be notified from now on. This class is a (static) signleton.
Definition at line 24 of file PatientEventSystem.cs.
All possible events:
Enumerator | |
---|---|
PATIENT_StartLoading |
Called when we start loading a new Patient. |
PATIENT_Loaded |
Called when we have loaded a new Patient. |
PATIENT_FinishedLoading |
Called when we have finished loading a new Patient, including Mesh and DICOM. |
PATIENT_NewPatientDirectoryFound |
Called when we've found a new directory while looking for patients. |
PATIENT_Closed |
Called as soon as someone closes the Patient using the close button.
|
MESH_LoadedSingle |
Called when a new (single!) mesh has been loaded. Other meshes might still be loading. The new GameObject holding the new mesh is passed to the callbacks. |
MESH_LoadedAll |
Called when all meshes has been loaded. |
MESH_Opacity_Changed |
Called when mesh opacity is changed. Internal use only.
|
DICOM_NewList |
Called when a new list of DICOMs has been created from the DICOM folder. If needed, the list can be retrieved using PatientDirectoryLoader.getAvailableSeries(). |
DICOM_StartLoadingSlice |
Called when the user wants to start loading a new DICOM slice. |
DICOM_StartLoadingVolume |
Called when the user wants to start loading a new DICOM volume. |
DICOM_NewLoadedSlice |
Called when we've loaded a new slice. |
DICOM_NewLoadedVolume |
Called when we've loaded a new volume. Note: You should also listen to DICOM_CloseVolume and respond correctly! |
DICOM_AllCleared |
Internal use only. |
DICOM_CloseVolume |
Called to signal that a volume is to be closes. All users must immediately stop using the DICOM volume! |
LOADING_AddLoadingJob |
Internal use only. |
LOADING_RemoveLoadingJob |
Internal use only. |
Definition at line 31 of file PatientEventSystem.cs.
|
inlinestatic |
Start calling the function listener whenever eventType happens.
Definition at line 96 of file PatientEventSystem.cs.
|
inlinestatic |
Stop calling the function listener. This should be called with the exact same parameters as were passed to startListening before.
Definition at line 114 of file PatientEventSystem.cs.
|
staticget |
Returns the singleton instance:
Definition at line 86 of file PatientEventSystem.cs.