Orphan frames
As now, OREKIT does not allow to manipulate frames that are not attached to a parent one. We made a small modification in OREKIT that allows to use "orphan" frames ; it can be very useful, for instance to manipulate different parts (ie : a spacecraft "main" box and its solar arrays, a ground station and its antenna). Later, we can attach them to an existing frame (ie : a LOF to attach a whole spacecraft structure, or a topocentric frame to attach a ground station).
For example, one can define different parts, attached with its parent
with a Transform object, and then attach it to an existing frame in the
main tree of frames.
The modification is very little :
- we modified the constructor of Frame so that it's protected and not private.
- we added a OrphanFrame class (in the Frame package), with a static
method that returns a frame which is not attached to any frame. A
"local" tree of frames can be built around this orphan frame. Later,
this tree of frames can be attached to the main tree of frames.
Maybe this getNewOrphanFrame method could be in the "Frames Factory".
public class OrphanFrame {
/** Private constructor.
*/
private OrphanFrame() {
}
/** This method creates an Orphan Frame.
* @param name Orphan frame name
* @return the created orphan frame
*/
public static final Frame getNewOrphanFrame(final String name) {
return new Frame(name, false);
}
}
(from redmine: issue id 98, created on 2012-05-15, closed on 2012-05-15)