|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.plugins.blender.file.FileBlockHeader
public class FileBlockHeader
A class that holds the header data of a file block. The file block itself is not implemented. This class holds its start position in the stream and using this the structure can fill itself with the proper data.
Field Summary | |
---|---|
static int |
BLOCK_AC00
|
static int |
BLOCK_CA00
|
static int |
BLOCK_DATA
|
static int |
BLOCK_DNA1
|
static int |
BLOCK_ENDB
|
static int |
BLOCK_GLOB
|
static int |
BLOCK_IP00
|
static int |
BLOCK_LA00
|
static int |
BLOCK_MA00
|
static int |
BLOCK_ME00
|
static int |
BLOCK_OB00
|
static int |
BLOCK_REND
|
static int |
BLOCK_SC00
|
static int |
BLOCK_SR00
|
static int |
BLOCK_TE00
|
static int |
BLOCK_TX00
|
static int |
BLOCK_WO00
|
Constructor Summary | |
---|---|
FileBlockHeader(BlenderInputStream inputStream,
BlenderContext blenderContext)
Constructor. |
Method Summary | |
---|---|
protected java.lang.String |
codeToString(int code)
This method transforms the coded bloch id into a string value. |
int |
getBlockPosition()
This method returns the start position of the data block in the blend file stream. |
int |
getCode()
This method returns the code of this data block. |
int |
getCount()
This data returns the number of structure stored in the data block after this header. |
long |
getOldMemoryAddress()
This method returns the memory address. |
int |
getSdnaIndex()
This method returns the sdna index. |
int |
getSize()
This method returns the size of the data stored in this block. |
Structure |
getStructure(BlenderContext blenderContext)
This method returns the structure described by the header filled with appropriate data. |
boolean |
isDnaBlock()
This method indicates if the block is the SDNA block. |
boolean |
isLastBlock()
This method indicates if the block is the last block in the file. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BLOCK_TE00
public static final int BLOCK_ME00
public static final int BLOCK_SR00
public static final int BLOCK_CA00
public static final int BLOCK_LA00
public static final int BLOCK_OB00
public static final int BLOCK_MA00
public static final int BLOCK_SC00
public static final int BLOCK_WO00
public static final int BLOCK_TX00
public static final int BLOCK_IP00
public static final int BLOCK_AC00
public static final int BLOCK_GLOB
public static final int BLOCK_REND
public static final int BLOCK_DATA
public static final int BLOCK_DNA1
public static final int BLOCK_ENDB
Constructor Detail |
---|
public FileBlockHeader(BlenderInputStream inputStream, BlenderContext blenderContext) throws BlenderFileException
inputStream
- the stream we read the block header fromblenderContext
- the blender context
BlenderFileException
- this exception is thrown when the pointer size is neither 4 nor 8Method Detail |
---|
public Structure getStructure(BlenderContext blenderContext) throws BlenderFileException
blenderContext
- the blender context
BlenderFileException
public int getCode()
public int getSize()
public long getOldMemoryAddress()
public int getSdnaIndex()
public int getCount()
public int getBlockPosition()
public boolean isLastBlock()
public boolean isDnaBlock()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String codeToString(int code)
code
- the id of the block
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |