BenQ Mobile

javax.microedition.m3g
Class MorphingMesh

java.lang.Object
  extended byjavax.microedition.m3g.Object3D
      extended byjavax.microedition.m3g.Transformable
          extended byjavax.microedition.m3g.Node
              extended byjavax.microedition.m3g.Mesh
                  extended byjavax.microedition.m3g.MorphingMesh

public class MorphingMesh
extends Mesh

A scene graph node that represents a vertex morphing polygon mesh.


Field Summary
 
Fields inherited from class javax.microedition.m3g.Node
NONE, ORIGIN, X_AXIS, Y_AXIS, Z_AXIS
 
Constructor Summary
MorphingMesh(VertexBuffer base, VertexBuffer[] targets, IndexBuffer[] submeshes, Appearance[] appearances)
          Constructs a new MorphingMesh with the given base mesh and morph targets.
MorphingMesh(VertexBuffer base, VertexBuffer[] targets, IndexBuffer submesh, Appearance appearance)
          Constructs a new MorphingMesh with the given base mesh and morph targets.
 
Method Summary
 VertexBuffer getMorphTarget(int index)
          Returns the morph target VertexBuffer at the given index.
 int getMorphTargetCount()
          Returns the number of morph targets in this MorphingMesh.
 void getWeights(float[] weights)
          Gets the current morph target weights for this mesh.
 void setWeights(float[] weights)
          Sets the weights for all morph targets in this mesh.
 
Methods inherited from class javax.microedition.m3g.Mesh
getAppearance, getIndexBuffer, getSubmeshCount, getVertexBuffer, setAppearance
 
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

MorphingMesh

public MorphingMesh(VertexBuffer base,
                    VertexBuffer[] targets,
                    IndexBuffer submesh,
                    Appearance appearance)
Constructs a new MorphingMesh with the given base mesh and morph targets.


MorphingMesh

public MorphingMesh(VertexBuffer base,
                    VertexBuffer[] targets,
                    IndexBuffer[] submeshes,
                    Appearance[] appearances)
Constructs a new MorphingMesh with the given base mesh and morph targets.

Method Detail

getMorphTarget

public VertexBuffer getMorphTarget(int index)
Returns the morph target VertexBuffer at the given index.


getMorphTargetCount

public int getMorphTargetCount()
Returns the number of morph targets in this MorphingMesh.


setWeights

public void setWeights(float[] weights)
Sets the weights for all morph targets in this mesh.


getWeights

public void getWeights(float[] weights)
Gets the current morph target weights for this mesh.


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.