CN111382559A - Form self-adaptive drawing method applied to bridge health monitoring - Google Patents

Form self-adaptive drawing method applied to bridge health monitoring Download PDF

Info

Publication number
CN111382559A
CN111382559A CN202010304165.3A CN202010304165A CN111382559A CN 111382559 A CN111382559 A CN 111382559A CN 202010304165 A CN202010304165 A CN 202010304165A CN 111382559 A CN111382559 A CN 111382559A
Authority
CN
China
Prior art keywords
data
user
cell
cells
module
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
CN202010304165.3A
Other languages
Chinese (zh)
Other versions
CN111382559B (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.)
CCCC First Highway Consultants Co Ltd
Original Assignee
CCCC First Highway Consultants 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 CCCC First Highway Consultants Co Ltd filed Critical CCCC First Highway Consultants Co Ltd
Priority to CN202010304165.3A priority Critical patent/CN111382559B/en
Publication of CN111382559A publication Critical patent/CN111382559A/en
Application granted granted Critical
Publication of CN111382559B publication Critical patent/CN111382559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a table self-adaptive drawing method applied to bridge health monitoring, which comprises the following steps: the data processing module receives the drawing parameters of each user, stores the drawing parameters into the data dictionary and sends the drawing parameters to the table drawing module; the table drawing module reads the data drawing graph arranged by the data processing module, calculates the coordinates of the user cells, the width and the height of the user cells and the character coordinates of the user cells, draws the cells, and delivers the drawn cells to the table presenting module for presentation. The method of the invention can realize the self-adaptive drawing of the monitoring system table, not only can refresh the data in real time, but also can add and delete the data in real time and carry out the combination calculation on the data of a plurality of cells, thereby solving the problems that the prior monitoring system has fixed form when presenting the data, can only refresh the data in the table, can not control the size of the table in real time and does not support the combination calculation of the cells.

Description

