public class FigureLoader extends JsonLoader<Figure>
FigureLoader loads the contents of a JSON
Figure declaration.
The JSON file has to contain at least a 'name' key.
A Figure
contains a Mesh,
Material and
optional DrawStrategy.
The keys in the root node of the json file, should therefor be
"name", "Mesh", "Material", "DrawStrategy".
All are optional, but the name!
The others are delegated to the specific loaders:
MeshDeclarationLoader,
MaterialLoader,
DrawStrategyLoaderjsonObject| Constructor and Description |
|---|
FigureLoader() |
| Modifier and Type | Method and Description |
|---|---|
Figure |
get()
This should used the information, generated during
loading and construct an Object.
|
getColor, getJsonObject, getTexture, load, setJsonObject, toObjectArraygetObject, getPreProcessorCopyright © 2014. All rights reserved.