public class CelestialBodyFrame extends Frame
CelestialBody
.
This frames contains a CelestialBody
. For FactoryManagedFrame
such as GCRF frame,
Earth celestial body is not attached, so users need to attach it using setCelestialBody(CelestialBody)
.
Warning: this class does not check if provided celestial body is indeed
centered on this frame.Modifier | Constructor and Description |
---|---|
|
CelestialBodyFrame(Frame parent,
TransformProvider transformProvider,
String name,
boolean pseudoInertial,
CelestialBody celestialBody)
Generic constructor.
|
|
CelestialBodyFrame(Frame parent,
TransformProvider transformProvider,
String name,
CelestialBody celestialBody)
Constructor.
|
|
CelestialBodyFrame(Frame parent,
Transform transform,
String name,
boolean pseudoInertial,
CelestialBody celestialBody)
Constructor.
|
|
CelestialBodyFrame(Frame parent,
Transform transform,
String name,
CelestialBody celestialBody)
Constructor.
|
protected |
CelestialBodyFrame(String name,
boolean pseudoInertial)
Protected constructor used only for the root frame.
|
Modifier and Type | Method and Description |
---|---|
CelestialBody |
getCelestialBody()
Returns the celestial body centered on this frame.
|
void |
setCelestialBody(CelestialBody celestialBody)
Set the celestial body.
|
getAncestor, getDepth, getFirstCommonPseudoInertialAncestor, getFirstPseudoInertialAncestor, getFrozenFrame, getName, getNativeFrame, getParent, getPVCoordinates, getRoot, getTransformJacobian, getTransformProvider, getTransformTo, getTransformTo, getTransformTo, getTransformTo, isChildOf, isPseudoInertial, setName, setReferential, toString
protected CelestialBodyFrame(String name, boolean pseudoInertial)
name
- name of the framepseudoInertial
- true if frame is considered pseudo-inertial (i.e. suitable for propagating orbit)public CelestialBodyFrame(Frame parent, Transform transform, String name, CelestialBody celestialBody)
parent
- parent frame (must be non-null)transform
- transform from parent frame to instancename
- name of the framecelestialBody
- celestial body centered on this frameIllegalArgumentException
- if the parent frame is nullpublic CelestialBodyFrame(Frame parent, TransformProvider transformProvider, String name, CelestialBody celestialBody)
parent
- parent frame (must be non-null)transformProvider
- provider for transform from parent frame to instancename
- name of the framecelestialBody
- celestial body centered on this frameIllegalArgumentException
- if the parent frame is nullpublic CelestialBodyFrame(Frame parent, Transform transform, String name, boolean pseudoInertial, CelestialBody celestialBody)
parent
- parent frame (must be non-null)transform
- transform from parent frame to instancename
- name of the framepseudoInertial
- true if frame is considered pseudo-inertial (i.e. suitable for propagating orbit)celestialBody
- celestial body centered on this frameIllegalArgumentException
- if the parent frame is nullpublic CelestialBodyFrame(Frame parent, TransformProvider transformProvider, String name, boolean pseudoInertial, CelestialBody celestialBody)
parent
- parent frame (must be non-null)transformProvider
- provider for transform from parent frame to instancename
- name of the framepseudoInertial
- true if frame is considered pseudo-inertial (i.e. suitable for propagating orbit)celestialBody
- celestial body centered on this frameIllegalArgumentException
- if the parent frame is nullpublic CelestialBody getCelestialBody()
public void setCelestialBody(CelestialBody celestialBody)
celestialBody
- the celestial body to setCopyright © 2023 CNES. All rights reserved.