Search in sources :

Example 1 with AExportableBlockParser

use of org.rajawali3d.loader.awd.AExportableBlockParser in project Rajawali by Rajawali.

the class LoaderAWD method onBlockParsingFinished.

/**
     * This is called when all blocks have finished parsing. This is the time to modify any block
     * data as needed from the passed list before conversion to {@link Object3D} or {@link
     * Scene} occurs.
     */
public void onBlockParsingFinished(List<IBlockParser> blockParsers) {
    Object3D temp;
    IBlockParser blockParser;
    for (int i = 0, j = blockParsers.size(); i < j; i++) {
        blockParser = blockParsers.get(i);
        if (!(blockParser instanceof AExportableBlockParser))
            continue;
        temp = ((AExportableBlockParser) blockParser).getBaseObject3D();
        if (temp != null)
            baseObjects.add(temp);
    }
}
Also used : AExportableBlockParser(org.rajawali3d.loader.awd.AExportableBlockParser) Object3D(org.rajawali3d.Object3D)

Aggregations

Object3D (org.rajawali3d.Object3D)1 AExportableBlockParser (org.rajawali3d.loader.awd.AExportableBlockParser)1