GPForceModels
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: