com.jme.scene.shadow
Class ShadowEdge

java.lang.Object
  extended by com.jme.scene.shadow.ShadowEdge
All Implemented Interfaces:
Savable

public class ShadowEdge
extends java.lang.Object
implements Savable

ShadowEdge Holds the indices of two points that form an edge in a ShadowTriangle

Version:
$Id: ShadowEdge.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mike Talbot (some code from a shadow implementation written Jan 2005), Joshua Slack

Field Summary
 int p0
          The indices of the two points comprising this edge.
 int p1
          The indices of the two points comprising this edge.
 int triangle
          triangle (int) the triangle number (in an occluder) to which the edge is connected or INVALID_TRIANGLE if not connected.
 
Constructor Summary
ShadowEdge(int p0, int p1)
           
 
Method Summary
 java.lang.Class getClassTag()
           
 void read(JMEImporter e)
           
 void write(JMEExporter e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

triangle

public int triangle
triangle (int) the triangle number (in an occluder) to which the edge is connected or INVALID_TRIANGLE if not connected.


p0

public int p0
The indices of the two points comprising this edge.


p1

public int p1
The indices of the two points comprising this edge.

Constructor Detail

ShadowEdge

public ShadowEdge(int p0,
                  int p1)
Parameters:
p0 - the first point
p1 - the second point
Method Detail

write

public void write(JMEExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Throws:
java.io.IOException

read

public void read(JMEImporter e)
          throws java.io.IOException
Specified by:
read in interface Savable
Throws:
java.io.IOException

getClassTag

public java.lang.Class getClassTag()
Specified by:
getClassTag in interface Savable