Interface IParticleGroupDataProvider

All Known Subinterfaces:
IStarGroupDataProvider
All Known Implementing Classes:
AbstractStarGroupDataProvider, BinaryDataProvider, BinaryPointDataProvider, ElementsGroupVOTableProvider, PointDataProvider, STILDataProvider

public interface IParticleGroupDataProvider
  • Method Details

    • loadData

      List<IParticleRecord> loadData(String file, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      Loads the data as it is.
      Parameters:
      file - The file to load.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • loadDataMapped

      List<IParticleRecord> loadDataMapped(String file, double factor, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      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.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • loadData

      List<IParticleRecord> loadData(String file, double factor, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      Loads the data applying a factor.
      Parameters:
      file - The file to load.
      factor - Factor to apply to the positions.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • loadData

      List<IParticleRecord> loadData(InputStream is, double factor, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      Loads the data applying a factor.
      Parameters:
      is - Input stream to load the data from.
      factor - Factor to apply to the positions.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • setFileNumberCap

      void setFileNumberCap(int cap)
      Sets a cap on the number of files to load. Set to negative for unlimited.
      Parameters:
      cap - The file cap number.
    • setStarNumberCap

      void setStarNumberCap(int cap)
      Sets the maximum number of stars to be processed per file. Set to negative for unlimited.
      Parameters:
      cap - The star cap number.
    • setProviderParams

      void setProviderParams(Map<String,Object> params)
      Set provider parameters as a map.
      Parameters:
      params - The parameters map.
    • setTransformMatrix

      void setTransformMatrix(Matrix4D matrix)
      Sets a transform matrix to apply to all data points.
      Parameters:
      matrix - The transform matrix.
    • isUniformEpoch

      default boolean isUniformEpoch()
      Do all particles in the group have the same epoch?
      Returns:
      Whether all particles in the group have the same epoch;