|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines a set of 3D surface normals.
| Method Summary | |
int |
getNumNormals()
Get the number of items in the normal array now. |
void |
getVector(float[] normals)
Get current value of field vector. |
float[] |
getVectorRef()
Get the internal reference to the raw or converted array of normals. |
void |
setVector(float[] newVector,
int numValid)
Accessor method to set a new value for field attribute vector. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLGeometricPropertyNodeType |
addComponentListener, removeComponentListener |
| 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 setVector(float[] newVector,
int numValid)
newVector - The new value for vectornumValid - The number of valid values to copy from the array
java.lang.ArrayIndexOutOfBoundsExceptionpublic int getNumNormals()
public void getVector(float[] normals)
normals - The array to copy the vector values intopublic float[] getVectorRef()
Note that the array may well be longer than the actual number of valid
normals. Use getNumNormals() to determine the number of valid
entries.
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||