|
||||||||||
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.cameras.CameraHelper
public class CameraHelper
A class that is used to load cameras into the scene.
Field Summary | |
---|---|
protected static int |
DEFAULT_CAM_HEIGHT
|
protected static int |
DEFAULT_CAM_WIDTH
|
Fields inherited from class com.jme3.scene.plugins.blender.AbstractBlenderHelper |
---|
blenderVersion, fixUpAxis, upAxisRotationQuaternion |
Constructor Summary | |
---|---|
CameraHelper(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. |
Camera |
toCamera(Structure structure)
This method converts the given structure to jme camera. |
Camera |
toCamera249(Structure structure)
This method converts the given structure to jme camera. |
Camera |
toCamera250(Structure structure)
This method converts the given structure to jme camera. |
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 |
---|
protected static final int DEFAULT_CAM_WIDTH
protected static final int DEFAULT_CAM_HEIGHT
Constructor Detail |
---|
public CameraHelper(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 Camera toCamera(Structure structure) throws BlenderFileException
structure
- camera structure
BlenderFileException
- an exception is thrown when there are problems with the
blender filepublic Camera toCamera250(Structure structure) throws BlenderFileException
structure
- camera structure
BlenderFileException
- an exception is thrown when there are problems with the
blender filepublic Camera toCamera249(Structure structure) throws BlenderFileException
structure
- camera structure
BlenderFileException
- an exception is thrown when there are problems with the
blender filepublic 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 |