Class AbstractCatalogLoader

java.lang.Object
gaiasky.data.stars.AbstractCatalogLoader
Direct Known Subclasses:
NBGLoader, StarClusterLoader

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

    • files

      public String[] files
    • filters

      public List<CatalogFilter> filters
    • dataSource

      public uk.ac.starlink.util.DataSource dataSource
    • name

      protected String name
    • description

      protected String description
    • params

      protected Map<String,Object> params
    • parentName

      protected String parentName
  • Constructor Details

    • AbstractCatalogLoader

      public AbstractCatalogLoader()
  • Method Details

    • initialize

      public void initialize(String[] files)
    • initialize

      public void initialize(uk.ac.starlink.util.DataSource ds)
    • loadData

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

      public void addFilter(CatalogFilter cf)
    • 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.
    • setParentName

      public void setParentName(String parentName)
    • setName

      public void setName(String name)
    • setDescription

      public void setDescription(String description)
    • setParams

      public void setParams(Map<String,Object> params)