pl.webnet.JaTrac
Class Mapping
java.lang.Object
|
+--pl.webnet.JaTrac.TreeNode
|
+--pl.webnet.JaTrac.Mapping
- All Implemented Interfaces:
- Indexable, XmlSettable
- Direct Known Subclasses:
- PlanarMapping, SphericalMapping
- class Mapping
- extends TreeNode
- implements XmlSettable, Indexable
Field Summary |
(package private) static java.util.List |
index
|
(package private) java.lang.String |
name
|
(package private) pl.webnet.JaTrac.Level |
parent
|
(package private) static pl.webnet.JaTrac.Level |
root
|
(package private) pl.webnet.JaTrac.Surface |
surface
|
Method Summary |
java.lang.String[] |
getAttachArray()
Get object's attach array. |
java.lang.String |
getName()
|
java.lang.String[] |
getParamArray()
Get object's parameter array. |
pl.webnet.JaTrac.Point |
getUV(pl.webnet.JaTrac.Point hitPoint,
pl.webnet.JaTrac.Vec normal)
|
java.lang.Object |
initialize()
Initialize object's internal state after setting all params from XML file. |
void |
setParent(pl.webnet.JaTrac.Level parent)
|
static void |
setRoot(pl.webnet.JaTrac.Level root)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
surface
pl.webnet.JaTrac.Surface surface
index
static java.util.List index
name
java.lang.String name
parent
pl.webnet.JaTrac.Level parent
root
static pl.webnet.JaTrac.Level root
Mapping
public Mapping()
getName
public java.lang.String getName()
- Specified by:
getName
in interface Indexable
getUV
public pl.webnet.JaTrac.Point getUV(pl.webnet.JaTrac.Point hitPoint,
pl.webnet.JaTrac.Vec normal)
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.
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
setRoot
public static void setRoot(pl.webnet.JaTrac.Level root)
setParent
public void setParent(pl.webnet.JaTrac.Level parent)