CN112614209A - Element redrawing method and system during flow chart refreshing - Google Patents

Element redrawing method and system during flow chart refreshing Download PDF

Info

Publication number
CN112614209A
CN112614209A CN202011645494.0A CN202011645494A CN112614209A CN 112614209 A CN112614209 A CN 112614209A CN 202011645494 A CN202011645494 A CN 202011645494A CN 112614209 A CN112614209 A CN 112614209A
Authority
CN
China
Prior art keywords
display area
connecting line
axis
line
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011645494.0A
Other languages
Chinese (zh)
Other versions
CN112614209B (en
Inventor
赵明杰
戴志强
金刚
赵严
姚毅
杨艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Luster LightTech Co Ltd
Suzhou Luster Vision Intelligent Device Co Ltd
Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd
Original Assignee
Luster LightTech Co Ltd
Suzhou Luster Vision Intelligent Device Co Ltd
Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Luster LightTech Co Ltd, Suzhou Luster Vision Intelligent Device Co Ltd, Suzhou Lingyunguang Industrial Intelligent Technology Co Ltd filed Critical Luster LightTech Co Ltd
Priority to CN202011645494.0A priority Critical patent/CN112614209B/en
Publication of CN112614209A publication Critical patent/CN112614209A/en
Application granted granted Critical
Publication of CN112614209B publication Critical patent/CN112614209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The application relates to the technical field of image processing, in particular to an element redrawing method and an element redrawing system during flow chart refreshing, which comprises the following steps: respectively determining a non-connecting line element and a connecting line element in the flow chart during refreshing; respectively obtaining coordinate values of the central points of the non-connecting line elements and coordinate values of the end points of the connecting line elements; obtaining coordinate values of edge points, wherein the edge points are positioned at the edges of the non-connecting line elements and have the largest distance with the central point; judging whether all or part of the non-connecting line elements are in the display area according to the coordinate values of the edge points; judging whether all or part of the connecting line elements are in the display area according to the coordinate values of the endpoints of the connecting line elements; and redrawing all or part of the non-connecting line elements and the connecting line elements in the display area. According to the method and the device, the relationship between the elements in the flow chart and the display area is analyzed, the elements in the display area are selectively redrawn, and the refreshing efficiency is greatly improved.

Description

Element redrawing method and system during flow chart refreshing
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and a system for redrawing elements during a flowchart refresh.
Background
The flow chart is a two-dimensional diagram composed of specific graphic symbols and illustrations, etc. and used to represent the flow of the algorithm. The flow chart generally consists of non-connecting line elements and connecting line elements for connecting the non-connecting line elements, wherein the non-connecting line elements comprise rounded rectangles, rhombuses, parallelograms, triangles, trapezoids and the like, and the connecting line elements comprise transverse straight lines, vertical lines, broken lines and the like.
In the prior art, the flow charts of the whole page need to be redrawn and then displayed in the display area during each refreshing, but only part of the flow charts are displayed in the display area due to the limited area of the display area, and the rest of the flow charts are not displayed in the display area. Therefore, as in the prior art, the method for redrawing all elements in the flow chart consumes a lot of time, greatly reduces the refreshing efficiency and the user experience, continuously occupies the CPU, and reduces the running speed of the terminal system.
Disclosure of Invention
The application provides a method and a system for efficiently refreshing a flow chart, which aim to solve the problem of low refreshing efficiency caused by redrawing all elements in the flow chart during refreshing in the prior art.
The technical scheme adopted by the application is as follows:
a method of element redrawing during flow chart refresh, the method comprising the steps of:
respectively determining a non-connecting line element and a connecting line element in the flow chart during refreshing;
respectively obtaining coordinate values of the central points of the non-connecting line elements and coordinate values of the end points of the connecting line elements;
obtaining coordinate values of edge points, wherein the edge points are located at the edges of the elements other than the connecting line and have the largest distance with the central point;
judging whether all or part of the non-connecting line elements are positioned in a display area according to the coordinate values of the edge points;
judging whether all or part of the connecting line element is in a display area according to the coordinate value of the connecting line element endpoint;
and redrawing all or part of the non-connecting line elements and the connecting line elements in the display area.
Further, the obtaining the coordinate values of the edge points includes: respectively searching the edge points to a first direction, a second direction, a third direction and a fourth direction by taking the central point as a base point;
the edge points comprise a first edge point, a second edge point, a third edge point and a fourth edge point;
the first edge point is located in a first direction and has the largest distance with the central point, the second edge point is located in a second direction and has the largest distance with the central point, the third edge point is located in a third direction and has the largest distance with the central point, and the fourth edge point is located in a fourth direction and has the largest distance with the central point.
Further, judging whether all or part of the non-connecting line element is in the display area according to the coordinate value of the edge point, including:
when the X-axis value of the first edge point is larger than the maximum X-axis value of the display area, or when the X-axis value of the second edge point is smaller than the minimum X-axis value of the display area, or when the Y-axis value of the third edge point is larger than the maximum Y-axis value of the display area, or when the Y-axis value of the fourth edge point is smaller than the minimum Y-axis value of the display area, all or part of the non-connecting line elements are not in the display area;
otherwise, all or part of the non-connecting line element is in the display area.
Further, judging whether all or part of the connecting line element is in the display area according to the coordinate value of the connecting line element endpoint, including:
when the X-axis minimum value of the end point of the connecting line element is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the end point of the connecting line element is smaller than the X-axis minimum value of the display area, or when the Y-axis minimum value of the end point of the connecting line element is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the end point of the connecting line element is smaller than the Y-axis minimum value of the display area, all or part of the connecting line element is not in the display area;
otherwise all or part of the connecting line element is in the display area.
Further, if all or part of the non-connecting line elements are not in the display area, the non-connecting line elements are not redrawn during refreshing;
if all or part of the non-connecting line elements are positioned in the display area, redrawing the non-connecting line elements during refreshing;
if all or part of the connecting line elements are not in the display area, the connecting line elements are not redrawn during refreshing;
and if all or part of the connecting line elements are positioned in the display area, redrawing the connecting line elements during refreshing.
Further, judging whether all or part of the connecting line element is in the display area according to the coordinate value of the connecting line element endpoint, further comprising:
judging whether the connecting line elements contain more than two connecting line elements;
if the connecting line element comprises more than two connecting line elements, judging that the connecting line element is a broken line;
judging whether the X-axis values of the end points of the connecting line elements are equal or not;
if the X-axis values of the end points of the connecting line element are equal, the connecting line element is a vertical line in the broken line;
when the Y-axis minimum value of the vertical line is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the vertical line is smaller than the Y-axis minimum value of the display area, or the X-axis value of the end point of the vertical line is larger than the X-axis maximum value of the display area, or the X-axis value of the end point of the vertical line is smaller than the X-axis minimum value of the display area, all or part of the vertical line is not in the display area; all or part of the vertical line is not within the display area, otherwise all or part of the vertical line is within the display area;
judging whether the Y-axis values of the end points of the connecting line elements are equal or not;
if the Y-axis values of the end points of the connecting line elements are equal, the connecting line elements are horizontal straight lines in the broken lines;
judging whether all or part of the horizontal straight line is in a display area: when the X-axis minimum value of the transverse straight line is greater than the X-axis maximum value of the display area, or when the X-axis maximum value of the transverse straight line is less than the X-axis minimum value of the display area, all or part of the transverse straight line is not in the display area, if the Y-axis values of two end points of the transverse straight line are less than the Y-axis minimum value of the display area, or the Y-axis values of two end points of the transverse straight line are greater than the Y-axis maximum value of the display area, otherwise, all or part of the transverse straight line is in the display area;
if all or part of the vertical line and the horizontal line in the fold lines are not in the display area, all or part of the fold lines are not in the display area; otherwise all or part of the polyline is in the display area.
Further, judging whether all or part of the connecting line element is in the display area according to the coordinate value of the connecting line element endpoint, further comprising:
firstly, judging whether X-axis values of the end points of the connecting line elements are equal or not;
if the X-axis values of the end points of the connecting line elements are equal, the connecting line elements are vertical lines;
detecting the line width of the vertical line;
judging whether the line width of the vertical line is larger than a first preset line width;
if the line width of the vertical line is larger than the first preset line width, judging whether all or part of the vertical line is in a display area;
determining whether all or part of the vertical line is in the display area comprises: when the difference between the X-axis value of the vertical line and half of the line width is larger than the maximum X-axis value of the display area, or when the sum of the X-axis value of the vertical line and half of the line width is smaller than the minimum X-axis value of the display area, or when the maximum Y-axis value of the vertical line endpoint is smaller than the minimum Y-axis value of the display area, or when the minimum Y-axis value of the vertical line endpoint is larger than the maximum Y-axis value of the display area, all or part of the vertical line is not in the display area;
otherwise all or part of the vertical line is in the display area.
Further, judging whether all or part of the connecting line element is in the display area according to the coordinate value of the connecting line element endpoint, further comprising:
firstly, judging whether Y-axis values of the end points of the connecting line elements are equal or not;
if the Y-axis values of the end points of the connecting line elements are equal, the connecting line elements are horizontal straight lines;
detecting the line width of the transverse straight line;
judging whether the line width of the transverse straight line is larger than a second preset line width;
if the line width of the transverse straight line is larger than the second preset line width, judging whether all or part of the transverse straight line is in a display area;
determining whether all or part of the horizontal line is within the display area comprises: when the difference between the Y-axis value of the transverse straight line and half of the line width is larger than the maximum value of the Y-axis value of the display area, or when the sum of the Y-axis value of the transverse straight line and half of the line width is smaller than the minimum value of the Y-axis value of the display area, or when the minimum value of the X-axis of the end point of the transverse straight line is larger than the maximum value of the X-axis of the display area, or when the maximum value of the X-axis of the end point of the transverse straight line is smaller than the minimum value of the X-axis of the display area, all or;
otherwise all or part of the horizontal line is within the display area.
An element redrawing system during flow chart refreshing, which is used for implementing the element selective redrawing method during flow chart refreshing, and comprises the following steps:
the determining module is used for respectively determining a non-connecting line element and a connecting line element in the flow chart during refreshing;
the first acquisition module is used for acquiring coordinate values of the center points of the non-connecting line elements and coordinate values of the end points of the connecting line elements;
the second acquisition module is used for acquiring edge points in the non-connecting line elements, wherein the edge points are positioned on the edges of the connecting line elements and have the largest distance with the central point;
the judging module is used for judging whether the non-connecting line elements and the connecting line elements are wholly or partially in a display area;
and the redrawing module is used for redrawing all or part of the non-connecting line elements and the connecting line elements in the display area.
Further, the second obtaining module is specifically configured to: acquiring coordinate values of edge points;
respectively searching the edge points from a first azimuth, a second azimuth, a third azimuth and a fourth azimuth by taking the central point as a base point, wherein the edge points comprise a first edge point, a second edge point, a third edge point and a fourth edge point;
the first edge point is located in a first direction and has the largest distance with the central point, the second edge point is located in a second direction and has the largest distance with the central point, the third edge point is located in a third direction and has the largest distance with the central point, and the fourth edge point is located in a fourth direction and has the largest distance with the central point.
The technical scheme of the application has the following beneficial effects:
by analyzing the relationship between the elements in the flow chart and the display area, the method selectively redraws the elements in the display area, thereby greatly improving the refreshing efficiency;
the method for judging the non-connecting line elements comprises the steps of firstly obtaining the center points of the non-connecting line elements and then obtaining the edge point coordinates of the non-connecting line elements in all directions, and is suitable for the non-connecting line elements in various shapes in a flow chart;
this application has still considered the influence that the line width of connecting line element was in the display area to judging connecting line element when the analysis connecting line element, has improved the accuracy of judgement process.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an element redrawing method during a flow chart refresh process according to the present application;
FIG. 2 is an exemplary diagram illustrating redrawing elements of a flow diagram during refresh using the method of the present application.
Detailed Description
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following examples do not represent all embodiments consistent with the present application. But merely as exemplifications of systems and methods consistent with certain aspects of the application, as recited in the claims.
Referring to fig. 1, a flow diagram of an element redrawing method during a flow diagram refresh process provided in the present application is shown; referring to FIG. 2, an exemplary diagram illustrating redrawing elements of a flow diagram during refresh using the method of the present application is shown.
The application provides an element redrawing method during flow chart refreshing, which comprises the following steps:
s1, respectively determining a non-connecting line element and a connecting line element in the flow chart during refreshing.
The flow chart generally consists of non-connecting line elements and connecting line elements for connecting the non-connecting line elements, wherein the non-connecting line elements comprise rounded rectangles, rhombuses, parallelograms, triangles, trapezoids and the like, and the connecting line elements comprise transverse straight lines, vertical lines and broken lines.
And S2, respectively obtaining coordinate values of the central points of the elements of the non-connecting lines and coordinate values of the end points of the elements of the connecting lines. Wherein the connecting line element has two end points.
And S3, obtaining coordinate values of edge points of the non-connecting line elements according to the coordinate values of the central point, wherein the edge points are positioned on the edges of the connecting line elements and have the largest distance with the central point.
Acquiring the coordinate values of the edge points comprises: and respectively searching edge points to the first direction, the second direction, the third direction and the fourth direction by taking the central point as a base point.
The edge points comprise a first edge point, a second edge point, a third edge point and a fourth edge point;
the first edge point is located in the first direction and has the largest distance with the central point, the second edge point is located in the second direction and has the largest distance with the central point, the third edge point is located in the third direction and has the largest distance with the central point, and the fourth edge point is located in the fourth direction and has the largest distance with the central point.
In the embodiment of the present application, the first orientation, the second orientation, the third orientation, and the fourth orientation respectively represent the left, right, above, and below of the center point.
In the non-connecting line elements, the first edge point is positioned at the left of the central point and has the largest distance with the central point; the second edge point is located right side of the central point and has the largest distance with the central point, the third edge point is located above the central point and has the largest distance with the central point, and the fourth edge point is located below the central point and has the largest distance with the central point.
And S4, judging whether all or part of the non-connecting line elements are in the display area according to the coordinate values of the edge points.
When the X-axis value of the first edge point is greater than the maximum X-axis value of the display area (e.g., the non-connecting line element 5 in fig. 2), or when the X-axis value of the second edge point is less than the minimum X-axis value of the display area, or when the Y-axis value of the third edge point is greater than the maximum Y-axis value of the display area (e.g., the non-connecting line element 6 in fig. 2), or when the Y-axis value of the fourth edge point is less than the minimum Y-axis value of the display area (e.g., the non-connecting line element 1 and the non-connecting line element 2 in fig. 2), all or part of the non-connecting line elements are not within the display area (i.e., the non-connecting line elements 1, 2. Otherwise all or part of the non-connected line elements are within the display area (e.g. non-connected line elements 3 and 4 in fig. 2).
If all or part of the non-connected line elements are not in the display area, the non-connected line elements are not redrawn during refreshing, for example, the non-connected line elements 1, 2, 5 and 6 are not redrawn during refreshing.
If all or part of the non-connected line elements are in the display area, redrawing the non-connected line elements during refreshing, for example, redrawing the non-connected line elements 3 and 4 during refreshing.
S5, judging whether all or part of the connecting line elements are in the display area according to the coordinate values of the end points of the connecting line elements, wherein the judgment comprises the following steps:
when the X-axis minimum value of the end point of the connecting line element is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the end point of the connecting line element is smaller than the X-axis minimum value of the display area, or when the Y-axis minimum value of the end point of the connecting line element is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the end point of the connecting line element is smaller than the Y-axis minimum value of the display area, all or part of the connecting line element is not; otherwise all or part of the connecting line element is within the display area.
Specifically, the connecting line elements in the flowchart include vertical lines, horizontal lines, and broken lines. Therefore, it is necessary to determine the type of the connection line element first and then determine whether the connection line element is located in the display area.
For the vertical line: firstly, judging whether the X-axis values of two end points of the connecting line element are equal.
And if the X-axis values of the two end points of the connecting line element are equal, the connecting line element is a vertical line.
When the Y-axis maximum value of the vertical line is less than the Y-axis minimum value of the display area (e.g., the connection line 2 in fig. 2), or when the Y-axis minimum value of the vertical line is greater than the Y-axis maximum value of the display area, or when the X-axis value of the vertical line endpoint is greater than the X-axis maximum value of the display area, or when the X-axis value of the vertical line endpoint is less than the X-axis minimum value of the display area, then all or part of the vertical line is not in the display area; otherwise all or part of the vertical line is within the display area (as in connecting line elements 3 and 4 in fig. 2).
For a horizontal line: firstly, judging whether Y-axis values of two end points of a connecting line element are equal.
And if the Y-axis values of the two end points of the connecting line element are equal, the connecting line element is a horizontal straight line.
Judging whether all or part of the horizontal straight line is in the display area: when the X-axis minimum value of the transverse straight line is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the transverse straight line is smaller than the X-axis minimum value of the display area, all or part of the transverse straight line is not in the display area, if the Y-axis value of two end points of the transverse straight line is smaller than the Y-axis minimum value of the display area, or the Y-axis value of two end points of the transverse straight line is larger than the Y-axis maximum value of the display area, otherwise, all or part of the transverse straight line is in the display area.
For a polyline: first, whether the connecting line element includes more than two connecting line elements is judged.
If the connecting line element contains more than two kinds of connecting line elements, the connecting line element is judged to be a broken line. The broken lines in the flow chart are generally composed of vertical lines and horizontal lines which are connected end to end.
When the connecting line element is a broken line, judging whether all or part of the broken line is in the display area, including:
and acquiring the endpoint coordinate values of all connecting line elements in the broken line.
Firstly, judging whether the X-axis values of the end points of the connecting line elements are equal.
If the X-axis values of the endpoints of the connecting line element are equal, the connecting line element is a vertical line in the broken line.
When the Y-axis minimum value of the vertical line is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the vertical line is smaller than the Y-axis minimum value of the display area, or the X-axis value of the end point of the vertical line is larger than the X-axis maximum value of the display area, or the X-axis value of the end point of the vertical line is smaller than the X-axis minimum value of the display area, all or part of the vertical line is not in the display area; all or part of the vertical line is not within the display area, otherwise all or part of the vertical line is within the display area.
And then judging whether the Y-axis values of the end points of the connecting line elements are equal or not.
And if the Y-axis values of the end points of the connecting line elements are equal, the connecting line elements are horizontal straight lines in the broken line.
Judging whether all or part of the horizontal straight line is in the display area: when the X-axis minimum value of the transverse straight line is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the transverse straight line is smaller than the X-axis minimum value of the display area, all or part of the transverse straight line is not in the display area, if the Y-axis value of two end points of the transverse straight line is smaller than the Y-axis minimum value of the display area, or the Y-axis value of two end points of the transverse straight line is larger than the Y-axis maximum value of the display area, otherwise, all or part of the transverse straight line is in the display area.
Finally, when all or part of the vertical line and the horizontal line in the polyline are not in the display area (such as the connecting line element 1 in fig. 2), all or part of the polyline is not in the display area, and redrawing is not performed during refreshing; otherwise, the whole or part of the broken line is in the display area, and redrawing is carried out during refreshing.
Particularly, when determining whether all or part of the connecting line element is located in the display area according to the coordinate value of the connecting line endpoint, the method further includes considering the influence of the line width of the connecting line element on the determination result. The method comprises the following specific steps:
the step of judging whether all or part of the vertical line with the considered line width is in the display area comprises the following steps:
firstly, judging whether X-axis values of the end points of the connecting line elements are equal or not;
if the X-axis values of the end points of the connecting line elements are equal, the connecting line elements are vertical lines;
detecting the line width of the vertical line;
and judging whether the line width of the vertical line is larger than a first preset line width.
If the line width of the vertical line is greater than the first preset line width, judging whether all or part of the vertical line is in the display area comprises the following steps: when the difference between the X-axis value of the vertical line and half of the line width is larger than the maximum X-axis value of the display area, or when the sum of the X-axis value of the vertical line and half of the line width is smaller than the minimum X-axis value of the display area, or when the maximum Y-axis value of the vertical line endpoint is smaller than the minimum Y-axis value of the display area, or when the minimum Y-axis value of the vertical line endpoint is larger than the maximum Y-axis value of the display area, all or part of the vertical line is not in the display area; otherwise all or part of the vertical line is in the display area.
When the line width of the vertical line is less than or equal to a first preset line width, judging whether all or part of the vertical line is in the display area includes: if the Y-axis maximum value of the vertical line end point is smaller than the Y-axis minimum value of the display area, or the Y-axis minimum value of the vertical line end point is larger than the Y-axis maximum value of the display area, or the X-axis value of the vertical line end point is larger than the X-axis maximum value of the display area, or the X-axis value of the vertical line end point is smaller than the X-axis minimum value of the display area, all or part of the vertical line is not in the display area; otherwise all or part of the vertical line is in the display area.
For the horizontal straight line with the considered line width, the step of judging whether all or part of the horizontal straight line is positioned in the display area comprises the following steps:
firstly, judging whether Y-axis values of the end points of the connecting line elements are equal or not;
if the Y-axis values of the end points of the connecting line elements are equal, the connecting line elements are horizontal straight lines;
detecting the line width of a transverse straight line;
judging whether the line width of the transverse straight line is larger than a second preset line width;
if the line width of the horizontal straight line is greater than the second preset line width, whether all or part of the horizontal straight line is in the display area is judged, and the method specifically comprises the following steps: when the difference between the Y-axis value of the end point of the transverse straight line and half of the line width is larger than the maximum value of the Y-axis value of the display area, or when the sum of the Y-axis value of the transverse straight line and half of the line width is smaller than the minimum value of the Y-axis value of the display area, or when the minimum value of the X-axis of the two end points of the transverse straight line is larger than the maximum value of the X-axis of the display area, or when the maximum value of the X-axis of the two end points of the transverse straight line is smaller than the minimum value of the X; otherwise all or part of the horizontal line is within the display area.
If the line width of the horizontal straight line is less than or equal to a second preset line width, judging whether all or part of the horizontal straight line is in the display area, specifically comprising: if the Y-axis values of the two end points of the transverse straight line are smaller than the Y-axis minimum value of the display area, or the Y-axis values of the two end points of the transverse straight line are larger than the Y-axis maximum value of the display area, or when the X-axis minimum value of the two end points of the transverse straight line is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the two end points of the transverse straight line is smaller than the X-axis minimum value of the display area, all or part of the transverse straight line is; otherwise all or part of the horizontal line is within the display area.
The step of judging whether all or part of the broken line considering the line width is in the display area comprises the following steps:
firstly judging whether the connecting line element contains more than two connecting line elements
If the connecting line element contains more than two kinds of connecting line elements, the connecting line element is judged to be a broken line.
When the connecting line element is a broken line, judging whether all or part of the broken line is in the display area, including:
the method for judging whether the vertical line of the broken line is in the display area is the same as the method for judging whether the vertical line of the considered line width is in the display area;
the method for judging whether the horizontal straight line of the broken line is in the display area is the same as the method for judging whether the horizontal straight line of the considered line width is in the display area;
when all or part of the vertical line and the horizontal line in the fold lines are not in the display area, all or part of the fold lines are not in the display area; otherwise all or part of the polyline is within the display area
And S6, redrawing all or part of non-connecting line elements and connecting line elements in the display area.
By analyzing the relationship between the elements in the flow chart and the display area, the method selectively redraws the elements in the display area, thereby greatly improving the refreshing efficiency; when the non-connecting line elements are judged, a method of firstly obtaining the central points of the non-connecting line elements and then obtaining the edge point coordinates of each position of the non-connecting line elements is adopted, and the method is suitable for the non-connecting line elements with various shapes in a flow chart; the influence of the line width of the connecting line element on the judgment of whether the connecting line element is in the display area is considered when the connecting line element is judged, and the accuracy of the judging process is improved.
The embodiments provided in the present application are only a few examples of the general concept of the present application, and do not limit the scope of the present application. Any other embodiments extended according to the scheme of the present application without inventive efforts will be within the scope of protection of the present application for a person skilled in the art.

Claims (10)

1. A method for redrawing elements during flow chart refresh, the method comprising the steps of:
respectively determining a non-connecting line element and a connecting line element in the flow chart during refreshing;
respectively obtaining coordinate values of the central points of the non-connecting line elements and coordinate values of the end points of the connecting line elements;
obtaining coordinate values of edge points, wherein the edge points are located at the edges of the non-connecting line elements and have the largest distance with the central point;
judging whether all or part of the non-connecting line elements are positioned in a display area according to the coordinate values of the edge points;
judging whether all or part of the connecting line element is in a display area according to the coordinate value of the connecting line element endpoint;
and redrawing all or part of the non-connecting line elements and the connecting line elements in the display area.
2. The method for redrawing an element during a refresh of a flowchart as recited in claim 1,
the obtaining of the coordinate values of the edge points includes: respectively searching the edge points to a first direction, a second direction, a third direction and a fourth direction by taking the central point as a base point;
the edge points comprise a first edge point, a second edge point, a third edge point and a fourth edge point;
the first edge point is located in a first direction and has the largest distance with the central point, the second edge point is located in a second direction and has the largest distance with the central point, the third edge point is located in a third direction and has the largest distance with the central point, and the fourth edge point is located in a fourth direction and has the largest distance with the central point.
3. The method for redrawing an element during a refresh of a flowchart as recited in claim 2,
judging whether all or part of the non-connecting line element is in a display area according to the coordinate values of the edge points, wherein the judging step comprises the following steps:
when the X-axis value of the first edge point is larger than the maximum X-axis value of the display area, or when the X-axis value of the second edge point is smaller than the minimum X-axis value of the display area, or when the Y-axis value of the third edge point is larger than the maximum Y-axis value of the display area, or when the Y-axis value of the fourth edge point is smaller than the minimum Y-axis value of the display area, all or part of the non-connecting line elements are not in the display area;
otherwise, all or part of the non-connecting line element is in the display area.
4. The method for redrawing an element during a refresh of a flowchart as recited in claim 1,
judging whether all or part of the connecting line element is in a display area according to the coordinate value of the connecting line element endpoint, comprising the following steps:
when the X-axis minimum value of the end point of the connecting line element is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the end point of the connecting line element is smaller than the X-axis minimum value of the display area, or when the Y-axis minimum value of the end point of the connecting line element is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the end point of the connecting line element is smaller than the Y-axis minimum value of the display area, all or part of the connecting line element is not in the display area;
otherwise all or part of the connecting line element is in the display area.
5. The method for redrawing an element during a refresh of a flowchart as claimed in claim 3 or 4,
if all or part of the non-connecting line elements are not in the display area, the non-connecting line elements are not redrawn during refreshing;
if all or part of the non-connecting line elements are positioned in the display area, redrawing the non-connecting line elements during refreshing;
if all or part of the connecting line elements are not in the display area, the connecting line elements are not redrawn during refreshing;
and if all or part of the connecting line elements are positioned in the display area, redrawing the connecting line elements during refreshing.
6. The method for redrawing an element during a refresh of a flowchart as recited in claim 1,
judging whether all or part of the connecting line element is in a display area according to the coordinate value of the connecting line element endpoint, and further comprising:
judging whether the connecting line elements contain more than two connecting line elements;
if the connecting line element comprises more than two connecting line elements, judging that the connecting line element is a broken line;
judging whether the X-axis values of the end points of the connecting line elements are equal or not;
if the X-axis values of the end points of the connecting line element are equal, the connecting line element is a vertical line in the broken line;
when the Y-axis minimum value of the vertical line is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the vertical line is smaller than the Y-axis minimum value of the display area, or the X-axis value of the end point of the vertical line is larger than the X-axis maximum value of the display area, or the X-axis value of the end point of the vertical line is smaller than the X-axis minimum value of the display area, all or part of the vertical line is not in the display area; all or part of the vertical line is not within the display area, otherwise all or part of the vertical line is within the display area;
judging whether the Y-axis values of the end points of the connecting line elements are equal or not;
if the Y-axis values of the end points of the connecting line elements are equal, the connecting line elements are horizontal straight lines in the broken lines;
judging whether all or part of the horizontal straight line is in a display area: when the X-axis minimum value of the transverse straight line is greater than the X-axis maximum value of the display area, or when the X-axis maximum value of the transverse straight line is less than the X-axis minimum value of the display area, all or part of the transverse straight line is not in the display area, if the Y-axis values of two end points of the transverse straight line are less than the Y-axis minimum value of the display area, or the Y-axis values of two end points of the transverse straight line are greater than the Y-axis maximum value of the display area, otherwise, all or part of the transverse straight line is in the display area;
if all or part of the vertical line and the horizontal line in the fold lines are not in the display area, all or part of the fold lines are not in the display area; otherwise all or part of the polyline is in the display area.
7. The method for redrawing an element during a refresh of a flowchart as recited in claim 1,
judging whether all or part of the connecting line element is in a display area according to the coordinate value of the connecting line element endpoint, and further comprising:
firstly, judging whether X-axis values of the end points of the connecting line elements are equal or not;
if the X-axis values of the end points of the connecting line elements are equal, the connecting line elements are vertical lines;
detecting the line width of the vertical line;
judging whether the line width of the vertical line is larger than a first preset line width;
if the line width of the vertical line is larger than the first preset line width, judging whether all or part of the vertical line is in a display area;
determining whether all or part of the vertical line is in the display area comprises: when the difference between the X-axis value of the vertical line and half of the line width is larger than the maximum X-axis value of the display area, or when the sum of the X-axis value of the vertical line and half of the line width is smaller than the minimum X-axis value of the display area, or when the maximum Y-axis value of the vertical line endpoint is smaller than the minimum Y-axis value of the display area, or when the minimum Y-axis value of the vertical line endpoint is larger than the maximum Y-axis value of the display area, all or part of the vertical line is not in the display area;
otherwise all or part of the vertical line is in the display area.
8. The method for redrawing an element during a refresh of a flowchart as recited in claim 7,
judging whether all or part of the connecting line element is in a display area according to the coordinate value of the connecting line element endpoint, and further comprising:
firstly, judging whether Y-axis values of the end points of the connecting line elements are equal or not;
if the Y-axis values of the end points of the connecting line elements are equal, the connecting line elements are horizontal straight lines;
detecting the line width of the transverse straight line;
judging whether the line width of the transverse straight line is larger than a second preset line width;
if the line width of the transverse straight line is larger than the second preset line width, judging whether all or part of the transverse straight line is in a display area;
determining whether all or part of the horizontal line is within the display area comprises: when the difference between the Y-axis value of the transverse straight line and half of the line width is larger than the maximum value of the Y-axis value of the display area, or when the sum of the Y-axis value of the transverse straight line and half of the line width is smaller than the minimum value of the Y-axis value of the display area, or when the minimum value of the X-axis of the end point of the transverse straight line is larger than the maximum value of the X-axis of the display area, or when the maximum value of the X-axis of the end point of the transverse straight line is smaller than the minimum value of the X-axis of the display area, all or;
otherwise all or part of the horizontal line is within the display area.
9. An element redrawing system during flow chart refresh, for implementing the method of any one of claims 1 to 8 for element selective redrawing during flow chart refresh, comprising:
the determining module is used for respectively determining a non-connecting line element and a connecting line element in the flow chart during refreshing;
the first acquisition module is used for acquiring coordinate values of the center points of the non-connecting line elements and coordinate values of the end points of the connecting line elements;
the second acquisition module is used for acquiring edge points in the non-connecting line elements, wherein the edge points are positioned on the edges of the connecting line elements and have the largest distance with the central point;
the judging module is used for judging whether the non-connecting line elements and the connecting line elements are wholly or partially in a display area;
and the redrawing module is used for redrawing all or part of the non-connecting line elements and the connecting line elements in the display area.
10. The system for redrawing elements during a flow chart refresh of claim 9,
the second obtaining module is specifically configured to: acquiring coordinate values of edge points;
respectively searching the edge points from a first azimuth, a second azimuth, a third azimuth and a fourth azimuth by taking the central point as a base point, wherein the edge points comprise a first edge point, a second edge point, a third edge point and a fourth edge point;
the first edge point is located in a first direction and has the largest distance with the central point, the second edge point is located in a second direction and has the largest distance with the central point, the third edge point is located in a third direction and has the largest distance with the central point, and the fourth edge point is located in a fourth direction and has the largest distance with the central point.
CN202011645494.0A 2020-12-30 2020-12-30 Element redrawing method and system during flow chart refreshing Active CN112614209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011645494.0A CN112614209B (en) 2020-12-30 2020-12-30 Element redrawing method and system during flow chart refreshing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011645494.0A CN112614209B (en) 2020-12-30 2020-12-30 Element redrawing method and system during flow chart refreshing

Publications (2)

Publication Number Publication Date
CN112614209A true CN112614209A (en) 2021-04-06
CN112614209B CN112614209B (en) 2024-02-20

Family

ID=75253286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011645494.0A Active CN112614209B (en) 2020-12-30 2020-12-30 Element redrawing method and system during flow chart refreshing

Country Status (1)

Country Link
CN (1) CN112614209B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900758A (en) * 2021-10-22 2022-01-07 广州博冠信息科技有限公司 Content display method, content display device, computer equipment and computer-readable storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003223251A (en) * 2002-01-30 2003-08-08 Sony Corp Information collection system and information collecting method
JP2007172456A (en) * 2005-12-26 2007-07-05 Toshiba Corp Plotting device
CN101021847A (en) * 2006-02-15 2007-08-22 中国科学院声学研究所 Method for optimizing embedded browser page display effect
US20090262144A1 (en) * 2008-04-16 2009-10-22 Mitsubishi Electric Corporation Plant information dispaly device
TW201007618A (en) * 2008-08-08 2010-02-16 Hon Hai Prec Ind Co Ltd Computer system and method for extracting boundary elements
CN101923468A (en) * 2010-08-13 2010-12-22 中兴通讯股份有限公司 Method and device for redrawing widget
CN102663056A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for displaying picture elements
WO2013185585A1 (en) * 2012-06-13 2013-12-19 优视科技有限公司 Method and device for determining focus element
EP2963572A1 (en) * 2014-07-01 2016-01-06 Siemens Product Lifecycle Management Software Inc. Seam modification for 3d cad models
US20160103883A1 (en) * 2014-10-09 2016-04-14 Splunk Inc. Automatic entity definitions
WO2016072811A1 (en) * 2014-11-07 2016-05-12 삼성전자 주식회사 Display device and method of controlling display device
CN105892863A (en) * 2016-03-31 2016-08-24 联想(北京)有限公司 Data repainting method and electronic equipment
CN106846431A (en) * 2016-12-27 2017-06-13 中国电子科技网络信息安全有限公司 A kind of unified Web graph shape drawing system for supporting many forms of expression
US20180121490A1 (en) * 2016-11-03 2018-05-03 Veritas Technologies Llc Systems and methods for flushing data in a virtual computing environment
CN110286992A (en) * 2019-07-02 2019-09-27 中国工商银行股份有限公司 The method and device that interface figure is redrawn

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003223251A (en) * 2002-01-30 2003-08-08 Sony Corp Information collection system and information collecting method
JP2007172456A (en) * 2005-12-26 2007-07-05 Toshiba Corp Plotting device
CN101021847A (en) * 2006-02-15 2007-08-22 中国科学院声学研究所 Method for optimizing embedded browser page display effect
US20090262144A1 (en) * 2008-04-16 2009-10-22 Mitsubishi Electric Corporation Plant information dispaly device
TW201007618A (en) * 2008-08-08 2010-02-16 Hon Hai Prec Ind Co Ltd Computer system and method for extracting boundary elements
CN101923468A (en) * 2010-08-13 2010-12-22 中兴通讯股份有限公司 Method and device for redrawing widget
CN102663056A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for displaying picture elements
WO2013185585A1 (en) * 2012-06-13 2013-12-19 优视科技有限公司 Method and device for determining focus element
EP2963572A1 (en) * 2014-07-01 2016-01-06 Siemens Product Lifecycle Management Software Inc. Seam modification for 3d cad models
US20160103883A1 (en) * 2014-10-09 2016-04-14 Splunk Inc. Automatic entity definitions
WO2016072811A1 (en) * 2014-11-07 2016-05-12 삼성전자 주식회사 Display device and method of controlling display device
CN105892863A (en) * 2016-03-31 2016-08-24 联想(北京)有限公司 Data repainting method and electronic equipment
US20180121490A1 (en) * 2016-11-03 2018-05-03 Veritas Technologies Llc Systems and methods for flushing data in a virtual computing environment
CN106846431A (en) * 2016-12-27 2017-06-13 中国电子科技网络信息安全有限公司 A kind of unified Web graph shape drawing system for supporting many forms of expression
CN110286992A (en) * 2019-07-02 2019-09-27 中国工商银行股份有限公司 The method and device that interface figure is redrawn

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900758A (en) * 2021-10-22 2022-01-07 广州博冠信息科技有限公司 Content display method, content display device, computer equipment and computer-readable storage medium
CN113900758B (en) * 2021-10-22 2023-09-12 广州博冠信息科技有限公司 Content display method, apparatus, computer device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN112614209B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN103942824B (en) Linear feature extracting method for three-dimensional point cloud
CN103021262B (en) Method and system for processing drawing of map labels
EP3104329A1 (en) Image processing device and image processing method
CN112614209A (en) Element redrawing method and system during flow chart refreshing
CN103605716B (en) Data processing method and device used for webpage click display
CN111696072B (en) Method and device for detecting straight line of color image, electronic equipment and storage medium
CN113806457B (en) Longitude and latitude point region attribution judging method and system
CN104714666B (en) A kind of smart pen and its stroke recognition processing method
CN107239187A (en) Method, device and equipment for displaying three-dimensional graph
JP4533849B2 (en) Image processing apparatus and image processing program
CN106778844B (en) Method and system for matching cracks in tunnel
CN107608670B (en) Method and system for self-adaptive display of report UI (user interface) elements
CN111226095B (en) Dynamic remodelling of digital maps
CN113658288B (en) Method for generating and displaying polygonal data vector slices
CN106447711B (en) A kind of multiple dimensioned basic geometry feature extracting method
CN107133022B (en) Control display method and device in terminal equipment
CN109389548A (en) Computer system and its drawing processing method
CN114882192A (en) Building facade segmentation method and device, electronic equipment and storage medium
CN109815791B (en) Blood vessel-based identity recognition method and device
US6930686B1 (en) Method and apparatus for drawing thick graphic primitives
Lai et al. Effective edge-corner detection method for defected images
Raposo et al. Label and attribute-based topographic point thinning
CN115937459B (en) Bubble motion path type discriminating method based on aggregate ideas
Kaewapichai et al. Robust ellipse detection by fitting randomly selected edge patches
CN111061823B (en) Custom vector symbol generation method, intelligent terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant