MeVisLab Scripting Reference
|
#include <mlabMutableDicomTree.h>
Inherits MLABDicomTree.
Public Slots | |
Scripting access. | |
| |
MLABMutableDicomTag * | getMutableTag (const QString &name) |
MLABMutableDicomTag * | getMutableTagById (int group, int element) |
MLABMutableDicomTag * | setTag (const QString &name, const QVariant &values=QVariant(), const QString &vr=QString()) |
MLABMutableDicomTag * | setTagById (int group, int element, const QVariant &values=QVariant(), const QString &vr=QString()) |
void | removeTag (const QString &name) |
void | removeTagById (int group, int element) |
MLABMutableDicomTag * | setPrivateTag (int group, const QString &privateCreator, int elementOffset, const QVariant &values, const QString &vr) |
MLABMutableDicomTag * | getMutablePrivateTag (int group, const QString &privateCreator, int elementOffset) |
bool | removePrivateTags (int group, const QString &privateCreator) |
Public Slots inherited from MLABDicomTree | |
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::TreePtr for scripting use.
Objects of this class are handed to the scripting API and deleted when not referenced anymore.
|
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.
|
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.
It only returns the tag if it is owned by this tree and not by a parent tree.
|
slot |
Returns the tag from DICOM tree selected by group and element id.
It only returns the tag if it is owned by this tree and not by a parent tree.
|
slot |
Removes all private tags for the given group
and privateCreator
.
|
slot |
Removes the tag with the given name or id with format "(xxxx,yyyy)", where xxxx is the group id and yyyy is the element id.
|
slot |
Removes the tag with the given group and element id.
|
slot |
Create a new 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 |
Creates a new tag and sets it in the 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.
The given values
parameter is passed to the MLABMutableDicomTag::setValues() method. Typically the VR is read from the DICOM dictionary, but it can also be passed manually to allow to switch e.g. between OB and OW on PixelData tags.
|
slot |
Creates a new tag and sets it in the DICOM tree selected by group and element id.
The given values
parameter is passed to the MLABMutableDicomTag::setValues() method. The vr should only be specified for private tags, for normal tags it is auto-detected from the dictionary.