org.ogre4j
Interface IBillboardSet

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, IMovableObject, INativeObject, IRenderable, ISceneObjAllocatedObject, IShadowCaster
All Known Implementing Classes:
BillboardSet

public interface IBillboardSet
extends INativeObject, IMovableObject, IRenderable


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.IMovableObject
_getCreator, _getLightList, _getManager, _getParentNodeFullTransform, _notifyAttached, _notifyCreator, _notifyManager, _notifyMoved, addQueryFlags, addVisibilityFlags, detatchFromParent, getCastShadows, getDarkCapBounds, getEdgeList, getLightCapBounds, getListener, getName, getParentNode, getParentSceneNode, getPointExtrusionDistance, getQueryFlags, getRenderingDistance, getRenderQueueGroup, getShadowVolumeRenderableIterator, getUserAny, getUserObject, getVisibilityFlags, getVisible, getWorldBoundingBox, getWorldBoundingSphere, hasEdgeList, isAttached, isDebugDisplayEnabled, isInScene, isVisible, queryLights, removeQueryFlags, removeVisibilityFlags, setCastShadows, setDebugDisplayEnabled, setListener, setQueryFlags, setRenderingDistance, setRenderQueueGroup, setUserAny, setUserObject, setVisibilityFlags, setVisible
 
Methods inherited from interface org.ogre4j.IAnimableObject
createAnimableValue, getAnimableValueNames
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 
Methods inherited from interface org.ogre4j.IRenderable
_updateCustomGpuParameter, getCastsShadows, getCustomParameter, getNumWorldTransforms, getPolygonModeOverrideable, getRenderSystemData, getTechnique, getUseIdentityProjection, getUseIdentityView, getUserAny, postRender, preRender, setCustomParameter, setPolygonModeOverrideable, setRenderSystemData, setUseIdentityProjection, setUseIdentityView, setUserAny
 

Method Detail

createBillboard

IBillboard createBillboard(IVector3 position,
                           IColourValue colour)
Creates a new billboard and adds it to this set.


createBillboard

IBillboard createBillboard(float x,
                           float y,
                           float z,
                           IColourValue colour)
Creates a new billboard and adds it to this set.


getNumBillboards

int getNumBillboards()
Returns the number of active billboards which currently make up this set.


setAutoextend

void setAutoextend(boolean autoextend)
Tells the set whether to allow automatic extension of the pool of billboards.


getAutoextend

boolean getAutoextend()
Returns true if the billboard pool automatically extends.


setSortingEnabled

void setSortingEnabled(boolean sortenable)
Enables sorting for this . (default: off)


getSortingEnabled

boolean getSortingEnabled()
Returns true if sorting of billboards is enabled based on their distance from the camera


setPoolSize

void setPoolSize(int size)
Adjusts the size of the pool of billboards available in this set.


getPoolSize

long getPoolSize()
Returns the current size of the billboard pool.


clear

void clear()
Empties this set of all billboards.


getBillboard

IBillboard getBillboard(long index)
Returns a pointer to the billboard at the supplied index.


removeBillboard

void removeBillboard(long index)
Removes the billboard at the supplied index.


removeBillboard

void removeBillboard(IBillboard pBill)
Removes a billboard from the set.


setBillboardOrigin

void setBillboardOrigin(BillboardOrigin origin)
Sets the point which acts as the origin point for all billboards in this set.


getBillboardOrigin

BillboardOrigin getBillboardOrigin()
Gets the point which acts as the origin point for all billboards in this set.


setBillboardRotationType

void setBillboardRotationType(BillboardRotationType rotationType)
Sets billboard rotation type.


getBillboardRotationType

BillboardRotationType getBillboardRotationType()
Sets billboard rotation type.


setDefaultDimensions

void setDefaultDimensions(float width,
                          float height)
Sets the default dimensions of the billboards in this set.


setDefaultWidth

void setDefaultWidth(float width)
See setDefaultDimensions - this sets 1 component individually.


getDefaultWidth

float getDefaultWidth()
See setDefaultDimensions - this gets 1 component individually.


setDefaultHeight

void setDefaultHeight(float height)
See setDefaultDimensions - this sets 1 component individually.


getDefaultHeight

float getDefaultHeight()
See setDefaultDimensions - this gets 1 component individually.


setMaterialName

void setMaterialName(java.lang.String name)
Sets the name of the material to be used for this billboard set.


getMaterialName

java.lang.String getMaterialName()
Sets the name of the material to be used for this billboard set.


_notifyCurrentCamera

void _notifyCurrentCamera(ICamera cam)
Overridden from

Specified by:
_notifyCurrentCamera in interface IMovableObject

