|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.simulation.X3DSimManager
Executes the algorithms for the position and orientation of simulation components as scheduled by the ChronManager. Handles the initial and ongoing construction and deconstruction of the X3D scene. Manages the interactions of simulation components with the X3D browser.
Profile,
ExternalBrowser,
ChronManager| Method Summary | |
void |
addIdentificationListener(IdentificationListener il)
Add a listener for IdentificationEvents |
void |
addPlatformComponent(org.w3c.dom.Element component)
Add a visual component to the X3D browser |
void |
addSimListener(SimListener sl)
Add a listener for SimEvents |
void |
addSystemComponent(org.w3c.dom.Element component)
Add a visual component to the X3D browser |
void |
browserChanged(org.web3d.x3d.sai.BrowserEvent be)
The Browser Listener. |
protected void |
fireIdentificationEvent(int type,
Identification ident)
Send an IdentificationEvent to all registered listeners |
protected void |
fireSimEvent(SimEvent se)
Send a SimEvent to all registered listeners |
float |
getBrowserFrameRate()
Return the X3D browser frame rate. |
boolean |
getEnabled()
Return the enable state. |
NavManager |
getNavManager()
Return the active NavManager |
Length |
getScale()
Return the scale at which the simulation is displayed. |
void |
readableFieldChanged(org.web3d.x3d.sai.X3DFieldEvent xfe)
Field events handler. |
void |
removeIdentificationListener(IdentificationListener il)
Remove a listener for IdentificationEvents |
void |
removePlatformComponent(org.w3c.dom.Element component)
Remove a visual component from the X3D browser |
void |
removeSimListener(SimListener sl)
Remove a listener for SimEvents |
void |
removeSystemComponent(org.w3c.dom.Element component)
Remove a visual component from the X3D browser |
void |
run()
The per-simulation-frame task, updates the simulation object's properties. |
void |
setBrowser(org.web3d.x3d.sai.ExternalBrowser newBrowser)
Initialize the sim manager's visualization capabilities utilizing the argument X3D Browser object. |
void |
setChronometer(Chronometer chronometer)
Set the active Chronometer. |
void |
setEnabled(boolean enabled)
Set the enable state. |
void |
setRootNode(RootNode newRootNode)
Set the root node of the simulation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void run()
ChronManager.
run in interface SimManagerpublic void setChronometer(Chronometer chronometer)
Chronometer.
setChronometer in interface SimManagerchronometer - The Chronometer.public void setEnabled(boolean enabled)
setEnabled in interface SimManagerenabled - The state flag.public boolean getEnabled()
getEnabled in interface SimManagerpublic void addSimListener(SimListener sl)
SimEvents
addSimListener in interface SimManagersl - The listenerpublic void removeSimListener(SimListener sl)
SimEvents
removeSimListener in interface SimManagersl - the listenerpublic void browserChanged(org.web3d.x3d.sai.BrowserEvent be)
browserChanged in interface org.web3d.x3d.sai.BrowserListenerpublic void readableFieldChanged(org.web3d.x3d.sai.X3DFieldEvent xfe)
readableFieldChanged in interface org.web3d.x3d.sai.X3DFieldEventListenerpublic NavManager getNavManager()
NavManager
NavManagerpublic void setBrowser(org.web3d.x3d.sai.ExternalBrowser newBrowser)
newBrowser - The X3D browser object for displaying the visualization
of the simulation. A null value will stop any currently running visualization.public void setRootNode(RootNode newRootNode)
Note: This method should only be called once upon simulation initialization. Logic has not yet been implemented to reset the root system once it has been established.
newRootNode - The RootNode of the simulation.public Length getScale()
public float getBrowserFrameRate()
public void addSystemComponent(org.w3c.dom.Element component)
component - the Element descriptor of the visual componentpublic void removeSystemComponent(org.w3c.dom.Element component)
component - the Element descriptor of the visual componentpublic void addPlatformComponent(org.w3c.dom.Element component)
component - the Element descriptor of the visual componentpublic void removePlatformComponent(org.w3c.dom.Element component)
component - the Element descriptor of the visual componentpublic void addIdentificationListener(IdentificationListener il)
IdentificationEvents
il - The listenerpublic void removeIdentificationListener(IdentificationListener il)
IdentificationEvents
il - The listener
protected void fireIdentificationEvent(int type,
Identification ident)
IdentificationEvent to all registered listeners
type - The action which caused the eventident - The Identification object.protected void fireSimEvent(SimEvent se)
SimEvent to all registered listeners
se - The SimEvent to send
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||