MeVisLab Toolbox Reference
|
Implements an ImagePropertyExtension object that can be passed to the ML. More...
#include <mlDicomTreeImagePropertyExtension.h>
Public Member Functions | |
DicomTreeImagePropertyExtension () | |
Constructor. More... | |
DicomTreeImagePropertyExtension (const DicomTreeImagePropertyExtension &origObj) | |
Copy constructor. More... | |
DicomTreeImagePropertyExtension (const DCMTree::Const_TreePtr &initDCMTree, const std::string &fileName) | |
Convenience constructor. More... | |
~DicomTreeImagePropertyExtension () override | |
Destructor. More... | |
DicomTreeImagePropertyExtension & | operator= (const DicomTreeImagePropertyExtension &origObj) |
Assignment operator. More... | |
const std::string & | getFileName () const |
Returns the filename from which the DICOM tree was originally loaded. More... | |
void | setFileName (const std::string &fileName) |
Sets the filename that should be associated with the DICOM tree. More... | |
const DCMTree::Const_TreePtr & | getDicomTagTree () const |
Returns a pointer to the shared DICOM tree object. More... | |
void | setDicomTagTree (const DCMTree::Const_TreePtr &newTree) |
Sets new shared DICOM tree object. More... | |
bool | equals (const ImagePropertyExtension &imgPropExt) const override |
Equality operation. More... | |
ImagePropertyExtension * | createClone () const override |
Creates a copy of this object. More... | |
std::string | getValueAsString () const override |
Returns the value of this object as string. More... | |
void | getValueAsString (std::string &valueAsString) const override |
Alternative version to return the object as string, which can be faster and less memory intensive on large created strings. More... | |
MLErrorCode | setValueFromString (const std::string &str) override |
Sets the value of the property from a string value and returns ML_RESULT_OK on success or another MLErrorCode on failure. More... | |
![]() | |
ImagePropertyExtension () | |
Default constructor; does nothing. More... | |
virtual | ~ImagePropertyExtension () |
Destructor. More... | |
virtual bool | operator== (const ImagePropertyExtension &extImageProps) const |
Implements the equality operator based on the equals method. More... | |
virtual bool | operator!= (const ImagePropertyExtension &extImageProps) const |
Implements the inequality operator based on the equals method. More... | |
Implements an ImagePropertyExtension object that 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 |
Creates a copy of this object.
Implements ml::ImagePropertyExtension.
|
overridevirtual |
Equality operation.
Implements ml::ImagePropertyExtension.
const DCMTree::Const_TreePtr& ml::DicomTreeImagePropertyExtension::getDicomTagTree | ( | ) | const |
Returns a 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 |
Returns the value of this object as string.
Implements ml::ImagePropertyExtension.
|
overridevirtual |
Alternative version to return 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 | ) |
Sets new shared DICOM tree object.
void ml::DicomTreeImagePropertyExtension::setFileName | ( | const std::string & | fileName | ) |
Sets the filename that should be associated with the DICOM tree.
|
overridevirtual |
Sets the value of the property from a string value and returns ML_RESULT_OK on success or another MLErrorCode on failure.
Implements ml::ImagePropertyExtension.