beginBillboards

void beginBillboards(int numBillboards)
Begin injection of billboard data; applicable when constructing the for external data use.


injectBillboard

void injectBillboard(IBillboard bb)
Define a billboard.


endBillboards

void endBillboards()
Finish defining billboards.


setBounds

void setBounds(IAxisAlignedBox box,
               float radius)
Set the bounds of the .


getBoundingBox

IAxisAlignedBox getBoundingBox()
Overridden from

Specified by:
getBoundingBox in interface IMovableObject

getBoundingRadius

float getBoundingRadius()
Overridden from

Specified by:
getBoundingRadius in interface IMovableObject

_updateRenderQueue

void _updateRenderQueue(IRenderQueue queue)
Overridden from

Specified by:
_updateRenderQueue in interface IMovableObject

getMaterial

IMaterialPtr getMaterial()
Overridden from

Specified by:
getMaterial in interface IRenderable

getRenderOperation

void getRenderOperation(IRenderOperation op)
Overridden from

Specified by:
getRenderOperation in interface IRenderable

getWorldTransforms

void getWorldTransforms(IMatrix4 xform)
Overridden from

Specified by:
getWorldTransforms in interface IRenderable

_notifyBillboardResized

void _notifyBillboardResized()
Internal callback used by Billboards to notify their parent that they have been resized.


_notifyBillboardRotated

void _notifyBillboardRotated()
Internal callback used by Billboards to notify their parent that they have been rotated..


getCullIndividually

boolean getCullIndividually()
Returns whether or not billboards in this are tested individually for culling.


setCullIndividually

void setCullIndividually(boolean cullIndividual)
Sets whether culling tests billboards in this individually as well as in a group.


setBillboardType

void setBillboardType(BillboardType bbt)
Sets the type of billboard to render.


getBillboardType

BillboardType getBillboardType()
Returns the billboard type in use.


setCommonDirection

void setCommonDirection(IVector3 vec)
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON or BBT_PERPENDICULAR_COMMON.


getCommonDirection

IVector3 getCommonDirection()
Gets the common direction for all billboards (BBT_ORIENTED_COMMON)


setCommonUpVector

void setCommonUpVector(IVector3 vec)
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF or BBT_PERPENDICULAR_COMMON.


getCommonUpVector

IVector3 getCommonUpVector()
Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON)


setUseAccurateFacing

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.


getUseAccurateFacing

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.


getMovableType

java.lang.String getMovableType()
Overridden from

Specified by:
getMovableType in interface IMovableObject

getSquaredViewDepth

float getSquaredViewDepth(ICamera cam)
Overridden, see

Specified by:
getSquaredViewDepth in interface IRenderable

_updateBounds

void _updateBounds()
Update the bounds of the billboardset


getLights

ILightList getLights()
Description copied from interface: IRenderable
Gets a list of lights, ordered relative to how close they are to this renderable.

Specified by:
getLights in interface IRenderable

visitRenderables

void visitRenderables(IRenderable.IVisitor visitor,
                      boolean debugRenderables)
Description copied from interface: IMovableObject
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.

Specified by:
visitRenderables in interface IMovableObject

_sortBillboards

void _sortBillboards(ICamera cam)
Sort the billboard set. Only called when enabled via setSortingEnabled


_getSortMode

SortMode _getSortMode()
Gets the sort mode of this billboard set


setBillboardsInWorldSpace

void setBillboardsInWorldSpace(boolean ws)
Sets whether billboards should be treated as being in world space.


setTextureCoords

void setTextureCoords(IFloatRect coords,
                      int numCoords)
can use custom texture coordinates for various billboards. This is useful for selecting one of many particle images out of a tiled texture sheet, or doing flipbook animation within a single texture.


setTextureStacksAndSlices

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. Thus, if the texture size is 512x512 and 'stacks' is 4 and 'slices' is 8, each sub-rectangle of the texture would be 128 texels tall and 64 texels wide.


getTextureCoords

IFloatRect getTextureCoords(IntegerPointer oNumCoords)
returns the current texture coordinate rects in effect. By default, there is only one texture coordinate rect in the set, spanning the entire texture from 0 through 1 in each direction.


setPointRenderingEnabled

void setPointRenderingEnabled(boolean enabled)
Set whether or not the will use point rendering rather than manually generated quads.


isPointRenderingEnabled

boolean isPointRenderingEnabled()
Returns whether point rendering is enabled.


getTypeFlags

long getTypeFlags()
Description copied from interface: IMovableObject
Get the 'type flags' for this .

Specified by:
getTypeFlags in interface IMovableObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.