MeVisLab Scripting Reference
|
Public Slots | |
Scripting access. | |
| |
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::Const_TagPtr for scripting use.
Objects of this class are handed to the scripting API and deleted when not referenced anymore.
|
slot |
Compare this to tag and return -1 if this < tag, 0 if this == tag, and 1 if this > tag.
Comparison is performed value by value if both tags are numeric, otherwise byte by byte. If one tag is numeric and the other is a string, this results in nonsense. tolerance specifies the relative difference that is still accepted for 'equal' result.
|
slot |
Gives the element ID of this tag as decimal integer.
|
slot |
Get a mutable sequence tree, returns NULL if index is invalid.
|
slot |
Returns the size of value with given index (especially for binary data).
|
slot |
Gives the group ID of this tag as decimal integer.
(Remember that DICOM IDs are normally shown with hexadecimal notation!) Private tags have an odd group ID.
|
slot |
Gives the ID of this tag as a string with format "(xxxx,yyyy)", where xxxx is the group ID and yyyy is the element ID in hexadecimal notation.
|
slot |
|
slot |
Returns whether this tag contains date values (only).
The value() method will return a date object if this returns true.
|
slot |
Returns whether this tag contains date+time values.
The value() method will return a date/time object if this returns true.
|
slot |
Returns whether this tag has no sequences and no values.
|
slot |
Compares with another tag.
|
slot |
Returns whether this tag contains float values? (Also double precision and integer values.)
The value() method will return a floating point number if this returns true.
|
slot |
Returns whether this tag contains integer values? (Also unsigned and short integers and tag IDs.)
The value() method will return an integer number if this returns true.
|
slot |
Returns whether the value with index idx is null. Returns false if index is out of range.
|
slot |
Returns whether this tag contains embedded DICOM trees.
|
slot |
Returns whether the sequence with index idx is null. Returns false if index is out of range.
|
slot |
Returns whether this tag contains tag-ids.
The value() method will return an unsigned integer where the upper 16 bit contain the group ID and the lower 16 bit contain the element ID. To receive a string containing a tag ID in the format as described in the id() method, use the toString() method.
|
slot |
Returns whether this tag contains time values (only).
The value() method will return a time object if this returns true.
|
slot |
Returns the number of sequence items of this tag.
|
slot |
Returns the number of values of this tag.
|
slot |
Access the embedded DICOM trees of this tag.
Returns empty list if this tag is not of type SQ.
|
slot |
Returns the name of this tag (if known)
|
slot |
Returns the contained data as 1-dimensional NumPy array.
|
slot |
Converts the complete tag to a string, values concatenated by a backslash.
|
slot |
Returns the value of tag-value idx as string. Returns empty string if failed.
|
slot |
Returns the value with given index.
Returns integer, double, date, time, date/time, or string objects as appropriate.
|
slot |
Returns a list of contained values. See value() for detail.
|
slot |
Returns the VR of this tag as a 2-letter string.