|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.BillboardParticleRenderer
public class BillboardParticleRenderer
| Nested Class Summary | |
|---|---|
static class |
BillboardParticleRenderer.CmdAccurateFacing
|
static class |
BillboardParticleRenderer.CmdBillboardOrigin
|
static class |
BillboardParticleRenderer.CmdBillboardRotationType
|
static class |
BillboardParticleRenderer.CmdBillboardType
|
static class |
BillboardParticleRenderer.CmdCommonDirection
|
static class |
BillboardParticleRenderer.CmdCommonUpVector
|
static class |
BillboardParticleRenderer.CmdPointRendering
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
BillboardParticleRenderer()
|
|
BillboardParticleRenderer(InstancePointer p)
This constructor is public for internal useage only! |
protected |
BillboardParticleRenderer(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
BillboardParticleRenderer(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
IParticleVisualData |
_createVisualData()
Create a new instance for attachment to a particle. |
void |
_destroyVisualData(IParticleVisualData vis)
Destroy a instance. |
SortMode |
_getSortMode()
Gets the desired particles sort mode of this renderer |
void |
_notifyAttached(INode parent,
boolean isTagPoint)
Delegated to by |
void |
_notifyCurrentCamera(ICamera cam)
Delegated to by |
void |
_notifyDefaultDimensions(float width,
float height)
Tells the renderer that the particle default size has changed |
void |
_notifyParticleCleared(Ilist<IParticle> currentParticles)
Optional callback notified when particles cleared |
void |
_notifyParticleEmitted(IParticle particle)
Optional callback notified when particle emitted |
void |
_notifyParticleExpired(IParticle particle)
Optional callback notified when particle expired |
void |
_notifyParticleMoved(Ilist<IParticle> currentParticles)
Optional callback notified when particles moved |
void |
_notifyParticleQuota(int quota)
Tells the renderer that the particle quota has changed |
void |
_notifyParticleResized()
Optional callback notified when particles are resized individually |
void |
_notifyParticleRotated()
Optional callback notified when particles are rotated |
void |
_setMaterial(IMaterialPtr mat)
Sets the material this renderer must use; called by . |
void |
_updateRenderQueue(IRenderQueue queue,
Ilist<IParticle> currentParticles,
boolean cullIndividually)
Delegated to by |
static void |
cleanupDictionary()
Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes. |
void |
copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
BillboardOrigin |
getBillboardOrigin()
Gets the point which acts as the origin point for all billboards in this set. |
BillboardRotationType |
getBillboardRotationType()
Sets billboard rotation type. |
IBillboardSet |
getBillboardSet()
|
BillboardType |
getBillboardType()
Returns the billboard type in use. |
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) |
IParamDictionary |
getParamDictionary_const()
|
IParamDictionary |
getParamDictionary()
Retrieves the parameter dictionary for this class. |
java.lang.String |
getParameter(java.lang.String name)
Generic parameter retrieval method. |
IParameterList |
getParameters()
Retrieves a list of parameters valid for this object. |
java.lang.String |
getType()
Gets the type of this renderer - must be implemented by subclasses |
boolean |
getUseAccurateFacing()
|
boolean |
isPointRenderingEnabled()
|
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 |
setBillboardType(BillboardType bbt)
Sets the type of billboard to render. |
void |
setCommonDirection(IVector3 vec)
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON. |
void |
setCommonUpVector(IVector3 vec)
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF. |
void |
setKeepParticlesInLocalSpace(boolean keepLocal)
Setting carried over from . |
boolean |
setParameter(java.lang.String name,
java.lang.String value)
Generic parameter setting method. |
void |
setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method. |
void |
setPointRenderingEnabled(boolean enabled)
|
void |
setRenderQueueGroup(short queueID)
Sets which render queue group this renderer should target with it's output. |
void |
setUseAccurateFacing(boolean acc)
|
void |
visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
Required method to allow the renderer to communicate the Renderables it will be using to render the system to a visitor. |
| 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 BillboardParticleRenderer(InstancePointer p)
protected BillboardParticleRenderer(InstancePointer p,
boolean remote)
public BillboardParticleRenderer(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public BillboardParticleRenderer()
| 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 void setBillboardType(BillboardType bbt)
setBillboardType in interface IBillboardParticleRendererpublic BillboardType getBillboardType()
getBillboardType in interface IBillboardParticleRendererpublic void setUseAccurateFacing(boolean acc)
setUseAccurateFacing in interface IBillboardParticleRendererpublic boolean getUseAccurateFacing()
getUseAccurateFacing in interface IBillboardParticleRendererpublic void setBillboardOrigin(BillboardOrigin origin)
setBillboardOrigin in interface IBillboardParticleRendererpublic BillboardOrigin getBillboardOrigin()
getBillboardOrigin in interface IBillboardParticleRendererpublic void setBillboardRotationType(BillboardRotationType rotationType)
setBillboardRotationType in interface IBillboardParticleRendererpublic BillboardRotationType getBillboardRotationType()
getBillboardRotationType in interface IBillboardParticleRendererpublic void setCommonDirection(IVector3 vec)
setCommonDirection in interface IBillboardParticleRendererpublic IVector3 getCommonDirection()
getCommonDirection in interface IBillboardParticleRendererpublic void setCommonUpVector(IVector3 vec)
setCommonUpVector in interface IBillboardParticleRendererpublic IVector3 getCommonUpVector()
getCommonUpVector in interface IBillboardParticleRendererpublic void setPointRenderingEnabled(boolean enabled)
setPointRenderingEnabled in interface IBillboardParticleRendererpublic boolean isPointRenderingEnabled()
isPointRenderingEnabled in interface IBillboardParticleRendererpublic java.lang.String getType()
IParticleSystemRenderer
getType in interface IBillboardParticleRenderergetType in interface IParticleSystemRenderer
public void _updateRenderQueue(IRenderQueue queue,
Ilist<IParticle> currentParticles,
boolean cullIndividually)
IParticleSystemRenderer
_updateRenderQueue in interface IBillboardParticleRenderer_updateRenderQueue in interface IParticleSystemRenderer
public void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
IParticleSystemRenderer
visitRenderables in interface IBillboardParticleRenderervisitRenderables in interface IParticleSystemRendererpublic void _setMaterial(IMaterialPtr mat)
IParticleSystemRenderer
_setMaterial in interface IBillboardParticleRenderer_setMaterial in interface IParticleSystemRendererpublic void _notifyCurrentCamera(ICamera cam)
IParticleSystemRenderer
_notifyCurrentCamera in interface IBillboardParticleRenderer_notifyCurrentCamera in interface IParticleSystemRendererpublic void _notifyParticleRotated()
IParticleSystemRenderer
_notifyParticleRotated in interface IBillboardParticleRenderer_notifyParticleRotated in interface IParticleSystemRendererpublic void _notifyParticleResized()
IParticleSystemRenderer
_notifyParticleResized in interface IBillboardParticleRenderer_notifyParticleResized in interface IParticleSystemRendererpublic void _notifyParticleQuota(int quota)
IParticleSystemRenderer
_notifyParticleQuota in interface IBillboardParticleRenderer_notifyParticleQuota in interface IParticleSystemRenderer
public void _notifyAttached(INode parent,
boolean isTagPoint)
IParticleSystemRenderer
_notifyAttached in interface IBillboardParticleRenderer_notifyAttached in interface IParticleSystemRenderer
public void _notifyDefaultDimensions(float width,
float height)
IParticleSystemRenderer
_notifyDefaultDimensions in interface IBillboardParticleRenderer_notifyDefaultDimensions in interface IParticleSystemRendererpublic void setRenderQueueGroup(short queueID)
IParticleSystemRenderer
setRenderQueueGroup in interface IBillboardParticleRenderersetRenderQueueGroup in interface IParticleSystemRendererpublic void setKeepParticlesInLocalSpace(boolean keepLocal)
IParticleSystemRenderer
setKeepParticlesInLocalSpace in interface IBillboardParticleRenderersetKeepParticlesInLocalSpace in interface IParticleSystemRendererpublic SortMode _getSortMode()
IParticleSystemRenderer
_getSortMode in interface IBillboardParticleRenderer_getSortMode in interface IParticleSystemRendererpublic IBillboardSet getBillboardSet()
getBillboardSet in interface IBillboardParticleRendererpublic void _notifyParticleEmitted(IParticle particle)
_notifyParticleEmitted in interface IParticleSystemRendererpublic void _notifyParticleExpired(IParticle particle)
_notifyParticleExpired in interface IParticleSystemRendererpublic void _notifyParticleMoved(Ilist<IParticle> currentParticles)
_notifyParticleMoved in interface IParticleSystemRendererpublic void _notifyParticleCleared(Ilist<IParticle> currentParticles)
_notifyParticleCleared in interface IParticleSystemRendererpublic IParticleVisualData _createVisualData()
_createVisualData in interface IParticleSystemRendererpublic void _destroyVisualData(IParticleVisualData vis)
_destroyVisualData in interface IParticleSystemRendererpublic IParamDictionary getParamDictionary()
getParamDictionary in interface IStringInterfacepublic IParamDictionary getParamDictionary_const()
getParamDictionary_const in interface IStringInterfacepublic IParameterList getParameters()
getParameters in interface IStringInterface
public boolean setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface IStringInterfacepublic void setParameterList(INameValuePairList paramList)
setParameterList in interface IStringInterfacepublic java.lang.String getParameter(java.lang.String name)
getParameter in interface IStringInterfacepublic void copyParametersTo(IStringInterface dest)
copyParametersTo in interface IStringInterfacepublic static void cleanupDictionary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||