Interface IParticleGroupDataProvider
-
- All Known Subinterfaces:
IStarGroupDataProvider
- All Known Implementing Classes:
AbstractStarGroupDataProvider
,BinaryDataProvider
,DR2DataProvider
,PointDataProvider
,SDSSDataProvider
,SerializedDataProvider
,STILDataProvider
,UncertaintiesProvider
public interface IParticleGroupDataProvider
Data provider for a particle vgroup.
-
-
Method Summary
All Methods Instance Methods Abstract 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<? extends ParticleGroup.ParticleBean>
loadData(java.lang.String file)
Loads the data as it is.com.badlogic.gdx.utils.Array<? extends 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
com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean> loadData(java.lang.String file)
Loads the data as it is.- Parameters:
file
- The file to load- Returns:
- Array of particle beans
-
loadDataMapped
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.- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadData
com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean> loadData(java.lang.String file, double factor)
Loads the data applying a factor.- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadData
com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean> loadData(java.io.InputStream is, double factor)
Loads the data applying a factor.- Parameters:
is
- Input stream to load the data fromfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
setFileNumberCap
void setFileNumberCap(int cap)
Sets a cap on the number of files to load. Set to 0 or negative for unlimited- Parameters:
cap
- The cap number
-
-