Class AbstractCatalogLoader

  • Direct Known Subclasses:
    MWSCLoader, NBGLoader, SunLoader

    public abstract class AbstractCatalogLoader
    extends java.lang.Object
    Abstract catalog loader with the transformation from spherical to cartesian coordinates
    • Field Detail

      • files

        public java.lang.String[] files
        Catalog files to load
      • name

        protected java.lang.String name
        Name
      • description

        protected java.lang.String description
        Description
    • Constructor Detail

      • AbstractCatalogLoader

        public AbstractCatalogLoader()
    • Method Detail

      • initialize

        public void initialize​(java.lang.String[] files)
      • loadData

        public abstract com.badlogic.gdx.utils.Array<? extends SceneGraphNode> loadData()
                                                                                 throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • runFiltersAnd

        protected boolean runFiltersAnd​(CelestialBody s)
        Runs all filters on the star and returns true only if all have passed.
        Parameters:
        s - The star
        Returns:
        True if all filters have passed
      • runFiltersOr

        protected boolean runFiltersOr​(CelestialBody s)
        Runs all filters on the star and returns true if any of them passes
        Parameters:
        s - The star
        Returns:
        True if any filter has passed
      • setName

        public void setName​(java.lang.String name)
      • setDescription

        public void setDescription​(java.lang.String description)