Class UncertaintiesProvider
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.data.group.UncertaintiesProvider
-
- All Implemented Interfaces:
IParticleGroupDataProvider
public class UncertaintiesProvider extends java.lang.Object implements IParticleGroupDataProvider
-
-
Constructor Summary
Constructors Constructor Description UncertaintiesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean>
loadData(java.io.InputStream is, double factor)
Loads the data applying a factor.com.badlogic.gdx.utils.Array<ParticleGroup.ParticleBean>
loadData(java.lang.String file)
Loads the data as it is.com.badlogic.gdx.utils.Array<ParticleGroup.ParticleBean>
loadData(java.lang.String file, double factor)
Loads the data applying a factor.com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean>
loadDataMapped(java.lang.String file, double factor)
Loads the data applying a factor using a memory mapped file for improved speed.void
setFileNumberCap(int cap)
Sets a cap on the number of files to load.
-
-
-
Method Detail
-
loadData
public com.badlogic.gdx.utils.Array<ParticleGroup.ParticleBean> loadData(java.lang.String file)
Description copied from interface:IParticleGroupDataProvider
Loads the data as it is.- Specified by:
loadData
in interfaceIParticleGroupDataProvider
- Parameters:
file
- The file to load- Returns:
- Array of particle beans
-
loadData
public com.badlogic.gdx.utils.Array<ParticleGroup.ParticleBean> loadData(java.lang.String file, double factor)
Description copied from interface:IParticleGroupDataProvider
Loads the data applying a factor.- Specified by:
loadData
in interfaceIParticleGroupDataProvider
- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadData
public com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean> loadData(java.io.InputStream is, double factor)
Description copied from interface:IParticleGroupDataProvider
Loads the data applying a factor.- Specified by:
loadData
in interfaceIParticleGroupDataProvider
- Parameters:
is
- Input stream to load the data fromfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
setFileNumberCap
public void setFileNumberCap(int cap)
Description copied from interface:IParticleGroupDataProvider
Sets a cap on the number of files to load. Set to 0 or negative for unlimited- Specified by:
setFileNumberCap
in interfaceIParticleGroupDataProvider
- Parameters:
cap
- The cap number
-
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.- Specified by:
loadDataMapped
in interfaceIParticleGroupDataProvider
- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
-