public class DnaBlockData
extends java.lang.Object
Constructor and Description |
---|
DnaBlockData(BlenderInputStream inputStream,
BlenderContext blenderContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Structure |
getStructure(int index)
This method returns the structure of the given index.
|
Structure |
getStructure(java.lang.String name)
This method returns a structure of the given name.
|
int |
getStructuresCount()
This method returns the amount of the structures.
|
boolean |
hasStructure(java.lang.String name)
This method indicates if the structure of the given name exists.
|
java.lang.String |
toString() |
public DnaBlockData(BlenderInputStream inputStream, BlenderContext blenderContext) throws BlenderFileException
inputStream
- the stream we read the block fromblenderContext
- the blender contextBlenderFileException
- this exception is throw if the blend file is invalid or somehow corruptedpublic int getStructuresCount()
public Structure getStructure(int index)
index
- the index of the structurepublic Structure getStructure(java.lang.String name)
name
- the name of the structurepublic boolean hasStructure(java.lang.String name)
name
- the name of the structurepublic java.lang.String toString()
toString
in class java.lang.Object