Form self-adaptive drawing method applied to bridge health monitoring
Technical Field
The invention relates to the technical field of bridge health monitoring, in particular to a form self-adaptive drawing method applied to bridge health monitoring.
Background
At present, the monitoring technology has a plurality of application fields, for example, bridge health monitoring is taken as an example, a method is that a plurality of sensors are deployed on a bridge, and each sensor is used as a channel to report bridge health parameters regularly. One presentation mode of the bridge monitoring result is a two-dimensional linear graph, which is only suitable for the condition of fewer channels, and when the number of channels is more, the graphs are denser and are not easy to observe; another presentation is a fixed table presentation, which can present data of all channels, and has the disadvantages that the size and format of the table are fixed, the table cannot be dynamically presented when sensors are added or subtracted, and the consolidated calculation of multiple cells is not supported.
Disclosure of Invention
The invention aims to provide a table self-adaptive drawing method applied to bridge health monitoring, and solves the problems that when the existing monitoring system presents data, the form is fixed, only the data in the table can be refreshed, the size of the table cannot be controlled in real time, and cell combination calculation is not supported.
The technical scheme adopted by the invention is as follows:
the form self-adaptive drawing method applied to bridge health monitoring is characterized by comprising the following steps of:
the method comprises the following steps:
the method comprises the following steps: the data processing module receives the drawing parameters of each user, stores the drawing parameters into the data dictionary and sends the drawing parameters to the table drawing module;
step two: the table drawing module reads the data drawing graph arranged by the data processing module, calculates the coordinates of the user cells, the width and the height of the user cells and the character coordinates of the user cells, draws the cells, and delivers the drawn cells to the table presenting module for presentation.
Step one, data in a data dictionary comprises two parts, namely a public part and a cell part;
the public data are preset data, including the coordinates of the table, the height and width of the unit cell, the layer and the character style;
the cell data is data from each user, each piece of data is a user cell, the size and the content are specified by the user, or the unit cells are merged or split, and each piece of user data is pressed into a data dictionary when being received;
the user cell data is unordered and is sent according to the sequence in the table; or incomplete, with only partial cell user data transmission.
In the second step, the table drawing module firstly reads the public data, determines the starting point coordinate of table drawing, the width and height of the unit cell, the layer and the character style, then circularly reads the cell data of each user, calculates the user cell coordinate, the width and height of the user cell and the user cell character coordinate, and draws the cell.
And in the second step, the table drawing module periodically reads the parameters and refreshes the table in real time.
The form presentation module presents the form in a webpage or large-screen display device.
The invention has the following advantages:
the method can realize the self-adaptive drawing of the monitoring system table, not only can refresh the data in real time, but also can add and delete the data in real time and carry out the combination calculation on the data of a plurality of cells.
Drawings
FIG. 1 is a block diagram of the present invention;
fig. 2 is a table drawing flowchart.
FIG. 3 is a table drawing diagram according to the present invention.
Detailed Description
The present invention will be described in detail with reference to specific embodiments.
The invention relates to a form self-adaptive drawing method applied to bridge health monitoring, which comprises the following steps:
the method comprises the following steps: the data processing module receives the drawing parameters of each user, stores the drawing parameters into the data dictionary and sends the drawing parameters to the table drawing module;
step two: the table drawing module reads the data drawing graph arranged by the data processing module, calculates the coordinates of the user cells, the width and the height of the user cells and the character coordinates of the user cells, draws the cells, and delivers the drawn cells to the table presenting module for presentation.
In the first step, the data in the data dictionary comprises two parts, namely a public part and a cell part; the public data are preset data, including the coordinates of the table, the height and width of the unit cell, the layer and the character style; the cell data is data from each user, each piece of data is a user cell, the size and content are specified by the user, or the unit cells are merged or split, and each piece of user data is pressed into the data dictionary when being received.
In the second step, the table drawing module firstly reads the public data, determines the starting point coordinate of table drawing, the width and height of the unit cell, the layer and the character style, then circularly reads the cell data of each user, calculates the user cell coordinate, the width and height of the user cell and the user cell character coordinate, and draws the cell. And in the second step, the table drawing module periodically reads the parameters and refreshes the table in real time.
The subscriber unit cell data may be unordered and need not be sent in the order in the table. Or incomplete, and only partial cell user data can be transmitted.
The form presentation module presents the form in a webpage or large-screen display device.
Referring to the drawings:
the invention relates to three modules, namely a data processing module, a table drawing module and a table presenting module. The data processing module is connected with the users and the table drawing module, receives drawing parameters of the users of all channels and stores the drawing parameters into the data dictionary. The table drawing module is connected with the data processing module and the table presenting module, reads the data drawing graph arranged by the data processing module, and delivers the data drawing graph to the table presenting module for presentation after drawing is completed. Specifically, the method comprises the following steps:
1. the data processing module receives data of each user, gathers the data together, stores the data in a data dictionary form, and sends the data to the table drawing module. The data of the data processing module is divided into two parts, one part is public data, and the data of the part is set in advance and comprises the coordinates of a table, the height and the width of a unit cell, a layer, a character pattern and the like; the other part is user data from each channel, each piece of data is a user unit cell, the size and the content are freely specified by a user, the combination or the splitting of the unit cell can be realized, and each piece of user data is pressed into a data dictionary when being received. The user data is random and not sequentially divided.
The common parameters include:
1) table coordinates Tx, Ty;
2) the character types are as follows: TextStyle r1, TextStyle ec1, TextStyle;
3) layer drawing: LayerN, LayerW;
4) unit cell width: width
5) Unit cell height: height
6) Maximum number of lines: MaxRow
7) Maximum number of columns: MaxCo Chol
The subscriber cell parameters include:
1) cell type: type
2) Row number of Row
3) And (5) Col: column number
4) w the number of the unit cells occupied by the width of the unit cell
5) h is the number of the unit grids occupied by the height of the unit grid
6) text: the contents of this cell
Interpretation of terms:
1. unit cell: refers to the smallest cell in the figure, e.g. "2,1"
2. User unit cell: each cell in the figure is a user cell, and comprises a minimum cell (such as '2, 1') and a combined cell (such as '2, 3')
3. The table drawing module firstly reads the public parameters, determines the starting point coordinates of table drawing, the width and height of unit cells, the layers, the character styles and the like, then circularly reads the information of each user cell, calculates the coordinates of the user cells, the width and height of the user cells and the character coordinates of the user cells, and draws the cells.
And converting the public parameters and the user cell parameters into user cell coordinates and cell character coordinates according to the overall and local coordinate relation. The calculation method of the user cell coordinates and the character coordinates can be as follows:
the user cell x-axis coordinate Cx = Tx + (Col-1) × Width;
the y-axis coordinate of the subscriber unit cell is Cy = Ty- (Row-1) × Height;
subscriber cell Width Cw = w Width;
subscriber cell Height Ch = h × Height;
the x-axis coordinate of the text in the user cell CTx = Cx + Cw/2;
the y-axis coordinate of the text in the user cell CTy = Cy-Ch/2;
when the table is drawn, the user data can be unordered, the format is specified by the user, and the table drawing method is flexible and various and has no limitation. The data is refreshed periodically, the table is redrawn after each data refreshing, and the table and the user data are adaptive.
4. After the form is drawn, the form presentation module can see the form information in real time, and the form presentation module includes, but is not limited to, a web page, a large screen display and the like, and displays the form information in real time.
Example (b):
taking the table of fig. 3 as an example, the method is performed as follows:
1. the data processing module receives drawing parameters { [0,1,1,4,1, "1, 1" ], [0,2,1,1,1, "2,1" ], [0,2,2,1,1, "2, 2" ], [0,2,3,1,4, "2,3" ]. Each used cell has 6 parameters, the first parameter represents the cell type, and 0 represents a blank cell; the second and third parameters represent the row and column numbers of the subscriber cells in the entire table; the 4 th and 5 th parameters represent the number of unit cells occupied by the width and height of the user cells; the 6 th parameter is the content of the user cell to be displayed.
2. And the data processing module adds common parameters of the table into the drawing parameters of the table, wherein the common parameters comprise absolute coordinates, character types, layers, unit cell width and height, maximum row number and maximum column number of the table. The text types include three types, namely a text type of a line title, a text type of a column title and a text type of a table text. The layers comprise an inner layer and an outer layer, the outer layer is the layer where the outer outline of the table is located, and the inner layer is the layer where the line type inside the table is located. The maximum row number and the maximum column number are calculated in the process of drawing the table, the calculation mode is that when one cell is drawn, the maximum row number and the maximum column number are stored, and the maximum row number and the maximum column number of the table can be obtained when the drawing is finished.
3. And the table drawing module reads the parameters of the data processing module at regular time and draws the table in real time. Reading public parameters, determining a table drawing starting point, namely absolute coordinates of the upper left corner of the table, the width and the height of a unit cell, a layer, a character style and the like, circularly reading information of each user cell, calculating coordinates of the user cell, the width and the height of the user cell and character coordinates of the user cell, and drawing the cell.
4. The form presentation module can be connected with a terminal display device or presented in the form of a webpage, and the content of the form can be seen in real time.
The table is drawn periodically, the format does not need to be fixed in advance, data can be refreshed in real time, and the size of the table and the format of the cells can be changed in real time according to different inputs of a user.
The invention is not limited to the examples, and any equivalent changes to the technical solution of the invention by a person skilled in the art after reading the description of the invention are covered by the claims of the invention.

Claims (5)

1. The form self-adaptive drawing method applied to bridge health monitoring is characterized by comprising the following steps of:
the method comprises the following steps:
the method comprises the following steps: the data processing module receives the drawing parameters of each user, stores the drawing parameters into the data dictionary and sends the drawing parameters to the table drawing module;
step two: the table drawing module reads the data drawing graph arranged by the data processing module, calculates the coordinates of the user cells, the width and the height of the user cells and the character coordinates of the user cells, draws the cells, and delivers the drawn cells to the table presenting module for presentation.
2. The form adaptive drawing method applied to bridge health monitoring according to claim 1, wherein:
step one, data in a data dictionary comprises two parts, namely a public part and a cell part;
the public data are preset data, including the coordinates of the table, the height and width of the unit cell, the layer and the character style;
the cell data is data from each user, each piece of data is a user cell, the size and the content are specified by the user, or the unit cells are merged or split, and each piece of user data is pressed into a data dictionary when being received;
the user cell data is unordered and is sent according to the sequence in the table; or incomplete, with only partial cell user data transmission.
3. The form adaptive drawing method applied to bridge health monitoring according to claim 2, wherein:
in the second step, the table drawing module firstly reads the public data, determines the starting point coordinate of table drawing, the width and height of the unit cell, the layer and the character style, then circularly reads the cell data of each user, calculates the user cell coordinate, the width and height of the user cell and the user cell character coordinate, and draws the cell.
4. The form adaptive drawing method applied to bridge health monitoring according to claim 3, wherein:
and in the second step, the table drawing module periodically reads the parameters and refreshes the table in real time.
5. The form adaptive drawing method applied to bridge health monitoring according to claim 4, wherein the form adaptive drawing method comprises the following steps:
the form presentation module presents the form in a webpage or large-screen display device.
CN202010304165.3A 2020-04-17 2020-04-17 Self-adaptive drawing method of table applied to bridge health monitoring Active CN111382559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010304165.3A CN111382559B (en) 2020-04-17 2020-04-17 Self-adaptive drawing method of table applied to bridge health monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010304165.3A CN111382559B (en) 2020-04-17 2020-04-17 Self-adaptive drawing method of table applied to bridge health monitoring

Publications (2)

Publication Number Publication Date
CN111382559A true CN111382559A (en) 2020-07-07
CN111382559B CN111382559B (en) 2023-04-28

Family

ID=71220121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010304165.3A Active CN111382559B (en) 2020-04-17 2020-04-17 Self-adaptive drawing method of table applied to bridge health monitoring

Country Status (1)

Country Link
CN (1) CN111382559B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632934A (en) * 2020-12-22 2021-04-09 上海精密计量测试研究所 Method for restoring table picture into editable WORD file table based on proportion calculation
CN113391861A (en) * 2021-05-21 2021-09-14 军事科学院系统工程研究院网络信息研究所 Table dynamic drawing method based on android platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010049699A1 (en) * 1998-06-17 2001-12-06 Christopher Hugh Pratley Method and system for merging cells in a table and for adding an integrated header and a nested table to a table in an electronic document
CN102103582A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Method and system for drawing table utilizing computer
CN105005550A (en) * 2014-04-18 2015-10-28 腾讯科技(深圳)有限公司 Table generation method and apparatus
CN107168940A (en) * 2017-03-29 2017-09-15 长春市万易科技有限公司 A kind of report generating system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010049699A1 (en) * 1998-06-17 2001-12-06 Christopher Hugh Pratley Method and system for merging cells in a table and for adding an integrated header and a nested table to a table in an electronic document
CN102103582A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Method and system for drawing table utilizing computer
CN105005550A (en) * 2014-04-18 2015-10-28 腾讯科技(深圳)有限公司 Table generation method and apparatus
CN107168940A (en) * 2017-03-29 2017-09-15 长春市万易科技有限公司 A kind of report generating system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕显强;陶冶;杨文莲;杨松;吴俊峰;石云峰;: "基于对象模型的船舶电力负荷表格计算系统" *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632934A (en) * 2020-12-22 2021-04-09 上海精密计量测试研究所 Method for restoring table picture into editable WORD file table based on proportion calculation
CN113391861A (en) * 2021-05-21 2021-09-14 军事科学院系统工程研究院网络信息研究所 Table dynamic drawing method based on android platform
CN113391861B (en) * 2021-05-21 2023-12-29 军事科学院系统工程研究院网络信息研究所 Android platform-based form dynamic drawing method

Also Published As

Publication number Publication date
CN111382559B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN111382559B (en) Self-adaptive drawing method of table applied to bridge health monitoring
CN111949156B (en) Chinese character writing test method and system of writing device and writing device
CN102221973B (en) Electronic book reader and flipping-over control method thereof
CN102779167A (en) Method and system for displaying webpage in mobile terminal
CN109640154B (en) Webpage barrage display methods, device, equipment and storage medium
CN102663126A (en) Method and device for displaying webpage in mobile terminal
CN112148398B (en) Image processing method and device
CN103137103A (en) Character display method and device
CN104765614A (en) Color filling processing method and device
CN102842142B (en) The display packing of dynamic picture and device in document
CN113590066A (en) Full-automatic multi-screen splicing method, device, equipment and storage medium
CN111796788A (en) Method and system for compressing and accessing edge information of arc-shaped display screen
CN103678261A (en) Method, device and equipment for rapidly displaying TTFs
CN102298498A (en) Soft keyboard character input processing method and device
CN103108289B (en) A kind of pocket transmission news method
CN113835806B (en) Page layout method and device, electronic equipment and storage medium
CN102065177A (en) Dynamic icon display system and method for mobile terminal
CN109840929B (en) Method and device for realizing dynamic base line drawing based on Echarts
CN110322538A (en) character display method, device, storage medium and processor
CN107018166A (en) Service showing method and terminal
CN106445903A (en) Image-text data typesetting method and apparatus
CN103164192A (en) Individuation interface forming method and system for set top box
CN105975259A (en) Implementation method and device of 3D (Three-dimensional) space user interface
US20160216839A1 (en) Display device and electronic device including the same
CN110727896A (en) High-performance webpage real-time drawing interaction method and system

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