BenQ Mobile

javax.microedition.m3g
Class Group

java.lang.Object
  extended byjavax.microedition.m3g.Object3D
      extended byjavax.microedition.m3g.Transformable
          extended byjavax.microedition.m3g.Node
              extended byjavax.microedition.m3g.Group
Direct Known Subclasses:
World

public class Group
extends Node

A scene graph node that stores an unordered set of nodes as its children.


Field Summary
 
Fields inherited from class javax.microedition.m3g.Node
NONE, ORIGIN, X_AXIS, Y_AXIS, Z_AXIS
 
Constructor Summary
Group()
          Constructs a new Group node and initializes it with an empty list of children.
 
Method Summary
 void addChild(Node child)
          Adds the given node to this Group, potentially changing the order and indices of the previously added children.
 Node getChild(int index)
          Gets a child by index.
 int getChildCount()
          Gets the number of children in this Group.
 boolean pick(int scope, float x, float y, Camera camera, RayIntersection ri)
          Picks the first Mesh or scaled Sprite3D in this Group that is enabled for picking, is intercepted by the given pick ray, and is in the specified scope.
 boolean pick(int scope, float ox, float oy, float oz, float dx, float dy, float dz, RayIntersection ri)
          Picks the first Mesh in this Group that is intercepted by the given pick ray and is in the specified scope.
 void removeChild(Node child)
          Removes the given node from this Group, potentially changing the order and indices of the remaining children.
 
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

Group

public Group()
Constructs a new Group node and initializes it with an empty list of children.

Method Detail

addChild

public void addChild(Node child)
Adds the given node to this Group, potentially changing the order and indices of the previously added children.


removeChild

public void removeChild(Node child)
Removes the given node from this Group, potentially changing the order and indices of the remaining children.


getChildCount

public int getChildCount()
Gets the number of children in this Group.


getChild

public Node getChild(int index)
Gets a child by index.


pick

public boolean pick(int scope,
                    float ox,
                    float oy,
                    float oz,
                    float dx,
                    float dy,
                    float dz,
                    RayIntersection ri)
Picks the first Mesh in this Group that is intercepted by the given pick ray and is in the specified scope.


pick

public boolean pick(int scope,
                    float x,
                    float y,
                    Camera camera,
                    RayIntersection ri)
Picks the first Mesh or scaled Sprite3D in this Group that is enabled for picking, is intercepted by the given pick ray, and is in the specified scope.


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.