Class OrphanFrame
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.
- Since:
- 6.0
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(OrphanFrame child, Transform transform, boolean isPseudoInertial) Add a child.voidaddChild(OrphanFrame child, TransformProvider transformProvider, boolean isPseudoInertial) Add a child.voidAttach the instance (and all its children down to leafs) to the main tree.voidattachTo(Frame parent, TransformProvider transformProvider, boolean isPseudoInertial) Attach the instance (and all its children down to leafs) to the main tree.Get all children of the instance.getFrame()Get the associatedframe.toString()
-
Constructor Details
-
OrphanFrame
Simple constructor.- Parameters:
name- name of the frame
-
-
Method Details
-
addChild
Add a child.If a child is added after the instance has been attached, the child and all its tree will be attached immediately too.
- Parameters:
child- child to addtransform- transform from instance to childisPseudoInertial- true if child is considered pseudo-inertial (i.e. suitable for propagating orbit)
-
addChild
public void addChild(OrphanFrame child, TransformProvider transformProvider, boolean isPseudoInertial) Add a child.If a child is added after the instance has been attached, the child and all its tree will be attached immediately too.
- Parameters:
child- child to addtransformProvider- provider for transform from instance to childisPseudoInertial- true if child is considered pseudo-inertial (i.e. suitable for propagating orbit)
-
attachTo
Attach the instance (and all its children down to leafs) to the main tree.- Parameters:
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)
-
attachTo
Attach the instance (and all its children down to leafs) to the main tree.- Parameters:
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)
-
getChildren
Get all children of the instance.- Returns:
- unmodifiable list of children
-
getFrame
Get the associatedframe.- Returns:
- associated frame
-
toString
-