GPForceModels

De GENOPUS
Révision datée du 28 juillet 2017 à 17:31 par Admin (discussion | contributions) (Page créée avec « == How to call it == For using the <font color=#4169E1>GPForceModels</font> class the developer has only to create such an object with these two possibilities: * With no... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

How to call it

For using the GPForceModels class the developer has only to create such an object with these two possibilities:

  • With no arguments:
models = new GPForceModels();
  • with several boolean parameters as arguments : these ones will allow making visible or not each kind of force. Anyway, potential has not such a Boolean parameter as it will be mandatory to define a potential force model. So, in the following example, only potential, aerodynamic and radiative pressure forces will be displayed …
final boolean thirdBodiesForceIsVisible = false;
final boolean aeroForceIsVisible = true;
final boolean srpForceIsVisible = true;
final boolean rediffusedSrpForceIsVisible = false;
final boolean oceanTidesForceIsVisible = false;
final boolean terrestrialTidesForceIsVisible = false;

models = new GPForceModels(thirdBodiesForceIsVisible,
                           aeroForceIsVisible,
                           srpForceIsVisible,
                           rediffusedSrpForceIsVisible,
                           oceanTidesForceIsVisible,
                           terrestrialTidesForceIsVisible);

Display

In case of calling GPForceModels with no arguments, the initial display will be: