nl.tudelft.goal.ut2004.visualizer.map
Class BlendTriangle

Package class diagram package BlendTriangle
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.map.BlendTriangle

public class BlendTriangle
extends Object

Storage structure used during blending phase of rendering. Stores triangle in worldview with necessary info. For now only colors Only triangle to make sorting and possible intersections easy. Poly may be more fitting.

Author:
Honza

Field Summary
protected  BlendVertex[] verts
          Vertex of triangle.
 
Constructor Summary
BlendTriangle()
           
 
Method Summary
 BlendVertex[] getVerts()
          Return actual collection of vers, not a copy
 void setVertex(int i, cz.cuni.amis.pogamut.base3d.worldview.object.Location location, GlColor color)
          Create new BlendVertex for vertex i of poly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verts

protected BlendVertex[] verts
Vertex of triangle.

Constructor Detail

BlendTriangle

public BlendTriangle()
Method Detail

getVerts

public BlendVertex[] getVerts()
Return actual collection of vers, not a copy


setVertex

public void setVertex(int i,
                      cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
                      GlColor color)
Create new BlendVertex for vertex i of poly.

Parameters:
i - index of vertex, from zero to num of verts
location - location fo vertex
color - color f vertex


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.