|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.asset.AssetKey<Spatial>
com.jme3.asset.ModelKey
com.jme3.asset.BlenderKey
public class BlenderKey
Blender key. Contains path of the blender file and its loading properties.
Nested Class Summary | |
---|---|
static interface |
BlenderKey.FeaturesToLoad
This interface describes the features of the scene that are to be loaded. |
static class |
BlenderKey.LoadingResults
This class holds the loading results according to the given loading flag. |
static class |
BlenderKey.WorldData
The WORLD file block contains various data that could be added to the scene. |
Field Summary | |
---|---|
protected java.lang.String |
assetRootPath
The root path for all the assets. |
protected static int |
DEFAULT_FPS
|
protected Material |
defaultMaterial
User's default material that is set fo objects that have no material definition in blender. |
protected RenderState.FaceCullMode |
faceCullMode
Face cull mode. |
protected int |
featuresToLoad
This variable is a bitwise flag of FeatureToLoad interface values; By default everything is being loaded. |
protected boolean |
fixUpAxis
This variable indicate if Y axis is UP axis. |
protected int |
fps
FramesPerSecond parameter describe how many frames there are in each second. |
protected int |
generatedTexturePPU
Generated textures resolution (PPU - Pixels Per Unit). |
protected int |
layersToLoad
Variable describes which layers will be loaded. |
protected boolean |
loadObjectProperties
A variable that toggles the object custom properties loading. |
protected boolean |
loadUnlinkedAssets
This variable determines if assets that are not linked to the objects should be loaded. |
protected int |
maxTextureSize
Maximum texture size. |
protected java.lang.String |
usedWorld
The name of world settings that the importer will use. |
Fields inherited from class com.jme3.asset.AssetKey |
---|
extension, folder, name |
Constructor Summary | |
---|---|
BlenderKey()
Constructor used by serialization mechanisms. |
|
BlenderKey(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
void |
excludeFromLoading(int featuresNotToLoad)
This method removes features from being loaded. |
java.lang.String |
getAssetRootPath()
This method returns the asset root path. |
Material |
getDefaultMaterial()
This method returns the default material. |
RenderState.FaceCullMode |
getFaceCullMode()
This method returns the face cull mode. |
int |
getFeaturesToLoad()
This method returns bitwise value of FeaturesToLoad interface value. |
int |
getFps()
This method returns frames per second amount. |
int |
getGeneratedTexturePPU()
|
int |
getLayersToLoad()
This method returns layers to be loaded. |
int |
getMaxTextureSize()
|
java.lang.String |
getUsedWorld()
This mehtod returns the name of the WORLD data block taht should be used during file loading. |
int |
hashCode()
|
void |
includeInLoading(int featuresToLoad)
This method adds features to be loaded. |
boolean |
isFixUpAxis()
This method returns the fix up axis state. |
boolean |
isLoadObjectProperties()
|
boolean |
isLoadUnlinkedAssets()
This method determines if unlinked assets should be loaded. |
BlenderKey.LoadingResults |
prepareLoadingResults()
This method creates an object where loading results will be stores. |
void |
read(JmeImporter e)
|
void |
setAssetRootPath(java.lang.String assetRootPath)
This method sets the asset root path. |
void |
setDefaultMaterial(Material defaultMaterial)
This method sets the default material for objects. |
void |
setFaceCullMode(RenderState.FaceCullMode faceCullMode)
This method sets the face cull mode. |
void |
setFixUpAxis(boolean fixUpAxis)
This method sets the fix up axis state. |
void |
setFps(int fps)
This method sets frames per second amount. |
void |
setGeneratedTexturePPU(int generatedTexturePPU)
This method sets the generated textures resolution. |
void |
setLayersToLoad(int layersToLoad)
This method sets layers to be loaded. |
void |
setLoadObjectProperties(boolean loadObjectProperties)
This method sets the properies loading policy. |
void |
setLoadUnlinkedAssets(boolean loadUnlinkedAssets)
This method sets if unlinked assets should be loaded. |
void |
setMaxTextureSize(int maxTextureSize)
This method sets the maximum texture size. |
void |
setUsedWorld(java.lang.String usedWorld)
This mehtod sets the name of the WORLD data block taht should be used during file loading. |
void |
write(JmeExporter e)
|
Methods inherited from class com.jme3.asset.ModelKey |
---|
getCacheType, getProcessorType |
Methods inherited from class com.jme3.asset.AssetKey |
---|
clone, getExtension, getExtension, getFolder, getFolder, getName, reducePath, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int DEFAULT_FPS
protected int fps
protected int featuresToLoad
protected boolean loadUnlinkedAssets
protected java.lang.String assetRootPath
protected boolean fixUpAxis
protected int generatedTexturePPU
protected java.lang.String usedWorld
protected Material defaultMaterial
protected RenderState.FaceCullMode faceCullMode
protected int layersToLoad
protected boolean loadObjectProperties
protected int maxTextureSize
Constructor Detail |
---|
public BlenderKey()
public BlenderKey(java.lang.String name)
name
- the name (path) of a fileMethod Detail |
---|
public int getFps()
public void setFps(int fps)
fps
- the frames per second amountpublic RenderState.FaceCullMode getFaceCullMode()
public void setFaceCullMode(RenderState.FaceCullMode faceCullMode)
faceCullMode
- the face cull modepublic void setLayersToLoad(int layersToLoad)
layersToLoad
- layers to be loadedpublic int getLayersToLoad()
public void setLoadObjectProperties(boolean loadObjectProperties)
loadObjectProperties
- true to load properties and false to suspend their loadingpublic boolean isLoadObjectProperties()
public int getMaxTextureSize()
public void setMaxTextureSize(int maxTextureSize)
maxTextureSize
- the maximum texture sizepublic void setAssetRootPath(java.lang.String assetRootPath)
assetRootPath
- the assets root pathpublic java.lang.String getAssetRootPath()
public void includeInLoading(int featuresToLoad)
featuresToLoad
- bitwise flag of FeaturesToLoad interface valuespublic void excludeFromLoading(int featuresNotToLoad)
featuresNotToLoad
- bitwise flag of FeaturesToLoad interface valuespublic int getFeaturesToLoad()
public boolean isLoadUnlinkedAssets()
public void setLoadUnlinkedAssets(boolean loadUnlinkedAssets)
loadUnlinkedAssets
- true if unlinked assets should be loaded and false otherwisepublic BlenderKey.LoadingResults prepareLoadingResults()
public void setFixUpAxis(boolean fixUpAxis)
fixUpAxis
- the up axis state variablepublic boolean isFixUpAxis()
public void setGeneratedTexturePPU(int generatedTexturePPU)
generatedTexturePPU
- the generated textures resolutionpublic int getGeneratedTexturePPU()
public void setUsedWorld(java.lang.String usedWorld)
usedWorld
- the name of the WORLD block used during loadingpublic java.lang.String getUsedWorld()
public void setDefaultMaterial(Material defaultMaterial)
defaultMaterial
- the default materialpublic Material getDefaultMaterial()
public void write(JmeExporter e) throws java.io.IOException
write
in interface Savable
write
in class AssetKey<Spatial>
java.io.IOException
public void read(JmeImporter e) throws java.io.IOException
read
in interface Savable
read
in class AssetKey<Spatial>
java.io.IOException
public int hashCode()
hashCode
in class AssetKey<Spatial>
public boolean equals(java.lang.Object obj)
equals
in class AssetKey<Spatial>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |