java.lang.Object
de.grogra.pf.io.FilterBase
de.grogra.ext.x3d.X3DImport
- All Implemented Interfaces:
Filter
,FilterSource
,ObjectSource
,RegistryContext
,Map
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.pf.io.FilterSource
FilterSource.MetaDataKey<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionStack of parsers.protected Null
GroIMP root node of imported x3d nodes.protected static X3DImport
Current import instance.protected Workbench
Current workbench.Fields inherited from class de.grogra.pf.io.FilterBase
item, source
Fields inherited from interface de.grogra.pf.io.FilterSource
AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewParser
(X3DParser parser) Add a new parser on top of stack.Returns the current x3d parser.Returns the data as an object of a class which is compatible which the flavor.static X3DImport
Returns the instance of the current x3d importer.void
void
Removes the current parser from stack.Methods inherited from class de.grogra.pf.io.FilterBase
get, getFilter, getFlavor, getImpl, getMetaData, getRegistry, getSource, getSystemId, initProgressMonitor, setFlavor, setMetaData, setMetaData, setProgress, setSystemId, toString, toURL
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.pf.io.FilterSource
getFilter, getFlavor, getMetaData, getSystemId, initProgressMonitor, setMetaData, setProgress
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Field Details
-
theImport
Current import instance. -
parsers
Stack of parsers. -
sceneNode
GroIMP root node of imported x3d nodes. -
workbench
Current workbench.
-
-
Constructor Details
-
X3DImport
-
-
Method Details
-
getObject
Description copied from interface:ObjectSource
Returns the data as an object of a class which is compatible which the flavor.- Specified by:
getObject
in interfaceObjectSource
- Returns:
- the data
- Throws:
IOException
-
getTheImport
Returns the instance of the current x3d importer.- Returns:
-
getCurrentParser
Returns the current x3d parser.- Returns:
-
addNewParser
Add a new parser on top of stack. This is the current parser.- Parameters:
parser
-
-
removeCurrentParser
public void removeCurrentParser()Removes the current parser from stack. Next one in stack becomes the current parser. -
increaseProgress
public void increaseProgress()
-