public final class JCGLRGB8ByteBuffered extends Object implements JCGLRGB8Type
ByteBuffer based implementation of the JCGLRGB8 record type.| Modifier and Type | Method and Description |
|---|---|
double |
getB() |
byte |
getBRaw() |
double |
getG() |
byte |
getGRaw() |
double |
getR() |
byte |
getRRaw() |
int |
metaBOffsetFromCursor() |
int |
metaBOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaBType() |
int |
metaGOffsetFromCursor() |
int |
metaGOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaGType() |
int |
metaROffsetFromCursor() |
int |
metaROffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaRType() |
static JCGLRGB8Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGB8Type |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setB(double x)
Set the value of the
b field |
void |
setBRaw(byte x)
Set the value of the
b field |
void |
setG(double x)
Set the value of the
g field |
void |
setGRaw(byte x)
Set the value of the
g field |
void |
setR(double x)
Set the value of the
r field |
void |
setRRaw(byte x)
Set the value of the
r field |
int |
sizeOctets() |
public static JCGLRGB8Type newValueWithOffset(ByteBuffer in_buffer, com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer, int in_base_offset)
in_buffer - A byte bufferin_pointer - A cursorin_base_offset - The base offset from the cursorpublic static JCGLRGB8Type newValue(ByteBuffer in_buffer, com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
in_buffer - A byte bufferin_pointer - A cursorpublic int sizeOctets()
sizeOctets in interface com.io7m.jpra.runtime.java.JPRAValueTypepublic int metaROffsetFromType()
metaROffsetFromType in interface JCGLRGB8ReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGB8ReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaRType()
metaRType in interface JCGLRGB8ReadableTyper fieldpublic byte getRRaw()
getRRaw in interface JCGLRGB8ReadableTyper fieldpublic void setRRaw(byte x)
JCGLRGB8WritableTyper fieldsetRRaw in interface JCGLRGB8WritableTypex - The new valuepublic double getR()
getR in interface JCGLRGB8ReadableTyper fieldpublic void setR(double x)
JCGLRGB8WritableTyper fieldsetR in interface JCGLRGB8WritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGB8ReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGB8ReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaGType()
metaGType in interface JCGLRGB8ReadableTypeg fieldpublic byte getGRaw()
getGRaw in interface JCGLRGB8ReadableTypeg fieldpublic void setGRaw(byte x)
JCGLRGB8WritableTypeg fieldsetGRaw in interface JCGLRGB8WritableTypex - The new valuepublic double getG()
getG in interface JCGLRGB8ReadableTypeg fieldpublic void setG(double x)
JCGLRGB8WritableTypeg fieldsetG in interface JCGLRGB8WritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGB8ReadableTypeb field, from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGB8ReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaBType()
metaBType in interface JCGLRGB8ReadableTypeb fieldpublic byte getBRaw()
getBRaw in interface JCGLRGB8ReadableTypeb fieldpublic void setBRaw(byte x)
JCGLRGB8WritableTypeb fieldsetBRaw in interface JCGLRGB8WritableTypex - The new valuepublic double getB()
getB in interface JCGLRGB8ReadableTypeb fieldpublic void setB(double x)
JCGLRGB8WritableTypeb fieldsetB in interface JCGLRGB8WritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com