|
Aviatrix3D 2.1.0 |
|||||||||
| 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.Layer
org.j3d.aviatrix3d.SimpleLayer2D
public class SimpleLayer2D
An layer definition that only allows a single viewport that covers the entire area as it's child.
Internationalisation Resource Names
| Field Summary |
|---|
| Fields inherited from class org.j3d.aviatrix3d.Layer |
|---|
COMPOSITE, COMPOSITE_2D, layerType, SIMPLE, SIMPLE_2D |
| Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
| Constructor Summary | |
|---|---|
SimpleLayer2D()
Construct a new layer instance |
|
| Method Summary | |
|---|---|
ViewportCullable |
getCullableViewport(int viewportIndex)
Get the cullable layer child that for the given layer index. |
Viewport2D |
getViewport()
Get the currently set viewport instance. |
boolean |
isActiveSoundLayer()
Check to see if this is the currently active layer for sound rendering. |
void |
makeActiveSoundLayer()
Set this layer to be the currently active sound layer. |
int |
numCullableChildren()
Returns the number of valid cullable children to process. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
void |
setViewport(Viewport2D vp)
Set a new viewport instance to be used by this layer. |
| Methods inherited from class org.j3d.aviatrix3d.Layer |
|---|
compareTo, equals, equals, getCullable, getType |
| Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleLayer2D()
| Method Detail |
|---|
public ViewportCullable getCullableViewport(int viewportIndex)
public int numCullableChildren()
protected void setUpdateHandler(NodeUpdateHandler handler)
setUpdateHandler in class SceneGraphObjecthandler - The instance to use as a handlerprotected void setLive(boolean state)
setLive in class SceneGraphObjectstate - true if this should be marked as live now
public void makeActiveSoundLayer()
throws InvalidWriteTimingException
InvalidWriteTimingException - An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic boolean isActiveSoundLayer()
makeActiveSoundLayer(). The effects, however, will be rendered
starting the frame that this is set.
public void setViewport(Viewport2D 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 viewport instance to use, or null to clear
InvalidWriteTimingException - An attempt was made to write outside
of the NodeUpdateListener data changed callback method
AlreadyParentedException - This scene already has a current parent
preventing it from being usedpublic Viewport2D getViewport()
|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||