Class Importer

java.lang.Object
eu.mihosoft.vrl.v3d.ext.openjfx.importers.Importer
Direct Known Subclasses:
ObjOrPolyObjImporter

public abstract class Importer extends Object
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    abstract javafx.scene.Group
    Gets the 3D node that was loaded earlier through the load() call
    javafx.animation.Timeline
    Can be overridden to return a timeline animation for the 3D file
    abstract boolean
    isSupported(String supportType)
    Tests if the given 3D file extension is supported (e.g.
    abstract void
    load(String url, boolean asPolygonMesh)
    Loads the 3D file

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • Importer Link icon

      public Importer()
  • Method Details Link icon

    • load Link icon

      public abstract void load(String url, boolean asPolygonMesh) throws IOException
      Loads the 3D file
      Parameters:
      url - The url of the 3D file to load
      asPolygonMesh - When true load as a PolygonMesh if the loader supports.
      Throws:
      IOException - If issue loading file
    • getRoot Link icon

      public abstract javafx.scene.Group getRoot()
      Gets the 3D node that was loaded earlier through the load() call
      Returns:
      The loaded node
    • isSupported Link icon

      public abstract boolean isSupported(String supportType)
      Tests if the given 3D file extension is supported (e.g. "ma", "ase", "obj", "fxml", "dae").
      Parameters:
      supportType - The file extension (e.g. "ma", "ase", "obj", "fxml", "dae")
      Returns:
      True if the extension is of a supported type. False otherwise.
    • getTimeline Link icon

      public javafx.animation.Timeline getTimeline()
      Can be overridden to return a timeline animation for the 3D file
      Returns:
      A timeline animation. Null if there is no timeline animation.