Module x3d

Class X3DImport

java.lang.Object
de.grogra.pf.io.FilterBase
de.grogra.ext.x3d.X3DImport
All Implemented Interfaces:
Filter, FilterSource, ObjectSource, RegistryContext, Map

public class X3DImport extends FilterBase implements ObjectSource
  • Field Details

    • theImport

      protected static X3DImport theImport
      Current import instance.
    • parsers

      protected Stack<X3DParser> parsers
      Stack of parsers.
    • sceneNode

      protected Null sceneNode
      GroIMP root node of imported x3d nodes.
    • workbench

      protected Workbench workbench
      Current workbench.
  • Constructor Details

  • Method Details

    • getObject

      public Object getObject() throws IOException
      Description copied from interface: ObjectSource
      Returns the data as an object of a class which is compatible which the flavor.
      Specified by:
      getObject in interface ObjectSource
      Returns:
      the data
      Throws:
      IOException
    • getTheImport

      public static X3DImport getTheImport()
      Returns the instance of the current x3d importer.
      Returns:
    • getCurrentParser

      public X3DParser getCurrentParser()
      Returns the current x3d parser.
      Returns:
    • addNewParser

      public void addNewParser(X3DParser parser)
      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()