|
Aviatrix3D 2.0 Beta 2 |
||||||||||
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.SimpleViewport
A viewport that contains a single scene, with no internal layering.
Field Summary | |
protected static java.lang.String |
HAS_PARENT_MSG
Message about code that is not valid parent |
Fields inherited from class org.j3d.aviatrix3d.Viewport |
COMPOSITE, FLAT, 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 | |
SimpleViewport()
Construct a new, empty, viewport instance |
Method Summary | |
ViewportLayerCullable |
getCullableLayer(int viewportIndex)
Get the cullable layer child that for the given layer index. |
SceneCullable |
getCullableScene()
Get the cullable layer child that for the given layer index. |
SimpleScene |
getScene()
Get the currently set scene instance. |
boolean |
isMultipassViewport()
Check to see if this is a multipass cullable or single pass. |
int |
numCullableChildren()
Returns the number of valid cullable children to process. |
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. |
void |
setScene(SimpleScene sc)
Set a new scene instance to be used by this viewport. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph 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 |
Methods inherited from interface org.j3d.aviatrix3d.rendering.ViewportCullable |
isValid |
Field Detail |
protected static final java.lang.String HAS_PARENT_MSG
Constructor Detail |
public SimpleViewport()
Method Detail |
public ViewportLayerCullable getCullableLayer(int viewportIndex)
getCullableLayer
in interface ViewportCullable
public int numCullableChildren()
numCullableChildren
in interface ViewportCullable
public boolean isMultipassViewport()
isMultipassViewport
in interface ViewportLayerCullable
public SceneCullable getCullableScene()
getCullableScene
in interface ViewportLayerCullable
public 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 methodprotected 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 setScene(SimpleScene sc) throws InvalidWriteTimingException, AlreadyParentedException
Note that a scene cannot have more than one parent, so sharing it between viewports will result in an error.
sc
- The scene instance to use, or null to clear
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback method
AlreadyParentedException
- This scene already has a current parent
preventing it from being usedpublic SimpleScene getScene()
|
Aviatrix3D 2.0 Beta 2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |