|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pl.webnet.JaTrac.Scene
This class contains a complete scene with lists of all primitives, lights and mappings.
Field Summary | |
(package private) pl.webnet.JaTrac.Camera |
camera
|
(package private) pl.webnet.JaTrac.IntersectionTester |
iTester
|
(package private) static java.util.Vector |
lights
|
(package private) pl.webnet.JaTrac.Level |
rootNode
|
(package private) pl.webnet.JaTrac.Spectrum |
spectrum
|
Constructor Summary | |
Scene()
|
Method Summary | |
void |
add(pl.webnet.JaTrac.Level level)
|
static void |
add(pl.webnet.JaTrac.Light light)
Add new light to the scene. |
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. |
java.util.Iterator |
iterator()
This Iterator is used to iterate through all primitives in the scene. |
void |
preprocessSurfaces()
Go through levels of the hierarchy and calculate what Surfaces affect each level. |
private void |
preprocessSurfaces(pl.webnet.JaTrac.Level level,
java.util.Vector collected)
Go through levels of the hierarchy and calculate what Surfaces affect each level. |
void |
set(pl.webnet.JaTrac.IntersectionTester it)
|
void |
setCamera(pl.webnet.JaTrac.Camera cam)
|
void |
setSpectrum(pl.webnet.JaTrac.Spectrum s)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
pl.webnet.JaTrac.Camera camera
pl.webnet.JaTrac.Spectrum spectrum
pl.webnet.JaTrac.Level rootNode
static java.util.Vector lights
pl.webnet.JaTrac.IntersectionTester iTester
Constructor Detail |
public Scene()
Method Detail |
public java.util.Iterator iterator()
public static void add(pl.webnet.JaTrac.Light light)
light
- the light to be put on the scenepublic void add(pl.webnet.JaTrac.TreeNode tn)
public void add(pl.webnet.JaTrac.Level level)
public void set(pl.webnet.JaTrac.IntersectionTester it)
public java.lang.String[] getParamArray()
XmlSettable
getParamArray
in interface XmlSettable
public java.lang.String[] getAttachArray()
XmlSettable
getAttachArray
in interface XmlSettable
public java.lang.Object initialize()
XmlSettable
initialize
in interface XmlSettable
public void setCamera(pl.webnet.JaTrac.Camera cam)
public void setSpectrum(pl.webnet.JaTrac.Spectrum s)
public void preprocessSurfaces()
private void preprocessSurfaces(pl.webnet.JaTrac.Level level, java.util.Vector collected)
level
- top node of the tree to processcollected
- list of surfaces collected as yet (for recursive use)public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |