ITK  4.4.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
itk::GPUImageDataManager< ImageType > Class Template Reference

#include <itkGPUImageDataManager.h>

+ Inheritance diagram for itk::GPUImageDataManager< ImageType >:
+ Collaboration diagram for itk::GPUImageDataManager< ImageType >:

Detailed Description

template<class ImageType>
class itk::GPUImageDataManager< ImageType >

DataManager for GPUImage. This class will take care of data synchronization between CPU Image and GPU Image.

Definition at line 44 of file itkGPUImageDataManager.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef GPUImageDataManager Self
 
typedef GPUDataManager Superclass
 
- Public Types inherited from itk::GPUDataManager
typedef SmartPointer< const SelfConstPointer
 
typedef MutexLockHolder
< SimpleFastMutexLock
MutexHolderType
 
typedef SmartPointer< SelfPointer
 
typedef GPUDataManager Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const GPUDataManagerGetGPUBufferedRegionIndex () const
 
virtual const GPUDataManagerGetGPUBufferedRegionSize () const
 
ImageType * GetImagePointer ()
 
virtual GPUDataManagerGetModifiableGPUBufferedRegionIndex ()
 
virtual GPUDataManagerGetModifiableGPUBufferedRegionSize ()
 
virtual const char * GetNameOfClass () const
 
virtual void Graft (const GPUDataManager *data)
 
virtual void MakeCPUBufferUpToDate ()
 
virtual void MakeGPUBufferUpToDate ()
 
void SetImagePointer (typename ImageType::Pointer img)
 
- Public Member Functions inherited from itk::GPUDataManager
void Allocate ()
 
unsigned int GetBufferSize ()
 
void * GetCPUBufferPointer ()
 
int GetCurrentCommandQueueID ()
 
cl_mem * GetGPUBufferPointer ()
 
virtual void Initialize ()
 
bool IsCPUBufferDirty ()
 
bool IsGPUBufferDirty ()
 
void SetBufferFlag (cl_mem_flags flags)
 
void SetBufferSize (unsigned int num)
 
void SetCPUBufferDirty ()
 
void SetCPUBufferPointer (void *ptr)
 
void SetCPUDirtyFlag (bool isDirty)
 
void SetCurrentCommandQueue (int queueid)
 
void SetGPUBufferDirty ()
 
void SetGPUDirtyFlag (bool isDirty)
 
bool Update ()
 
virtual void UpdateCPUBuffer ()
 
virtual void UpdateGPUBuffer ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::GPUDataManager
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = ImageType::ImageDimension
 

Protected Member Functions

 GPUImageDataManager ()
 
virtual ~GPUImageDataManager ()
 
- Protected Member Functions inherited from itk::GPUDataManager
 GPUDataManager ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~GPUDataManager ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

 GPUImageDataManager (const Self &)
 
void operator= (const Self &)
 

Private Attributes

int m_BufferedRegionIndex [ImageType::ImageDimension]
 
int m_BufferedRegionSize [ImageType::ImageDimension]
 
GPUDataManager::Pointer m_GPUBufferedRegionIndex
 
GPUDataManager::Pointer m_GPUBufferedRegionSize
 
ImageType::Pointer m_Image
 

Friends

class GPUImage< typename ImageType::PixelType, ImageType::ImageDimension >
 
class GPUKernelManager
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::GPUDataManager
unsigned int m_BufferSize
 
int m_CommandQueueId
 
GPUContextManagerm_ContextManager
 
void * m_CPUBuffer
 
cl_mem m_GPUBuffer
 
bool m_IsCPUBufferDirty
 
bool m_IsGPUBufferDirty
 
cl_mem_flags m_MemFlags
 
SimpleFastMutexLock m_Mutex
 

Member Typedef Documentation

template<class ImageType>
typedef SmartPointer<const Self> itk::GPUImageDataManager< ImageType >::ConstPointer

Definition at line 54 of file itkGPUImageDataManager.h.

template<class ImageType>
typedef SmartPointer<Self> itk::GPUImageDataManager< ImageType >::Pointer

Definition at line 53 of file itkGPUImageDataManager.h.

template<class ImageType>
typedef GPUImageDataManager itk::GPUImageDataManager< ImageType >::Self

Definition at line 51 of file itkGPUImageDataManager.h.

template<class ImageType>
typedef GPUDataManager itk::GPUImageDataManager< ImageType >::Superclass

