|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Viewport
org.j3d.aviatrix3d.CompositeViewport
An viewport that may, itself contain a large collection of layers.
Like the global layers, this viewport allows a selection of local layers that are specific to this viewport to be defined. These viewport layers follow a different structure from the main system layer. All layers in this viewport are rendered at the full size of the viewport.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.Viewport |
COMPOSITE, MULTIPASS, SIMPLE, viewHeight, viewportType, viewWidth, viewX, viewY |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
CompositeViewport()
Construct a new, empty, viewport instance |
Method Summary | |
void |
addViewportLayer(ViewportLayer vp)
Add a new viewport to be used by this layer. |
void |
clearViewportLayers()
Remove all the layers from this viewport. |
ViewportLayer |
getViewportLayer(int num)
Get the currently set layer instance at a specific index. |
int |
numViewportLayers()
Return how many layers this viewport contains. |
ViewportLayer |
removeViewportLayer(int num)
Remove the given layer at the specified index from this layer. |
void |
removeViewportLayer(ViewportLayer vp)
Remove the given viewport from this layer. |
void |
setDimensions(int x,
int y,
int width,
int height)
Set the dimensions of the viewport in pixels. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the viewportgraph update handler for this node. |
Methods inherited from class org.j3d.aviatrix3d.Viewport |
getDimensions, getHeight, getType, getWidth, getX, getY, isValid |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, checkForCyclicParent, dataChanged, getUserData, isLive, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompositeViewport()
Method Detail |
protected void setUpdateHandler(NodeUpdateHandler handler)
setUpdateHandler
in class SceneGraphObject
handler
- The instance to use as a handlerprotected void setLive(boolean state)
setLive
in class SceneGraphObject
state
- true if this should be marked as live nowpublic void setDimensions(int x, int y, int width, int height) throws InvalidWriteTimingException
setDimensions
in class Viewport
x
- The lower left x coordinate for the viewy
- The lower left y coordinate for the viewwidth
- The width of the viewport in pixelsheight
- The height of the viewport in pixels
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic void addViewportLayer(ViewportLayer vp) throws InvalidWriteTimingException, AlreadyParentedException
Note that a viewport cannot have more than one parent, so sharing it between layers will result in an error.
vp
- The layer instance to use
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback method
AlreadyParentedException
- This viewport already has a current parent
preventing it from being usedpublic void removeViewportLayer(ViewportLayer vp)
vp
- The viewport instance to be removed
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic ViewportLayer removeViewportLayer(int num)
num
- The index of the layer to remove
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic void clearViewportLayers()
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic ViewportLayer getViewportLayer(int num)
num
- The index of the viewport to fetch
public int numViewportLayers()
|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |