Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLGeometryNodeType

All Superinterfaces:
FrameStateListener, VRMLNode, VRMLNodeType
All Known Subinterfaces:
OGLGeometryNodeType, OGLTextNodeType, VRMLComponentGeometryNodeType, VRMLParametricGeometryNodeType, VRMLTextNodeType
All Known Implementing Classes:
BaseComponentGeometryNode, BaseIndexedGeometryNode, BaseIndexedTriangleGeometryNode, BaseTriangleGeometryNode

public interface VRMLGeometryNodeType
extends VRMLNodeType

Geometry nodes produce renderable geometry and are contained by a Shape node.

All geometry has two common properties that indicate whether to render both sides of the geometry (solid), and the winding of the vertices of the triangle. By default, VRML97/X3D use counter-clockwise ordering, but any of the polygonal nodes may elect to reverse the order.

Version:
$Revision: 1.9 $
Author:
Alan Hudson

Method Summary
 void addLocalColorsListener(LocalColorsListener l)
          Add a listener for local color changes.
 void addTexCoordGenModeChanged(TexCoordGenModeListener l)
          Add a listener for texture coordinate generation mode changes.
 int getNumSets()
          Get the number of texture coordinate sets contained by this node
 java.lang.String getTexCoordGenMode(int setNum)
          Get the texture coordinate generation mode.
 boolean hasLocalColorAlpha()
          Specified whether this node has alpha values in the local colour information.
 boolean hasLocalColors()
          Specified whether this node has color information.
 boolean isCCW()
          Get the value of the CCW field.
 boolean isLightingEnabled()
          Specifies whether this node requires lighting.
 boolean isSolid()
          Get the value of the solid field.
 void removeLocalColorsListener(LocalColorsListener l)
          Remove a listener for local color changes.
 void removeTexCoordGenModeChanged(TexCoordGenModeListener l)
          Remove a listener for texture coordinate generation mode changes.
 
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

isSolid

boolean isSolid()
Get the value of the solid field.

Returns:
true This object is solid (ie single sided)

isCCW

boolean isCCW()
Get the value of the CCW field. If the node does not have one, this will return true.

Returns:
true if the vertices are CCW ordered

isLightingEnabled

boolean isLightingEnabled()
Specifies whether this node requires lighting.

Returns:
true Should lighting be enabled

getNumSets

int getNumSets()
Get the number of texture coordinate sets contained by this node

Returns:
the number of texture coordinate sets

getTexCoordGenMode

java.lang.String getTexCoordGenMode(int setNum)
Get the texture coordinate generation mode. The values are constants defined in the X3D Spec under TextureCoordinateGenerator. NULL is returned if the texture coordinates are not generated.

Parameters:
setNum - The set which this tex gen mode refers.
Returns:
The mode or NULL

hasLocalColors

boolean hasLocalColors()
Specified whether this node has color information. If so, then it will be used for diffuse terms instead of materials.

Returns:
true Use local color information for diffuse lighting.

hasLocalColorAlpha

boolean hasLocalColorAlpha()
Specified whether this node has alpha values in the local colour information. If so, then it will be used for to override the material's transparency value.

Returns:
true when the local color value has inbuilt alpha

addLocalColorsListener

void addLocalColorsListener(LocalColorsListener l)
Add a listener for local color changes. Nulls and duplicates will be ignored.

Parameters:
l - The listener.

removeLocalColorsListener

void removeLocalColorsListener(LocalColorsListener l)
Remove a listener for local color changes. Nulls will be ignored.

Parameters:
l - The listener.

addTexCoordGenModeChanged

void addTexCoordGenModeChanged(TexCoordGenModeListener l)
Add a listener for texture coordinate generation mode changes. Nulls and duplicates will be ignored.

Parameters:
l - The listener.

removeTexCoordGenModeChanged

void removeTexCoordGenModeChanged(TexCoordGenModeListener l)
Remove a listener for texture coordinate generation mode changes. Nulls will be ignored.

Parameters:
l - The listener.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium