| 
    MeVisLab Toolbox Reference
    
   | 
 
Structure containing a container for pixel frames and an index of the most recently used one. More...
#include <mlDICOMCachedIOPixelFrameCacheContainer.h>
Public Types | |
| enum | { MaxPixFrameDataCacheEntries = 3 } | 
| Number of recent multi-frame files whose frames are to be cached in memory.  More... | |
Public Member Functions | |
| MLDICOMCachedIOPixelFrameCacheContainer () | |
| Constructor; it is initialized with 25 MB of cache for DICOM tree tag data.   | |
| MLDICOMCachedIOPixelFrameCacheContainer (const MLDICOMCachedIOPixelFrameCacheContainer &)=delete | |
| Delete copy constructor to prevent usage.   | |
| MLDICOMCachedIOPixelFrameCacheContainer & | operator= (const MLDICOMCachedIOPixelFrameCacheContainer &)=delete | 
| Delete assignment operator to prevent usage.   | |
| ~MLDICOMCachedIOPixelFrameCacheContainer () | |
| Destructor, cleaning up internal objects.   | |
| DCMTree::MFPixelTag::pixel_cont_t | getCachedPixFrameData (const ml::DICOMCachedIOFileHandle &fileName, size_t frameIdx, DCMTree::MFPixelTag::pixel_cont_t pixFrameData, size_t numFrames) | 
| See MLDICOMCachedIOPixelFrameCache::getCachedPixFrameData().   | |
| void | addPixFrameData (const std::string &fileName, size_t frameIdx, DCMTree::MFPixelTag::pixel_cont_t pixFrameData, size_t numFrames) | 
| Add DICOM pixel data frame to the cache under the fileName as key; addPixFrameData requests with an empty fileName will be ignored (note that its data sizes are not counted).   | |
| void | loadMultiFramesInCache (DCMTree::Const_TreePtr mfTree, const ml::DICOMCachedIOFileHandle &fileNamePath, size_t &numFoundFrames, std::string &warnDesc, std::string &errDesc) | 
| See MLDICOMCachedIOPixelFrameCache::loadMultiFramesInCache().   | |
| DCMTree::MFPixelTag::pixel_cont_t | getPixFrameData (const std::string &fileName, size_t frameIdx, size_t numFrames) | 
| If there is a pixel data cache for a file name then return a cache reference, otherwise nullptr is returned.   | |
| MLMFPixDataFramesCacheEntry * | getPixFrameCacheEntry (const std::string &fileName) | 
| Return the vector of subimages associated with with pixel frame data; it depends by the application whether it is initialized or not.   | |
| bool | hasPixFrameDataCache (const std::string &fileName, size_t numFrames) const | 
| If there is a pixel data cache for file name with numFrames then it returns true, otherwise false.   | |
| void | removeAssociatedEntries (const std::string &fileName) | 
| Clears the entrie(s) of the MLDICOMCachedIOPixelFrameCacheContainer which belong to fileName.   | |
| void | clear () | 
| Clears the MLDICOMCachedIOPixelFrameCacheContainer, the pixel frame caches, and resets all counters.   | |
Protected Member Functions | |
| void | _fillMFCacheFromMFPixelTag (const DCMTree::MFPixelTag &mfPixelDataTag, const ml::DICOMCachedIOFileHandle &fileNamePath, size_t &numFoundFrames, std::string &errDesc) | 
| Helper function.   | |
| void | _fillMFCacheWithFloatData (DCMTree::Const_TreePtr mfTree, const ml::DICOMCachedIOFileHandle &fileNamePath, const boost::uint32_t numFrames, std::string &warnDesc, std::string &errDesc) | 
| Helper function.   | |
Protected Attributes | |
| size_t | _recentMFPixTagCacheIdx | 
| Index to the recently created MFPixTagCache object.   | |
| MLMFPixDataFramesCacheEntry * | _pixelFrameCaches [MaxPixFrameDataCacheEntries] | 
| Array of at most MaxPixFrameDataCaches frame cache objects.   | |
Structure containing a container for pixel frames and an index of the most recently used one.
. It also contains a recent frame data cache for multi-frame pixel data. These two functionalities in the future should be separated into different classes for nicer modularity.
Definition at line 66 of file mlDICOMCachedIOPixelFrameCacheContainer.h.
| anonymous enum | 
Number of recent multi-frame files whose frames are to be cached in memory.
| Enumerator | |
|---|---|
| MaxPixFrameDataCacheEntries | |
Definition at line 72 of file mlDICOMCachedIOPixelFrameCacheContainer.h.
| MLDICOMCachedIOPixelFrameCacheContainer::MLDICOMCachedIOPixelFrameCacheContainer | ( | ) | 
Constructor; it is initialized with 25 MB of cache for DICOM tree tag data.
      
  | 
  delete | 
