< 2.3.2 Compute position 2.3.4 Mouse pointer >

2.3.3  Display

This program displays objects on the screen in a definite order. Firstly, it clears the objects in past positions (if any) to background color, then displays them in new positions in their proper color

A body and related objects are displayed in the order as shown in Table 5:

 

No Object
1 Body velocity vector
2 Body force vector
3 Body itself
4 Body name

Table 5. Body object priorities in displaying

 

Before displaying test objects, they are deleted in reverse order (if applicable). Due to its higher priority, bodies hide some of the vectors behind them. The name does not hide the body only since not covering it. A body has a virtually minimum and maximum size. The minimum display body size is 1 pixel, and the maximum is a disk of 100 pixel diameter (full circle).

Bodies (and their related objects) are displayed by priority the order of their definition determines. Bodies of higher priority (and their objects) may cover the bodies of lower priority (and their objects), as they appear on the screen later. Body priorities may be changed for instance by using the Bodies page in the dialog window Create new system/System properties.

Group name, Mass center, On-Screen Information and the Center of the coordinate system are refreshed after the body cycle.

On trailing, not the body, vectors and mass center displayed at last are being deleted, but the ones preceding by Trail length i.e. the complete trail is not refreshed. If the trail length is 100, then each of the 100 objects are displayed after the 100th refresh, from which the current 100th elements are deleted, the new appears, and the remaining 99 are not be refreshed even if another object has deleted them.

 

 

 

 

 


< 2.3.2 Compute position 2.3.4 Mouse pointer >