pl.webnet.JaTrac
Class Level

java.lang.Object
  |
  +--pl.webnet.JaTrac.TreeNode
        |
        +--pl.webnet.JaTrac.Level
All Implemented Interfaces:
XmlSettable

class Level
extends TreeNode
implements XmlSettable

Level handles one level of object (primitive) hierarchy


Field Summary
(package private)  java.util.Vector affectingMappings
           
(package private)  pl.webnet.JaTrac.Surface averageSurface
           
(package private)  java.util.Vector children
           
static int CSG_AND
           
static int CSG_EXOR
           
static int CSG_OR
           
static int CSG_SUB
           
(package private)  int csgMode
           
(package private)  java.util.Vector lights
           
(package private)  java.util.Vector mappings
           
(package private)  java.lang.String name
           
(package private)  pl.webnet.JaTrac.Level parent
           
(package private) static pl.webnet.JaTrac.Level root
           
 
Constructor Summary
Level()
           
 
Method Summary
 void add(pl.webnet.JaTrac.Level level)
           
 void add(pl.webnet.JaTrac.Light light)
           
 void add(pl.webnet.JaTrac.Mapping mapping)
           
 void add(pl.webnet.JaTrac.Primitive prim)
           
 void add(pl.webnet.JaTrac.TreeNode tn)
           
 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 setCSGMode(java.lang.String csg)
           
 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
 

Field Detail

CSG_OR

public static final int CSG_OR
See Also:
Constant Field Values

CSG_AND

public static final int CSG_AND
See Also:
Constant Field Values

CSG_EXOR

public static final int CSG_EXOR
See Also:
Constant Field Values

CSG_SUB

public static final int CSG_SUB
See Also:
Constant Field Values

csgMode

int csgMode

children

java.util.Vector children

mappings

java.util.Vector mappings

lights

java.util.Vector lights

affectingMappings

java.util.Vector affectingMappings

averageSurface

pl.webnet.JaTrac.Surface averageSurface

name

java.lang.String name

parent

pl.webnet.JaTrac.Level parent

root

static pl.webnet.JaTrac.Level root
Constructor Detail

Level

public Level()
Method Detail

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.

setCSGMode

public void setCSGMode(java.lang.String csg)

add

public void add(pl.webnet.JaTrac.Mapping mapping)

add

public void add(pl.webnet.JaTrac.Light light)

add

public void add(pl.webnet.JaTrac.Primitive prim)

add

public void add(pl.webnet.JaTrac.Level level)

add

public void add(pl.webnet.JaTrac.TreeNode tn)

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)