Package gaiasky.util.coord
Class AbstractOrbitCoordinates
java.lang.Object
gaiasky.util.coord.AbstractOrbitCoordinates
- All Implemented Interfaces:
IBodyCoordinates
- Direct Known Subclasses:
AbstractVSOP87
,ChebyshevEphemeris
,HeliotropicOrbitCoordinates
,MoonAACoordinates
,OrbitLintCoordinates
,PlutoCoordinates
,VSOP2000
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Vector3d
protected com.badlogic.ashley.core.Entity
protected static final List
<AbstractOrbitCoordinates> protected static final Logger.Log
protected String
protected com.badlogic.ashley.core.Entity
protected boolean
protected double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
doneLoading
(Object... params) Initializes the coordinates objectgetCopy()
Gets a copy of this coordinates object.protected PointCloudData
getData()
static <T extends AbstractOrbitCoordinates>
TgetInstance
(Class<T> clazz) static List
<AbstractOrbitCoordinates> void
setCenter
(double[] center) void
setCenterkm
(double[] center) void
setCenterpc
(double[] center) void
setCentre
(double[] center) void
setOrbitname
(String orbitName) void
setOrbitName
(String orbitName) void
setPeriodic
(Boolean periodic) void
setScaling
(double scaling) toString()
protected void
updateOwner
(Map<String, com.badlogic.ashley.core.Entity> index) void
updateReferences
(Map<String, com.badlogic.ashley.core.Entity> index) Update the references in this coordinates object with the given index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface gaiasky.util.coord.IBodyCoordinates
getEclipticCartesianCoordinates, getEclipticSphericalCoordinates, getEquatorialCartesianCoordinates
-
Field Details
-
logger
-
instances
-
orbitName
-
periodic
protected boolean periodic -
center
-
entity
protected com.badlogic.ashley.core.Entity entity -
owner
protected com.badlogic.ashley.core.Entity owner -
scaling
protected double scaling
-
-
Constructor Details
-
AbstractOrbitCoordinates
protected AbstractOrbitCoordinates()
-
-
Method Details
-
getInstances
-
getInstance
-
doneLoading
Description copied from interface:IBodyCoordinates
Initializes the coordinates object- Specified by:
doneLoading
in interfaceIBodyCoordinates
- Parameters:
params
- The parameter objects.
-
getOrbitName
-
setOrbitName
-
setOrbitname
-
setPeriodic
-
setScaling
public void setScaling(double scaling) -
toString
-
setCentre
public void setCentre(double[] center) -
setCenter
public void setCenter(double[] center) -
setCenterkm
public void setCenterkm(double[] center) -
setCenterpc
public void setCenterpc(double[] center) -
getData
-
updateOwner
-
copyParameters
-
updateReferences
Description copied from interface:IBodyCoordinates
Update the references in this coordinates object with the given index.- Specified by:
updateReferences
in interfaceIBodyCoordinates
- Parameters:
index
- The index to use.
-
getCopy
Description copied from interface:IBodyCoordinates
Gets a copy of this coordinates object.- Specified by:
getCopy
in interfaceIBodyCoordinates
- Returns:
- The copy.
-