Class DR2DataProvider

    • Constructor Detail

      • DR2DataProvider

        public DR2DataProvider()
    • Method Detail

      • loadData

        public com.badlogic.gdx.utils.Array<StarGroup.StarBean> loadData​(java.lang.String file)
        Description copied from interface: IParticleGroupDataProvider
        Loads the data as it is.
        Parameters:
        file - The file to load
        Returns:
        Array of particle beans
      • loadData

        public com.badlogic.gdx.utils.Array<StarGroup.StarBean> loadData​(java.lang.String file,
                                                                         double factor)
        Description copied from interface: IParticleGroupDataProvider
        Loads the data applying a factor.
        Parameters:
        file - The file to load
        factor - Factor to apply to the positions
        Returns:
        Array of particle beans
      • loadData

        public com.badlogic.gdx.utils.Array<StarGroup.StarBean> loadData​(java.io.InputStream is,
                                                                         double factor)
        Description copied from interface: IParticleGroupDataProvider
        Loads the data applying a factor.
        Parameters:
        is - Input stream to load the data from
        factor - Factor to apply to the positions
        Returns:
        Array of particle beans
      • loadFileIs

        public void loadFileIs​(java.io.InputStream is,
                               double factor,
                               gaiasky.data.group.DR2DataProvider.LongWrap addedStars,
                               gaiasky.data.group.DR2DataProvider.LongWrap discardedStars)
      • loadDataMapped

        public com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean> loadDataMapped​(java.lang.String file,
                                                                                                 double factor)
        Description copied from interface: IParticleGroupDataProvider
        Loads the data applying a factor using a memory mapped file for improved speed.
        Parameters:
        file - The file to load
        factor - Factor to apply to the positions
        Returns:
        Array of particle beans
      • loadDataMapped

        public com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean> loadDataMapped​(java.lang.String file,
                                                                                                 double factor,
                                                                                                 int fileNumber,
                                                                                                 long totalFiles)
        Uses memory mapped files to load catalog files. This is not working right now
        Parameters:
        file -
        factor -
        fileNumber -
        Returns: