Package com.jme3.effect.shapes
Class EmitterBoxShape
java.lang.Object
com.jme3.effect.shapes.EmitterBoxShape
- All Implemented Interfaces:
EmitterShape
,Savable
,JmeCloneable
,Cloneable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cloneFields
(Cloner cloner, Object original) Called internally by com.jme3.util.clone.Cloner.This method creates a deep clone of the current instance of the emitter shape.getLen()
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.jmeClone()
Called internally by com.jme3.util.clone.Cloner.void
read
(JmeImporter im) void
void
void
write
(JmeExporter ex)
-
Constructor Details
-
EmitterBoxShape
public EmitterBoxShape() -
EmitterBoxShape
-
-
Method Details
-
getRandomPoint
Description copied from interface:EmitterShape
This method fills in the initial position of the particle.- Specified by:
getRandomPoint
in interfaceEmitterShape
- Parameters:
store
- store variable for initial position
-
getRandomPointAndNormal
This method fills the point with data. It does not fill the normal.- Specified by:
getRandomPointAndNormal
in interfaceEmitterShape
- Parameters:
store
- the variable to store the point datanormal
- not used in this class
-
deepClone
Description copied from interface:EmitterShape
This method creates a deep clone of the current instance of the emitter shape.- Specified by:
deepClone
in interfaceEmitterShape
- Returns:
- deep clone of the current instance of the emitter shape
-
jmeClone
Called internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
jmeClone
in interfaceJmeCloneable
- Returns:
- a new instance
-
cloneFields
Called internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
cloneFields
in interfaceJmeCloneable
- Parameters:
cloner
- The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.original
- The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
-
getMin
-
setMin
-
getLen
-
setLen
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-