|
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.ViewportLayer
org.j3d.aviatrix3d.ViewportLayer2D
public class ViewportLayer2D
An ViewportLayer that supports only 2D-based rendering concepts.
Internationalisation Resource Names
| Field Summary |
|---|
| Fields inherited from class org.j3d.aviatrix3d.ViewportLayer |
|---|
FLAT, layerType, MULTIPASS, SIMPLE, viewHeight, viewWidth, viewX, viewY |
| Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
| Constructor Summary | |
|---|---|
ViewportLayer2D()
Construct a new layer instance. |
|
| Method Summary | |
|---|---|
SceneCullable |
getCullableScene()
Get the cullable layer child that for the given layer index. |
Scene2D |
getScene()
Get the currently set scene instance. |
boolean |
isActiveSoundLayer()
Check to see if this is the currently active layer for sound rendering. |
boolean |
isAudioSource()
Check to see if this render pass is the one that also has the spatialised audio to be rendered for this frame. |
boolean |
isMultipassViewport()
Check to see if this is a multipass cullable or single pass. |
void |
makeActiveSoundLayer()
Set this layer to be the currently active sound layer. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
void |
setScene(Scene2D sc)
Set a new scene instance to be used by this layer. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
| Methods inherited from class org.j3d.aviatrix3d.ViewportLayer |
|---|
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewportLayer2D()
| Method Detail |
|---|
public boolean isMultipassViewport()
isMultipassViewport in interface ViewportLayerCullablepublic boolean isAudioSource()
isAudioSource in interface ViewportLayerCullablepublic SceneCullable getCullableScene()
getCullableScene in interface ViewportLayerCullableprotected 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
InvalidWriteTimingExceptionpublic boolean isActiveSoundLayer()
makeActiveSoundLayer(). The effects, however, will be rendered
starting the frame that this is set.
public void setScene(Scene2D sc)
throws InvalidWriteTimingException,
AlreadyParentedException
Note that a scene cannot have more than one parent, so sharing it between layers 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 Scene2D getScene()
|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||