com.jme3.scene.plugins.blender.modifiers
Class Modifier

java.lang.Object
  extended by com.jme3.scene.plugins.blender.modifiers.Modifier

public abstract class Modifier
extends java.lang.Object

This class represents an object's modifier. The modifier object can be varied and the user needs to know what is the type of it for the specified type name. For example "ArmatureModifierData" type specified in blender is represented by AnimData object from jMonkeyEngine.


Field Summary
static java.lang.String ARMATURE_MODIFIER_DATA
           
static java.lang.String ARRAY_MODIFIER_DATA
           
protected  boolean invalid
          This variable indicates if the modifier is invalid (true) or not (false).
static java.lang.String MIRROR_MODIFIER_DATA
           
static java.lang.String OBJECT_ANIMATION_MODIFIER_DATA
           
static java.lang.String PARTICLE_MODIFIER_DATA
           
static java.lang.String SUBSURF_MODIFIER_DATA
           
 
Constructor Summary
Modifier()
           
 
Method Summary
abstract  Node apply(Node node, BlenderContext blenderContext)
          This method applies the modifier to the given node.
abstract  java.lang.String getType()
          This method returns blender's type of modifier.
protected  boolean validate(Structure modifierStructure, BlenderContext blenderContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARRAY_MODIFIER_DATA

public static final java.lang.String ARRAY_MODIFIER_DATA
See Also:
Constant Field Values

ARMATURE_MODIFIER_DATA

public static final java.lang.String ARMATURE_MODIFIER_DATA
See Also:
Constant Field Values

PARTICLE_MODIFIER_DATA

public static final java.lang.String PARTICLE_MODIFIER_DATA
See Also:
Constant Field Values

MIRROR_MODIFIER_DATA

public static final java.lang.String MIRROR_MODIFIER_DATA
See Also:
Constant Field Values

SUBSURF_MODIFIER_DATA

public static final java.lang.String SUBSURF_MODIFIER_DATA
See Also:
Constant Field Values

OBJECT_ANIMATION_MODIFIER_DATA

public static final java.lang.String OBJECT_ANIMATION_MODIFIER_DATA
See Also:
Constant Field Values

invalid

protected boolean invalid
This variable indicates if the modifier is invalid (true) or not (false).

Constructor Detail

Modifier

public Modifier()
Method Detail

apply

public abstract Node apply(Node node,
                           BlenderContext blenderContext)
This method applies the modifier to the given node.

Parameters:
node - the node that will have modifier applied
blenderContext - the blender context
Returns:
the node with applied modifier

getType

public abstract java.lang.String getType()
This method returns blender's type of modifier.

Returns:
blender's type of modifier

validate

protected boolean validate(Structure modifierStructure,
                           BlenderContext blenderContext)