com.jme3.effect.shapes
Class EmitterBoxShape

java.lang.Object
  extended by com.jme3.effect.shapes.EmitterBoxShape
All Implemented Interfaces:
EmitterShape, Savable, java.lang.Cloneable

public class EmitterBoxShape
extends java.lang.Object
implements EmitterShape


Constructor Summary
EmitterBoxShape()
           
EmitterBoxShape(Vector3f min, Vector3f max)
           
 
Method Summary
 EmitterShape deepClone()
          This method creates a deep clone of the current instance of the emitter shape.
 Vector3f getLen()
           
 Vector3f getMin()
           
 void getRandomPoint(Vector3f store)
          This method fills in the initial position of the particle.
 void getRandomPointAndNormal(Vector3f store, Vector3f normal)
          This method fills the point with data.
 void read(JmeImporter im)
           
 void setLen(Vector3f len)
           
 void setMin(Vector3f min)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmitterBoxShape

public EmitterBoxShape()

EmitterBoxShape

public EmitterBoxShape(Vector3f min,
                       Vector3f max)
Method Detail

getRandomPoint

public void getRandomPoint(Vector3f store)
Description copied from interface: EmitterShape
This method fills in the initial position of the particle.

Specified by:
getRandomPoint in interface EmitterShape
Parameters:
store - store variable for initial position

getRandomPointAndNormal

public void getRandomPointAndNormal(Vector3f store,
                                    Vector3f normal)
This method fills the point with data. It does not fill the normal.

Specified by:
getRandomPointAndNormal in interface EmitterShape
Parameters:
store - the variable to store the point data
normal - not used in this class

deepClone

public EmitterShape deepClone()
Description copied from interface: EmitterShape
This method creates a deep clone of the current instance of the emitter shape.

Specified by:
deepClone in interface EmitterShape
Returns:
deep clone of the current instance of the emitter shape

getMin

public Vector3f getMin()

setMin

public void setMin(Vector3f min)

getLen

public Vector3f getLen()

setLen

public void setLen(Vector3f len)

write

public void write(JmeExporter ex)
           throws java.io.IOException
Specified by:
write in interface Savable
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Throws:
java.io.IOException