public class ColladaLoader
extends java.lang.Object
This is the entry class to create resp. load a collada file
This source is free; you can redistribute it and/or modify it under the terms of the GNU General Public License and by nameing of the originally author
| Constructor and Description |
|---|
ColladaLoader() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
deleteRecursive(java.io.File file)
deletes file and directories recursively (called after unzipping)
|
static ColladaModel |
load(java.lang.String fileName,
PApplet applet,
java.util.Properties optionals)
Loads a file with endings ".kmz" or ".dae" from Processing's data path.
|
private static java.lang.String |
readDOCkml(PApplet applet)
reads where to find the .dae file
|
private static void |
unzip(java.lang.String filename,
PApplet applet)
unzips files and directory structure from kmz to data folder
|
public static ColladaModel load(java.lang.String fileName, PApplet applet, java.util.Properties optionals)
Loads a file with endings ".kmz" or ".dae" from Processing's data path. Following options is supported:
filename - current - sketchbookoptions - or null.private static void unzip(java.lang.String filename,
PApplet applet)
throws java.io.IOException
kmz - filename in data folderjava.io.IOExceptionprivate static java.lang.String readDOCkml(PApplet applet)
private static void deleteRecursive(java.io.File file)
throws java.io.FileNotFoundException
file - java.io.FileNotFoundException