Package org.web3d.x3d.jsail.fields
Class X3DConcreteField
java.lang.Object
org.web3d.x3d.jsail.fields.X3DConcreteField
- All Implemented Interfaces:
X3DField
- Direct Known Subclasses:
MFBool
,MFColor
,MFColorRGBA
,MFDouble
,MFFloat
,MFImage
,MFInt32
,MFMatrix3d
,MFMatrix3f
,MFMatrix4d
,MFMatrix4f
,MFNode
,MFRotation
,MFString
,MFTime
,MFVec2d
,MFVec2f
,MFVec3d
,MFVec3f
,MFVec4d
,MFVec4f
,SFBool
,SFColor
,SFColorRGBA
,SFDouble
,SFFloat
,SFImage
,SFInt32
,SFMatrix3d
,SFMatrix3f
,SFMatrix4d
,SFMatrix4f
,SFNode
,SFRotation
,SFString
,SFTime
,SFVec2d
,SFVec2f
,SFVec3d
,SFVec3f
,SFVec4d
,SFVec4f
Concrete implementation class corresponding to X3DField.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addX3DEventListener
(X3DFieldEventListener newListener) WARNING not testedWARNING not implementedstatic int
getTupleSize
(String fieldType) Compute tuple size for given type (for example, SFVec3f and MFVec3f have tupleSize of 3).Get output of results from prior validation, if anyabstract void
Initialization sets default initial value.boolean
Check whether field is readable, default /true/boolean
Check whether field is writable, default /true/void
removeX3DEventListener
(X3DFieldEventListener oldListener) WARNING not testedvoid
setReadable
(boolean newValue) Set whether field is readablevoid
setWritable
(boolean newValue) Set whether field is writable
-
Field Details
-
validationResult
Results log of local validation.
-
-
Constructor Details
-
X3DConcreteField
public X3DConcreteField()
-
-
Method Details
-
getValidationResult
Get output of results from prior validation, if any- Returns:
- validation results (if any)
-
getDefinition
-
isReadable
public boolean isReadable()Check whether field is readable, default /true/- Returns:
- whether field is readable
- See Also:
-
setReadable
public void setReadable(boolean newValue) Set whether field is readable- Parameters:
newValue
- new status for readable- See Also:
-
isWritable
public boolean isWritable()Check whether field is writable, default /true/- Returns:
- whether field is writable
- See Also:
-
setWritable
public void setWritable(boolean newValue) Set whether field is writable- Parameters:
newValue
- new status for writable- See Also:
-
addX3DEventListener
WARNING not tested- Parameters:
newListener
- the listener to add
-
removeX3DEventListener
WARNING not tested- Parameters:
oldListener
- the listener to remove
-
getTupleSize
Compute tuple size for given type (for example, SFVec3f and MFVec3f have tupleSize of 3).- Parameters:
fieldType
- of interest- Returns:
- tuple size
-
initialize
public abstract void initialize()Initialization sets default initial value.
-