colladaLoader.xmlMapping
Class Effect

java.lang.Object
  extended by colladaLoader.xmlMapping.Effect

 class Effect
extends java.lang.Object

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 maps the effect-tag

Version:
1.0
Author:
Markus Zimmermann http://www.die-seite.ch

Field Summary
private  float[] color
           
private  boolean hasTexture
           
private  java.lang.String ID
           
private  Image image
           
 
Constructor Summary
Effect(processing.xml.XMLElement effect, Library_Images images)
           
 
Method Summary
(package private)  float[] getColor()
          returns an Array in the Format [red,green,blue,transparent]
(package private)  java.lang.String getID()
           
(package private)  Image getImage()
          returns the image of the texture
(package private)  boolean hasTexture()
          gives the answer if the effect contains a color or an image
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

private java.lang.String ID

image

private Image image

color

private float[] color

hasTexture

private boolean hasTexture
Constructor Detail

Effect

Effect(processing.xml.XMLElement effect,
       Library_Images images)
Method Detail

getID

java.lang.String getID()
Returns:
the ID of the Effect-Tag

hasTexture

boolean hasTexture()
gives the answer if the effect contains a color or an image

Returns:
false on color, true on image

getImage

Image getImage()
returns the image of the texture

Returns:
the image

getColor

float[] getColor()
returns an Array in the Format [red,green,blue,transparent]

Returns:
the color

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object