Package org.web3d.vrml.sav
Interface ScriptHandler
- All Known Subinterfaces:
SceneBuilder
- All Known Implementing Classes:
AbsScaleFilter
,AbstractFilter
,AppearanceFilter
,AppearanceReplacerFilter
,BaseFilter
,BaseRetainedExporter
,BinaryExporter
,CenterFilter
,ColorRGBAtoRGBFilter
,CombineAppearanceFilter
,CombinerFilter
,CombineShapeFilter
,CombineTransformFilter
,CommonEncodedBaseFilter
,CRExternProtoBuilder
,CRMainSceneBuilder
,DebugFilter
,DEFChooserFilter
,DEFReplacerFilter
,DEFUSEImageTextureFilter
,EncodedBaseFilter
,EncodedFilter
,ExceptionGenerator
,ExplodeShapesFilter
,Exporter
,ExportPixelTextureFilter
,FlattenSelectableFilter
,FlattenTextureTransformFilter
,FlattenTransformFilter
,GenNormalsFilter
,GlobalBoundsFilter
,IdentityFilter
,IFSFilter
,IFSToITSFilter
,IFSToTSFilter
,IndexFilter
,ITSCreaseAnglerFilter
,LocalURLFilter
,ManifoldInfoFilter
,MaterialFilter
,MinimizeProfileFilter
,ModifyViewpointFilter
,NewAbstractFilter
,NodeChooserFilter
,NodeCountInfoFilter
,NRExternProtoBuilder
,NRVRMLSceneBuilder
,NullExporter
,OBJFileExporter
,OGLExternProtoBuilder
,OGLVRMLSceneBuilder
,ProtoBuilder
,ReindexFilter
,RemoveNodeFilter
,RemoveNormalsFilter
,RemoveUnusedDEFFilter
,ShortenDEFFilter
,StackTracerFilter
,StatisticsCollector
,STLBinaryFileExporter
,STLFileExporter
,TextureTransformFilter
,ThreeMFFileExporter
,TransformFilter
,TriangleCountInfoFilter
,TriangulationFilter
,TwoPassFilter
,URLCaseCorrectorFilter
,URLFullyQualifyFilter
,USERedundantNodeFilter
,ValidateIndexFilter
,VrmlExporter
,WorldOffsetFilter
,X3DBinaryRetainedDirectExporter
,X3DClassicExporter
,X3DClassicRetainedExporter
,X3DMemoryExporter
,X3DRetainedSAXExporter
,X3DXMLExporter
,X3DXMLRetainedExporter
public interface ScriptHandler
Receiver of notifications from the VRML document about script declaration
information.
- Version:
- $Revision: 1.6 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notification of the end of a script declaration.void
scriptFieldDecl
(int access, String type, String name, Object value) Notification of a script's field declaration.void
Notification of the start of a script declaration.
-
Method Details
-
startScriptDecl
Notification of the start of a script declaration. All calls between now and the correspondingendScriptDecl()
call belong to this script node. This method will be called after the ContentHandlerstartNode()
method call. All DEF information is contained in that method call and this just signifies the start of script processing so that we know to treat the field parsing callbacks a little differently.- Throws:
SAVException
- This call is taken at the wrong time in the structure of the document.VRMLException
- This call is taken at the wrong time in the structure of the document.
-
endScriptDecl
Notification of the end of a script declaration. This is guaranteed to be called before the ContentHandlerendNode()
callback.- Throws:
SAVException
- This call is taken at the wrong time in the structure of the document.VRMLException
- This call is taken at the wrong time in the structure of the document.
-
scriptFieldDecl
void scriptFieldDecl(int access, String type, String name, Object value) throws SAVException, VRMLException Notification of a script's field declaration. This is used for all fields excepturl
,mustEvaluate
anddirectOutput
fields. These fields use the normal field callbacks ofContentHandler
.If the current parsing is in a proto and the field "value" is defined with an IS statement then the value returned here is null. There will be a subsequent call to the ProtoHandlers
protoIsDecl()
method with the name of the field included.- Parameters:
access
- The access type (eg exposedField, field etc)type
- The field type (eg SFInt32, MFVec3d etc)name
- The name of the fieldvalue
- The default value of the field as either String or String[]. Null if not allowed.- Throws:
SAVException
- This call is taken at the wrong time in the structure of the document.VRMLException
- This call is taken at the wrong time in the structure of the document.
-