SiDicomDataSetGetElementIntValue Method |
Shortcut to extract a INT element's value.
Namespace: OIV.VolumeViz.Readers.DicomAssembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public long GetElementIntValue(
SoDicomTag tag,
ulong idx,
long defaultValue
)
Public Function GetElementIntValue (
tag As SoDicomTag,
idx As ULong,
defaultValue As Long
) As Long
public:
long long GetElementIntValue(
SoDicomTag^ tag,
unsigned long long idx,
long long defaultValue
)
member GetElementIntValue :
tag : SoDicomTag *
idx : uint64 *
defaultValue : int64 -> int64
Parameters
- tag
- Type: OIV.VolumeViz.Readers.DicomSoDicomTag
The tag of the element to find.
- idx
- Type: SystemUInt64
The index of the scalar value to extract.
- defaultValue
- Type: SystemInt64
The value returned if the extraction fails.
Return Value
Type:
Int64The 64 bits integer stored at the given index in the element with the given tag, or the default value if the extraction fails.
Remarks If the value is of a numeric type different from INT, it will be casted to a 64 bits integer. That casting may cause a precision loss.
See Also