Serializable
public class OrphanFrame extends Object implements Serializable
Regular Frame
instances can be built only from a parent frame, i.e.
the frames tree can be built only from root to leafs. In some cases, it may
desirable to build a subset tree and attach it to the main tree after build
time, which means the tree is built from leafs to root. This class allows
building this subtree.
During the build process, the Frame
associated with each OrphanFrame
is not available. It becomes available only once the OrphanFrame
has been
attached to the main tree, and at this time it can be used to compute
transforms
.
Constructor | Description |
---|---|
OrphanFrame(String name) |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addChild(OrphanFrame child,
Transform transform,
boolean isPseudoInertial) |
Add a child.
|
void |
addChild(OrphanFrame child,
TransformProvider transformProvider,
boolean isPseudoInertial) |
Add a child.
|
void |
attachTo(Frame parent,
Transform transform,
boolean isPseudoInertial) |
Attach the instance (and all its children down to leafs) to the main tree.
|
void |
attachTo(Frame parent,
TransformProvider transformProvider,
boolean isPseudoInertial) |
Attach the instance (and all its children down to leafs) to the main tree.
|
List<OrphanFrame> |
getChildren() |
Get all children of the instance.
|
Frame |
getFrame() |
Get the associated
frame . |
String |
toString() |
public OrphanFrame(String name)
name
- name of the framepublic void addChild(OrphanFrame child, Transform transform, boolean isPseudoInertial) throws OrekitException
If a child is added after the instance has been attached, the child and all its tree will be attached immediately too.
child
- child to addtransform
- transform from instance to childisPseudoInertial
- true if child is considered pseudo-inertial
(i.e. suitable for propagating orbit)OrekitException
- if child frame has already been attached to
either an OrphanFrame
or to a Frame
public void addChild(OrphanFrame child, TransformProvider transformProvider, boolean isPseudoInertial) throws OrekitException
If a child is added after the instance has been attached, the child and all its tree will be attached immediately too.
child
- child to addtransformProvider
- provider for transform from instance to childisPseudoInertial
- true if child is considered pseudo-inertial
(i.e. suitable for propagating orbit)OrekitException
- if child frame has already been attached to
either an OrphanFrame
or to a Frame
public void attachTo(Frame parent, Transform transform, boolean isPseudoInertial) throws OrekitException
parent
- parent frame to attach totransform
- transform from parent frame to instanceisPseudoInertial
- true if frame is considered pseudo-inertial
(i.e. suitable for propagating orbit)OrekitException
- if child frame has already been attached to
either an OrphanFrame
or to a Frame
public void attachTo(Frame parent, TransformProvider transformProvider, boolean isPseudoInertial) throws OrekitException
parent
- parent frame to attach totransformProvider
- provider for transform from parent frame to instanceisPseudoInertial
- true if frame is considered pseudo-inertial
(i.e. suitable for propagating orbit)OrekitException
- if child frame has already been attached to
either an OrphanFrame
or to a Frame
public List<OrphanFrame> getChildren()
public Frame getFrame() throws OrekitException
frame
.OrekitException
- if instance has not been attached to the frames treeCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.