|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.Object3D
javax.microedition.m3g.Transformable
javax.microedition.m3g.Node
javax.microedition.m3g.Sprite3D
A scene graph node that represents a 2-dimensional image with a 3D position. Sprite3D is a fast, but functionally restricted alternative to textured geometry. A Sprite3D is rendered as a screen-aligned rectangular array of pixels with a constant depth. The apparent size of a sprite may be specified directly in pixels (an unscaled sprite) or indirectly using the transformation from the Sprite3D node to the camera space (a scaled sprite).
Field Summary |
Fields inherited from class javax.microedition.m3g.Node |
NONE, ORIGIN, X_AXIS, Y_AXIS, Z_AXIS |
Constructor Summary | |
Sprite3D(boolean scaled,
Image2D image,
Appearance appearance)
Constructs a new Sprite3D with the given scaling mode, image and appearance. |
Method Summary | |
Appearance |
getAppearance()
Gets the current Appearance of this Sprite3D. |
int |
getCropHeight()
Gets the current cropping rectangle height within the source image. |
int |
getCropWidth()
Gets the current cropping rectangle width within the source image. |
int |
getCropX()
Retrieves the current cropping rectangle X offset relative to the source image top left corner. |
int |
getCropY()
Retrieves the current cropping rectangle Y offset relative to the source image top left corner. |
Image2D |
getImage()
Gets the current Sprite3D image. |
boolean |
isScaled()
Returns the automatic scaling status of this Sprite3D. |
void |
setAppearance(Appearance appearance)
Sets the Appearance of this Sprite3D. |
void |
setCrop(int cropX,
int cropY,
int width,
int height)
Sets a cropping rectangle within the source image. |
void |
setImage(Image2D image)
Sets the sprite image to display. |
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 |
public Sprite3D(boolean scaled, Image2D image, Appearance appearance)
Method Detail |
public boolean isScaled()
public void setAppearance(Appearance appearance)
public Appearance getAppearance()
public void setImage(Image2D image)
public Image2D getImage()
public void setCrop(int cropX, int cropY, int width, int height)
public int getCropX()
public int getCropY()
public int getCropWidth()
public int getCropHeight()
|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |