|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ColourValue
public class ColourValue
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ColourValue(float red,
float green,
float blue,
float alpha)
|
|
ColourValue(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ColourValue(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ColourValue(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
float |
geta()
|
long |
getAsABGR()
Retrieves colours as ABGR |
long |
getAsARGB()
Retrieves colour as ARGB. |
long |
getAsBGRA()
Retrieves colour as BGRA. |
long |
getAsRGBA()
Retrieves colour as RGBA. |
float |
getb()
|
static IColourValue |
getBlack()
|
static IColourValue |
getBlue()
|
float |
getg()
|
static IColourValue |
getGreen()
|
void |
getHSB(FloatPointer hue,
FloatPointer saturation,
FloatPointer brightness)
Convert the current colour to Hue, Saturation and Brightness values. |
float |
getr()
|
static IColourValue |
getRed()
|
static IColourValue |
getWhite()
|
static IColourValue |
getZERO()
|
void |
operatorAddition(IColourValue returnValue,
IColourValue rkVector)
|
IColourValue |
operatorDecrementAndAssign(IColourValue rkVector)
|
IColourValue |
operatorDivideAndAssign(float fScalar)
|
void |
operatorDivision(IColourValue returnValue,
float fScalar)
|
void |
operatorDivision(IColourValue returnValue,
IColourValue rhs)
|
boolean |
operatorEqual(IColourValue rhs)
|
IColourValue |
operatorIncrementAndAssign(IColourValue rkVector)
|
float |
operatorIndex_const(int i)
|
FloatPointer |
operatorIndex(int i)
|
void |
operatorMultiplication(IColourValue returnValue,
float fScalar)
|
void |
operatorMultiplication(IColourValue returnValue,
IColourValue rhs)
|
IColourValue |
operatorMultiplyAndAssign(float fScalar)
|
boolean |
operatorNotEqual(IColourValue rhs)
|
void |
operatorSubtraction(IColourValue returnValue,
IColourValue rkVector)
|
FloatPointer |
ptr_const()
|
FloatPointer |
ptr()
|
void |
saturate()
Clamps colour value to the range [0, 1]. |
void |
saturateCopy(IColourValue returnValue)
As saturate, except that this colour value is unaffected and the saturated colour value is returned as a copy. |
void |
seta(float _jni_value_)
|
void |
setAsABGR(long val)
Sets colour as ABGR. |
void |
setAsARGB(long val)
Sets colour as ARGB. |
void |
setAsBGRA(long val)
Sets colour as BGRA. |
void |
setAsRGBA(long val)
Sets colour as RGBA. |
void |
setb(float _jni_value_)
|
void |
setg(float _jni_value_)
|
void |
setHSB(float hue,
float saturation,
float brightness)
Set a colour value from Hue, Saturation and Brightness. |
void |
setr(float _jni_value_)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public ColourValue(InstancePointer p)
protected ColourValue(InstancePointer p,
boolean remote)
public ColourValue(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public ColourValue(float red,
float green,
float blue,
float alpha)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic boolean operatorEqual(IColourValue rhs)
operatorEqual in interface IColourValuepublic boolean operatorNotEqual(IColourValue rhs)
operatorNotEqual in interface IColourValuepublic long getAsRGBA()
getAsRGBA in interface IColourValuepublic long getAsARGB()
getAsARGB in interface IColourValuepublic long getAsBGRA()
getAsBGRA in interface IColourValuepublic long getAsABGR()
getAsABGR in interface IColourValuepublic void setAsRGBA(long val)
setAsRGBA in interface IColourValuepublic void setAsARGB(long val)
setAsARGB in interface IColourValuepublic void setAsBGRA(long val)
setAsBGRA in interface IColourValuepublic void setAsABGR(long val)
setAsABGR in interface IColourValuepublic void saturate()
saturate in interface IColourValuepublic void saturateCopy(IColourValue returnValue)
saturateCopy in interface IColourValuepublic float operatorIndex_const(int i)
operatorIndex_const in interface IColourValuepublic FloatPointer operatorIndex(int i)
operatorIndex in interface IColourValuepublic FloatPointer ptr()
ptr in interface IColourValuepublic FloatPointer ptr_const()
ptr_const in interface IColourValue
public void operatorAddition(IColourValue returnValue,
IColourValue rkVector)
operatorAddition in interface IColourValue
public void operatorSubtraction(IColourValue returnValue,
IColourValue rkVector)
operatorSubtraction in interface IColourValue
public void operatorMultiplication(IColourValue returnValue,
float fScalar)
operatorMultiplication in interface IColourValue
public void operatorMultiplication(IColourValue returnValue,
IColourValue rhs)
operatorMultiplication in interface IColourValue
public void operatorDivision(IColourValue returnValue,
IColourValue rhs)
operatorDivision in interface IColourValue
public void operatorDivision(IColourValue returnValue,
float fScalar)
operatorDivision in interface IColourValuepublic IColourValue operatorIncrementAndAssign(IColourValue rkVector)
operatorIncrementAndAssign in interface IColourValuepublic IColourValue operatorDecrementAndAssign(IColourValue rkVector)
operatorDecrementAndAssign in interface IColourValuepublic IColourValue operatorMultiplyAndAssign(float fScalar)
operatorMultiplyAndAssign in interface IColourValuepublic IColourValue operatorDivideAndAssign(float fScalar)
operatorDivideAndAssign in interface IColourValue
public void setHSB(float hue,
float saturation,
float brightness)
setHSB in interface IColourValue
public void getHSB(FloatPointer hue,
FloatPointer saturation,
FloatPointer brightness)
getHSB in interface IColourValuepublic static IColourValue getZERO()
public static IColourValue getBlack()
public static IColourValue getWhite()
public static IColourValue getRed()
public static IColourValue getGreen()
public static IColourValue getBlue()
public float getr()
getr in interface IColourValuepublic void setr(float _jni_value_)
setr in interface IColourValuepublic float getg()
getg in interface IColourValuepublic void setg(float _jni_value_)
setg in interface IColourValuepublic float getb()
getb in interface IColourValuepublic void setb(float _jni_value_)
setb in interface IColourValuepublic float geta()
geta in interface IColourValuepublic void seta(float _jni_value_)
seta in interface IColourValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||