creaImageIO_lib
creaImageIO::MultiThreadImageReaderUser Class Reference

#include <creaImageIOMultiThreadImageReader.h>

Inheritance diagram for creaImageIO::MultiThreadImageReaderUser:

Public Types

enum  EventType {
  ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded, ImageUnloaded,
  Error, ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded,
  ImageUnloaded, Error
}
 
enum  EventType {
  ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded, ImageUnloaded,
  Error, ThreadedReaderStarted, ThreadedReaderStopped, ImageLoaded,
  ImageUnloaded, Error
}
 

Public Member Functions

 MultiThreadImageReaderUser ()
 
virtual ~MultiThreadImageReaderUser ()
 
virtual void OnMultiThreadImageReaderEvent (const std::string &filename, EventType type, vtkImageData *image)
 
void MultiThreadImageReaderEventLock ()
 
void MultiThreadImageReaderEventUnlock ()
 
wxMutex & GetMultiThreadImageReaderUserMutex ()
 
 MultiThreadImageReaderUser ()
 
virtual ~MultiThreadImageReaderUser ()
 
virtual void OnMultiThreadImageReaderEvent (const std::string &filename, EventType type, vtkImageData *image)
 
void MultiThreadImageReaderEventLock ()
 
void MultiThreadImageReaderEventUnlock ()
 
QMutex * GetMultiThreadImageReaderUserMutex ()
 

Private Member Functions

void MultiThreadImageReaderSendEvent (const std::string &filename, EventType type, vtkImageData *image)
 
void MultiThreadImageReaderSendEvent (const std::string &filename, EventType type, vtkImageData *image)
 

Private Attributes

wxMutex mMultiThreadImageReaderUserMutex
 
QMutex mMultiThreadImageReaderUserMutex
 

Friends

class ThreadedImageReader
 
class MultiThreadImageReader
 

Detailed Description

Definition at line 52 of file creaImageIOMultiThreadImageReader.h.

Member Enumeration Documentation

Enumerator
ThreadedReaderStarted 
ThreadedReaderStopped 
ImageLoaded 
ImageUnloaded 
Error 
ThreadedReaderStarted 
ThreadedReaderStopped 
ImageLoaded 
ImageUnloaded 
Error 

Definition at line 61 of file creaImageIOMultiThreadImageReader.h.

62  {
67  Error
68  }
Enumerator
ThreadedReaderStarted 
ThreadedReaderStopped 
ImageLoaded 
ImageUnloaded 
Error 
ThreadedReaderStarted 
ThreadedReaderStopped 
ImageLoaded 
ImageUnloaded 
Error 

Definition at line 62 of file creaImageIOQMultiThreadImageReader.h.

63  {
68  Error
69  }

Constructor & Destructor Documentation

creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderUser ( )
inline

Definition at line 58 of file creaImageIOMultiThreadImageReader.h.

58 {}
virtual creaImageIO::MultiThreadImageReaderUser::~MultiThreadImageReaderUser ( )
inlinevirtual

Definition at line 59 of file creaImageIOMultiThreadImageReader.h.

59 {}
creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderUser ( )
inline

Definition at line 59 of file creaImageIOQMultiThreadImageReader.h.

59 {}
virtual creaImageIO::MultiThreadImageReaderUser::~MultiThreadImageReaderUser ( )
inlinevirtual

Definition at line 60 of file creaImageIOQMultiThreadImageReader.h.

60 {}

Member Function Documentation

wxMutex& creaImageIO::MultiThreadImageReaderUser::GetMultiThreadImageReaderUserMutex ( )
inline
QMutex* creaImageIO::MultiThreadImageReaderUser::GetMultiThreadImageReaderUserMutex ( )
inline

Definition at line 85 of file creaImageIOQMultiThreadImageReader.h.

void creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderEventLock ( )
inline

Definition at line 80 of file creaImageIOMultiThreadImageReader.h.

Referenced by creaImageIO::ThreadedImageReader::Entry().

Here is the caller graph for this function:

void creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderEventLock ( )
inline

Definition at line 81 of file creaImageIOQMultiThreadImageReader.h.

void creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderEventUnlock ( )
inline

Definition at line 82 of file creaImageIOMultiThreadImageReader.h.

Referenced by creaImageIO::ThreadedImageReader::Entry().

Here is the caller graph for this function:

void creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderEventUnlock ( )
inline

Definition at line 83 of file creaImageIOQMultiThreadImageReader.h.

void creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderSendEvent ( const std::string &  filename,
EventType  type,
vtkImageData *  image 
)
private

Definition at line 43 of file creaImageIOMultiThreadImageReader.cpp.

Referenced by creaImageIO::MultiThreadImageReader::SignalImageRead().

46  {
47  wxMutexLocker lock(mMultiThreadImageReaderUserMutex);
48 
49  this->OnMultiThreadImageReaderEvent(filename,type,image);
50  }

Here is the caller graph for this function:

void creaImageIO::MultiThreadImageReaderUser::MultiThreadImageReaderSendEvent ( const std::string &  filename,
EventType  type,
vtkImageData *  image 
)
private
virtual void creaImageIO::MultiThreadImageReaderUser::OnMultiThreadImageReaderEvent ( const std::string &  filename,
EventType  type,
vtkImageData *  image 
)
inlinevirtual

The virtual method to overload by MultiThreadImageReader users It is called when an image has been loaded or unloaded Provides :

  • The image file name which was requested
  • The type of event
  • If type==ImageLoaded the image pointer, else NULL pointer

Reimplemented in creaImageIO::GimmickView, creaImageIO::MultiThreadImageReader, and creaImageIO::MultiThreadImageReader.

Definition at line 76 of file creaImageIOMultiThreadImageReader.h.

79  {}
virtual void creaImageIO::MultiThreadImageReaderUser::OnMultiThreadImageReaderEvent ( const std::string &  filename,
EventType  type,
vtkImageData *  image 
)
inlinevirtual

The virtual method to overload by MultiThreadImageReader users It is called when an image has been loaded or unloaded Provides :

  • The image file name which was requested
  • The type of event
  • If type==ImageLoaded the image pointer, else NULL pointer

Reimplemented in creaImageIO::GimmickView, creaImageIO::MultiThreadImageReader, and creaImageIO::MultiThreadImageReader.

Definition at line 77 of file creaImageIOQMultiThreadImageReader.h.

80  {}

Friends And Related Function Documentation

Definition at line 55 of file creaImageIOMultiThreadImageReader.h.

Member Data Documentation

wxMutex creaImageIO::MultiThreadImageReaderUser::mMultiThreadImageReaderUserMutex
private

Definition at line 91 of file creaImageIOMultiThreadImageReader.h.

QMutex creaImageIO::MultiThreadImageReaderUser::mMultiThreadImageReaderUserMutex
private

Definition at line 92 of file creaImageIOQMultiThreadImageReader.h.


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