com.jme3.scene.plugins.blender.particles
Class ParticlesHelper

java.lang.Object
  extended by com.jme3.scene.plugins.blender.AbstractBlenderHelper
      extended by com.jme3.scene.plugins.blender.particles.ParticlesHelper

public class ParticlesHelper
extends AbstractBlenderHelper


Field Summary
static int PART_ABS_LENGTH
           
static int PART_ABS_TIME
           
static int PART_ANIM_BRANCHING
           
static int PART_BOIDS_2D
           
static int PART_BRANCHING
           
static int PART_CHILD_EFFECT
           
static int PART_CHILD_GUIDE
           
static int PART_CHILD_RENDER
           
static int PART_CHILD_SEAMS
           
static int PART_DIE_ON_COL
           
static int PART_DIED
           
static int PART_DRAW_AXIS
           
static int PART_DRAW_BB
           
static int PART_DRAW_CIRC
           
static int PART_DRAW_CROSS
           
static int PART_DRAW_DOT
           
static int PART_DRAW_GR
           
static int PART_DRAW_LINE
           
static int PART_DRAW_NOT
           
static int PART_DRAW_OB
           
static int PART_DRAW_PATH
           
static int PART_EDISTR
           
static int PART_EMITTER
           
static int PART_FLUID
           
static int PART_FROM_CHILD
           
static int PART_FROM_FACE
           
static int PART_FROM_PARTICLE
           
static int PART_FROM_VERT
           
static int PART_FROM_VOLUME
           
static int PART_GLOB_TIME
           
static int PART_GRID_INVERT
           
static int PART_HAIR
           
static int PART_HAIR_BSPLINE
           
static int PART_HAIR_GEOMETRY
           
static int PART_LOOP
           
static int PART_PHYS_BOIDS
           
static int PART_PHYS_KEYED
           
static int PART_PHYS_NEWTON
           
static int PART_PHYS_NO
           
static int PART_REACT_MULTIPLE
           
static int PART_REACT_STA_END
           
static int PART_REACTOR
           
static int PART_ROT_DYN
           
static int PART_SELF_EFFECT
           
static int PART_SIZE_DEFL
           
static int PART_SIZEMASS
           
static int PART_STICKY
           
static int PART_SYMM_BRANCHING
           
static int PART_TRAND
           
static int PART_UNBORN
           
 
Fields inherited from class com.jme3.scene.plugins.blender.AbstractBlenderHelper
blenderVersion, fixUpAxis, upAxisRotationQuaternion
 
Constructor Summary
ParticlesHelper(java.lang.String blenderVersion, boolean fixUpAxis)
          This constructor parses the given blender version and stores the result.
 
Method Summary
 boolean shouldBeLoaded(Structure structure, BlenderContext blenderContext)
          This method analyzes the given structure and the data contained within blender context and decides if the feature should be loaded.
 ParticleEmitter toParticleEmitter(Structure particleSystem, BlenderContext blenderContext)
           
 
Methods inherited from class com.jme3.scene.plugins.blender.AbstractBlenderHelper
applyProperties, clearState, isBlank, loadProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PART_EMITTER

public static final int PART_EMITTER
See Also:
Constant Field Values

PART_REACTOR

public static final int PART_REACTOR
See Also:
Constant Field Values

PART_HAIR

public static final int PART_HAIR
See Also:
Constant Field Values

PART_FLUID

public static final int PART_FLUID
See Also:
Constant Field Values

PART_REACT_STA_END

public static final int PART_REACT_STA_END
See Also:
Constant Field Values

PART_REACT_MULTIPLE

public static final int PART_REACT_MULTIPLE
See Also:
Constant Field Values

PART_LOOP

public static final int PART_LOOP
See Also:
Constant Field Values

PART_HAIR_GEOMETRY

public static final int PART_HAIR_GEOMETRY
See Also:
Constant Field Values

PART_UNBORN

public static final int PART_UNBORN
See Also:
Constant Field Values

PART_DIED

public static final int PART_DIED
See Also:
Constant Field Values

PART_TRAND

public static final int PART_TRAND
See Also:
Constant Field Values

PART_EDISTR

public static final int PART_EDISTR
See Also:
Constant Field Values

PART_STICKY

public static final int PART_STICKY
See Also:
Constant Field Values

PART_DIE_ON_COL

public static final int PART_DIE_ON_COL
See Also:
Constant Field Values

PART_SIZE_DEFL

public static final int PART_SIZE_DEFL
See Also:
Constant Field Values

PART_ROT_DYN

public static final int PART_ROT_DYN
See Also:
Constant Field Values

