public final class JCGLRGB32ByteBuffered extends Object implements JCGLRGB32Type
ByteBuffer based implementation of the JCGLRGB32 record type.| Modifier and Type | Method and Description |
|---|---|
double |
getB() |
int |
getBRaw() |
double |
getG() |
int |
getGRaw() |
double |
getR() |
int |
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 JCGLRGB32Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGB32Type |
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(int x)
Set the value of the
b field |
void |
setG(double x)
Set the value of the
g field |
void |
setGRaw(int x)
Set the value of the
g field |
void |
setR(double x)
Set the value of the
r field |
void |
setRRaw(int x)
Set the value of the
r field |
int |
sizeOctets() |
public static JCGLRGB32Type 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 JCGLRGB32Type 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 JCGLRGB32ReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGB32ReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaRType()
metaRType in interface JCGLRGB32ReadableTyper fieldpublic int getRRaw()
getRRaw in interface JCGLRGB32ReadableTyper fieldpublic void setRRaw(int x)
JCGLRGB32WritableTyper fieldsetRRaw in interface JCGLRGB32WritableTypex - The new valuepublic double getR()
getR in interface JCGLRGB32ReadableTyper fieldpublic void setR(double x)
JCGLRGB32WritableTyper fieldsetR in interface JCGLRGB32WritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGB32ReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGB32ReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaGType()
metaGType in interface JCGLRGB32ReadableTypeg fieldpublic int getGRaw()
getGRaw in interface JCGLRGB32ReadableTypeg fieldpublic void setGRaw(int x)
JCGLRGB32WritableTypeg fieldsetGRaw in interface JCGLRGB32WritableTypex - The new valuepublic double getG()
getG in interface JCGLRGB32ReadableTypeg fieldpublic void setG(double x)
JCGLRGB32WritableTypeg fieldsetG in interface JCGLRGB32WritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGB32ReadableTypeb field, from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGB32ReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaBType()
metaBType in interface JCGLRGB32ReadableTypeb fieldpublic int getBRaw()
getBRaw in interface JCGLRGB32ReadableTypeb fieldpublic void setBRaw(int x)
JCGLRGB32WritableTypeb fieldsetBRaw in interface JCGLRGB32WritableTypex - The new valuepublic double getB()
getB in interface JCGLRGB32ReadableTypeb fieldpublic void setB(double x)
JCGLRGB32WritableTypeb fieldsetB in interface JCGLRGB32WritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com