colladaLoader.xmlMapping
Class Geometry

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

 class Geometry
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 Geometry -tag

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

Field Summary
private  java.lang.String ID
           
private  java.util.HashSet<Lines> linesSet
           
private  java.util.HashSet<Triangles> trianglesSet
           
 
Constructor Summary
Geometry(processing.xml.XMLElement geometry)
           
 
Method Summary
(package private)  void bindMaterials(Library_Materials matlib, java.util.HashMap<java.lang.String,java.lang.String> bindmap)
          sets all to the Lines and Triangles its materials
(package private)  java.lang.String getID()
           
(package private)  java.util.HashSet<Lines> getLines()
          returns if any lines found in xml-File, null if not
(package private)  java.util.HashSet<Triangles> getTriangles()
          returns if any triangles found in xml-File, null if not
 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

trianglesSet

private java.util.HashSet<Triangles> trianglesSet

linesSet

private java.util.HashSet<Lines> linesSet
Constructor Detail

Geometry

Geometry(processing.xml.XMLElement geometry)
Method Detail

bindMaterials

void bindMaterials(Library_Materials matlib,
                   java.util.HashMap<java.lang.String,java.lang.String> bindmap)
sets all to the Lines and Triangles its materials

Parameters:
matlib -
bindmap - in the format Hashmap<materialSymbol, materialID>

getID

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

getTriangles

java.util.HashSet<Triangles> getTriangles()
returns if any triangles found in xml-File, null if not

Returns:

getLines

java.util.HashSet<Lines> getLines()
returns if any lines found in xml-File, null if not

Returns:

toString

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