|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcolladaLoader.ColladaLoader
public class ColladaLoader
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
Field Summary | |
---|---|
private processing.core.PApplet |
applet
|
private Line[] |
lines
|
private static ColladaLoader |
loader
|
private Triangle[] |
triangles
|
Constructor Summary | |
---|---|
private |
ColladaLoader(java.lang.String filename,
processing.core.PApplet applet)
is a private constructor...please use getInstance() |
Method Summary | |
---|---|
void |
draw()
|
static ColladaLoader |
getInstance(java.lang.String filename,
processing.core.PApplet applet)
This Methode instantiates the Collada-Loader and prepares the triangles and lines for further use |
Line[] |
getLines()
|
Triangle[] |
getTriangles()
|
void |
rotate(float radiant,
char axis)
Rotates the Model in X,Y,or Z Axis |
void |
scale(float factor)
makes the model smaller or bigger |
void |
shift(float len,
char axis)
shifts the model along the axis x,y or z |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static ColladaLoader loader
private Triangle[] triangles
private Line[] lines
private processing.core.PApplet applet
Constructor Detail |
---|
private ColladaLoader(java.lang.String filename, processing.core.PApplet applet)
the
- Filename (either 'foo.dae' or 'foo.kmz')the
- main applet of processing (if you'r shure that your file contains no texture and you won't use the draw-methode then leave it null)Method Detail |
---|
public static ColladaLoader getInstance(java.lang.String filename, processing.core.PApplet applet)
the
- Filename (either 'foo.dae' or 'foo.kmz'the
- main applet of processing (if you'r shure that your file contains no texture and you won't use the draw-methode then leave it null)
public void draw()
public void scale(float factor)
factor
- < 1.0f = smaller, factor > 1.0f = biggerpublic void shift(float len, char axis)
length
- in pixelsvalid
- charcters for the axis are: 'x','y','z'public void rotate(float radiant, char axis)
radiant
- from 0 to 2*PIvalid
- charcters for the axis are: 'x','y','z'public Line[] getLines()
public Triangle[] getTriangles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |