|
MeVisLab Toolbox Reference
|
#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 |
| Returns a pointer to the shared DICOM tree object. | |
| void | setDicomTagTree (const DCMTree::Const_TreePtr &newTree) |
| Sets new shared DICOM tree object. | |
| bool | equals (const ImagePropertyExtension &imgPropExt) const override |
| Equality operation. | |
| ImagePropertyExtension * | createClone () const override |
| Creates a copy of this object. | |
| std::string | getValueAsString () const override |
| Returns the value of this object as string. | |
| 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. | |
| MLErrorCode | setValueFromString (const std::string &str) override |
| Public Member Functions inherited from ml::ImagePropertyExtension | |
| ImagePropertyExtension () | |
| Default constructor; does nothing. | |
| virtual | ~ImagePropertyExtension () |
| Destructor. | |
| virtual bool | operator== (const ImagePropertyExtension &extImageProps) const |
| Implements the equality operator based on the equals method. | |
| virtual bool | operator!= (const ImagePropertyExtension &extImageProps) const |
| Implements the inequality operator based on the equals method. | |
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.
Referenced by DicomTreeImagePropertyExtension(), operator=(), and setValueFromString().
| ml::DicomTreeImagePropertyExtension::DicomTreeImagePropertyExtension | ( | const DicomTreeImagePropertyExtension & | origObj | ) |
Copy constructor.
References DicomTreeImagePropertyExtension().
| 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.
References ml::ImagePropertyExtension::ImagePropertyExtension().
|
overridevirtual |
Equality operation.
Implements ml::ImagePropertyExtension.
References ml::ImagePropertyExtension::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.
References DicomTreeImagePropertyExtension().
| 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.
References DicomTreeImagePropertyExtension().