Package gaiasky.data.stars
Class AbstractCatalogLoader
java.lang.Object
gaiasky.data.stars.AbstractCatalogLoader
- Direct Known Subclasses:
NBGLoader,StarClusterLoader
Abstract catalog loader with the transformation from spherical to cartesian coordinates.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidinitialize(String[] files) voidinitialize(uk.ac.starlink.util.DataSource ds) abstract com.badlogic.gdx.utils.Array<? extends SceneGraphNode>loadData()protected booleanRuns all filters on the star and returns true only if all have passed.protected booleanRuns all filters on the star and returns true if any of them passes.voidsetDescription(String description) voidvoidvoidsetParentName(String parentName)
-
Field Details
-
files
-
filters
-
dataSource
public uk.ac.starlink.util.DataSource dataSource -
name
-
description
-
params
-
parentName
-
-
Constructor Details
-
AbstractCatalogLoader
public AbstractCatalogLoader()
-
-
Method Details
-
initialize
-
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
-
runFiltersAnd
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
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
-
setName
-
setDescription
-
setParams
-