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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
initialize
(String[] files) void
initialize
(uk.ac.starlink.util.DataSource ds) abstract com.badlogic.gdx.utils.Array<? extends SceneGraphNode>
loadData()
protected boolean
Runs all filters on the star and returns true only if all have passed.protected boolean
Runs all filters on the star and returns true if any of them passes.void
setDescription
(String description) void
void
void
setParentName
(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
-