MeVisLab Toolbox Reference
|
Base object class for passing DSRDocuments between MeVisLab modules. More...
#include <mlSRDocBase.h>
Public Member Functions | |
SRDoc (const std::string &dcmFileName="", size_t flags=0) | |
Constructor. More... | |
void | setSRDocumentIOD (DSRDocumentPtr rtDosePtr) |
Set the SRDoc dcmtk object and collect all referenced dcmtk objects. More... | |
DSRDocumentPtr | getSRDocumentIOD () |
Get the SRDoc dcmtk object. More... | |
bool | isValid () |
Return true if wrapped SRDocumentIOD object is valid. More... | |
Public Member Functions inherited from ml::Base | |
Base () | |
Constructor. More... | |
virtual | ~Base () |
Destructor. More... | |
virtual Base * | deepCopy () const |
Set addStateToTree version number that can be accessed via getAddStateVersion() More... | |
bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
Check if this object's type is equal to or derived from one of the types given in the argument. More... | |
virtual bool | isRefCountedBase () const |
Returns if the instance is derived from RefCountedBase. More... | |
virtual std::string | detailString () const |
Return a string describing this object. More... | |
virtual bool | implementsPersistence (PersistenceInterface) const |
Override this method to declare which persistence interfaces are implemented by your derived class. More... | |
virtual std::string | persistentState () const |
Returns a string describing the object's internal state. More... | |
virtual void | setPersistentState (const std::string &state) |
Restores the object's internal state from a string that had been previously generated using persistentState() . More... | |
virtual void | addStateToTree (TreeNode *) const |
Attaches the object state as children of the given parent node. More... | |
virtual void | readStateFromTree (TreeNode *) |
Reads the object state from the children of the given parent node. More... | |
virtual void | writeTo (AbstractPersistenceOutputStream *) const |
Write the objects state to the data stream object. More... | |
virtual void | readFrom (AbstractPersistenceInputStream *, int) |
Read the objects state from the data stream object. More... | |
Public Attributes | |
std::string | recentMessages |
Contains messages from the recent operation if there are any. More... | |
Additional Inherited Members | |
Public Types inherited from ml::Base | |
enum | PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream } |
This enum describes the different persistence interfaces available. More... | |
Protected Member Functions inherited from ml::Base | |
virtual char * | getPersistentState () const |
Returns a C string describing the object's internal state. More... | |
virtual void | setPersistentState (const char *) |
Restores the object's internal state from a string that had been previously generated using getPersistentState() . More... | |
virtual void | clearPersistentState (char *) const |
Disposes a string previously allocated by getPersistentState() . More... | |
Base object class for passing DSRDocuments between MeVisLab modules.
Definition at line 34 of file mlSRDocBase.h.
ml::SRDoc::SRDoc | ( | const std::string & | dcmFileName = "" , |
size_t | flags = 0 |
||
) |
Constructor.
Gets a reference to the name of the DICOM file containing the sr document object to be wrapped and flags passed to the document reader. (Error) messages are stored in recentMessages. For the large number of available flags check documentation in file dsrtypes.h of dcmtk and in dsrdoc.h of dcmtk.
|
inline |
Get the SRDoc dcmtk object.
Definition at line 48 of file mlSRDocBase.h.
|
inline |
Return true if wrapped SRDocumentIOD object is valid.
Definition at line 51 of file mlSRDocBase.h.
void ml::SRDoc::setSRDocumentIOD | ( | DSRDocumentPtr | rtDosePtr | ) |
Set the SRDoc dcmtk object and collect all referenced dcmtk objects.
std::string ml::SRDoc::recentMessages |
Contains messages from the recent operation if there are any.
Definition at line 54 of file mlSRDocBase.h.