The field of the invention is that of graphics libraries supplying graphics functions used in the tracing of symbolic images. One of the fields where the invention is particularly applicable is the generation of symbolic images for aircraft flight control. These images are notably used in navigation, flight control and the management of critical systems, such as engine monitoring.
Graphical images are generated on matrix display screens, such as for example liquid crystal displays. The generation of the graphics image is effected in the following manner: a buffer memory, referred to as ‘frame-buffer’, is filled with the various graphics symbols required by the image, these graphics symbols being assigned an order of priority; when all the graphics symbols have been created in the frame-buffer, its contents are then sent to the display. These graphics images are generated in real time.
In certain applications, the screen comprises restricted areas, called ‘clipboxes’, inside which no graphics object must be traced. This function is useful, for example, for displaying one or more video images that it is undesirable to clutter with graphics symbols.
In order to achieve this function, the solution usually adopted consists in assigning the highest priority order to the restricted areas in such a manner that the areas with graphics symbols of lower priority falling within the restricted areas are erased from the frame-buffer. In this scenario, graphics symbols may be created needlessly within the frame-buffer only to then be replaced with the desired content of the clipbox. Thus, unnecessary calculations are performed, and since the images are generated in real time and contain a very large number of pixels, the calculation and addressing times need to be optimized.
The object of the invention is to avoid filling the frame-buffer several times successively in the restricted areas by eliminating by calculation the graphics symbols falling in the restricted areas.
Any curve or any complex line may be decomposed into a certain number of elementary straight lines. The invention is applied to these elementary straight lines.
More precisely, the subject of the invention is a method for graphical generation of at least one straight line on a matrix display comprising at least one restricted area and one allowed area complementary to the restricted area, characterized in that said method comprises a first step for calculating the segments of the line situated strictly within the allowed area and a second step for tracing said segments in the allowed area.
Advantageously, when the display comprises two separate restricted areas, the method comprises the following sub-steps:
Advantageously, the ends of each segment are either an end of the line, or a point of intersection of the line with one of the restricted areas.
Advantageously, the restricted areas or the allowed areas are rectangular areas and the algorithm allowing the points of intersection to be calculated is of the Cohen-Sutherland or Cyrus-Beck type.
The invention will be better understood and other advantages will become apparent upon reading the description that follows, presented as a non-limiting example and with regard to the appended figures, among which:
a and 5b show a matrix display comprising two restricted areas and one line running across both restricted areas;
The subject of the invention is a graphical generation method comprising a first step for calculating the segments of the line situated strictly within the allowed area and a second step for tracing said segments in the allowed area.
In
In
In
In
When the display comprises two separate restricted areas, the method comprises the following sub-steps:
a and 5b illustrate the main steps of the method in the case of two separate restricted areas 21 and 22 disposed on a display 1. A line 4 crosses the two restricted areas 21 and 22.
a shows the first two sub-steps of the method. In this figure, as a reminder, the second area 22 appears as dashes. In
b shows the last two sub-steps of the method. The first segment 41, which is outside of the restricted area 22, is retained in its entirety. The two ends 52 and 6 of the segment 43 are within the allowed area but this segment cuts the restricted area 22 at the points 53 and 54. The segment 45, which is within the restricted area 22 and whose ends are the points 53 and 54, is eliminated, symbolized by a dashed line. The segments 44 and 46, which are within the allowed area 3 and whose ends are, respectively, the points 52 and 53 and 54 and 6 are retained, symbolized by solid lines. Finally, the segments 41, 44 and 46 are traced as indicated in
It goes without saying that this method can be generalized to a plurality of restricted areas. Accordingly, the line segments situated outside of the areas already examined are examined area by area.
In the vast majority of cases, the allowed areas or the restricted areas are rectangular windows into which video images are inserted. Various types of algorithms exist for calculating the points of intersection. By way of example, the Cohen-Sutherland algorithm can be used (Computer Graphics: Principles and Practice—Second Edition—Foley, vanDam, Feiner and Hugues—§ 3.1.2). The main steps of this algorithm are the following:
| Number | Date | Country | Kind |
|---|---|---|---|
| 04/04146 | Apr 2004 | FR | national |
| Filing Document | Filing Date | Country | Kind | 371c Date |
|---|---|---|---|---|
| PCT/EP05/51725 | 4/19/2005 | WO | 10/20/2006 |