MeVisLab Toolbox Reference
ml::MutableDicomTree Class Reference

The DicomTree class can be used to transport a DCMTree::Const_TreePtr as a ml::RefCountedBase object. More...

#include <mlMutableDicomTree.h>

Inheritance diagram for ml::MutableDicomTree:
ml::DicomTree ml::RefCountedBase ml::EventSource ml::Base ml::RTBase ml::DRTDoseIODBase ml::DRTImageIODBase ml::DRTIonBeamsTreatmentRecordIODBase ml::DRTIonPlanIODBase ml::DRTPlanIODBase ml::DRTStructureSetIODBase ml::DRTTreatmentSummaryRecordIODBase

Public Member Functions

 MutableDicomTree ()
 
 MutableDicomTree (const DCMTree::TreePtr &tree)
 wraps the given DCMTree::TreePtr
 
DCMTree::TreePtr getMutableTree () const
 Get the tree pointer.
 
- Public Member Functions inherited from ml::DicomTree
 DicomTree ()
 
 DicomTree (const DCMTree::Const_TreePtr &tree)
 wraps the given DCMTree::Const_TreePtr
 
DCMTree::Const_TreePtr getTree () const
 Get the tree pointer.
 
- Public Member Functions inherited from ml::RefCountedBase
 RefCountedBase ()
 Constructor.
 
 RefCountedBase (const RefCountedBase &)
 Explicit copy constructor.
 
virtual void incRefCount () const
 Increase reference count.
 
virtual void decRefCount () const
 Decrease ref count (object will be deleted if ref count is decremented to 0)
 
bool isRefCountedBase () const override
 Returns if the instance is derived from RefCountedBase.
 
- Public Member Functions inherited from ml::EventSource
 EventSource ()
 
 EventSource (const EventSource &evSource)
 
 ~EventSource () override
 
void addEventListener (BaseEventCallback *cb, void *userData)
 add event listener callback to this Base object - the userData will be the first argument when the callback is called
 
void removeEventListener (BaseEventCallback *cb, void *userData)
 remove event listener callback from this Base object - arguments must be the same as for the addEventListener call
 
bool hasEventListeners () const
 check if any event listeners have been added to this Base object; this can be used to skip the sendEvent call (and the potentially expensive building of the event object) altogether
 
- Public Member Functions inherited from ml::Base
 Base ()
 Constructor.
 
virtual ~Base ()
 Destructor.
 
virtual BasedeepCopy () const
 Set addStateToTree version number that can be accessed via getAddStateVersion()
 
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.
 
virtual std::string detailString () const
 Return a string describing this object.
 
virtual bool implementsPersistence (PersistenceInterface) const
 Override this method to declare which persistence interfaces are implemented by your derived class.
 
virtual std::string persistentState () const
 Returns a string describing the object's internal state.
 
virtual void setPersistentState (const std::string &state)
 Restores the object's internal state from a string that had been previously generated using persistentState().
 
virtual void addStateToTree (TreeNode *) const
 Attaches the object state as children of the given parent node.
 
virtual void readStateFromTree (TreeNode *)
 Reads the object state from the children of the given parent node.
 
virtual void writeTo (AbstractPersistenceOutputStream *) const
 Write the objects state to the data stream object.
 
virtual void readFrom (AbstractPersistenceInputStream *, int)
 Read the objects state from the data stream object.
 

Protected Member Functions

 ~MutableDicomTree () override
 
void setMutableTree (const DCMTree::TreePtr &tree)
 This method is intentionally protected, it is only here to be used in FME RT modules, which need to set the DCM tree later on.
 
- Protected Member Functions inherited from ml::DicomTree
 ~DicomTree () override
 
void setTree (const DCMTree::Const_TreePtr &tree)
 This method is intentionally protected, it is only here to be used in FME RT modules, which need to set the DCM tree later on.
 
- Protected Member Functions inherited from ml::RefCountedBase
 ~RefCountedBase () override
 Macro for the declaration of the runtime type system methods, defined in mlRuntimeSubClass.h.
 
- Protected Member Functions inherited from ml::EventSource
void sendEvent (BaseEvent *event, void *skipListener=nullptr)
 Macro for the declaration of the runtime type system methods, defined in mlRuntimeSubClass.h.
 

Additional Inherited Members

- Public Types inherited from ml::Base
enum  PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream }
 This enum describes the different persistence interfaces available. More...
 
- Static Public Member Functions inherited from ml::RefCountedBase
static void updateReferenceCountingIfSupported (Base *oldValue, Base *newValue, bool &isRefCountedBase)
 Helper method that handles inc/dec of ref count if base instances support it.
 
- Protected Attributes inherited from ml::RefCountedBase
MLint32 _refCount
 Reference count.
 

Detailed Description

The DicomTree class can be used to transport a DCMTree::Const_TreePtr as a ml::RefCountedBase object.

NOTE: There are no setters on purpose, create a new MutableDicomTree if you need to wrap a new DCMTree.

Definition at line 26 of file mlMutableDicomTree.h.

Constructor & Destructor Documentation

◆ MutableDicomTree() [1/2]

ml::MutableDicomTree::MutableDicomTree ( )
inline

Definition at line 29 of file mlMutableDicomTree.h.

◆ MutableDicomTree() [2/2]

ml::MutableDicomTree::MutableDicomTree ( const DCMTree::TreePtr & tree)

wraps the given DCMTree::TreePtr

◆ ~MutableDicomTree()

ml::MutableDicomTree::~MutableDicomTree ( )
inlineoverrideprotected

Definition at line 40 of file mlMutableDicomTree.h.

Member Function Documentation

◆ getMutableTree()

◆ setMutableTree()

void ml::MutableDicomTree::setMutableTree ( const DCMTree::TreePtr & tree)
inlineprotected

The documentation for this class was generated from the following file: