|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
org.j3d.renderer.java3d.overlay.OverlayManager
The overlay manager keeps track of all the overlay's on the screen and makes sure they are updated with the view transform once a frame.
The Overlay manager should be placed into the scenegraph where the view transform is. It also assumes that none of the child overlays set have the Canvas3D reference set and so manages that all for them.
| Field Summary |
| Fields inherited from class javax.media.j3d.BranchGroup |
ALLOW_DETACH |
| Fields inherited from class javax.media.j3d.Group |
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE |
| Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
| Constructor Summary | |
OverlayManager(javax.media.j3d.Canvas3D canvas)
Create a new manager that works on the given canvas. |
|
OverlayManager(javax.media.j3d.Canvas3D canvas,
UpdateManager updateManager)
Constructs an overlay window with an update manager. |
|
| Method Summary | |
void |
addOverlay(Overlay overlay)
This adds an overlay into the overlay manager system. |
void |
clearOverlays()
Clear all the current overlays. |
void |
componentHidden(java.awt.event.ComponentEvent e)
Notification that the component has been hidden. |
void |
componentMoved(java.awt.event.ComponentEvent e)
Notification that the component has been moved. |
void |
componentResized(java.awt.event.ComponentEvent e)
Notification that the component has been resized. |
void |
componentShown(java.awt.event.ComponentEvent e)
Notification that the component has been shown. |
UpdateManager |
getUpdateManager()
Returns the UpdateManager responsible for seeing that updates to the Overlay only take place between frames. |
void |
initialize()
Initialise the manager, which in turn initializes all the managed overlays. |
void |
newFrame(javax.media.j3d.Transform3D viewTransform)
Called once a frame to update the different overlays |
void |
removeOverlay(Overlay overlay)
This removes the overlay from the overlay system. |
void |
setPosition(Overlay overlay,
int x,
int y)
Sets the position of the specified overlay |
void |
setUpdateManager(UpdateManager manager)
Set the UpdateManager to the new value. |
void |
viewChanged()
Notification that the canvas's view has changed. |
| Methods inherited from class javax.media.j3d.BranchGroup |
cloneNode, compile, detach, pickAll, pickAllSorted, pickAny, pickClosest |
| Methods inherited from class javax.media.j3d.Group |
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
| Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OverlayManager(javax.media.j3d.Canvas3D canvas)
canvas - The canvas the overlay is drawn on
public OverlayManager(javax.media.j3d.Canvas3D canvas,
UpdateManager updateManager)
canvas - The canvas the overlay is drawn onupdateManager - Responsible for allowing the Overlay to update
between renders. If this is null a default manager is created| Method Detail |
public void viewChanged()
public void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenere - The event that caused this method to be calledpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenere - The event that caused this method to be calledpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenere - The event that caused this method to be calledpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenere - The event that caused this method to be calledpublic void initialize()
public UpdateManager getUpdateManager()
public void setUpdateManager(UpdateManager manager)
public void setPosition(Overlay overlay,
int x,
int y)
public void newFrame(javax.media.j3d.Transform3D viewTransform)
public void addOverlay(Overlay overlay)
overlay - The overlay to addpublic void removeOverlay(Overlay overlay)
overlay - The overlay to removepublic void clearOverlays()
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||