Xj3D VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLShapeNodeType

All Superinterfaces:
FrameStateListener, VRMLChildNodeType, VRMLNode, VRMLNodeType
All Known Subinterfaces:
VRMLParticleSystemNodeType

public interface VRMLShapeNodeType
extends VRMLChildNodeType

Description of a renderable object

Version:
$Revision: 1.9 $
Author:
Alan Hudson

Method Summary
 VRMLNodeType getAppearance()
          Get node content for the appearance field.
 VRMLNodeType getGeometry()
          Get node content for the geometry field.
 void setAppearance(VRMLNodeType newAppearance)
          Set node content as replacement for appearance.
 void setGeometry(VRMLNodeType newGeometry)
          Set node content as replacement for geometry.
 
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

getAppearance

public VRMLNodeType getAppearance()
Get node content for the appearance field.

Returns:
The current appearance

setAppearance

public void setAppearance(VRMLNodeType newAppearance)
                   throws InvalidFieldValueException
Set node content as replacement for appearance.

Parameters:
newAppearance - The new appearance. Null will act like delete
Throws:
InvalidFieldValueException - The node does not match the required type.

getGeometry

public VRMLNodeType getGeometry()
Get node content for the geometry field.

Returns:
The current geoemtry field

setGeometry

public void setGeometry(VRMLNodeType newGeometry)
                 throws InvalidFieldValueException
Set node content as replacement for geometry.

Parameters:
newGeometry - The new value for geometry. null will act like delete
Throws:
InvalidFieldValueException - The node does not match the required type.

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium