MeVisLab Scripting Reference
|
Public Slots | |
Scripting access. | |
| |
void | setValues (const QVariant &values) |
void | setValueFromNumPyArray (PyObject *array) |
QList< MLABMutableDicomTree * > | sequenceItems () |
void | setSequenceItems (const QList< MLABMutableDicomTree * > &items) |
void | clearSequenceItems () |
void | clearSequenceItem (int index) |
MLABMutableDicomTree * | addSequenceItem () |
void | addSequenceItem (MLABMutableDicomTree *item) |
MLABMutableDicomTree * | getSequenceItem (int index) |
void | setVr (const QString &vr) |
Public Slots inherited from MLABDicomTag | |
int | groupId () const |
int | elementId () const |
QString | id () const |
QString | vr () const |
QString | tagName () const |
int | compare (const MLABDicomTag *tag, double tolerance=0) const |
QList< MLABDicomTree * > | sequenceItems () const |
MLABDicomTree * | getSequenceItem (int index) const |
int | numberOfValues () const |
int | numberOfSequenceItems () const |
bool | isNull (int idx) const |
bool | isSequenceItemNull (int idx) const |
bool | isEmpty () const |
bool | isSequence () const |
bool | isInteger () const |
bool | isFloat () const |
bool | isDate () const |
bool | isTime () const |
bool | isDateTime () const |
bool | isBinary () const |
bool | isTagId () const |
QString | toString (int idx) const |
QString | toString () const |
QVariant | toNumPyArray () const |
QVariant | value (int idx=0) const |
QVariantList | values () const |
unsigned int | getValueSize (int idx=0) const |
bool | isEqual (MLABDicomTag *other, double tolerance=0.) |
This class wraps a DCMTree::TagPtr for scripting use.
Objects of this class are handed to the scripting API and deleted when not referenced anymore.
|
slot |
Add a new empty sequence item.
|
slot |
Add a sequence item. If item is NULL/None, an empty sequence item is added.
|
slot |
Clears the given sequence item at index, it will be NULL afterwards.
|
slot |
Clear/remove all sequence items.
|
slot |
Get a mutable sequence tree, returns NULL if index is invalid.
|
slot |
Access the embedded DICOM trees of this tag.
Returns empty list if this tag is not of type SQ.
|
slot |
Sets the given sequence items.
Clears the existing sequence items.
|
slot |
Set the binary values of the tag from a NumPy array.
This copies the NumPy array into contiguous memory and only allows NumPy types that match the datatype size of the VR.
|
slot |
Sets the given values to the tag.
It can be a single value (QString, float, double, int, QDate, QTime, QDateTime, QByteArray) or a list of values for tags with multiplicity > 1. If the value is a string and contains backslash separators and if the VR of the tag allows this as value separator, then the string is split automatically. Any previous values are dropped.
|
slot |
Set a new value representation if the VR is unknown.