Class SiDicomValue
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.volumeviz.readers.dicom.SiDicomValue
DICOM data.
Access value of a DICOM element.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Return a printable version of the stored value.clone()
Create a clone of the value.void
getBuffer
(SoBufferObject buffer) Copies the internal buffer to the given one.double
Calls getDouble((long)0).double
getDouble
(long idx) Get an internally stored double precision floating point number.long
getInt()
Calls getInt((long)0).long
getInt
(long idx) Get an internally stored signed integer.long
Get the number of scalar values stored.Calls getString((long)0).getString
(long idx) Get the internally stored string.long
getUInt()
Calls getUInt((long)0).long
getUInt
(long idx) Get an internally stored unsigned integer.Get the type of the value.Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getString
Calls getString((long)0). -
getInt
public long getInt()Calls getInt((long)0). -
getDouble
public double getDouble()Calls getDouble((long)0). -
getUInt
public long getUInt()Calls getUInt((long)0). -
getString
Get the internally stored string. If the value's type is not STRING, this method will return an empty string.- Parameters:
idx
- the index of the scalar value to get.
-
getDouble
public double getDouble(long idx) Get an internally stored double precision floating point number. If the value's type is not DOUBLE, this method will return 0.0.- Parameters:
idx
- the index of the scalar value to get.
-
getValueType
Get the type of the value. -
getLength
public long getLength()Get the number of scalar values stored. -
asString
Return a printable version of the stored value. -
getInt
public long getInt(long idx) Get an internally stored signed integer. If the value's type is not INT, this method will return 0.- Parameters:
idx
- the index of the scalar value to get.
-
getBuffer
Copies the internal buffer to the given one.- Parameters:
buffer
- the destination buffer.
-
getUInt
public long getUInt(long idx) Get an internally stored unsigned integer. If the value's type is not UINT, this method will return 0.- Parameters:
idx
- the index of the scalar value to get.
-
clone
Create a clone of the value.
-