BenQ Mobile

javax.microedition.m3g
Class World

java.lang.Object
  extended byjavax.microedition.m3g.Object3D
      extended byjavax.microedition.m3g.Transformable
          extended byjavax.microedition.m3g.Node
              extended byjavax.microedition.m3g.Group
                  extended byjavax.microedition.m3g.World

public class World
extends Group

A special Group node that is a top-level container for scene graphs.


Field Summary
 
Fields inherited from class javax.microedition.m3g.Node
NONE, ORIGIN, X_AXIS, Y_AXIS, Z_AXIS
 
Constructor Summary
World()
          Creates an empty World with default values.
 
Method Summary
 Camera getActiveCamera()
          Gets the currently active camera.
 Background getBackground()
          Retrieves the background settings of this World.
 void setActiveCamera(Camera camera)
          Sets the Camera to use when rendering this World.
 void setBackground(Background background)
          Sets the Background object for this World.
 
Methods inherited from class javax.microedition.m3g.Group
addChild, getChild, getChildCount, pick, pick, removeChild
 
Methods inherited from class javax.microedition.m3g.Node
align, getAlphaFactor, getParent, getScope, getTransformTo, isPickingEnabled, isRenderingEnabled, setAlignment, setAlphaFactor, setPickingEnable, setRenderingEnable, setScope
 
Methods inherited from class javax.microedition.m3g.Transformable
getCompositeTransform, getOrientation, getScale, getTransform, getTranslation, postRotate, preRotate, scale, setOrientation, setScale, setTransform, setTranslation, translate
 
Methods inherited from class javax.microedition.m3g.Object3D
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

World

public World()
Creates an empty World with default values. The default values are: - background : null (clear to black) - active camera : null (the world is not renderable)

Method Detail

setBackground

public void setBackground(Background background)
Sets the Background object for this World.


getBackground

public Background getBackground()
Retrieves the background settings of this World.


setActiveCamera

public void setActiveCamera(Camera camera)
Sets the Camera to use when rendering this World.


getActiveCamera

public Camera getActiveCamera()
Gets the currently active camera.


BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.