|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Billboard
public class Billboard
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Billboard()
Default constructor. |
|
Billboard(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Billboard(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Billboard(IVector3 position,
IBillboardSet owner,
IColourValue colour)
Normal constructor as called by . |
|
Billboard(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_notifyOwner(IBillboardSet owner)
Internal method for notifying the billboard of it's owner. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
IColourValue |
getColour()
Gets the colour of this billboard. |
void |
getmColour(IColourValue returnValue)
|
void |
getmDirection(IVector3 returnValue)
|
IBillboardSet |
getmParentSet()
|
void |
getmPosition(IVector3 returnValue)
|
void |
getmRotation(IRadian returnValue)
|
float |
getOwnHeight()
Retrieves the billboard's personal width, if hasOwnDimensions is true. |
float |
getOwnWidth()
Retrieves the billboard's personal width, if hasOwnDimensions is true. |
IVector3 |
getPosition()
Get the position of the billboard. |
IRadian |
getRotation()
Get the rotation of the billboard. |
int |
getTexcoordIndex()
returns the previous value set by . |
IFloatRect |
getTexcoordRect()
returns the previous value set by . |
boolean |
hasOwnDimensions()
Returns true if this billboard deviates from the BillboardSet's default dimensions (i.e. if the method has been called for this instance). |
boolean |
isUseTexcoordRect()
Returns true if this billboard use individual texture coordinate rect (i.e. if the method has been called for this instance), or returns false if use texture coordinates defined in the parent BillboardSet's texture coordinates array (i.e. if the method has been called for this instance). |
void |
resetDimensions()
Resets this to use the parent BillboardSet's dimensions instead of it's own. |
void |
setColour(IColourValue colour)
Sets the colour of this billboard. |
void |
setDimensions(float width,
float height)
Sets the width and height for this billboard. |
void |
setmColour(IColourValue _jni_value_)
|
void |
setmDirection(IVector3 _jni_value_)
|
void |
setmParentSet(IBillboardSet _jni_value_)
|
void |
setmPosition(IVector3 _jni_value_)
|
void |
setmRotation(IRadian _jni_value_)
|
void |
setPosition(float x,
float y,
float z)
Set the position of the billboard. |
void |
setPosition(IVector3 position)
Set the position of the billboard. |
void |
setRotation(IRadian rotation)
Set the rotation of the billboard. |
void |
setTexcoordIndex(int texcoordIndex)
sets which texture coordinate rect this billboard will use when rendering. |
void |
setTexcoordRect(float u0,
float v0,
float u1,
float v1)
sets the individual texture coordinate rect of this billboard will use when rendering. |
void |
setTexcoordRect(IFloatRect texcoordRect)
sets the individual texture coordinate rect of this billboard will use when rendering. |
| 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 Billboard(InstancePointer p)
protected Billboard(InstancePointer p,
boolean remote)
public Billboard(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Billboard()
public Billboard(IVector3 position,
IBillboardSet owner,
IColourValue colour)
| 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 IRadian getRotation()
getRotation in interface IBillboardpublic void setRotation(IRadian rotation)
setRotation in interface IBillboardpublic void setPosition(IVector3 position)
setPosition in interface IBillboard
public void setPosition(float x,
float y,
float z)
setPosition in interface IBillboardpublic IVector3 getPosition()
getPosition in interface IBillboard
public void setDimensions(float width,
float height)
setDimensions in interface IBillboardpublic void resetDimensions()
resetDimensions in interface IBillboardpublic void setColour(IColourValue colour)
setColour in interface IBillboardpublic IColourValue getColour()
getColour in interface IBillboardpublic boolean hasOwnDimensions()
hasOwnDimensions in interface IBillboardpublic float getOwnWidth()
getOwnWidth in interface IBillboardpublic float getOwnHeight()
getOwnHeight in interface IBillboardpublic void _notifyOwner(IBillboardSet owner)
_notifyOwner in interface IBillboardpublic boolean isUseTexcoordRect()
isUseTexcoordRect in interface IBillboardpublic void setTexcoordIndex(int texcoordIndex)
setTexcoordIndex in interface IBillboardpublic int getTexcoordIndex()
getTexcoordIndex in interface IBillboardpublic void setTexcoordRect(IFloatRect texcoordRect)
setTexcoordRect in interface IBillboard
public void setTexcoordRect(float u0,
float v0,
float u1,
float v1)
setTexcoordRect in interface IBillboardpublic IFloatRect getTexcoordRect()
getTexcoordRect in interface IBillboardpublic void getmPosition(IVector3 returnValue)
getmPosition in interface IBillboardpublic void setmPosition(IVector3 _jni_value_)
setmPosition in interface IBillboardpublic void getmDirection(IVector3 returnValue)
getmDirection in interface IBillboardpublic void setmDirection(IVector3 _jni_value_)
setmDirection in interface IBillboardpublic IBillboardSet getmParentSet()
getmParentSet in interface IBillboardpublic void setmParentSet(IBillboardSet _jni_value_)
setmParentSet in interface IBillboardpublic void getmColour(IColourValue returnValue)
getmColour in interface IBillboardpublic void setmColour(IColourValue _jni_value_)
setmColour in interface IBillboardpublic void getmRotation(IRadian returnValue)
getmRotation in interface IBillboardpublic void setmRotation(IRadian _jni_value_)
setmRotation in interface IBillboard
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||