|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VRMLComponentGeometryNodeType
An interface for accessing the geometry data of an IndexedGeometry class.
These objects might be coord, color, normal, texCoord. All will descend from VRMLGeometricPropertyType or VRMLProtoInstance. There is no direct provision through this interface to clear an individual component node. That must be done directly through the lower level setValue() methods.
| Method Summary | |
|---|---|
VRMLNodeType[] |
getComponents()
Get the components that compose a geometry object. |
boolean |
hasColorPerVertex()
Check to see if the colors are per vertex or per face. |
boolean |
hasNormalPerVertex()
Check to see if the normals are per vertex or per face. |
boolean |
requiresUnlitColor()
Check to see if this geometry implementation type requires unlit color values to be set. |
void |
setComponent(VRMLNodeType comp)
Set a component that composes part of a geometry object. |
void |
setComponents(VRMLNodeType[] comps)
Set the components the compose a geometry object. |
void |
setUnlitColor(float[] color)
Set the local colour override for this geometry. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLGeometryNodeType |
|---|
addLocalColorsListener, addTexCoordGenModeChanged, getNumSets, getTexCoordGenMode, hasLocalColorAlpha, hasLocalColors, isCCW, isLightingEnabled, isSolid, removeLocalColorsListener, removeTexCoordGenModeChanged |
| 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 |
|---|
VRMLNodeType[] getComponents()
This method will return either VRMLGeometricPropertyNodeType or VRMLProtoInstance. With a proto you can use getImplementationNode to get a node conforming to the VRMLGeometricPropertyNodeType interface.
If there are no components then a zero length array will be returned.
void setComponents(VRMLNodeType[] comps)
throws InvalidFieldValueException
comps - An array of geometric properties
InvalidFieldValueException - The node is not a known or supported
field for this node
void setComponent(VRMLNodeType comp)
throws InvalidFieldValueException
comp - A geometric property
InvalidFieldValueException - The node is not a known or supported
field for this nodeboolean hasColorPerVertex()
boolean hasNormalPerVertex()
boolean requiresUnlitColor()
void setUnlitColor(float[] color)
color - The colour value to use
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||