MeVisLab Toolbox Reference
mlDicomTreeAccess.h File Reference

Go to the source code of this file.

Namespaces

namespace  ml
 Defines the class GetTileJob.

Macros

#define ML_DICOM_TREE_IMAGE_PROPERTY_EXTENSION_CLASS_NAME    ml::DicomTreeImagePropertyExtension::getClassTypeId()->getName()
 Macro that resolves the class name of DicomTreeImagePropertyExtension.
#define ML_GET_DICOM_TREE_CONST(constTreePtr, medicalImageProperties)
 Macro that assigns the DICOM tree contained in medicalImageProperties (or PagedImg) to constTreePtr.
#define ML_GET_DICOM_TREE_FROM_FIELD_CONST(constTreePtr, mlField)
#define ML_GET_DICOM_TAG_BY_NAME_CONST(constTagPtr, constTreePtr, name)

Functions

MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT DCMTree::Const_TreePtr ml::getDicomTreeFromImagePropertyExtension (const ImagePropertyExtension *dicomTreeImagePropertyExtensionPtr)
MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT DCMTree::Const_TagPtr ml::getDicomTagByName (const ImagePropertyExtension *imagePropertyExtensionPtr, const std::string &tagName)
 Returns the tag with the given name from the property extension. If it is not found, the pointer will be NULL.
MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT bool ml::getTagIdByATString (const std::string &atString, DCMTree::TagId &tagId)
MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT bool ml::MLIsATString (const std::string &supposedATString)
 Checks whether the given string is a well-formed AT string.

Macro Definition Documentation

◆ ML_DICOM_TREE_IMAGE_PROPERTY_EXTENSION_CLASS_NAME

#define ML_DICOM_TREE_IMAGE_PROPERTY_EXTENSION_CLASS_NAME    ml::DicomTreeImagePropertyExtension::getClassTypeId()->getName()

Macro that resolves the class name of DicomTreeImagePropertyExtension.

Definition at line 47 of file mlDicomTreeAccess.h.

◆ ML_GET_DICOM_TAG_BY_NAME_CONST

#define ML_GET_DICOM_TAG_BY_NAME_CONST ( constTagPtr,
constTreePtr,
name )
Value:
if (constTreePtr) { \
try { \
constTagPtr = treePtr->getTag(tagName); \
} catch (DCMTree::Exception&) { } \
} else if (constTagPtr) { \
constTagPtr = DCMTree::Const_TagPtr(); \
}
Exception class for DCMTree.
boost::shared_ptr< const Tag > Const_TagPtr
Definition DCMTree_Lib.h:57

Macro that attempts to assign the DICOM tag with the given name in constTreePtr to constTagPtr. If constTreePtr is NULL or the tag could not be found, then constTagPtr is set to NULL.

Definition at line 85 of file mlDicomTreeAccess.h.

◆ ML_GET_DICOM_TREE_CONST

#define ML_GET_DICOM_TREE_CONST ( constTreePtr,
medicalImageProperties )
Value:
const RuntimeType* runtimeType = DicomTreeImagePropertyExtension::getClassTypeId(); \
const ImagePropertyExtensionContainer& propContainer = medicalImageProperties->getConstImagePropertyContainer(); \
const DicomTreeImagePropertyExtension* propExtension = static_cast<const DicomTreeImagePropertyExtension*>( \
propContainer.getFirstEntryOfType(runtimeType)); \
constTreePtr = getDicomTreeFromImagePropertyExtension(propExtension);

Macro that assigns the DICOM tree contained in medicalImageProperties (or PagedImg) to constTreePtr.

Definition at line 53 of file mlDicomTreeAccess.h.

◆ ML_GET_DICOM_TREE_FROM_FIELD_CONST

#define ML_GET_DICOM_TREE_FROM_FIELD_CONST ( constTreePtr,
mlField )
Value:
{ \
\
const ml::ImagePropertyExtension* extension = NULL; \
\
reinterpret_cast<void**>( \
const_cast<ml::ImagePropertyExtension**>(&extension))); \
if (errorCode){ \
std::cerr << "Failed to get DICOM image property extension (" \
<< MLGetErrorCodeDescription(errorCode) << ")" << std::endl; \
} else if(extension != NULL) { \
constTreePtr = ml::getDicomTreeFromImagePropertyExtension(extension); \
} \
}
MLint32 MLErrorCode
Type of an ML Error code.
Definition mlTypeDefs.h:715
#define mlField
A macro name for a void pointer to a field in the ML to make the pointer more readable.
Definition mlAPI.h:54
MLEXPORT MLErrorCode MLImageGetFirstImagePropertyExtensionByType(mlField *outField, const char *imagePropertyTypeClassName, void **imagePropertyExtension)
#define ML_DICOM_TREE_IMAGE_PROPERTY_EXTENSION_CLASS_NAME
Macro that resolves the class name of DicomTreeImagePropertyExtension.
ML_UTILS_EXPORT const char * MLGetErrorCodeDescription(MLErrorCode errCode)
MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT DCMTree::Const_TreePtr getDicomTreeFromImagePropertyExtension(const ImagePropertyExtension *dicomTreeImagePropertyExtensionPtr)

Macro that assigns the DICOM tree contained in the image of the mlfield to constTreePtr. Access to mlAPI.h is necessary for this macro to work!

Definition at line 64 of file mlDicomTreeAccess.h.