« GPRotation » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
== How to call it == | == How to call it == | ||
For using the | For using the [{{PathCurrentJavaDoc}}/fr/cnes/genopus/attitudes/GPRotation.html GPRotation] class, the developer has only to create such an object as is: | ||
<syntaxhighlight lang="java"> | <syntaxhighlight lang="java"> |
Dernière version du 7 septembre 2017 à 10:43
How to call it
For using the GPRotation class, the developer has only to create such an object as is:
rotation = new GPRotation ("Label");
We also may initialize the widget with predefined values:
CustomRotation rot = new CustomRotation(RotationOrder.ZYX, FastMath.PI, 0., 0.);
rotation = new GPRotation ("Label", rot);
Display
We will get:
As for the GPOrbit widget, it is possible to do conversions (or deactivate them by clicking on the corresponding checkbox) using the same “pivot” notion.
How to use it
To get a GENOPUS CustomRotation object, we will just have to call for the getPatriusObject() method as below:
CustomRotation rot = rotation.getPatriusObject();
How it is stored
Here is the XML format:
<Rotation name="Label">
<String name="rotationOrder">XZX Euler angles</String>
<Real name="psi" unit="deg">0.0E0</Real>
<Real name="theta" unit="deg">1.8E2</Real>
<Real name="phi" unit="deg">0.0E0</Real>
</Rotation>