MeVisLab Toolbox Reference
|
Implement an ImagePropertyExtension object which can be passed to the ML. More...
#include <mlDicomTreeImagePropertyExtension.h>
Public Member Functions | |
DicomTreeImagePropertyExtension () | |
Constructor. | |
DicomTreeImagePropertyExtension (const DicomTreeImagePropertyExtension &origObj) | |
Copy constructor. | |
DicomTreeImagePropertyExtension (const DCMTree::Const_TreePtr &initDCMTree, const std::string &fileName) | |
Convenience constructor. | |
~DicomTreeImagePropertyExtension () override | |
Destructor. | |
DicomTreeImagePropertyExtension & | operator= (const DicomTreeImagePropertyExtension &origObj) |
Assignment operator. | |
const std::string & | getFileName () const |
Returns the filename from which the dicom tree was originally loaded. | |
void | setFileName (const std::string &fileName) |
Sets the filename that should be associated with the dicom tree. | |
const DCMTree::Const_TreePtr & | getDicomTagTree () const |
Return pointer to the shared DICOM tree object. | |
void | setDicomTagTree (const DCMTree::Const_TreePtr &newTree) |
Set new shared DICOM tree object. | |
bool | equals (const ImagePropertyExtension &imgPropExt) const override |
Equality operation. | |
ImagePropertyExtension * | createClone () const override |
Create a copy of this object. | |
std::string | getValueAsString () const override |
Return value of object as string. | |
void | getValueAsString (std::string &valueAsString) const override |
Alternative version to get the object as string which can be faster and less memory intensive on large created strings. | |
MLErrorCode | setValueFromString (const std::string &str) override |
Set value of property from string value and return ML_RESULT_OK on success or another MLErrorCode on failure. | |
Public Member Functions inherited from ml::ImagePropertyExtension | |
ImagePropertyExtension () | |
Default constructor doing nothing. | |
virtual | ~ImagePropertyExtension () |
Destructor. | |
virtual bool | operator== (const ImagePropertyExtension &extImageProps) const |
Implements equality operation based on the equals method. | |
virtual bool | operator!= (const ImagePropertyExtension &extImageProps) const |
Implements inequality operation based on the equals method. | |
Implement an ImagePropertyExtension object which can be passed to the ML.
Note that we use a shared pointer as member thus all copies of objects do not create copies of the DICOM tree but only use additional references. If the last shared pointer is destroyed it then deletes the DICOM tree.
Definition at line 43 of file mlDicomTreeImagePropertyExtension.h.
ml::DicomTreeImagePropertyExtension::DicomTreeImagePropertyExtension | ( | ) |
Constructor.
ml::DicomTreeImagePropertyExtension::DicomTreeImagePropertyExtension | ( | const DicomTreeImagePropertyExtension & | origObj | ) |
Copy constructor.
ml::DicomTreeImagePropertyExtension::DicomTreeImagePropertyExtension | ( | const DCMTree::Const_TreePtr & | initDCMTree, |
const std::string & | fileName ) |
Convenience constructor.
|
override |
Destructor.
|
overridevirtual |
Create a copy of this object.
Implements ml::ImagePropertyExtension.
|
overridevirtual |
Equality operation.
Implements ml::ImagePropertyExtension.
const DCMTree::Const_TreePtr & ml::DicomTreeImagePropertyExtension::getDicomTagTree | ( | ) | const |
Return pointer to the shared DICOM tree object.
const std::string & ml::DicomTreeImagePropertyExtension::getFileName | ( | ) | const |
Returns the filename from which the dicom tree was originally loaded.
|
overridevirtual |
Return value of object as string.
Implements ml::ImagePropertyExtension.
|
overridevirtual |
Alternative version to get the object as string which can be faster and less memory intensive on large created strings.
Reimplemented from ml::ImagePropertyExtension.
DicomTreeImagePropertyExtension & ml::DicomTreeImagePropertyExtension::operator= | ( | const DicomTreeImagePropertyExtension & | origObj | ) |
Assignment operator.
void ml::DicomTreeImagePropertyExtension::setDicomTagTree | ( | const DCMTree::Const_TreePtr & | newTree | ) |
Set new shared DICOM tree object.
Sets the filename that should be associated with the dicom tree.
|
overridevirtual |
Set value of property from string value and return ML_RESULT_OK on success or another MLErrorCode on failure.
Implements ml::ImagePropertyExtension.