Class SiDicomValue
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.volumeviz.readers.dicom.SiDicomValue
-
public class SiDicomValue extends Inventor
DICOM data. Access value of a DICOM element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SiDicomValue.ValueTypes
-
Nested 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
Return a printable version of the stored value.SiDicomValue
clone()
Create a clone of the value.void
getBuffer(SoBufferObject buffer)
Copies the internal buffer to the given one.double
getDouble()
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
getLength()
Get the number of scalar values stored.java.lang.String
getString()
Calls getString((long)0).java.lang.String
getString(long idx)
Get the internally stored string.long
getUInt()
Calls getUInt((long)0).long
getUInt(long idx)
Get an internally stored unsigned integer.SiDicomValue.ValueTypes
getValueType()
Get the type of the value.-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getString
public java.lang.String 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
public java.lang.String getString(long idx)
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
public SiDicomValue.ValueTypes getValueType()
Get the type of the value.
-
getLength
public long getLength()
Get the number of scalar values stored.
-
asString
public java.lang.String 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
public void getBuffer(SoBufferObject buffer)
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
public SiDicomValue clone()
Create a clone of the value.
-
-