colladaLoader.xmlMapping
Class Lines

java.lang.Object
  extended by colladaLoader.xmlMapping.SubTag
      extended by colladaLoader.xmlMapping.Lines

 class Lines
extends SubTag

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

helperclass for lines-tag inside Geometry-tag (contains one or more Lines). It maps all points and their orders

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

Field Summary
private  processing.xml.XMLElement lines
           
private  Material material
           
private  java.lang.String materialSymbol
           
private  int offsetVertex
           
private  int[][] pointIndexMatrix
           
private  Source vertexSource
           
 
Constructor Summary
Lines(processing.xml.XMLElement lines, java.util.HashMap<java.lang.String,SubTag> sources)
           
 
Method Summary
(package private)  java.lang.String getID()
          returns the ID of this xml-tag
(package private)  Material getMaterial()
           
(package private)  java.lang.String getNextSource()
          links to the next sub-tag (if exists)to get more informations.
(package private)  int getOffsetVertex()
           
(package private)  int[][] getPointIndexMatrix()
           
(package private)  Source getVertexSource()
           
(package private)  void setMaterial(Material m)
          invoke that methode after the Object is initiated.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

materialSymbol

private java.lang.String materialSymbol

material

private Material material

vertexSource

private Source vertexSource

offsetVertex

private int offsetVertex

pointIndexMatrix

private int[][] pointIndexMatrix

lines

private processing.xml.XMLElement lines
Constructor Detail

Lines

Lines(processing.xml.XMLElement lines,
      java.util.HashMap<java.lang.String,SubTag> sources)
Method Detail

setMaterial

void setMaterial(Material m)
invoke that methode after the Object is initiated. Because of cyclic depencies at runtime its not possible to set Material at initiating-time

Parameters:
instance - of Material

getVertexSource

Source getVertexSource()
Returns:
the source of the vertices Position-Points (in 3D)

getOffsetVertex

int getOffsetVertex()
Returns:
the offset for vertice in the indexmatrix

getPointIndexMatrix

int[][] getPointIndexMatrix()
Returns:
the pointIndexMatrix in the format: [index][offset]

getMaterial

Material getMaterial()
Returns:
the material. It depends of the Runtime if it is null or not

getNextSource

java.lang.String getNextSource()
Description copied from class: SubTag
links to the next sub-tag (if exists)to get more informations. Otherwise it returns the ID

Specified by:
getNextSource in class SubTag
Returns:
the Alias-Name of Material-ID

getID

java.lang.String getID()
Description copied from class: SubTag
returns the ID of this xml-tag

Specified by:
getID in class SubTag
Returns:
generates a Random-ID because the xml-Tag does'nt contain a defined ID

toString

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