Class SbDataType

  • public class SbDataType
    extends Inventor
    Class encoding a data type. This is a basic Open Inventor type that is used for representing a data type, for example unsigned int32, and some information about that type, for example is it signed or not. It is used by classes handling user buffers such as SoMemoryObject, SoSFArray2D, SoSFArray3D, SoSFImage and also SoDataSet.


    See Also:
    SoSFArray2D, SoSFArray3D
    • Constructor Detail

      • SbDataType

        public SbDataType​(SbDataType copyFrom)
      • SbDataType

        public SbDataType​(java.lang.String type)
        Constructor from a string. Valid strings are the enum names.
      • SbDataType

        public SbDataType()
        Default constructor. The initial value is UNSIGNED_BYTE.
    • Method Detail

      • isInteger

        public boolean isInteger()
        Returns true if the type is an integer type.
      • toArray

        public static SbDataType[] toArray​(long nativeArray,
                                           long length)
      • setValue

        public void setValue​(SbDataType copyFrom)
      • getMax

        public double getMax()
        Returns the maximum value of the type.
      • getSize

        public int getSize()
        Returns size in bytes of the type.
      • getTemplateType

        public SbDataType getTemplateType​(byte name_5699)
      • getMin

        public double getMin()
        Returns the minimum value of the type.
        For floating point type, returns the minimum positive normalized value.
      • getNumBits

        public int getNumBits()
        Returns the numer of bits in the type.
      • getString

        public java.lang.String getString()
        Returns the type as a string, e.g. "FLOAT". See also getType().
      • isSigned

        public boolean isSigned()
        Returns true if the type is signed.
      • getTemplateType

        public SbDataType getTemplateType​(float name_5705)
      • getTemplateType

        public SbDataType getTemplateType​(double name_5706)
      • getTemplateType

        public SbDataType getTemplateType​(int name_5704)
      • getTemplateType

        public SbDataType getTemplateType​(short name_5700)