Delete copy constructor to prevent usage.
| MLDICOMCachedIOPixelFrameCacheContainer::~MLDICOMCachedIOPixelFrameCacheContainer | ( | ) | 
Destructor, cleaning up internal objects.
      
  | 
  protected | 
Helper function.
      
  | 
  protected | 
Helper function.
| void MLDICOMCachedIOPixelFrameCacheContainer::addPixFrameData | ( | const std::string & | fileName, | 
| size_t | frameIdx, | ||
| DCMTree::MFPixelTag::pixel_cont_t | pixFrameData, | ||
| size_t | numFrames | ||
| ) | 
Add DICOM pixel data frame to the cache under the fileName as key; addPixFrameData requests with an empty fileName will be ignored (note that its data sizes are not counted).
 
| void MLDICOMCachedIOPixelFrameCacheContainer::clear | ( | ) | 
Clears the MLDICOMCachedIOPixelFrameCacheContainer, the pixel frame caches, and resets all counters.
| DCMTree::MFPixelTag::pixel_cont_t MLDICOMCachedIOPixelFrameCacheContainer::getCachedPixFrameData | ( | const ml::DICOMCachedIOFileHandle & | fileName, | 
| size_t | frameIdx, | ||
| DCMTree::MFPixelTag::pixel_cont_t | pixFrameData, | ||
| size_t | numFrames | ||
| ) | 
| MLMFPixDataFramesCacheEntry * MLDICOMCachedIOPixelFrameCacheContainer::getPixFrameCacheEntry | ( | const std::string & | fileName | ) | 
Return the vector of subimages associated with with pixel frame data; it depends by the application whether it is initialized or not.
| DCMTree::MFPixelTag::pixel_cont_t MLDICOMCachedIOPixelFrameCacheContainer::getPixFrameData | ( | const std::string & | fileName, | 
| size_t | frameIdx, | ||
| size_t | numFrames | ||
| ) | 
If there is a pixel data cache for a file name then return a cache reference, otherwise nullptr is returned.
| bool MLDICOMCachedIOPixelFrameCacheContainer::hasPixFrameDataCache | ( | const std::string & | fileName, | 
| size_t | numFrames | ||
| ) | const | 
If there is a pixel data cache for file name with numFrames then it returns true, otherwise false.
| void MLDICOMCachedIOPixelFrameCacheContainer::loadMultiFramesInCache | ( | DCMTree::Const_TreePtr | mfTree, | 
| const ml::DICOMCachedIOFileHandle & | fileNamePath, | ||
| size_t & | numFoundFrames, | ||
| std::string & | warnDesc, | ||
| std::string & | errDesc | ||
| ) | 
      
  | 
  delete | 
Delete assignment operator to prevent usage.
| void MLDICOMCachedIOPixelFrameCacheContainer::removeAssociatedEntries | ( | const std::string & | fileName | ) | 
Clears the entrie(s) of the MLDICOMCachedIOPixelFrameCacheContainer which belong to fileName.
      
  | 
  protected | 
Array of at most MaxPixFrameDataCaches frame cache objects.
Definition at line 141 of file mlDICOMCachedIOPixelFrameCacheContainer.h.
      
  | 
  protected | 
Index to the recently created MFPixTagCache object.
Definition at line 138 of file mlDICOMCachedIOPixelFrameCacheContainer.h.