MeVisLab Scripting Reference
MLABDicomTree Class Reference

#include <mlabDicomTree.h>

Inherits MLRefCountedBaseWrapper.

Inherited by MLABMutableDicomTree.

Public Slots

Scripting access.


QList< MLABDicomTag * > getTags ()
 
MLABDicomTaggetTag (const QString &name)
 
MLABDicomTaggetTagById (int group, int element)
 
QString getPrivateCreator (int group, int element)
 
int findPrivateSlot (int group, const QString &privateCreator)
 
MLABDicomTaggetPrivateTag (int group, const QString &privateCreator, int elementOffset)
 
MLABDicomTreeparentTree () const
 
MLABMutableDicomTreedeepCopy ()
 
MLABMutableDicomTreecreateDerivedTree ()
 
bool save (const QString &filename, bool generateSOPInstanceUID=true)
 
static QString createDicomUid ()
 

Detailed Description

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.

Member Function Documentation

◆ createDerivedTree

MLABMutableDicomTree * MLABDicomTree::createDerivedTree ( )
slot

Creates a mutable derived tree which still references the original tree.

◆ createDicomUid

static QString MLABDicomTree::createDicomUid ( )
staticslot

Creates a new DICOM UID.

◆ deepCopy

MLABMutableDicomTree * MLABDicomTree::deepCopy ( )
slot

Creates a mutable deep copy of the given tree.

The returned tree will not contain any references to the source tree anymore.

◆ findPrivateSlot

int MLABDicomTree::findPrivateSlot ( int group,
const QString & privateCreator )
slot

Find the slot used for a given private tag group.

Returns
0 if the private creator was not found in the given tag group

◆ getPrivateCreator

QString MLABDicomTree::getPrivateCreator ( int group,
int element )
slot

Returns the private creator string for id given by group id and element id.

◆ getPrivateTag

MLABDicomTag * MLABDicomTree::getPrivateTag ( int group,
const QString & privateCreator,
int elementOffset )
slot

Get 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.

◆ getTag

MLABDicomTag * MLABDicomTree::getTag ( const QString & name)
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.

◆ getTagById

MLABDicomTag * MLABDicomTree::getTagById ( int group,
int element )
slot

Returns the tag from DICOM tree selected by group and element id.

◆ getTags

QList< MLABDicomTag * > MLABDicomTree::getTags ( )
slot

Returns a list of all DICOM tags contained in this tree.

This method is only accessible from Python.

◆ parentTree

MLABDicomTree * MLABDicomTree::parentTree ( ) const
slot

Get the parent tree of this tree (if this is an overlay tree, otherwise nullptr)

◆ save

bool MLABDicomTree::save ( const QString & filename,
bool generateSOPInstanceUID = true )
slot

Saves the Dicom Tree to disk.