|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.plugins.blender.file.Structure
public class Structure
A class representing a single structure in the file.
Constructor Summary | |
---|---|
Structure(BlenderInputStream inputStream,
java.lang.String[] names,
java.lang.String[] types,
BlenderContext blenderContext)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.util.List<Structure> |
evaluateListBase(BlenderContext blenderContext)
This methos should be used on structures that are of a 'ListBase' type. |
void |
fill(BlenderInputStream inputStream)
This method fills the structure with data. |
java.lang.String |
getFieldName(int fieldIndex)
This method returns the field name of the given index. |
int |
getFieldsAmount()
This method returns the amount of fields for the current structure. |
java.lang.String |
getFieldType(int fieldIndex)
This method returns the field type of the given index. |
java.lang.Object |
getFieldValue(java.lang.String fieldName)
This method returns the value of the filed with a given name. |
java.lang.Object |
getFlatFieldValue(java.lang.String fieldName)
This method returns the value of the filed with a given name. |
java.lang.String |
getName()
This method returns the name of the structure. |
java.lang.Long |
getOldMemoryAddress()
This method returns the address of the structure. |
java.lang.String |
getType()
This method returns the type of the structure. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Structure(BlenderInputStream inputStream, java.lang.String[] names, java.lang.String[] types, BlenderContext blenderContext) throws BlenderFileException
inputStream
- the stream we read the structure fromnames
- the names from which the name of structure and its fields will be takentypes
- the names of types for the structureblenderContext
- the blender context
BlenderFileException
- this exception occurs if the amount of fields, defined in the file, is negativeMethod Detail |
---|
public void fill(BlenderInputStream inputStream) throws BlenderFileException
inputStream
- the stream we read data from, its read cursor should be placed at the start position of the data for the
structure
BlenderFileException
- an exception is thrown when the blend file is somehow invalid or corruptedpublic java.lang.Object getFieldValue(java.lang.String fieldName)
fieldName
- the name of the field
public java.lang.Object getFlatFieldValue(java.lang.String fieldName)
fieldName
- the name of the field
public java.util.List<Structure> evaluateListBase(BlenderContext blenderContext) throws BlenderFileException
blenderContext
- the blender context
BlenderFileException
- this exception is thrown when the blend file structure is somehow invalid or corrupted
java.lang.IllegalArgumentException
- this exception is thrown if the type of the structure is not 'ListBase'public java.lang.String getType()
public int getFieldsAmount()
public java.lang.String getFieldName(int fieldIndex)
fieldIndex
- the index of the field
public java.lang.String getFieldType(int fieldIndex)
fieldIndex
- the index of the field
public java.lang.Long getOldMemoryAddress()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |