org.ogre4j
Class Particle

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Particle
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IParticle, ISceneObjAllocatedObject, INativeObject

public class Particle
extends NativeObject
implements IParticle


Nested Class Summary
static class Particle.ParticleType
           
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Particle()
           
  Particle(InstancePointer p)
          This constructor is public for internal useage only!
protected Particle(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Particle(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _notifyOwner(IParticleSystem owner)
          Internal method for notifying the particle of it's owner.
 void _notifyVisualData(IParticleVisualData vis)
          Internal method for notifying the particle of it's optional visual data.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void getcolour(IColourValue returnValue)
           
 void getdirection(IVector3 returnValue)
           
 float getmHeight()
           
 boolean getmOwnDimensions()
           
 float getmWidth()
           
 float getOwnHeight()
          Retrieves the particle's personal width, if hasOwnDimensions is true.
 float getOwnWidth()
          Retrieves the particle's personal width, if hasOwnDimensions is true.
 Particle.ParticleType getparticleType()
           
 void getposition(IVector3 returnValue)
           
 IRadian getRotation()
           
 void getrotation(IRadian returnValue)
           
 void getrotationSpeed(IRadian returnValue)
           
 float gettimeToLive()
           
 float gettotalTimeToLive()
           
 IParticleVisualData getVisualData()
           
 boolean hasOwnDimensions()
          Returns true if this particle deviates from the ParticleSystem's default dimensions (i.e. if the particle::setDimensions method has been called for this instance).
 void resetDimensions()
           
 void setcolour(IColourValue _jni_value_)
           
 void setDimensions(float width, float height)
          Sets the width and height for this particle.
 void setdirection(IVector3 _jni_value_)
           
 void setmHeight(float _jni_value_)
           
 void setmOwnDimensions(boolean _jni_value_)
           
 void setmWidth(float _jni_value_)
           
 void setparticleType(Particle.ParticleType _jni_value_)
           
 void setposition(IVector3 _jni_value_)
           
 void setrotation(IRadian _jni_value_)
           
 void setRotation(IRadian rad)
          Sets the current rotation
 void setrotationSpeed(IRadian _jni_value_)
           
 void settimeToLive(float _jni_value_)
           
 void settotalTimeToLive(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

Particle

public Particle(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


Particle

protected Particle(InstancePointer p,
                   boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


Particle

public Particle(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Particle

public Particle()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

setDimensions

public void setDimensions(float width,
                          float height)
Sets the width and height for this particle.

Specified by:
setDimensions in interface IParticle

hasOwnDimensions

public boolean hasOwnDimensions()
Returns true if this particle deviates from the ParticleSystem's default dimensions (i.e. if the particle::setDimensions method has been called for this instance).

Specified by:
hasOwnDimensions in interface IParticle

getOwnWidth

public float getOwnWidth()
Retrieves the particle's personal width, if hasOwnDimensions is true.

Specified by:
getOwnWidth in interface IParticle

getOwnHeight

public float getOwnHeight()
Retrieves the particle's personal width, if hasOwnDimensions is true.

Specified by:
getOwnHeight in interface IParticle

setRotation

public void setRotation(IRadian rad)
Sets the current rotation

Specified by:
setRotation in interface IParticle

getRotation

public IRadian getRotation()
Specified by:
getRotation in interface IParticle

_notifyOwner

public void _notifyOwner(IParticleSystem owner)
Internal method for notifying the particle of it's owner.

Specified by:
_notifyOwner in interface IParticle

_notifyVisualData

public void _notifyVisualData(IParticleVisualData vis)
Internal method for notifying the particle of it's optional visual data.

Specified by:
_notifyVisualData in interface IParticle

getVisualData

public IParticleVisualData getVisualData()
Specified by:
getVisualData in interface IParticle

resetDimensions

public void resetDimensions()
Specified by:
resetDimensions in interface IParticle

getmOwnDimensions

public boolean getmOwnDimensions()
Specified by:
getmOwnDimensions in interface IParticle

setmOwnDimensions

public void setmOwnDimensions(boolean _jni_value_)
Specified by:
setmOwnDimensions in interface IParticle

getmWidth

public float getmWidth()
Specified by:
getmWidth in interface IParticle

setmWidth

public void setmWidth(float _jni_value_)
Specified by:
setmWidth in interface IParticle

getmHeight

public float getmHeight()
Specified by:
getmHeight in interface IParticle

setmHeight

public void setmHeight(float _jni_value_)
Specified by:
setmHeight in interface IParticle

getrotation

public void getrotation(IRadian returnValue)
Specified by:
getrotation in interface IParticle

setrotation

public void setrotation(IRadian _jni_value_)
Specified by:
setrotation in interface IParticle

getposition

public void getposition(IVector3 returnValue)
Specified by:
getposition in interface IParticle

setposition

public void setposition(IVector3 _jni_value_)
Specified by:
setposition in interface IParticle

getdirection

public void getdirection(IVector3 returnValue)
Specified by:
getdirection in interface IParticle

setdirection

public void setdirection(IVector3 _jni_value_)
Specified by:
setdirection in interface IParticle

getcolour

public void getcolour(IColourValue returnValue)
Specified by:
getcolour in interface IParticle

setcolour

public void setcolour(IColourValue _jni_value_)
Specified by:
setcolour in interface IParticle

gettimeToLive

public float gettimeToLive()
Specified by:
gettimeToLive in interface IParticle

settimeToLive

public void settimeToLive(float _jni_value_)
Specified by:
settimeToLive in interface IParticle

gettotalTimeToLive

public float gettotalTimeToLive()
Specified by:
gettotalTimeToLive in interface IParticle

settotalTimeToLive

public void settotalTimeToLive(float _jni_value_)
Specified by:
settotalTimeToLive in interface IParticle

getrotationSpeed

public void getrotationSpeed(IRadian returnValue)
Specified by:
getrotationSpeed in interface IParticle

setrotationSpeed

public void setrotationSpeed(IRadian _jni_value_)
Specified by:
setrotationSpeed in interface IParticle

getparticleType

public Particle.ParticleType getparticleType()
Specified by:
getparticleType in interface IParticle

setparticleType

public void setparticleType(Particle.ParticleType _jni_value_)
Specified by:
setparticleType in interface IParticle


Copyright © 2007 netAllied GmbH. All Rights Reserved.