|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.plugins.blender.AbstractBlenderHelper
com.jme3.scene.plugins.blender.objects.ObjectHelper
public class ObjectHelper
A class that is used in object calculations.
Field Summary | |
---|---|
protected static int |
OBJECT_TYPE_ARMATURE
|
protected static int |
OBJECT_TYPE_CAMERA
|
protected static int |
OBJECT_TYPE_CURVE
|
protected static int |
OBJECT_TYPE_EMPTY
|
protected static int |
OBJECT_TYPE_LAMP
|
protected static int |
OBJECT_TYPE_LATTICE
|
protected static int |
OBJECT_TYPE_MESH
|
protected static int |
OBJECT_TYPE_METABALL
|
protected static int |
OBJECT_TYPE_SURF
|
protected static int |
OBJECT_TYPE_TEXT
|
protected static int |
OBJECT_TYPE_WAVE
|
Fields inherited from class com.jme3.scene.plugins.blender.AbstractBlenderHelper |
---|
blenderVersion, fixUpAxis, upAxisRotationQuaternion |
Constructor Summary | |
---|---|
ObjectHelper(java.lang.String blenderVersion,
boolean fixUpAxis)
This constructor parses the given blender version and stores the result. |
Method Summary | |
---|---|
void |
clearState()
This method clears the state of the helper so that it can be used for different calculations of another feature. |
Matrix4f |
getMatrix(Structure structure,
java.lang.String matrixName)
This method returns the matrix of a given name for the given structure. |
Matrix4f |
getMatrix(Structure structure,
java.lang.String matrixName,
boolean applyFixUpAxis)
This method returns the matrix of a given name for the given structure. |
Vector3f |
getScale(Matrix4f matrix)
This method returns the scale from the given matrix. |
Transform |
getTransformation(Structure objectStructure,
BlenderContext blenderContext)
This method calculates local transformation for the object. |
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. |
java.lang.Object |
toObject(Structure objectStructure,
BlenderContext blenderContext)
This method reads the given structure and createn an object that represents the data. |
Methods inherited from class com.jme3.scene.plugins.blender.AbstractBlenderHelper |
---|
applyProperties, isBlank, loadProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int OBJECT_TYPE_EMPTY
protected static final int OBJECT_TYPE_MESH
protected static final int OBJECT_TYPE_CURVE
protected static final int OBJECT_TYPE_SURF
protected static final int OBJECT_TYPE_TEXT
protected static final int OBJECT_TYPE_METABALL
protected static final int OBJECT_TYPE_LAMP
protected static final int OBJECT_TYPE_CAMERA
protected static final int OBJECT_TYPE_WAVE
protected static final int OBJECT_TYPE_LATTICE
protected static final int OBJECT_TYPE_ARMATURE
Constructor Detail |
---|
public ObjectHelper(java.lang.String blenderVersion, boolean fixUpAxis)
blenderVersion
- the version read from the blend filefixUpAxis
- a variable that indicates if the Y asxis is the UP axis or notMethod Detail |
---|
public java.lang.Object toObject(Structure objectStructure, BlenderContext blenderContext) throws BlenderFileException
objectStructure
- the object's structureblenderContext
- the blender context
BlenderFileException
- an exception is thrown when the given data is inapropriatepublic Transform getTransformation(Structure objectStructure, BlenderContext blenderContext)
objectStructure
- the object's structure
public Matrix4f getMatrix(Structure structure, java.lang.String matrixName)
structure
- the structure with matrix datamatrixName
- the name of the matrix
public Matrix4f getMatrix(Structure structure, java.lang.String matrixName, boolean applyFixUpAxis)
structure
- the structure with matrix datamatrixName
- the name of the matrix
public Vector3f getScale(Matrix4f matrix)
matrix
- the transformation matrix
public void clearState()
AbstractBlenderHelper
clearState
in class AbstractBlenderHelper
public boolean shouldBeLoaded(Structure structure, BlenderContext blenderContext)
AbstractBlenderHelper
shouldBeLoaded
in class AbstractBlenderHelper
structure
- structure to be analyzedblenderContext
- the blender context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |