Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkImageAccessorBase_h
14 #define mitkImageAccessorBase_h
16 #include <itkImageRegion.h>
18 #include <itkSmartPointer.h>
44 #if defined(ITK_USE_SPROC) || defined(ITK_USE_PTHREADS) || defined(ITK_USE_WIN32_THREADS)
45 #define MITK_USE_RECURSIVE_MUTEX_PREVENTION
55 template <
class TPixel,
unsigned int VDimension>
58 template <
class TPixel,
unsigned int VDimension>
72 ExceptionIfLocked = 1,
77 ForceCoherentMemory = 2,
85 inline const void *
GetData()
const {
return m_AddressBegin; }
89 typedef int ThreadIDType;
92 #ifdef ITK_USE_WIN32_THREADS
93 typedef DWORD ThreadIDType;
96 #ifdef ITK_USE_PTHREADS
97 typedef pthread_t ThreadIDType;
144 virtual const Image *GetImage()
const = 0;
148 ThreadIDType CurrentThreadHandle();
150 inline bool CompareThreadHandles(ThreadIDType, ThreadIDType);
An object of this class represents an exception of MITK. Please don't instantiate exceptions manually...
ImageWriteAccessor class to get locked write-access for a particular image part.
Internal class for managing references on sub-images.
std::mutex m_Mutex
A mutex that allows other ImageAccessors to wait for the represented ImageAccessor.
void Increment()
Increments m_WaiterCount. A call of this method is prohibited unless the Mutex m_ReadWriteLock in the...
Image class for storing images.
Gives locked and index-based read access for a particular image part. The class provides several set-...
unsigned int m_WaiterCount
Holds the number of ImageAccessors, which are waiting until the represented ImageAccessor is released...
Find image slices visible on a given plane.
ImageReadAccessor class to get locked read access for a particular image part.
This struct allows to make ImageAccessors wait for this particular ImageAccessor object.
int m_Options
Stores all extended properties of an ImageAccessor. The different flags in mitk::ImageAccessorBase::O...
ImageAccessorWaitLock * m_WaitLock
Pointer to a WaitLock struct, that allows other ImageAccessors to wait for this ImageAccessor.
Gives locked and index-based write access for a particular image part. The class provides several set...
#define mitkExceptionClassMacro(ClassName, SuperClassName)
itk::SmartPointer< const mitk::Image > ImageConstPointer
itk::ImageRegion< 4 > * m_SubRegion
Options
defines different flags for the ImageAccessor constructors
const void * GetData() const
Gives const access to the data.