CN112614209B - 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
CN112614209B
CN112614209B CN202011645494.0A CN202011645494A CN112614209B CN 112614209 B CN112614209 B CN 112614209B CN 202011645494 A CN202011645494 A CN 202011645494A CN 112614209 B CN112614209 B CN 112614209B
Authority
CN
China
Prior art keywords
display area
axis
connecting line
line
elements
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.)
Active
Application number
CN202011645494.0A
Other languages
Chinese (zh)
Other versions
CN112614209A (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

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 discloses a method and a system for redrawing elements during flow chart refreshing, which relate to the technical field of image processing and comprise the following steps: respectively determining non-connection line elements and connection line elements in the flow chart during refreshing; respectively acquiring coordinate values of center points of the non-connecting line elements and coordinate values of end points of the connecting line elements; acquiring 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 center 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 element is in the display area according to the coordinate value of the end point of the connecting line element; 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 relation 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 disclosure relates to the field of image processing technologies, and in particular, to a method and a system for redrawing elements during flowchart refreshing.
Background
The flow chart is a two-dimensional chart composed of specific graphic symbols and descriptions and the like and used for representing the algorithm flow. The flow chart is generally composed of non-connection line elements including rounded rectangles, diamonds, parallelograms, triangles, trapezoids, etc., and connection line elements including horizontal lines, vertical lines, broken lines, etc., for connecting the non-connection line elements.
In the prior art, when refreshing, the flow chart of the whole page needs to be redrawn and then displayed in the display area, but only part of the flow chart is displayed in the display area due to the limited area of the display area, and the rest of the flow chart is not displayed in the display area. Therefore, the method for redrawing all elements in the flow chart consumes a great deal of time, greatly reduces refreshing efficiency and user experience, continuously occupies CPU and reduces the running speed of a terminal system.
Disclosure of Invention
The application provides a high-efficiency refreshing method and a high-efficiency refreshing system for a flow chart, which are used for solving the problem that in the prior art, when refreshing, refreshing efficiency is low due to redrawing of all elements in the flow chart.
The technical scheme adopted by the application is as follows:
a method of element redrawing at flowchart refresh, the method comprising the steps of:
respectively determining non-connection line elements and connection line elements in the flow chart during refreshing;
respectively acquiring coordinate values of center points of the non-connecting line elements and coordinate values of end points of the connecting line elements;
acquiring coordinate values of edge points, wherein the edge points are positioned at edges which are not connected with the line elements and have the largest distance with the center point;
judging whether all or part of the non-connecting line elements are 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 values of the end points of the connecting line element;
and redrawing all or part of non-connecting line elements and connecting line elements in the display area.
Further, the acquiring the coordinate value of the edge point includes: searching the edge points in the first direction, the second direction, the third direction and the fourth direction by taking the center 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 from the center point, the second edge point is located in a second direction and has the largest distance from the center point, the third edge point is located in a third direction and has the largest distance from the center point, and the fourth edge point is located in a fourth direction and has the largest distance from the center point.
Further, determining whether all or part of the non-connection line element is in the display area according to the coordinate value of the edge point includes:
when the X-axis value of the first edge point is larger than the X-axis maximum value of the display area, or when the X-axis value of the second edge point is smaller than the X-axis minimum value of the display area, or when the Y-axis value of the third edge point is larger than the Y-axis maximum value of the display area, or when the Y-axis value of the fourth edge point is smaller than the Y-axis minimum 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-connection line element is in the display area.
Further, determining whether all or part of the connection line element is in the display area according to the coordinate values of the connection line element end points includes:
when the X-axis minimum value of the connecting line element end point is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the connecting line element end point is smaller than the X-axis minimum value of the display area, or when the Y-axis minimum value of the connecting line element end point is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the connecting line element end point 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-connection line elements are not in the display area, the non-connection line elements are not redrawn during refreshing;
if all or part of the non-connection line elements are in the display area, redrawing the non-connection 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 in the display area, redrawing the connecting line elements in the refreshing process.
Further, determining whether all or part of the connection line element is in the display area according to the coordinate values of the connection line element end points, further includes:
judging whether the connecting line elements contain more than two connecting line elements or not;
if the connecting line elements contain more than two connecting line elements, judging that the connecting line elements are broken lines;
judging whether the X-axis values of the endpoints of the connecting line elements are equal or not;
if the X-axis values of the endpoints of the connecting line elements are equal, the connecting line elements are vertical lines in the folding lines;
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 in the display area, otherwise all or part of the vertical line is in the display area;
judging whether Y-axis values of the endpoints of the connecting line elements are equal or not;
if Y-axis values of the endpoints of the connecting line elements are equal, the connecting line elements are transverse 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 horizontal straight line is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the horizontal straight line is smaller than the X-axis minimum value of the display area, all or part of the horizontal straight line is not in the display area, if the Y-axis values of two end points of the horizontal straight line are smaller than the Y-axis minimum value of the display area, or the Y-axis values of two end points of the horizontal straight line are larger than the Y-axis maximum value of the display area, otherwise, all or part of the horizontal straight line is in the display area;
if all or part of the vertical line and the horizontal line in the folding line are not in the display area, all or part of the folding line is not in the display area; otherwise, all or part of the fold line is in the display area.
Further, determining whether all or part of the connection line element is in the display area according to the coordinate values of the connection line element end points, further includes:
firstly judging whether X-axis values of endpoints of the connecting line elements are equal or not;
if the X axis values of the endpoints 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 or not;
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 a display area includes: when the difference between the X-axis value and the half of the line width of the vertical line is larger than the X-axis maximum value of the display area, or when the sum of the X-axis value and the half of the line width of the vertical line is smaller than the X-axis minimum value of the display area, or when the Y-axis maximum value of the vertical line end point is smaller than the Y-axis minimum value of the display area, or when the Y-axis minimum value of the vertical line end point is larger than the Y-axis maximum 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, determining whether all or part of the connection line element is in the display area according to the coordinate values of the connection line element end points, further includes:
judging whether Y-axis values of endpoints of the connecting line elements are equal or not;
if Y-axis values of the endpoints 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 or not;
if the line width of the horizontal straight line is larger than the second preset line width, judging whether all or part of the horizontal straight line is in a display area;
determining whether all or part of the horizontal line is within a display area includes: when the difference between the Y-axis value of the horizontal line and the 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 horizontal line and the 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 endpoint of the horizontal 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 endpoint of the horizontal line is smaller than the minimum value of the X-axis of the display area, all or part of the horizontal line is not in the display area;
otherwise, all or part of the horizontal straight line is in the display area.
An element redrawing system during flow chart refreshing 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 the non-connecting line elements and the connecting line elements in the flow chart during refreshing;
the first acquisition module is used for acquiring coordinate values of the center point of the non-connecting line element and coordinate values of the end points of the connecting line element;
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 center point;
the judging module is used for judging whether the non-connecting line elements and the connecting line elements are all or partially in the 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;
searching the edge points respectively towards a first direction, a second direction, a third direction and a fourth direction by taking the center 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 from the center point, the second edge point is located in a second direction and has the largest distance from the center point, the third edge point is located in a third direction and has the largest distance from the center point, and the fourth edge point is located in a fourth direction and has the largest distance from the center point.
The technical scheme of the application has the following beneficial effects:
according to the method and the device, the relation between the elements in the flow chart and the display area is analyzed, so that the elements in the display area are selectively redrawn, and the refreshing efficiency is greatly improved;
the method for acquiring the center point of the non-connecting line element and then acquiring the coordinates of the edge points of each azimuth of the non-connecting line element is adopted when judging the non-connecting line element, and is suitable for the non-connecting line elements with various shapes in the flow chart;
the method and the device also consider the influence of the line width of the connecting line element on judging whether the connecting line element is in the display area or not when analyzing the connecting line element, and improve the accuracy of the judging process.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a method for redrawing elements during flow chart refreshing provided by the present application;
FIG. 2 is an exemplary diagram of redrawing elements in a flowchart during a refresh using the method of the present application.
Detailed Description
Reference will now be made in detail to the embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the examples below do not represent all embodiments consistent with the present application. Merely as examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
Referring to fig. 1, a flow chart of a method for redrawing elements during flow chart refreshing is provided; referring to FIG. 2, an exemplary diagram for redrawing elements in a flowchart during a refresh using the method of the present application is shown.
The element redrawing method during flow chart refreshing provided by the application comprises the following steps:
s1, determining non-connection line elements and connection line elements in the flow chart during refreshing respectively.
The flow chart is generally composed of non-connecting line elements including rounded rectangles, diamonds, parallelograms, triangles, trapezoids, etc., and connecting line elements including horizontal lines, vertical lines, and broken lines for connecting the non-connecting line elements.
S2, respectively obtaining the coordinate values of the center points of the non-connecting line elements and the coordinate values of the end points of the connecting line elements. Wherein the connecting wire element has two terminals.
S3, acquiring coordinate values of edge points of the non-connecting line elements according to the coordinate values of the center points, wherein the edge points are located on edges of the connecting line elements and have the largest distance with the center points.
The obtaining of the coordinate value of the edge point comprises the following steps: and searching edge points from the first azimuth, the second azimuth, the third azimuth and the fourth azimuth respectively 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 center point, the second edge point is located in the second direction and has the largest distance with the center point, the third edge point is located in the third direction and has the largest distance with the center point, and the fourth edge point is located in the fourth direction and has the largest distance with the center point.
In the embodiment of the present application, the first orientation, the second orientation, the third orientation, and the fourth orientation represent the left, right, above, and below, respectively, the center point.
In the non-connecting line element, the first edge point is positioned at the left side of the center point and has the largest distance with the center point; the second edge point is positioned right of the center point and has the largest distance with the center point, the third edge point is positioned above the center point and has the largest distance with the center point, and the fourth edge point is positioned below the center point and has the largest distance with the center point.
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 display area X-axis maximum value (e.g., non-connection line element 5 in fig. 2), or when the X-axis value of the second edge point is less than the display area X-axis minimum value, or when the Y-axis value of the third edge point is greater than the display area Y-axis maximum value (e.g., non-connection line element 6 in fig. 2), or when the Y-axis value of the fourth edge point is less than the display area Y-axis minimum value (e.g., non-connection line element 1 and non-connection line element 2 in fig. 2), all or part of the non-connection line elements are not within the display area (i.e., non-connection line elements 1, 2, 5, and 6 in fig. 2). Otherwise all or part of the non-connecting line elements are within the display area (e.g. non-connecting line elements 3 and 4 in fig. 2).
If all or part of the non-connection line elements are not in the display area, the non-connection line elements are not redrawn at the time of refresh, such as non-connection line elements 1, 2, 5, and 6 are not redrawn at the time of refresh.
If all or part of the non-connection line elements are in the display area, the non-connection line elements are redrawn at the time of refresh, such as non-connection line elements 3 and 4 are redrawn at the time of refresh.
S5, judging whether all or part of the connecting line element is in the display area according to the coordinate values of the end points of the connecting line element, wherein the method comprises the following steps:
when the X-axis minimum value of the connecting line element end point is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the connecting line element end point is smaller than the X-axis minimum value of the display area, or when the Y-axis minimum value of the connecting line element end point is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the connecting line element end point 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 connection line element is in the display area.
Specifically, the connecting line elements in the flow chart 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 in the display area.
For the vertical line: firstly, judging whether X-axis values of two endpoints of a connecting line element are equal or not.
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 smaller than the Y-axis minimum value of the display area (such as the connection line 2 in fig. 2), or 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 X-axis value of the vertical line end point is larger than the X-axis maximum value of the display area, or when 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 (e.g. connecting line elements 3 and 4 in fig. 2).
For a horizontal straight line: first, judging whether Y-axis values of two end points of the connecting line element are equal.
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 horizontal straight line is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the horizontal straight line is smaller than the X-axis minimum value of the display area, all or part of the horizontal straight line is not in the display area, if the Y-axis values of the two end points of the horizontal 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 horizontal straight line are larger than the Y-axis maximum value of the display area, otherwise, all or part of the horizontal straight line is in the display area.
For a polyline: firstly, judging whether the connecting line elements contain more than two connecting line elements or not.
If the connecting line element contains more than two connecting line elements, the connecting line element is judged to be a broken line. The broken lines in the flow chart are generally formed by vertical lines and horizontal lines 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 or not, including:
and acquiring the endpoint coordinate values of each connecting line element in the broken line.
Firstly, judging whether X-axis values of endpoints of connecting line elements are equal or not.
If the X-axis values of the endpoints of the connecting line elements are equal, the connecting line elements are vertical lines 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 when 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 when 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 judging whether Y-axis values of the endpoints of the connecting line elements are equal or not.
If the Y-axis values of the endpoints 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 horizontal straight line is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the horizontal straight line is smaller than the X-axis minimum value of the display area, all or part of the horizontal straight line is not in the display area, if the Y-axis values of the two end points of the horizontal 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 horizontal straight line are larger than the Y-axis maximum value of the display area, otherwise, all or part of the horizontal straight line is in the display area.
Finally, when all or part of the vertical line and the horizontal line in the folding line are not in the display area (as the connecting line element 1 in fig. 2), all or part of the folding line is not in the display area, and redrawing is not performed during refreshing; otherwise, all or part of the broken line is in the display area, and redrawing is performed when refreshing.
Particularly, when judging whether all or part of the connecting line elements are in the display area according to the coordinate values of the connecting line endpoints, the method also comprises considering the influence of the line width of the connecting line elements on the judging result. The method comprises the following specific steps:
for a vertical line taking the line width into consideration, the step of judging whether it is wholly or partially within the display area includes:
firstly judging whether X-axis values of endpoints of connecting line elements are equal or not;
if the X axis values of the endpoints of the connecting line elements are equal, the connecting line elements are vertical lines;
detecting the line width of a 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, determining whether all or part of the vertical line is in the display area includes: when the difference between the X-axis value of the vertical line and the half of the line width is greater than the X-axis maximum value of the display area, or when the sum of the X-axis value of the vertical line and the half of the line width is less than the X-axis minimum value of the display area, or when the Y-axis maximum value of the vertical line end point is less than the Y-axis minimum value of the display area, or when the Y-axis minimum value of the vertical line end point is greater than the Y-axis maximum 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 smaller than or equal to the first preset line width, determining 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 a horizontal straight line considering the line width, the step of judging whether the horizontal straight line is wholly or partially in the display area includes:
firstly judging whether Y-axis values of endpoints of connecting line elements are equal or not;
if Y-axis values of the endpoints of the connecting line elements are equal, the connecting line elements are horizontal straight lines;
detecting the line width of a horizontal line;
judging whether the line width of the horizontal straight line is larger than a second preset line width or not;
if the line width of the horizontal line is greater than the second preset line width, judging whether all or part of the horizontal line is in the display area, specifically including: when the difference between the Y-axis value of the two end points of the horizontal line and the 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 horizontal line and the 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 horizontal 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 horizontal line is smaller than the minimum value of the X-axis of the display area, all or part of the horizontal line is not in the display area; otherwise, all or part of the horizontal straight line is in the display area.
If the line width of the horizontal line is smaller than or equal to the second preset line width, judging whether all or part of the horizontal line is in the display area, specifically including: if the Y-axis values of the two end points of the horizontal 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 horizontal 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 horizontal 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 horizontal line is smaller than the X-axis minimum value of the display area, all or part of the horizontal line is not in the display area; otherwise, all or part of the horizontal straight line is in the display area.
For a broken line considering line width, the step of judging whether it is wholly or partially within the display area includes:
firstly judging whether the connecting line element contains more than two connecting line elements
If the connecting line element contains more than two 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 or not, including:
the judging 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 line width is in the display area;
the judging method for judging whether the transverse straight line of the broken line is in the display area is the same as the method for judging whether the transverse straight line of the line width is in the display area;
when all or part of the vertical line and the horizontal line in the folding line are not in the display area, all or part of the folding line is not in the display area; otherwise all or part of the polyline is within the display area
S6, redrawing all or part of non-connecting line elements and connecting line elements in the display area.
According to the method and the device, the relation between the elements in the flow chart and the display area is analyzed, so that the elements in the display area are selectively redrawn, and the refreshing efficiency is greatly improved; when judging the non-connecting line element, a method of firstly acquiring the center point of the non-connecting line element and then acquiring the coordinates of the edge points of each azimuth of the non-connecting line element is adopted, so that the method is suitable for the non-connecting line elements with various shapes in the flow chart; the influence of the line width of the connecting line element on judging whether the connecting line element is in the display area is considered when the connecting line element is judged, so that the accuracy of the judging process is improved.
The foregoing detailed description of the embodiments is merely illustrative of the general principles of the present application and should not be taken in any way as limiting the scope of the invention. Any other embodiments developed in accordance with the present application without inventive effort are within the scope of the present application for those skilled in the art.

Claims (9)

1. A method for redrawing elements during a flowchart refresh, the method comprising the steps of:
respectively determining non-connection line elements and connection line elements in the flow chart during refreshing;
respectively acquiring coordinate values of center points of the non-connecting line elements and coordinate values of end points of the connecting line elements;
acquiring 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 center point;
judging whether all or part of the non-connecting line elements are 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 values of the end points of the connecting line element;
redrawing all or part of non-connecting line elements and connecting line elements in the display area;
wherein, judge whether all or part of the said connecting wire element is in the display area according to the coordinate value of the said connecting wire element endpoint, still include:
judging whether the connecting line elements contain more than two connecting line elements or not;
if the connecting line elements contain more than two connecting line elements, judging that the connecting line elements are broken lines;
judging whether the X-axis values of the endpoints of the connecting line elements are equal or not;
if the X-axis values of the endpoints of the connecting line elements are equal, the connecting line elements are vertical lines in the folding lines;
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 in the display area, otherwise all or part of the vertical line is in the display area;
judging whether Y-axis values of the endpoints of the connecting line elements are equal or not;
if Y-axis values of the endpoints of the connecting line elements are equal, the connecting line elements are transverse 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 horizontal straight line is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the horizontal straight line is smaller than the X-axis minimum value of the display area, all or part of the horizontal straight line is not in the display area, if the Y-axis values of two end points of the horizontal straight line are smaller than the Y-axis minimum value of the display area, or the Y-axis values of two end points of the horizontal straight line are larger than the Y-axis maximum value of the display area, otherwise, all or part of the horizontal straight line is in the display area;
if all or part of the vertical line and the horizontal line in the folding line are not in the display area, all or part of the folding line is not in the display area; otherwise, all or part of the fold line is in the display area.
2. The method for element redrawing during flowchart refreshing according to claim 1,
the obtaining the coordinate value of the edge point comprises the following steps: searching the edge points in the first direction, the second direction, the third direction and the fourth direction by taking the center 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 from the center point, the second edge point is located in a second direction and has the largest distance from the center point, the third edge point is located in a third direction and has the largest distance from the center point, and the fourth edge point is located in a fourth direction and has the largest distance from the center point.
3. The method for element redrawing during flowchart refreshing according to claim 2,
judging whether all or part of the non-connecting line elements are in a display area according to the coordinate values of the edge points, wherein the method comprises the following steps:
when the X-axis value of the first edge point is larger than the X-axis maximum value of the display area, or when the X-axis value of the second edge point is smaller than the X-axis minimum value of the display area, or when the Y-axis value of the third edge point is larger than the Y-axis maximum value of the display area, or when the Y-axis value of the fourth edge point is smaller than the Y-axis minimum 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-connection line element is in the display area.
4. The method for element redrawing during flowchart refreshing according to claim 1,
judging whether all or part of the connecting line element is in the display area according to the coordinate values of the endpoints of the connecting line element, including:
when the X-axis minimum value of the connecting line element end point is larger than the X-axis maximum value of the display area, or when the X-axis maximum value of the connecting line element end point is smaller than the X-axis minimum value of the display area, or when the Y-axis minimum value of the connecting line element end point is larger than the Y-axis maximum value of the display area, or when the Y-axis maximum value of the connecting line element end point 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 element redrawing during flowchart refreshing according to claim 3 or 4,
if all or part of the non-connection line elements are not in the display area, the non-connection line elements are not redrawn during refreshing;
if all or part of the non-connection line elements are in the display area, redrawing the non-connection 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 in the display area, redrawing the connecting line elements in the refreshing process.
6. The method for element redrawing during flowchart refreshing according to claim 1,
judging whether all or part of the connecting line element is in the display area according to the coordinate values of the endpoints of the connecting line element, and further comprising:
firstly judging whether X-axis values of endpoints of the connecting line elements are equal or not;
if the X axis values of the endpoints 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 or not;
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 a display area includes: when the difference between the X-axis value and the half of the line width of the vertical line is larger than the X-axis maximum value of the display area, or when the sum of the X-axis value and the half of the line width of the vertical line is smaller than the X-axis minimum value of the display area, or when the Y-axis maximum value of the vertical line end point is smaller than the Y-axis minimum value of the display area, or when the Y-axis minimum value of the vertical line end point is larger than the Y-axis maximum 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.
7. The method for element redrawing during flowchart refreshing of claim 6,
judging whether all or part of the connecting line element is in the display area according to the coordinate values of the endpoints of the connecting line element, and further comprising:
judging whether Y-axis values of endpoints of the connecting line elements are equal or not;
if Y-axis values of the endpoints 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 or not;
if the line width of the horizontal straight line is larger than the second preset line width, judging whether all or part of the horizontal straight line is in a display area;
determining whether all or part of the horizontal line is within a display area includes: when the difference between the Y-axis value of the horizontal line and the 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 horizontal line and the 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 endpoint of the horizontal 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 endpoint of the horizontal line is smaller than the minimum value of the X-axis of the display area, all or part of the horizontal line is not in the display area;
otherwise, all or part of the horizontal straight line is in the display area.
8. A system for element redrawing in a flowchart refresh, for implementing the method for element selective redrawing in a flowchart refresh according to any one of claims 1 to 7, comprising:
the determining module is used for respectively determining the non-connecting line elements and the connecting line elements in the flow chart during refreshing;
the first acquisition module is used for acquiring coordinate values of the center point of the non-connecting line element and coordinate values of the end points of the connecting line element;
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 center point;
the judging module is used for judging whether the non-connecting line elements and the connecting line elements are all or partially in the 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.
9. The system for element redrawing at flowchart refresh according to claim 8,
the second obtaining module is specifically configured to: acquiring coordinate values of edge points;
searching the edge points respectively towards a first direction, a second direction, a third direction and a fourth direction by taking the center 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 from the center point, the second edge point is located in a second direction and has the largest distance from the center point, the third edge point is located in a third direction and has the largest distance from the center point, and the fourth edge point is located in a fourth direction and has the largest distance from the center 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 CN112614209A (en) 2021-04-06
CN112614209B true 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)

