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 and Description |
---|
OrphanFrame(String name)
Simple constructor.
|
Modifier and Type | Method and 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)
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)public void addChild(OrphanFrame child, TransformProvider transformProvider, boolean isPseudoInertial)
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)public void attachTo(Frame parent, Transform transform, boolean isPseudoInertial)
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)public void attachTo(Frame parent, TransformProvider transformProvider, boolean isPseudoInertial)
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)public List<OrphanFrame> getChildren()
Copyright © 2002-2019 CS Systèmes d'information. All rights reserved.