PART_SIZEMASS

public static final int PART_SIZEMASS
See Also:
Constant Field Values

PART_ABS_LENGTH

public static final int PART_ABS_LENGTH
See Also:
Constant Field Values

PART_ABS_TIME

public static final int PART_ABS_TIME
See Also:
Constant Field Values

PART_GLOB_TIME

public static final int PART_GLOB_TIME
See Also:
Constant Field Values

PART_BOIDS_2D

public static final int PART_BOIDS_2D
See Also:
Constant Field Values

PART_BRANCHING

public static final int PART_BRANCHING
See Also:
Constant Field Values

PART_ANIM_BRANCHING

public static final int PART_ANIM_BRANCHING
See Also:
Constant Field Values

PART_SELF_EFFECT

public static final int PART_SELF_EFFECT
See Also:
Constant Field Values

PART_SYMM_BRANCHING

public static final int PART_SYMM_BRANCHING
See Also:
Constant Field Values

PART_HAIR_BSPLINE

public static final int PART_HAIR_BSPLINE
See Also:
Constant Field Values

PART_GRID_INVERT

public static final int PART_GRID_INVERT
See Also:
Constant Field Values

PART_CHILD_EFFECT

public static final int PART_CHILD_EFFECT
See Also:
Constant Field Values

PART_CHILD_SEAMS

public static final int PART_CHILD_SEAMS
See Also:
Constant Field Values

PART_CHILD_RENDER

public static final int PART_CHILD_RENDER
See Also:
Constant Field Values

PART_CHILD_GUIDE

public static final int PART_CHILD_GUIDE
See Also:
Constant Field Values

PART_FROM_VERT

public static final int PART_FROM_VERT
See Also:
Constant Field Values

PART_FROM_FACE

public static final int PART_FROM_FACE
See Also:
Constant Field Values

PART_FROM_VOLUME

public static final int PART_FROM_VOLUME
See Also:
Constant Field Values

PART_FROM_PARTICLE

public static final int PART_FROM_PARTICLE
See Also:
Constant Field Values

PART_FROM_CHILD

public static final int PART_FROM_CHILD
See Also:
Constant Field Values

PART_PHYS_NO

public static final int PART_PHYS_NO
See Also:
Constant Field Values

PART_PHYS_NEWTON

public static final int PART_PHYS_NEWTON
See Also:
Constant Field Values

PART_PHYS_KEYED

public static final int PART_PHYS_KEYED
See Also:
Constant Field Values

PART_PHYS_BOIDS

public static final int PART_PHYS_BOIDS
See Also:
Constant Field Values

PART_DRAW_NOT

public static final int PART_DRAW_NOT
See Also:
Constant Field Values

PART_DRAW_DOT

public static final int PART_DRAW_DOT
See Also:
Constant Field Values

PART_DRAW_CIRC

public static final int PART_DRAW_CIRC
See Also:
Constant Field Values

PART_DRAW_CROSS

public static final int PART_DRAW_CROSS
See Also:
Constant Field Values

PART_DRAW_AXIS

public static final int PART_DRAW_AXIS
See Also:
Constant Field Values

PART_DRAW_LINE

public static final int PART_DRAW_LINE
See Also:
Constant Field Values

PART_DRAW_PATH

public static final int PART_DRAW_PATH
See Also:
Constant Field Values

PART_DRAW_OB

public static final int PART_DRAW_OB
See Also:
Constant Field Values

PART_DRAW_GR

public static final int PART_DRAW_GR
See Also:
Constant Field Values

PART_DRAW_BB

public static final int PART_DRAW_BB
See Also:
Constant Field Values
Constructor Detail

ParticlesHelper

public ParticlesHelper(java.lang.String blenderVersion,
                       boolean fixUpAxis)
This constructor parses the given blender version and stores the result. Some functionalities may differ in different blender versions.

Parameters:
blenderVersion - the version read from the blend file
fixUpAxis - a variable that indicates if the Y asxis is the UP axis or not
Method Detail

toParticleEmitter

public ParticleEmitter toParticleEmitter(Structure particleSystem,
                                         BlenderContext blenderContext)
                                  throws BlenderFileException
Throws:
BlenderFileException

shouldBeLoaded

public boolean shouldBeLoaded(Structure structure,
                              BlenderContext blenderContext)
Description copied from class: AbstractBlenderHelper
This method analyzes the given structure and the data contained within blender context and decides if the feature should be loaded.

Specified by:
shouldBeLoaded in class AbstractBlenderHelper
Parameters:
structure - structure to be analyzed
blenderContext - the blender context
Returns:
true if the feature should be loaded and false otherwise