Xj3D VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLTextureListener

All Known Implementing Classes:
J3DTerrainManager

public interface VRMLTextureListener

The listener interface for receiving notice that a texture has changed.

Version:
$Revision: 1.3 $
Author:
Alan Hudson

Method Summary
 void textureImageChanged(int len, VRMLNodeType[] node, java.nio.Buffer[] image, java.lang.String[] url)
          Invoked when all of the underlying images have changed.
 void textureImageChanged(int len, VRMLNodeType[] node, java.awt.image.RenderedImage[] image, java.lang.String[] url)
          Invoked when all of the underlying images have changed.
 void textureImageChanged(int idx, VRMLNodeType node, java.nio.Buffer image, java.lang.String url)
          Invoked when an underlying image has changed.
 void textureImageChanged(int idx, VRMLNodeType node, java.awt.image.RenderedImage image, java.lang.String url)
          Invoked when an underlying image has changed.
 void textureParamsChanged(int idx, int[] mode, int[] source, int[] function, float alpha, float[] color)
          Invoked when the texture parameters have changed.
 void textureParamsChanged(int idx, int mode, int source, int function, float alpha, float[] color)
          Invoked when the texture parameters have changed.
 

Method Detail

textureImageChanged

public void textureImageChanged(int idx,
                                VRMLNodeType node,
                                java.awt.image.RenderedImage image,
                                java.lang.String url)
Invoked when an underlying image has changed.

Parameters:
idx - The stage which changed.
node - The texture which changed.
image - The image for this texture.
url - The url used to load this image.

textureImageChanged

public void textureImageChanged(int len,
                                VRMLNodeType[] node,
                                java.awt.image.RenderedImage[] image,
                                java.lang.String[] url)
Invoked when all of the underlying images have changed.

Parameters:
len - The number of valid entries in the image array.
node - The textures which changed.
image - The images for this texture.
url - The urls used to load these images.

textureImageChanged

public void textureImageChanged(int idx,
                                VRMLNodeType node,
                                java.nio.Buffer image,
                                java.lang.String url)
Invoked when an underlying image has changed.

Parameters:
idx - The stage which changed.
node - The texture which changed.
image - The image as a data buffer for this texture.
url - The url used to load this image.

textureImageChanged

public void textureImageChanged(int len,
                                VRMLNodeType[] node,
                                java.nio.Buffer[] image,
                                java.lang.String[] url)
Invoked when all of the underlying images have changed.

Parameters:
len - The number of valid entries in the image array.
node - The textures which changed.
image - The images as data buffers for this texture.
url - The urls used to load these images.

textureParamsChanged

public void textureParamsChanged(int idx,
                                 int mode,
                                 int source,
                                 int function,
                                 float alpha,
                                 float[] color)
Invoked when the texture parameters have changed. The most effecient route is to set the parameters before the image.

Parameters:
idx - The texture index which changed.
mode - The mode for the stage.
source - The source for the stage.
function - The function to apply to the stage values.
alpha - The alpha value to use for modes requiring it.
color - The color to use for modes requiring it. 3 Component color.

textureParamsChanged

public void textureParamsChanged(int idx,
                                 int[] mode,
                                 int[] source,
                                 int[] function,
                                 float alpha,
                                 float[] color)
Invoked when the texture parameters have changed. The most effecient route is to set the parameters before the image.

Parameters:
idx - The texture index which changed.
mode - The mode for the stage.
source - The source for the stage.
function - The function to apply to the stage values.
alpha - The alpha value to use for modes requiring it.
color - The color to use for modes requiring it. An array of 3 component colors.

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium