Interface IParticleGroupDataProvider
- All Known Subinterfaces:
IStarGroupDataProvider
- All Known Implementing Classes:
AbstractStarGroupDataProvider, BinaryDataProvider, BinaryPointDataProvider, PointDataProvider, SerializedDataProvider, STILDataProvider
public interface IParticleGroupDataProvider
-
Method Summary
Modifier and TypeMethodDescriptionloadData(InputStream is, double factor) Loads the data applying a factor.Loads the data as it is.Loads the data applying a factor.loadDataMapped(String file, double factor) Loads the data applying a factor using a memory mapped file for improved speed.voidsetFileNumberCap(int cap) Sets a cap on the number of files to load.voidsetProviderParams(Map<String, Object> params) Set provider parameters as a map.voidsetStarNumberCap(int cap) Sets the maximum number of stars to be processed per file.voidsetTransformMatrix(Matrix4D matrix) Sets a transform matrix to apply to all data points.
-
Method Details
-
loadData
Loads the data as it is.- Parameters:
file- The file to load.- Returns:
- The array of particle records.
-
loadDataMapped
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:
- The array of particle records.
-
loadData
Loads the data applying a factor.- Parameters:
file- The file to load.factor- Factor to apply to the positions.- Returns:
- The array of particle records.
-
loadData
Loads the data applying a factor.- Parameters:
is- Input stream to load the data from.factor- Factor to apply to the positions.- 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
-
setTransformMatrix
Sets a transform matrix to apply to all data points.- Parameters:
matrix- The transform matrix.
-