| 
    MeVisLab Scripting Reference
    
   | 
 
#include <mlabDicomTree.h>
Inherits MLRefCountedBaseWrapper.
Inherited by MLABMutableDicomTree.
Public Slots | |
Scripting access.  | |
  | |
| QList< MLABDicomTag * > | getTags () | 
| MLABDicomTag * | getTag (const QString &name) | 
| MLABDicomTag * | getTagById (int group, int element) | 
| QString | getPrivateCreator (int group, int element) | 
| int | findPrivateSlot (int group, const QString &privateCreator) | 
| MLABDicomTag * | getPrivateTag (int group, const QString &privateCreator, int elementOffset) | 
| MLABDicomTree * | parentTree () const | 
| MLABMutableDicomTree * | deepCopy () | 
| MLABMutableDicomTree * | createDerivedTree () | 
| bool | save (const QString &filename, bool generateSOPInstanceUID=true) | 
| static QString | createDicomUid () | 
This class wraps a DCMTree::Const_TreePtr for scripting use.
Objects of this class are handed to the scripting API and deleted when not referenced anymore.
      
  | 
  slot | 
Creates a mutable derived tree which still references the original tree.
      
  | 
  staticslot | 
Creates a new DICOM UID.
      
  | 
  slot | 
Creates a mutable deep copy of the given tree.
The returned tree will not contain any references to the source tree anymore.
      
  | 
  slot | 
Finds the slot used for a given private tag group. 
Returns 0 if the private creator was not found in the given tag group. 
      
  | 
  slot | 
Returns the private creator string for the tag ID given by group ID and element ID. 
      
  | 
  slot | 
Returns a private tag.
Uses findPrivateSlot to find the correct slot for the private tag.
This method might fail if it is not applied to the tree on the top-most level, since the private creator might only be set on the top-most tree.
      
  | 
  slot | 
Returns a tag from DICOM tree selected either by name or by ID with format "(xxxx,yyyy)", where xxxx is the group ID and yyyy is the element ID.
      
  | 
  slot | 
Returns the tag from DICOM tree selected by group and element ID. 
      
  | 
  slot | 
Returns a list of all DICOM tags contained in this tree.
This method is only accessible from Python.
      
  | 
  slot | 
Returns the parent tree of this tree (if this is an overlay tree, otherwise nullptr)
      
  | 
  slot | 
Saves the DICOM tree to disk.