|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcolladaLoader.LoadingHelper
class LoadingHelper
Lucerne University of Applied Sciences and Arts http://www.hslu.ch
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
this class starts the kmz-unzipping, the xml-Loading and loads the texture-images. It will be used only once...
Field Summary | |
---|---|
private java.lang.String |
fileName
|
private Line[] |
lines
|
private java.lang.String |
pathName
|
private Triangle[] |
triangles
|
Constructor Summary | |
---|---|
LoadingHelper(java.lang.String file)
use this constructor if you're shure that your export does'nt contain any textures and you have no intension to use the draw-methode |
|
LoadingHelper(java.lang.String file,
processing.core.PApplet applet)
use this constructor if you think the export might contain any textures |
Method Summary | |
---|---|
private java.lang.String |
checkIfPathDefined(java.lang.String filename)
Checks if a Path as prefix is defined, if yes the filname will be unchanged otherwise it gets the prefix . |
(package private) Line[] |
getLines()
returns the prepared Lines from the file to use whatever you want |
(package private) Triangle[] |
getTriangles()
returns the prepared Triangeles from the file to use whatever you want |
private void |
recalculateSketchupAxisToProcessingAxis()
|
private void |
recalculateSketchupTexturesToProcessing(processing.core.PApplet applet)
per definition is: textureProcessing x = textureSketchup x * picture.width textureProcessing y = picture.height - textureSketchup y * picture.height it also creates an PImage to each Triangle (if it contains any Texture) |
private void |
unzip()
unzips to the same path as the zipfile is |
private void |
useDOCkml()
reconfigures pathname and filename using doc.kml inside the kmz-File it adds a subpath to pathname and renames the filename from kmz to dae |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Triangle[] triangles
private Line[] lines
private java.lang.String pathName
private java.lang.String fileName
Constructor Detail |
---|
LoadingHelper(java.lang.String file)
filename
- of a .dae or .kmz -endianLoadingHelper(java.lang.String file, processing.core.PApplet applet)
filename
- of a .dae or .kmzMethod Detail |
---|
private void useDOCkml()
private java.lang.String checkIfPathDefined(java.lang.String filename)
filename
-
private void recalculateSketchupAxisToProcessingAxis()
private void recalculateSketchupTexturesToProcessing(processing.core.PApplet applet)
private void unzip()
Triangle[] getTriangles()
Line[] getLines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |