com.jme3.effect.shapes
Class EmitterSphereShape

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

public class EmitterSphereShape
extends java.lang.Object
implements EmitterShape


Constructor Summary
EmitterSphereShape()
           
EmitterSphereShape(Vector3f center, float radius)
           
 
Method Summary
 EmitterShape deepClone()
          This method creates a deep clone of the current instance of the emitter shape.
 Vector3f getCenter()
           
 float getRadius()
           
 void getRandomPoint(Vector3f store)
          This method fills in the initial position of the particle.
 void getRandomPointAndNormal(Vector3f store, Vector3f normal)
          This method fills in the initial position of the particle and its normal vector.
 void read(JmeImporter im)
           
 void setCenter(Vector3f center)
           
 void setRadius(float radius)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmitterSphereShape

public EmitterSphereShape()

EmitterSphereShape

public EmitterSphereShape(Vector3f center,
                          float radius)
Method Detail

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

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)
Description copied from interface: EmitterShape
This method fills in the initial position of the particle and its normal vector.

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

getCenter

public Vector3f getCenter()

setCenter

public void setCenter(Vector3f center)

getRadius

public float getRadius()

setRadius

public void setRadius(float radius)

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