Families Citing this family (1)

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

Citations (12)

* 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
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
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
CN110286992A (en) * 2019-07-02 2019-09-27 中国工商银行股份有限公司 The method and device that interface figure is redrawn

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4749440B2 (en) * 2008-04-16 2011-08-17 三菱電機株式会社 Plant information display device
US10474680B2 (en) * 2014-10-09 2019-11-12 Splunk Inc. Automatic entity definitions
US10402394B2 (en) * 2016-11-03 2019-09-03 Veritas Technologies Llc Systems and methods for flushing data in a virtual computing environment

Patent Citations (12)

* 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
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
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
CN110286992A (en) * 2019-07-02 2019-09-27 中国工商银行股份有限公司 The method and device that interface figure is redrawn

Also Published As

Publication number Publication date
CN112614209A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN112614209B (en) Element redrawing method and system during flow chart refreshing
US8503780B2 (en) Apparatus for detecting text recognition region and method of recognizing text
CN107578438A (en) Circle recognition methods, device and electronic equipment
CN102213767A (en) Positioning control method for closed region of vehicle-mounted GPS (Global Positioning System)
CN113221895A (en) Small target detection method, device, equipment and medium
CN113269280B (en) Text detection method and device, electronic equipment and computer readable storage medium
JP4533849B2 (en) Image processing apparatus and image processing program
CN107608670B (en) Method and system for self-adaptive display of report UI (user interface) elements
CN108205563B (en) Electronic map information marking method and device and terminal
CN107038199A (en) A kind of drawing practice and device
CN103310409A (en) Quick triangle partitioning method of Tile-based rendering architecture central processing unit (CPU)
CN101210964B (en) Three-point positioning method based on non-electronic map
CN103678470B (en) A kind of method and system for showing selection area economic data
CN113658288B (en) Method for generating and displaying polygonal data vector slices
CN112733831B (en) Trademark detection method and system
CN107133022B (en) Control display method and device in terminal equipment
CN114328783A (en) Map data output method, map data processing method and device and electronic equipment
CN110147215B (en) Method for realizing rapid zooming of electronic vector map
CN109815791B (en) Blood vessel-based identity recognition method and device
CN115731256A (en) Vertex coordinate detection method, device, equipment and storage medium
CN103019440A (en) Abnormal touch point removing method and device based on gesture recognition and touch screen
CN116932120B (en) Method and device for zooming visual page of map base map and electronic equipment
CN115063509B (en) Rasterization method and device based on DAA straight line representation and storage medium
CN116912395B (en) Graphics hybrid rendering method and device based on OpenGL and storage medium
CN111639150A (en) Method and system for displaying details of electronic map enlarged area

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