Maven module :un.storage : model3d-blend :
Class : un.storage.model3d.blend.model.BlendFile
Extends/Implements : -
Subclasses : -

author  Johann Sorel


Variables : filePath, encoding, blocks, header, sdnaBlock
Functions : BlendFile, read, resolvePointers, getBlockByCode, getBlockByType, getBlock, getBlockByName, realign


public Path filePath

public NumberEncoding encoding

public Sequence blocks

public BlendFileHeader header

public BlendSDNA sdnaBlock


public void BlendFile (Path filePath)

public void read (ByteInputStream stream)


This method replace all address pointer type fields by the real block object
public void resolvePointers ()


Find the first block with given header code.
param  code
return
public BlendFileBlock getBlockByCode (Chars code)


Find the first block with given header code.
param  sdnaType
return
public BlendFileBlock getBlockByType (Chars sdnaType)


Find the first block with given address.
param  address
return
public BlendFileBlock getBlock (long address)


Find the first block witch is a BlendIdentified and has the given name.
param  name
return
public BlendFileBlock getBlockByName (Chars name)


Blender datas are align on 4 bytes.
This method moves the cursor forward if needed.
public void realign (ArrayInputStream as)