Class OrbitBodyDataProvider
java.lang.Object
gaiasky.data.orbit.OrbitBodyDataProvider
- All Implemented Interfaces:
IOrbitDataProvider
This class provides orbit data by using the coordinates provider of the attached
object, if any.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()voidinitialize(com.badlogic.ashley.core.Entity entity, Trajectory trajectory) Initializes the provider with the given entity and trajectory component.voidload(String file, OrbitDataLoader.OrbitDataLoaderParameters parameter) Loads the orbit data into the OrbitData object in the internal units.voidload(String file, OrbitDataLoader.OrbitDataLoaderParameters source, boolean newMethod) Loads the orbit data into the OrbitData object in the internal units.
-
Constructor Details
-
OrbitBodyDataProvider
public OrbitBodyDataProvider()
-
-
Method Details
-
initialize
Description copied from interface:IOrbitDataProviderInitializes the provider with the given entity and trajectory component.- Specified by:
initializein interfaceIOrbitDataProvider- Parameters:
entity- The entity.trajectory- The trajectory component.
-
load
Description copied from interface:IOrbitDataProviderLoads the orbit data into the OrbitData object in the internal units.- Specified by:
loadin interfaceIOrbitDataProvider- Parameters:
file- The file pathparameter- The parameters
-
load
Description copied from interface:IOrbitDataProviderLoads the orbit data into the OrbitData object in the internal units.- Specified by:
loadin interfaceIOrbitDataProvider- Parameters:
file- The file pathsource- The parametersnewMethod- Use new method (for orbital elements only)
-
getData
- Specified by:
getDatain interfaceIOrbitDataProvider
-