Definition at line 52 of file itkGPUImageDataManager.h.

Constructor & Destructor Documentation

template<class ImageType>
itk::GPUImageDataManager< ImageType >::GPUImageDataManager ( )
inlineprotected

Definition at line 80 of file itkGPUImageDataManager.h.

template<class ImageType>
virtual itk::GPUImageDataManager< ImageType >::~GPUImageDataManager ( )
inlineprotectedvirtual

Definition at line 81 of file itkGPUImageDataManager.h.

template<class ImageType>
itk::GPUImageDataManager< ImageType >::GPUImageDataManager ( const Self )
private

Member Function Documentation

template<class ImageType>
virtual::itk::LightObject::Pointer itk::GPUImageDataManager< ImageType >::CreateAnother ( void  ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::GPUDataManager.

template<class ImageType>
virtual const GPUDataManager* itk::GPUImageDataManager< ImageType >::GetGPUBufferedRegionIndex ( ) const
virtual
template<class ImageType>
virtual const GPUDataManager* itk::GPUImageDataManager< ImageType >::GetGPUBufferedRegionSize ( ) const
virtual
template<class ImageType>
ImageType* itk::GPUImageDataManager< ImageType >::GetImagePointer ( )
inline

Definition at line 65 of file itkGPUImageDataManager.h.

template<class ImageType>
virtual GPUDataManager* itk::GPUImageDataManager< ImageType >::GetModifiableGPUBufferedRegionIndex ( )
virtual
template<class ImageType>
virtual GPUDataManager* itk::GPUImageDataManager< ImageType >::GetModifiableGPUBufferedRegionSize ( )
virtual
template<class ImageType>
virtual const char* itk::GPUImageDataManager< ImageType >::GetNameOfClass ( ) const
virtual

Standard part of all itk objects.

Reimplemented from itk::GPUDataManager.

template<class ImageType>
virtual void itk::GPUImageDataManager< ImageType >::Graft ( const GPUDataManager data)
virtual

Grafting GPU Image Data

Reimplemented from itk::GPUDataManager.

template<class ImageType>
virtual void itk::GPUImageDataManager< ImageType >::MakeCPUBufferUpToDate ( )
virtual

actual GPU->CPU memory copy takes place here

template<class ImageType>
virtual void itk::GPUImageDataManager< ImageType >::MakeGPUBufferUpToDate ( )
virtual

actual CPU->GPU memory copy takes place here

template<class ImageType>
static Pointer itk::GPUImageDataManager< ImageType >::New ( )
static
template<class ImageType>
void itk::GPUImageDataManager< ImageType >::operator= ( const Self )
private
template<class ImageType>
void itk::GPUImageDataManager< ImageType >::SetImagePointer ( typename ImageType::Pointer  img)

Friends And Related Function Documentation

template<class ImageType>
friend class GPUImage< typename ImageType::PixelType, ImageType::ImageDimension >
friend

Definition at line 48 of file itkGPUImageDataManager.h.

template<class ImageType>
friend class GPUKernelManager
friend

Definition at line 47 of file itkGPUImageDataManager.h.

Member Data Documentation

template<class ImageType>
const unsigned int itk::GPUImageDataManager< ImageType >::ImageDimension = ImageType::ImageDimension
static

Definition at line 59 of file itkGPUImageDataManager.h.

template<class ImageType>
int itk::GPUImageDataManager< ImageType >::m_BufferedRegionIndex[ImageType::ImageDimension]
private

Definition at line 88 of file itkGPUImageDataManager.h.

template<class ImageType>
int itk::GPUImageDataManager< ImageType >::m_BufferedRegionSize[ImageType::ImageDimension]
private

Definition at line 89 of file itkGPUImageDataManager.h.

template<class ImageType>
GPUDataManager::Pointer itk::GPUImageDataManager< ImageType >::m_GPUBufferedRegionIndex
private

Definition at line 90 of file itkGPUImageDataManager.h.

template<class ImageType>
GPUDataManager::Pointer itk::GPUImageDataManager< ImageType >::m_GPUBufferedRegionSize
private

Definition at line 91 of file itkGPUImageDataManager.h.

template<class ImageType>
ImageType::Pointer itk::GPUImageDataManager< ImageType >::m_Image
private

Definition at line 87 of file itkGPUImageDataManager.h.


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