Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLTexture2DNodeType

All Superinterfaces:
FrameStateListener, VRMLAppearanceChildNodeType, VRMLNode, VRMLNodeType, VRMLTextureNodeType
All Known Subinterfaces:
NRTexture2DNodeType
All Known Implementing Classes:
BaseTexture2DNode

public interface VRMLTexture2DNodeType
extends VRMLTextureNodeType

Specifies a 2D texture for associated geometry.

Version:
$Revision: 1.7 $
Author:
Justin Couch

Method Summary
 NIOBufferImage getImage()
          Get the image representation of this texture.
 boolean getRepeatS()
          Get the value of field repeatS.
 boolean getRepeatT()
          Get the value of field repeatT.
 VRMLNodeType getTextureProperties()
          Get node content for the textureProperties field.
 void setTextureProperties(VRMLNodeType props)
          Set node content as replacement for the textureProperties field.
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLTextureNodeType
addTextureListener, getCacheString, getTextureType, removeTextureListener
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
 
Methods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion
 
Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsComplete
 

Method Detail

getRepeatS

boolean getRepeatS()
Get the value of field repeatS. The field is not writable. Default value is true.

Returns:
The current value of repeatS

getRepeatT

boolean getRepeatT()
Get the value of field repeatT. The field is not writable. Default value is true.

Returns:
The current value of repeatT

getImage

NIOBufferImage getImage()
Get the image representation of this texture.

Returns:
The image.

getTextureProperties

VRMLNodeType getTextureProperties()
                                  throws InvalidFieldException
Get node content for the textureProperties field. This field is only available for X3D 3.2 or later.

Returns:
The current field value
Throws:
InvalidFieldException - This field was request in a field with spec version < 3.2

setTextureProperties

void setTextureProperties(VRMLNodeType props)
                          throws InvalidFieldValueException,
                                 InvalidFieldException
Set node content as replacement for the textureProperties field. This field is only available for X3D 3.2 or later.

Parameters:
props - The new value for geometry. Null will act like delete
Throws:
InvalidFieldValueException - The node does not match the required type.
InvalidFieldException - This field was request in a field with spec version < 3.2

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium