|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBillboardSet
| Nested Class Summary | |
|---|---|
static interface |
IBillboardSet.IActiveBillboardList
|
static interface |
IBillboardSet.IBillboardPool
|
static interface |
IBillboardSet.IFreeBillboardList
|
static interface |
IBillboardSet.ISortByDirectionFunctor
|
static interface |
IBillboardSet.ISortByDistanceFunctor
|
static interface |
IBillboardSet.ITextureCoordSets
|
| Nested classes/interfaces inherited from interface org.ogre4j.IMovableObject |
|---|
IMovableObject.IListener |
| Nested classes/interfaces inherited from interface org.ogre4j.IShadowCaster |
|---|
IShadowCaster.IShadowRenderableList, IShadowCaster.IShadowRenderableListIterator |
| Nested classes/interfaces inherited from interface org.ogre4j.IAnimableObject |
|---|
IAnimableObject.IAnimableDictionaryMap |
| Nested classes/interfaces inherited from interface org.ogre4j.IRenderable |
|---|
IRenderable.ICustomParameterMap, IRenderable.IRenderSystemData, IRenderable.IVisitor |
| Method Summary | |
|---|---|
SortMode |
_getSortMode()
Gets the sort mode of this billboard set |
void |
_notifyBillboardResized()
Internal callback used by Billboards to notify their parent that they have been resized. |
void |
_notifyBillboardRotated()
Internal callback used by Billboards to notify their parent that they have been rotated.. |
void |
_notifyCurrentCamera(ICamera cam)
Overridden from |
void |
_sortBillboards(ICamera cam)
Sort the billboard set. |
void |
_updateBounds()
Update the bounds of the billboardset |
void |
_updateRenderQueue(IRenderQueue queue)
Overridden from |
void |
beginBillboards(int numBillboards)
Begin injection of billboard data; applicable when constructing the for external data use. |
void |
clear()
Empties this set of all billboards. |
IBillboard |
createBillboard(float x,
float y,
float z,
IColourValue colour)
Creates a new billboard and adds it to this set. |
IBillboard |
createBillboard(IVector3 position,
IColourValue colour)
Creates a new billboard and adds it to this set. |
void |
endBillboards()
Finish defining billboards. |
boolean |
getAutoextend()
Returns true if the billboard pool automatically extends. |
IBillboard |
getBillboard(long index)
Returns a pointer to the billboard at the supplied index. |
BillboardOrigin |
getBillboardOrigin()
Gets the point which acts as the origin point for all billboards in this set. |
BillboardRotationType |
getBillboardRotationType()
Sets billboard rotation type. |
BillboardType |
getBillboardType()
Returns the billboard type in use. |
IAxisAlignedBox |
getBoundingBox()
Overridden from |
float |
getBoundingRadius()
Overridden from |
IVector3 |
getCommonDirection()
Gets the common direction for all billboards (BBT_ORIENTED_COMMON) |
IVector3 |
getCommonUpVector()
Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON) |
boolean |
getCullIndividually()
Returns whether or not billboards in this are tested individually for culling. |
float |
getDefaultHeight()
See setDefaultDimensions - this gets 1 component individually. |
float |
getDefaultWidth()
See setDefaultDimensions - this gets 1 component individually. |
ILightList |
getLights()
Gets a list of lights, ordered relative to how close they are to this renderable. |
IMaterialPtr |
getMaterial()
Overridden from |
java.lang.String |
getMaterialName()
Sets the name of the material to be used for this billboard set. |
java.lang.String |
getMovableType()
Overridden from |
int |
getNumBillboards()
Returns the number of active billboards which currently make up this set. |
long |
getPoolSize()
Returns the current size of the billboard pool. |
void |
getRenderOperation(IRenderOperation op)
Overridden from |
boolean |
getSortingEnabled()
Returns true if sorting of billboards is enabled based on their distance from the camera |
float |
getSquaredViewDepth(ICamera cam)
Overridden, see |
IFloatRect |
getTextureCoords(IntegerPointer oNumCoords)
returns the current texture coordinate rects in effect. |
long |
getTypeFlags()
Get the 'type flags' for this . |
boolean |
getUseAccurateFacing()
Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. |
void |
getWorldTransforms(IMatrix4 xform)
Overridden from |
void |
injectBillboard(IBillboard bb)
Define a billboard. |
boolean |
isPointRenderingEnabled()
Returns whether point rendering is enabled. |
void |
removeBillboard(IBillboard pBill)
Removes a billboard from the set. |
void |
removeBillboard(long index)
Removes the billboard at the supplied index. |
void |
setAutoextend(boolean autoextend)
Tells the set whether to allow automatic extension of the pool of billboards. |
void |
setBillboardOrigin(BillboardOrigin origin)
Sets the point which acts as the origin point for all billboards in this set. |
void |
setBillboardRotationType(BillboardRotationType rotationType)
Sets billboard rotation type. |
void |
setBillboardsInWorldSpace(boolean ws)
Sets whether billboards should be treated as being in world space. |
void |
setBillboardType(BillboardType bbt)
Sets the type of billboard to render. |
void |
setBounds(IAxisAlignedBox box,
float radius)
Set the bounds of the . |
void |
setCommonDirection(IVector3 vec)
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON or BBT_PERPENDICULAR_COMMON. |
void |
setCommonUpVector(IVector3 vec)
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF or BBT_PERPENDICULAR_COMMON. |
void |
setCullIndividually(boolean cullIndividual)
Sets whether culling tests billboards in this individually as well as in a group. |
void |
setDefaultDimensions(float width,
float height)
Sets the default dimensions of the billboards in this set. |
void |
setDefaultHeight(float height)
See setDefaultDimensions - this sets 1 component individually. |
void |
setDefaultWidth(float width)
See setDefaultDimensions - this sets 1 component individually. |
void |
setMaterialName(java.lang.String name)
Sets the name of the material to be used for this billboard set. |
void |
setPointRenderingEnabled(boolean enabled)
Set whether or not the will use point rendering rather than manually generated quads. |
void |
setPoolSize(int size)
Adjusts the size of the pool of billboards available in this set. |
void |
setSortingEnabled(boolean sortenable)
Enables sorting for this . |
void |
setTextureCoords(IFloatRect coords,
int numCoords)
can use custom texture coordinates for various billboards. |
void |
setTextureStacksAndSlices(short stacks,
short slices)
will generate texture coordinate rects as if the texture for the billboard set contained 'stacks' rows of 'slices' images each, all equal size. |
void |
setUseAccurateFacing(boolean acc)
Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. |
void |
visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any. |
| Methods inherited from interface org.ogre4j.IAnimableObject |
|---|
createAnimableValue, getAnimableValueNames |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
IBillboard createBillboard(IVector3 position,
IColourValue colour)
IBillboard createBillboard(float x,
float y,
float z,
IColourValue colour)
int getNumBillboards()
void setAutoextend(boolean autoextend)
boolean getAutoextend()
void setSortingEnabled(boolean sortenable)
boolean getSortingEnabled()
void setPoolSize(int size)
long getPoolSize()
void clear()
IBillboard getBillboard(long index)
void removeBillboard(long index)
void removeBillboard(IBillboard pBill)
void setBillboardOrigin(BillboardOrigin origin)
BillboardOrigin getBillboardOrigin()
void setBillboardRotationType(BillboardRotationType rotationType)
BillboardRotationType getBillboardRotationType()
void setDefaultDimensions(float width,
float height)
void setDefaultWidth(float width)
float getDefaultWidth()
void setDefaultHeight(float height)
float getDefaultHeight()
void setMaterialName(java.lang.String name)
java.lang.String getMaterialName()
void _notifyCurrentCamera(ICamera cam)
_notifyCurrentCamera in interface IMovableObjectvoid beginBillboards(int numBillboards)
void injectBillboard(IBillboard bb)
void endBillboards()
void setBounds(IAxisAlignedBox box,
float radius)
IAxisAlignedBox getBoundingBox()
getBoundingBox in interface IMovableObjectfloat getBoundingRadius()
getBoundingRadius in interface IMovableObjectvoid _updateRenderQueue(IRenderQueue queue)
_updateRenderQueue in interface IMovableObjectIMaterialPtr getMaterial()
getMaterial in interface IRenderablevoid getRenderOperation(IRenderOperation op)
getRenderOperation in interface IRenderablevoid getWorldTransforms(IMatrix4 xform)
getWorldTransforms in interface IRenderablevoid _notifyBillboardResized()
void _notifyBillboardRotated()
boolean getCullIndividually()
void setCullIndividually(boolean cullIndividual)
void setBillboardType(BillboardType bbt)
BillboardType getBillboardType()
void setCommonDirection(IVector3 vec)
IVector3 getCommonDirection()
void setCommonUpVector(IVector3 vec)
IVector3 getCommonUpVector()
void setUseAccurateFacing(boolean acc)
boolean getUseAccurateFacing()
java.lang.String getMovableType()
getMovableType in interface IMovableObjectfloat getSquaredViewDepth(ICamera cam)
getSquaredViewDepth in interface IRenderablevoid _updateBounds()
ILightList getLights()
IRenderable
getLights in interface IRenderable
void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
IMovableObject
visitRenderables in interface IMovableObjectvoid _sortBillboards(ICamera cam)
SortMode _getSortMode()
void setBillboardsInWorldSpace(boolean ws)
void setTextureCoords(IFloatRect coords,
int numCoords)
void setTextureStacksAndSlices(short stacks,
short slices)
IFloatRect getTextureCoords(IntegerPointer oNumCoords)
void setPointRenderingEnabled(boolean enabled)
boolean isPointRenderingEnabled()
long getTypeFlags()
IMovableObject
getTypeFlags in interface IMovableObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||