pl.webnet.JaTrac
Class NaiveTester
java.lang.Object
|
+--pl.webnet.JaTrac.IntersectionTester
|
+--pl.webnet.JaTrac.NaiveTester
- All Implemented Interfaces:
- XmlSettable
- final class NaiveTester
- extends IntersectionTester
- implements XmlSettable
Field Summary |
(package private) pl.webnet.JaTrac.Scene |
scene
|
Method Summary |
java.lang.String[] |
getAttachArray()
Get object's attach array. |
java.lang.String[] |
getParamArray()
Get object's parameter array. |
java.lang.Object |
initialize()
Initialize object's internal state after setting all params from XML file. |
void |
initialize(pl.webnet.JaTrac.Scene scene,
pl.webnet.JaTrac.Camera cam)
|
int |
intersect(pl.webnet.JaTrac.Ray ray,
pl.webnet.JaTrac.Level level,
int hits,
boolean shadow)
|
int |
intersectRay(pl.webnet.JaTrac.Ray ray)
|
int |
intersectShadowfeeler(pl.webnet.JaTrac.Ray ray)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scene
pl.webnet.JaTrac.Scene scene
NaiveTester
NaiveTester()
initialize
public void initialize(pl.webnet.JaTrac.Scene scene,
pl.webnet.JaTrac.Camera cam)
- Specified by:
initialize
in class IntersectionTester
intersectRay
public int intersectRay(pl.webnet.JaTrac.Ray ray)
- Specified by:
intersectRay
in class IntersectionTester
intersectShadowfeeler
public int intersectShadowfeeler(pl.webnet.JaTrac.Ray ray)
- Specified by:
intersectShadowfeeler
in class IntersectionTester
intersect
public int intersect(pl.webnet.JaTrac.Ray ray,
pl.webnet.JaTrac.Level level,
int hits,
boolean shadow)
initialize
public java.lang.Object initialize()
- Description copied from interface:
XmlSettable
- Initialize object's internal state after setting all params from XML file.
Called after element's end tag is encountered in XML file.
- Specified by:
initialize
in interface XmlSettable
getParamArray
public java.lang.String[] getParamArray()
- Description copied from interface:
XmlSettable
- Get object's parameter array. The array maps XML element names to variable
names and, if setting one variable is not enough, lists names of functions
to call.
- Specified by:
getParamArray
in interface XmlSettable
- Returns:
- object's parameter array.
getAttachArray
public java.lang.String[] getAttachArray()
- Description copied from interface:
XmlSettable
- Get object's attach array. The array specifies what functions to call to
attach children nodes to this object.
- Specified by:
getAttachArray
in interface XmlSettable
- Returns:
- object's attach array.