com.jme3.scene.plugins.blender.modifiers
Class ModifierHelper
java.lang.Object
com.jme3.scene.plugins.blender.AbstractBlenderHelper
com.jme3.scene.plugins.blender.modifiers.ModifierHelper
public class ModifierHelper
- extends AbstractBlenderHelper
A class that is used in modifiers calculations.
Constructor Summary |
ModifierHelper(java.lang.String blenderVersion,
boolean fixUpAxis)
This constructor parses the given blender version and stores the result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModifierHelper
public ModifierHelper(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 filefixUpAxis
- a variable that indicates if the Y asxis is the UP axis or not
readModifiers
public java.util.Collection<Modifier> readModifiers(Structure objectStructure,
BlenderContext blenderContext)
throws BlenderFileException
- This method reads the given object's modifiers.
- Parameters:
objectStructure
- the object structureblenderContext
- the blender context
- Throws:
BlenderFileException
- this exception is thrown when the blender file is somehow
corrupted
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 analyzedblenderContext
- the blender context
- Returns:
- true if the feature should be loaded and false otherwise