« GPlotPanel » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 51 : | Ligne 51 : | ||
This panel will then appear ... | This panel will then appear ... | ||
{{:user_manual: | {{:user_manual:GPlotPanel1.jpg|}} | ||
After selecting a file ... | After selecting a file ... | ||
{{:user_manual: | {{:user_manual:GPlotPanel2.jpg|}} | ||
We may have something like that ... | We may have something like that ... | ||
{{:user_manual: | {{:user_manual:GPlotPanel3.jpg|}} | ||
[[WELCOME_TO_THE_GENIUS_WIKI|Return to the introduction ↑]] | [[WELCOME_TO_THE_GENIUS_WIKI|Return to the introduction ↑]] | ||
[[Internationalization|Go to the next page →]] | [[Internationalization|Go to the next page →]] |
Version du 5 mai 2017 à 12:32
There is another higher level widget GPlotPanel] allowing to plot data stored in a file with a given format as described here below ...
#<AM-acces:COL-V2.0>
<INIT:
Logiciel="DOORS"
VERSION="V10.0"
<COL:
0 : DATE ~cal (Date)
1 : TIME ~s (Time)
2 : X ~m (Integration Frame X Coordinates)
3 : Y ~m (Integration Frame Y Coordinates)
4 : Z ~m (Integration Frame Z Coordinates)
5 : VX ~m/s (Integration Frame X Velocity Coordinates)
6 : VY ~m/s (Integration Frame Y Velocity Coordinates)
7 : VZ ~m/s (Integration Frame Z Velocity Coordinates)
8 : PSI ~deg (Integration Frame Pitch Angle)
9 : TETA ~deg (Integration Frame Yaw Angle)
10 : PHI ~deg (Integration Frame Roll Angle)
>
>
2010-01-01T00:00:00.000 0.000000000000000e+00 6.678133638255782e+06 3.787739409565575e-01 -6.700773491792874e+03 -6.052524398242765e+00 4.780628779989441e+03 -6.031804544978191e+03 9.000000000000000e+01 5.160000022816957e+01 2.699999999999999e+02
2010-01-01T00:00:10.000 1.000000000000000e+01 6.677625571129634e+06 4.780559859589861e+04 -6.701701843926338e+04 -9.555978350214156e+01 4.780308392028196e+03 -6.031309305094114e+03 9.106301358852552e+01 5.159519405116432e+01 2.708330583318874e+02
...
Note that to be interpreted, dates must have the "yyyy-mm-ddThh:mm:ss.sss" format (and the "unit" must be ~cal).
Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give :
* the prefix of the files you want to read * the suffix of the files you want to read * a comment giving a description of this kind of files * the maximum number of detached plot windows. If greater than 0 a "+" button wille be displayed in order to allow to display other plots in detached panels
In the following example, we will check for EPH_* files (no specific suffix).
GPlotPanel plots = new GPlotPanel("EPH", "", "Ephemeris file", 0);
...
public void display() throws GException {
put(plots);
}
}
This panel will then appear ...
After selecting a file ...
We may have something like that ...