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
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
void
initialize
(com.badlogic.ashley.core.Entity entity, Trajectory trajectory) Initializes the provider with the given entity and trajectory component.void
load
(String file, OrbitDataLoader.OrbitDataLoaderParameters parameter) Loads the orbit data into the OrbitData object in the internal units.void
load
(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:IOrbitDataProvider
Initializes the provider with the given entity and trajectory component.- Specified by:
initialize
in interfaceIOrbitDataProvider
- Parameters:
entity
- The entity.trajectory
- The trajectory component.
-
load
Description copied from interface:IOrbitDataProvider
Loads the orbit data into the OrbitData object in the internal units.- Specified by:
load
in interfaceIOrbitDataProvider
- Parameters:
file
- The file pathparameter
- The parameters
-
load
Description copied from interface:IOrbitDataProvider
Loads the orbit data into the OrbitData object in the internal units.- Specified by:
load
in interfaceIOrbitDataProvider
- Parameters:
file
- The file pathsource
- The parametersnewMethod
- Use new method (for orbital elements only)
-
getData
- Specified by:
getData
in interfaceIOrbitDataProvider
-