|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject | +--javax.media.j3d.NodeComponent | +--javax.media.j3d.TextureAttributes
The TextureAttributes object defines attributes that apply to to texture mapping.
Field Summary | |
static int |
ALLOW_BLEND_COLOR_READ
Specifies that this TextureAttributes object allows reading its texture blend color component information. |
static int |
ALLOW_BLEND_COLOR_WRITE
Specifies that this TextureAttributes object allows writing its texture blend color component information. |
static int |
ALLOW_MODE_READ
Specifies that this TextureAttributes object allows reading its texture mode component information and perspective correction mode. |
static int |
ALLOW_MODE_WRITE
Specifies that this TextureAttributes object allows writing its texture mode component information and perspective correction mode. |
static int |
ALLOW_TRANSFORM_READ
Specifies that this TextureAttributes object allows reading its texture transform component information. |
static int |
ALLOW_TRANSFORM_WRITE
Specifies that this TextureAttributes object allows writing its texture transform component information. |
static int |
BLEND
Blend the texture blend color with the object color. |
static int |
DECAL
Apply the texture color to the object as a decal. |
static int |
FASTEST
Use the fastest available method for perspective correction. |
static int |
MODULATE
Modulate the object color with the texture color. |
static int |
NICEST
Use the nicest (highest quality) available method for texture mapping perspective correction. |
static int |
REPLACE
Replace the object color with the texture color. |
Constructor Summary | |
TextureAttributes()
Constructs a TextureAttributes object with default parameters. |
|
TextureAttributes(int textureMode,
Transform3D transform,
Color4f textureBlendColor,
int perspCorrectionMode)
Construct a TextureAttributes with specified values. |
Method Summary | |
NodeComponent |
cloneNodeComponent()
Creates a new TextureAttributes object. |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Copies the information found in originalNodeComponent to
the current node. |
int |
getPerspectiveCorrectionMode()
Gets perspective correction mode value. |
void |
getTextureBlendColor(Color4f textureBlendColor)
Gets the texture blend color for this appearance component object. |
int |
getTextureMode()
Gets the texture mode parameter for this texture attributes object. |
void |
getTextureTransform(Transform3D transform)
Retrieves a copy of the texture transform object. |
void |
setPerspectiveCorrectionMode(int mode)
Sets perspective correction mode to be used for color and/or texture coordinate interpolation. |
void |
setTextureBlendColor(Color4f textureBlendColor)
Sets the texture blend color for this texture attributes object. |
void |
setTextureBlendColor(float r,
float g,
float b,
float a)
Sets the texture blend color for this appearance component object. |
void |
setTextureMode(int textureMode)
Sets the texture mode parameter for this appearance component object. |
void |
setTextureTransform(Transform3D transform)
Sets the texture transform object used to transform texture coordinates. |
Methods inherited from class javax.media.j3d.NodeComponent |
getDuplicateOnCloneTree,
setDuplicateOnCloneTree |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability,
duplicateSceneGraphObject,
getCapability,
getUserData,
isCompiled,
isLive,
setCapability,
setUserData |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int ALLOW_MODE_READ
public static final int ALLOW_MODE_WRITE
public static final int ALLOW_BLEND_COLOR_READ
public static final int ALLOW_BLEND_COLOR_WRITE
public static final int ALLOW_TRANSFORM_READ
public static final int ALLOW_TRANSFORM_WRITE
public static final int FASTEST
public static final int NICEST
public static final int MODULATE
public static final int DECAL
public static final int BLEND
public static final int REPLACE
Constructor Detail |
public TextureAttributes()
public TextureAttributes(int textureMode, Transform3D transform, Color4f textureBlendColor, int perspCorrectionMode)
Method Detail |
public final void setTextureMode(int textureMode)
textureMode
- the texture mode, one of: MODULATE,
DECAL, BLEND, or REPLACEpublic final int getTextureMode()
public final void setTextureBlendColor(Color4f textureBlendColor)
textureBlendColor
- the texture blend color used when
the mode is BLENDpublic final void setTextureBlendColor(float r, float g, float b, float a)
r
- the red component of the colorg
- the green component of the colorb
- the blue component of the colora
- the alpha component of the colorpublic final void getTextureBlendColor(Color4f textureBlendColor)
textureBlendColor
- the vector that will receive the texture
blend color used when the mode is BLENDpublic final void setTextureTransform(Transform3D transform)
transform
- the new transform objectpublic final void getTextureTransform(Transform3D transform)
transform
- the transform object that will receive the
current texture transform.public final void setPerspectiveCorrectionMode(int mode)
mode
- one of NICEST or FASTEST.
The default value is NICEST.public final int getPerspectiveCorrectionMode()
public NodeComponent cloneNodeComponent()
duplicateNode
method.Node.duplicateNode(javax.media.j3d.Node, boolean)
,
Node.cloneTree()
,
NodeComponent.setDuplicateOnCloneTree(boolean)
public void duplicateNodeComponent(NodeComponent originalNodeComponent)
originalNodeComponent
to
the current node. This routine is called as part of the
cloneTree
operation.originalNodeComponent
- the node to duplicate.Node.cloneTree()
,
Node.duplicateNode(javax.media.j3d.Node, boolean)
,
NodeComponent.setDuplicateOnCloneTree(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |