com.jme.scene.shadow
Class ShadowEdge
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
ShadowEdge
public ShadowEdge(int p0,
int p1)
- Parameters:
p0
- the first pointp1
- the second point
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