|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Node which represents appearance attributes of an object.
The representation is a fraction more relaxed than the standard VRML appearance node. Here we allow arbitrary material node types and the textures are any type (which may include procedural textures, environment maps and 3D texturing).
| Method Summary | |
VRMLNodeType |
getFillProperties()
Get the current fill properties used by the appearance. |
VRMLNodeType |
getLineProperties()
Get the current line properties used by the appearance. |
VRMLNodeType |
getMaterial()
Get the current material used by the appearance. |
VRMLNodeType |
getTexture()
Get the current texture used by the appearance. |
VRMLNodeType |
getTextureTransform()
Get the current texture transform used by the appearance. |
void |
setCCW(boolean ccw)
Specify whether the geometry's triangles are in counter clockwise order (the default) or clockwise. |
void |
setFillProperties(VRMLNodeType prop)
Set the fill properties that should be used for this appearance. |
void |
setLightingEnabled(boolean enable)
Set whether lighting will be used for this appearance. |
void |
setLineProperties(VRMLNodeType prop)
Set the line properties that should be used for this appearance. |
void |
setLocalColor(boolean enable)
Set whether the geometry has local colors to override the diffuse color. |
void |
setMaterial(VRMLNodeType newMaterial)
Set the material that should be used for this appearance. |
void |
setSolid(boolean solid)
Specify whether an object is solid. |
void |
setTexture(VRMLNodeType newTexture)
Set the texture that should be used for this appearance. |
void |
setTextureTransform(VRMLNodeType newTransform)
Set the texture transform that should be used for this appearance. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, 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 |
public void setMaterial(VRMLNodeType newMaterial)
throws InvalidFieldValueException
newMaterial - The new material instance to be used.
InvalidFieldValueException - The node does not match the required
type.public VRMLNodeType getMaterial()
public void setTexture(VRMLNodeType newTexture)
throws InvalidFieldValueException
newTexture - The new texture instance to be used.
InvalidFieldValueException - The node does not match the required
type.public VRMLNodeType getTexture()
public void setTextureTransform(VRMLNodeType newTransform)
throws InvalidFieldValueException
newTransform - The new texture transform instance to be used.
InvalidFieldValueException - The node does not match the required
type.public VRMLNodeType getTextureTransform()
public void setLineProperties(VRMLNodeType prop)
throws InvalidFieldValueException
prop - The new property instance to be used or null
InvalidFieldValueException - The node does not match the required
type.public VRMLNodeType getLineProperties()
public void setFillProperties(VRMLNodeType prop)
throws InvalidFieldValueException
prop - The new property instance to be used or null
InvalidFieldValueException - The node does not match the required
type.public VRMLNodeType getFillProperties()
public void setSolid(boolean solid)
solid - Whether the object is solidpublic void setLightingEnabled(boolean enable)
enable - Whether lighting is enabledpublic void setLocalColor(boolean enable)
enable - Whether local color is enabledpublic void setCCW(boolean ccw)
ccw - True for counter-clockwise ordering
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||