|
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 VRMLProtoDeclare
Prototype declaration within a file.
VRMLExternProtoDeclare,
VRMLProtoInstance| Method Summary | |
|---|---|
void |
addFieldNodeValue(int index,
VRMLNodeType node)
Used to set the field value where the field represents a SFNode or MFNode. |
VRMLGroupingNodeType |
getBodyGroup()
Get the grouping node that represents the body of the proto. |
VRMLFieldData |
getFieldValue(int index)
Get the value of a field. |
java.util.Set |
getRouteDecls()
Get the set of the current route declarations that are available for this definitions. |
void |
setValue(int index,
boolean value)
Set the value of the field at the given index as an boolean. |
void |
setValue(int index,
boolean[] value,
int numValid)
Set the value of the field at the given index as an array of boolean. |
void |
setValue(int index,
double value)
Set the value of the field at the given index as an double. |
void |
setValue(int index,
double[] value,
int numValid)
Set the value of the field at the given index as an array of doubles. |
void |
setValue(int index,
float value)
Set the value of the field at the given index as a float. |
void |
setValue(int index,
float[] value,
int numValid)
Set the value of the field at the given index as an array of floats. |
void |
setValue(int index,
int value)
Set the value of the field at the given index as an integer. |
void |
setValue(int index,
int[] value,
int numValid)
Set the value of the field at the given index as an array of integers. |
void |
setValue(int index,
long value)
Set the value of the field at the given index as an long. |
void |
setValue(int index,
long[] value,
int numValid)
Set the value of the field at the given index as an array of longs. |
void |
setValue(int index,
java.lang.String value)
Set the value of the field at the given index as a string. |
void |
setValue(int index,
java.lang.String[] value,
int numValid)
Set the value of the field at the given index as an array of strings. |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNodeTemplate |
|---|
appendField, createNewInstance, deleteField, deleteField, getAllFields, getFieldCount, getFieldDeclaration, getFieldIndex, getNumFields, getPrimaryType, getVRMLNodeName, setErrorReporter |
| Method Detail |
|---|
VRMLGroupingNodeType getBodyGroup()
java.util.Set getRouteDecls()
ROUTEs registered
VRMLFieldData getFieldValue(int index)
throws InvalidFieldException
index - The index of the field to change.
InvalidFieldException - The field index is not known
void setValue(int index,
int value)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
int[] value,
int numValid)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the nodenumValid - The number of valid values to copy from the array
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
boolean value)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
boolean[] value,
int numValid)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the nodenumValid - The number of valid values to copy from the array
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
float value)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
float[] value,
int numValid)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the nodenumValid - The number of valid values to copy from the array
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
long value)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
long[] value,
int numValid)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the nodenumValid - The number of valid values to copy from the array
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
double value)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
double[] value,
int numValid)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the nodenumValid - The number of valid values to copy from the array
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
java.lang.String value)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void setValue(int index,
java.lang.String[] value,
int numValid)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setvalue - The new value to use for the nodenumValid - The number of valid values to copy from the array
InvalidFieldException - The field index is not known
InvalidFieldValueException - The value provided is not in range
or not appropriate for this field
void addFieldNodeValue(int index,
VRMLNodeType node)
throws InvalidFieldException,
InvalidFieldValueException
index - The index of destination field to setnode - The node to set or add to this field
InvalidFieldValueException - This field does not take a node
InvalidFieldException - The field index is not known
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||