« GPRotation » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 20 : | Ligne 20 : | ||
[[File:GPRotation.png]] | [[File:GPRotation.png]] | ||
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. | As for the [[GPOrbit|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 == | == How to use it == |
Version du 29 juillet 2017 à 13:06
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>