MeVisLab Toolbox Reference
mlDICOMCachedIOTools.h File Reference

Some DICOM related tools functions. More...

#include "MLDICOMCachedIOSystem.h"
#include "mlTypeDefs.h"
#include <FMEThirdPartyWarningsDisable.h>
#include <string>
#include <sstream>
#include <FMEThirdPartyWarningsRestore.h>
#include <DCMTree_Lib.h>

Go to the source code of this file.

Namespaces

namespace  ml
 Defines the class GetTileJob.
namespace  ml::DICOMCachedIOTools

Enumerations

enum  { ml::DICOMCachedIOTools::NumLosslessTransferSyntaxes = 8 }
 Number of supported lossless compression transfer syntax modes. More...

Functions

MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::pushMessageCollecting ()
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::popMessageCollecting (DicomMessageCollector &dcmMsgCollector, const std::string &callersMessage, size_t outStrMaxSize=std::string::npos, bool addClampInfo=true)
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::redirectStream (std::ostream &outputStream, std::streambuf *&tempBuf, std::stringbuf *&stringBuffer)
MLDICOMCachedIO_EXPORT std::string ml::DICOMCachedIOTools::unRedirectStream (std::ostream &outputStream, std::streambuf *&tmpBuf, std::stringbuf *&stringBuffer, size_t outStrMaxSize=std::string::npos, bool addClampInfo=true)
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::makeWarningsWarningsAndErrorsErrors (std::string &messageString)
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::logFileCheckInfos (const std::string &fileName, DicomMessageCollector &dcmMsgCollector, bool pedantic=true, bool doWarnEmpty=false, bool doWarnFullPathLonger254=false, bool doWarnSpaces=false, bool doWarnUntypicalChars=false, bool warnBaseNamesLonger31=false)
MLDICOMCachedIO_EXPORT std::string ml::DICOMCachedIOTools::logFileCheckInfosIntoString (const std::string &fileName, const std::string &prependMessage=" ", bool pedantic=true, bool doWarnEmpty=false, bool doWarnFullPathLonger254=false, bool doWarnSpaces=false, bool doWarnUntypicalChars=false, bool warnBaseNamesLonger31=false)
MLDICOMCachedIO_EXPORT DCMTree::TreePtr ml::DICOMCachedIOTools::getDirectDCMTree (const std::string &fName, DicomMessageCollector &dcmMsgCollector, bool loadPixelData=false)
MLDICOMCachedIO_EXPORT MLErrorCode ml::DICOMCachedIOTools::getDCMTreeFromDICOMFile (const std::string &dcmFileName, DCMTree::Const_TreePtr &treePtr, size_t &numVols, DicomMessageCollector &dcmMsgCollector)
MLDICOMCachedIO_EXPORT MLErrorCode ml::DICOMCachedIOTools::getDCMTreeFromDCMTiffFilePair (const std::string &dcmTiffFileName, DCMTree::Const_TreePtr &treePtr, size_t &numVols, DicomMessageCollector &dcmMsgCollector)
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::getDCMTreeFromPagedImage (PagedImage *inImg, DCMTree::Const_TreePtr &treePtr, size_t &numVols)
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::getDCMTreeFromDicomTreeBasePtr (Base *basePtr, DCMTree::Const_TreePtr &treePtr, size_t &numVols)
MLDICOMCachedIO_EXPORT DCMTree::TransferSyntax ml::DICOMCachedIOTools::getLosslessStorageTransferSyntax (DCMTree::Const_TreePtr dcmTree)
MLDICOMCachedIO_EXPORT DCMTree::Const_TagPtr ml::DICOMCachedIOTools::getPrivateTag (const std::string &privateCreatorString, unsigned short groupId, DCMTree::RawTagId lowerEightBitOfElementId, DCMTree::Const_TreePtr dcmTree)
MLDICOMCachedIO_EXPORT bool ml::DICOMCachedIOTools::isPhilips3D (DCMTree::Const_TreePtr dcmTree, MLint *spatialExtent=nullptr)
MLDICOMCachedIO_EXPORT unsigned int ml::DICOMCachedIOTools::getNumberOfFrames (DCMTree::Const_TreePtr dcmTree, unsigned int *fromTagOnly=nullptr)
MLDICOMCachedIO_EXPORT DCMTree::PixelData ml::DICOMCachedIOTools::getPixelDataPtrFromTree (DCMTree::Const_TreePtr treePtr, size_t *valSizeInBytes, DicomMessageCollector &dcmMsgCollector)
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::removeAssociatedCacheEntries (const DICOMCachedIOFileHandle &fileHandle)
 Flush all cached entries related to the given file handle.
MLDICOMCachedIO_EXPORT void ml::DICOMCachedIOTools::clearDICOMCaches ()
 Clears all cached DICOM date including tags, trees, pixel frames and decomposed multi-frame trees.

Variables

MLDICOMCachedIO_EXPORT const char *const ml::DICOMCachedIOTools::LosslessTransferSyntaxUIDs [NumLosslessTransferSyntaxes]
 Supported lossless compression transfer syntax UIDs.
MLDICOMCachedIO_EXPORT const char *const ml::DICOMCachedIOTools::LosslessTransferSyntaxNames [NumLosslessTransferSyntaxes]
 Supported lossless compression transfer syntax names.
MLDICOMCachedIO_EXPORT DCMTree::TransferSyntax ml::DICOMCachedIOTools::LosslessTransferSyntaxCodes [NumLosslessTransferSyntaxes]
 DCMTree::TransferSyntax enums for supported lossless compression transfer syntax.

Detailed Description

Some DICOM related tools functions.

Author
Wolf Spindler
Date
2010-01-26

Definition in file mlDICOMCachedIOTools.h.