CN105184836A - Multifunctional electrical wiring diagram display method based on QT graphics frame - Google Patents
Multifunctional electrical wiring diagram display method based on QT graphics frame Download PDFInfo
- Publication number
- CN105184836A CN105184836A CN201510625583.1A CN201510625583A CN105184836A CN 105184836 A CN105184836 A CN 105184836A CN 201510625583 A CN201510625583 A CN 201510625583A CN 105184836 A CN105184836 A CN 105184836A
- Authority
- CN
- China
- Prior art keywords
- equipment
- scene
- wiring diagram
- model
- display
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention relates to the electrical wiring diagram display technology, and particularly relates to a multifunctional electrical wiring diagram display method based on a QT graphics frame. On the basis of an open source QT diagram display frame QT Graphics View, multifunctional display on a G file is realized. Particularly, the method comprises steps of system initialization, G graphics primitive cache processing, G diagram display processing, electrical wiring diagram special processing, dynamic electrical wiring diagram display, man-machine interaction and the like. Operations such as display, amplification, narrowing and pulling can be realized, and according to electrical wiring diagram feature topology, electrical wiring diagram dynamic display is realized.
Description
Technical field
The present invention relates to electric hookup display technique, be specifically related to a kind of multifunctional electric wiring diagram display packing based on QT graphics frame.
Background technology
In current national grid system general Software System, main flow dispatching automation class software wiring diagram is the display of G figure, and G figures exchange information norm formulated by state's net, but do not specify G graph rendering display technique, does not have disclosed display correlation technique at present.
It is a framework based on the M-V framework of item that QTGraphicsView provides for managing with the plane of 2D Drawing Object of mutual a large amount of customization and the view widget of visual display object, GraphicsView.
Summary of the invention
The present invention, in order to better realize the Multi-function display of electric hookup, provides a kind of multifunctional electric wiring diagram display packing based on QT graphics frame.
Technical scheme of the present invention is specific as follows:
Based on a multifunctional electric wiring diagram display packing for QT graphics frame, it is based on the QT figure display frame QTGraphicsView that increases income, and realizes, to the Multi-function display of G file, specifically comprising the steps:
Step one, system initialization;
Step 2, G pel caching process;
Step 3, G figure Graphics Processing;
Step 4, electric hookup special processing;
Step 5, dynamic electric hookup display;
Step 6, man-machine interaction.
Wherein, in step one: scene set, view, window injects scene, and view injects scene, sets up scene and view signal and menu and contacts.
In step 2: load G metafile, Open Scene, charting component, resolve G pel xml file, each device memory model is set up successively according to device type, containing equipment relative co-ordinate information in model, colouring information, and play up the drawing elements such as element containing drawing; In G figure, equipment is by drawing different piece forming device dynamic perfromance, stores display element corresponding to each state, in internal memory, set up caching process in model according to different conditions.
In step 3, mainly comprise:
A. layer process: set up charting component model, process document flow, reading displayed layer, chooses all elements label under show layers;
B. set up G graphical model: device label class in this way, read title, coordinate, and recording unit id, electric pressure, the attribute informations such as equipment connecting relation, generate equipment charting component class, and add in airfield equipment drawing container; Connecting line mark class in this way, record id, adds in station connecting line drawing container; Other directly form charting component, add in scene;
C. quote G graphical element model: equipment class reference pel in airfield equipment drawing container, load graphical element model, all devices drawing classes is added in scene;
D. coordinate conversion: quote Partial Elements relative coordinate conversion in pel in process station drawing container.
In step 4, mainly comprise:
E. device action process: draw in PaintShape method at airfield equipment charting component, according to electrical wiring graph model different shape, do different display drawing element process;
F. equipment live: the color table that equipment live is arranged according to the overall situation, in drafting PaintShape method, does color Graphics Processing according to charged;
G. nameplate process: the simple geometry drawing elements such as nameplate is word, rectangle are formed, but need dynamically to add on the equipment of wiring diagram; In drafting PaintShape method, according to different nameplate state, dynamic drafting nameplate geometric graphic element.
In step 5, mainly comprise:
H. dynamic topology: enable timer, elements all in process connecting line drawing container, according to annexation in model, the electrified body set split by Switch equipment is searched by the mode of recurrence, according to all drawing element set in " electrified body " concept process topology process, drawing element assignment color;
I. real time data periodic refreshing: enable timer, every certain event, again refresh primary equipment electriferous state, equipment dynamic topology situation, and fetch equipment Correlated Case with ARMA Measurement information, carry out equipment Dynamic Announce.
In step 6, mainly comprise:
J. pull process: in mouse up event, record mouse view coordinate, to scene coordinate to public variable, processes the coordinate that this is transformed into scene again in mouse up event, record move difference, charting component all in traversal scene, realizes assembly and moves, again refresh scene;
K. convergent-divergent process: arrange zoom factor, calculates mouse roller convergent-divergent and calculates scaling, call view Zoom method, realize convergent-divergent in mouse roller event;
L. right-click menu: the right-click menu event monitoring charting component, according to classification and the id of drawing right-click menu, ejects respective classes operation information menu, can expand customization, realize logic and call.
Beneficial effect of the present invention is: it, based on the QT figure display frame QTGraphicsView that increases income, achieves the Multi-function display of G electrical wiring figure, can realize display, amplify, reduce, the operation such as to pull, and according to electric hookup feature topology, realize electric hookup Dynamic Announce.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further illustrated.
Fig. 1 is process flow diagram of the present invention.
Embodiment
Accompanying drawing 1 is the process flow diagram of the multifunctional electric wiring diagram display packing based on QT graphics frame proposed by the invention, and it is based on the QT figure display frame QTGraphicsView that increases income, and realizes, to the Multi-function display of G file, specifically comprising the steps:
Step one, system initialization: set up scene and view signal and menu and contact;
Step 2, G pel caching process: set up G pel drawing model buffer memory;
Step 3, G figure Graphics Processing;
Step 4, electric hookup special processing: carry out different display drawing element process;
Step 5, dynamic electric hookup display: realize dynamic topology and real time data periodic refreshing;
Step 6, man-machine interaction: carry out pulling, the set handling of convergent-divergent and right-click menu.
Further, in step one: scene set, view, window injects scene, and view injects scene, sets up scene and view signal and groove menu and contacts.
Further, in step 2: load G metafile, Open Scene, charting component, resolve G pel xml file, set up each device memory model successively according to device type, containing equipment relative co-ordinate information in model, colouring information, and play up the drawing elements such as element (point, line, figure) containing drawing; In G figure, equipment is by drawing different piece forming device dynamic perfromance, stores display element corresponding to each state, in internal memory, set up caching process in model according to different conditions.
Further, in step 3, mainly comprise:
A. layer process: set up charting component model, process document flow, reading displayed layer, chooses all elements label under show layers;
B. set up G graphical model: device label class in this way, read title, coordinate, and recording unit id, electric pressure, the attribute informations such as equipment connecting relation, generate equipment charting component class, and add in airfield equipment drawing container; Connecting line mark class in this way, record id, adds in station connecting line drawing container; Other directly form charting component, add in scene;
C. quote G graphical element model: equipment class reference pel in airfield equipment drawing container, load graphical element model, all devices drawing classes is added in scene;
D. coordinate conversion: quote Partial Elements relative coordinate conversion in pel in process station drawing container.
Further, in step 4, mainly comprise:
E. device action process: draw in PaintShape method at airfield equipment charting component, according to electrical wiring graph model different shape (Switch has folding ground connection feature), do different display drawing element process;
F. equipment live: the color table that equipment live is arranged according to the overall situation, in drafting PaintShape method, does color Graphics Processing according to charged;
G. nameplate process: the simple geometry drawing elements such as nameplate is word, rectangle are formed, but need dynamically to add on the equipment of wiring diagram; In drafting PaintShape method, according to different nameplate state, dynamic drafting nameplate geometric graphic element.
Further, in step 5, mainly comprise:
H. dynamic topology is realized: enable timer, elements all in process connecting line drawing container, according to annexation in model, the electrified body set split by Switch equipment is searched by the mode of recurrence, according to all drawing element set in " electrified body " concept process topology process, drawing element assignment color;
I. real time data periodic refreshing: enable timer, every certain event, again refresh primary equipment electriferous state, equipment dynamic topology situation, and fetch equipment Correlated Case with ARMA Measurement information, carry out equipment Dynamic Announce.
Further, in step 6, mainly comprise:
J. pull process: in mouse up event, record mouse view coordinate, to scene coordinate to public variable, processes the coordinate that this is transformed into scene again in mouse up event, record move difference, charting component all in traversal scene, realizes assembly and moves, again refresh scene;
K. convergent-divergent process: arrange zoom factor, calculates mouse roller convergent-divergent and calculates scaling, call view Zoom method, realize convergent-divergent in mouse roller event;
L. right-click menu: the right-click menu event monitoring charting component, according to classification and the id of drawing right-click menu, ejects respective classes operation information menu, can expand customization, realize logic and call.
Claims (7)
1. based on a multifunctional electric wiring diagram display packing for QT graphics frame, be characterised in that: it is based on the QT figure display frame QTGraphicsView that increases income, and realizes, to the Multi-function display of G file, specifically comprising the steps:
Step one, system initialization: set up scene and view signal and menu and contact;
Step 2, G pel caching process: set up G pel drawing model buffer memory;
Step 3, G figure Graphics Processing;
Step 4, electric hookup special processing: carry out different display drawing element process;
Step 5, dynamic electric hookup display: realize dynamic topology and real time data periodic refreshing;
Step 6, man-machine interaction: carry out pulling, the set handling of convergent-divergent and right-click menu.
2. according to claim 1 based on the multifunctional electric wiring diagram display packing of QT graphics frame, be characterised in that, in step one: scene set, view, window injects scene, and view injects scene, sets up scene and view signal and groove menu and contacts.
3. according to claim 1 based on the multifunctional electric wiring diagram display packing of QT graphics frame, be characterised in that, in step 2: load G metafile, Open Scene, charting component, resolve G pel xml file, set up each device memory model successively according to device type, containing equipment relative co-ordinate information in model, colouring information, and play up the drawing elements such as element containing drawing; In G figure, equipment is by drawing different piece forming device dynamic perfromance, stores display element corresponding to each state, in internal memory, set up caching process in model according to different conditions.
4., according to claim 1 based on the multifunctional electric wiring diagram display packing of QT graphics frame, be characterised in that, in step 3, mainly comprise:
A. layer process: set up charting component model, process document flow, reading displayed layer, chooses all elements label under show layers;
B. set up G graphical model: device label class in this way, read title, coordinate, and recording unit id, electric pressure, the attribute informations such as equipment connecting relation, generate equipment charting component class, and add in airfield equipment drawing container; Connecting line mark class in this way, record id, adds in station connecting line drawing container; Other directly form charting component, add in scene;
C. quote G graphical element model: equipment class reference pel in airfield equipment drawing container, load graphical element model, all devices drawing classes is added in scene;
D. coordinate conversion: quote Partial Elements relative coordinate conversion in pel in process station drawing container.
5., according to claim 1 based on the multifunctional electric wiring diagram display packing of QT graphics frame, be characterised in that, in step 4, mainly comprise:
E. device action process: draw in PaintShape method at airfield equipment charting component, according to electrical wiring graph model different shape, do different display drawing element process;
F. equipment live: the color table that equipment live is arranged according to the overall situation, in drafting PaintShape method, does color Graphics Processing according to charged;
G. nameplate process: the simple geometry drawing elements such as nameplate is word, rectangle are formed, but need dynamically to add on the equipment of wiring diagram; In drafting PaintShape method, according to different nameplate state, dynamic drafting nameplate geometric graphic element.
6., according to claim 1 based on the multifunctional electric wiring diagram display packing of QT graphics frame, be characterised in that, in step 5, mainly comprise:
H. dynamic topology is realized: enable timer, elements all in process connecting line drawing container, according to annexation in model, the electrified body set split by Switch equipment is searched by the mode of recurrence, according to all drawing element set in " electrified body " concept process topology process, drawing element assignment color;
I. real time data periodic refreshing: enable timer, every certain event, again refresh primary equipment electriferous state, equipment dynamic topology situation, and fetch equipment Correlated Case with ARMA Measurement information, carry out equipment Dynamic Announce.
7., according to claim 1 based on the multifunctional electric wiring diagram display packing of QT graphics frame, be characterised in that, in step 6, mainly comprise:
J. pull process: in mouse up event, record mouse view coordinate, to scene coordinate to public variable, processes the coordinate that this is transformed into scene again in mouse up event, record move difference, charting component all in traversal scene, realizes assembly and moves, again refresh scene;
K. convergent-divergent process: arrange zoom factor, calculates mouse roller convergent-divergent and calculates scaling, call view Zoom method, realize convergent-divergent in mouse roller event;
L. right-click menu: the right-click menu event monitoring charting component, according to classification and the id of drawing right-click menu, ejects respective classes operation information menu, can expand customization, realize logic and call.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510625583.1A CN105184836B (en) | 2015-09-28 | 2015-09-28 | A kind of multifunctional electric wiring diagram display methods based on QT graphics frames |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510625583.1A CN105184836B (en) | 2015-09-28 | 2015-09-28 | A kind of multifunctional electric wiring diagram display methods based on QT graphics frames |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105184836A true CN105184836A (en) | 2015-12-23 |
CN105184836B CN105184836B (en) | 2018-03-20 |
Family
ID=54906888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510625583.1A Expired - Fee Related CN105184836B (en) | 2015-09-28 | 2015-09-28 | A kind of multifunctional electric wiring diagram display methods based on QT graphics frames |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105184836B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740543A (en) * | 2016-01-29 | 2016-07-06 | 山东鲁能智能技术有限公司 | QML based graphical electric power system modeling method and modeling system |
CN107168669A (en) * | 2017-05-03 | 2017-09-15 | 国电南瑞科技股份有限公司 | A kind of picture overview display method of DC converter pole figure member |
CN108255523A (en) * | 2016-12-28 | 2018-07-06 | 北京普源精电科技有限公司 | Graphical user interface creating method, device, system and FPGA |
CN111324348A (en) * | 2018-12-17 | 2020-06-23 | 北京华航无线电测量研究所 | Man-machine interaction interface implementation method of ground control platform of guide equipment |
CN111428430A (en) * | 2020-03-24 | 2020-07-17 | 广州视源电子科技股份有限公司 | Circuit device information acquisition method, device, equipment and medium in circuit design |
CN111474440A (en) * | 2020-06-08 | 2020-07-31 | 国网江苏省电力有限公司苏州供电分公司 | Intelligent station relay protection calibrator with circuit reclosing automatic judgment function |
CN112540735A (en) * | 2019-09-20 | 2021-03-23 | 西安诺瓦星云科技股份有限公司 | Multi-screen synchronous display method, device and system and computer storage medium |
CN114723851A (en) * | 2022-06-07 | 2022-07-08 | 山东捷瑞数字科技股份有限公司 | PERT graph drawing method and device based on three-dimensional engine |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050229135A1 (en) * | 2004-03-26 | 2005-10-13 | Elpida Memory, Inc. | Apparatus and method for creating circuit diagram, program therefor and recording medium storing the program |
WO2013146878A1 (en) * | 2012-03-30 | 2013-10-03 | 日本電気株式会社 | Power grid tree display system, power grid tree display device, power grid tree display method, and power grid tree display program |
CN103412981A (en) * | 2013-07-18 | 2013-11-27 | 国电南瑞科技股份有限公司 | Method for displaying comprehensive information of transformer substation graphics primitives |
CN104462473A (en) * | 2014-12-19 | 2015-03-25 | 国家电网公司 | Method for automatically generating CIM-G-format plant-station internal wiring diagram based on CIM-E power grid model |
CN104573213A (en) * | 2014-12-30 | 2015-04-29 | 国电南瑞科技股份有限公司 | G-language-based generating method of intelligent electronic equipment electric wiring graph |
-
2015
- 2015-09-28 CN CN201510625583.1A patent/CN105184836B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050229135A1 (en) * | 2004-03-26 | 2005-10-13 | Elpida Memory, Inc. | Apparatus and method for creating circuit diagram, program therefor and recording medium storing the program |
WO2013146878A1 (en) * | 2012-03-30 | 2013-10-03 | 日本電気株式会社 | Power grid tree display system, power grid tree display device, power grid tree display method, and power grid tree display program |
CN103412981A (en) * | 2013-07-18 | 2013-11-27 | 国电南瑞科技股份有限公司 | Method for displaying comprehensive information of transformer substation graphics primitives |
CN104462473A (en) * | 2014-12-19 | 2015-03-25 | 国家电网公司 | Method for automatically generating CIM-G-format plant-station internal wiring diagram based on CIM-E power grid model |
CN104573213A (en) * | 2014-12-30 | 2015-04-29 | 国电南瑞科技股份有限公司 | G-language-based generating method of intelligent electronic equipment electric wiring graph |
Non-Patent Citations (1)
Title |
---|
吴海勇: "基于XML、SOA及QT4的电网图形显示***的设计与实现", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740543A (en) * | 2016-01-29 | 2016-07-06 | 山东鲁能智能技术有限公司 | QML based graphical electric power system modeling method and modeling system |
CN108255523A (en) * | 2016-12-28 | 2018-07-06 | 北京普源精电科技有限公司 | Graphical user interface creating method, device, system and FPGA |
CN107168669A (en) * | 2017-05-03 | 2017-09-15 | 国电南瑞科技股份有限公司 | A kind of picture overview display method of DC converter pole figure member |
CN111324348A (en) * | 2018-12-17 | 2020-06-23 | 北京华航无线电测量研究所 | Man-machine interaction interface implementation method of ground control platform of guide equipment |
CN112540735A (en) * | 2019-09-20 | 2021-03-23 | 西安诺瓦星云科技股份有限公司 | Multi-screen synchronous display method, device and system and computer storage medium |
CN112540735B (en) * | 2019-09-20 | 2023-03-14 | 西安诺瓦星云科技股份有限公司 | Multi-screen synchronous display method, device and system and computer storage medium |
CN111428430A (en) * | 2020-03-24 | 2020-07-17 | 广州视源电子科技股份有限公司 | Circuit device information acquisition method, device, equipment and medium in circuit design |
CN111428430B (en) * | 2020-03-24 | 2023-11-03 | 广州视源电子科技股份有限公司 | Method, device, equipment and medium for acquiring circuit device information in circuit design |
CN111474440A (en) * | 2020-06-08 | 2020-07-31 | 国网江苏省电力有限公司苏州供电分公司 | Intelligent station relay protection calibrator with circuit reclosing automatic judgment function |
CN114723851A (en) * | 2022-06-07 | 2022-07-08 | 山东捷瑞数字科技股份有限公司 | PERT graph drawing method and device based on three-dimensional engine |
Also Published As
Publication number | Publication date |
---|---|
CN105184836B (en) | 2018-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105184836A (en) | Multifunctional electrical wiring diagram display method based on QT graphics frame | |
US20120259594A1 (en) | Bim based 3-d visualization | |
CN103034502B (en) | A kind of method embedding dynamic realtime monitoring chart in SVG interface | |
CN103412744B (en) | A kind of methods of exhibiting of the integrated information of power plant pel | |
CN105069020A (en) | 3D visualization method and system of natural resource data | |
CN104104149A (en) | Electric apparatus state display and real-time alarm method based on SVG (Scalable Vector Graphics) technology | |
CN102890632A (en) | Screen adaptation method, system and terminal device | |
CN103761288A (en) | Visual chart custom generation system and visual chart custom generation method | |
CN103035031B (en) | Towards the three-dimensional man-machine interaction display control method of grid operating monitoring | |
CN103019682A (en) | Method for displaying date by combining user-defined graphics into SVG (Scalable Vector Graphics) | |
CN105701300A (en) | Spacecraft electrical information query system | |
CN104318508A (en) | Data visualization method and system based on planar shp map layer | |
CN108733441B (en) | Rendering visualization method and system suitable for large-scale power grid symbol equipment | |
CN110887483A (en) | Robot, navigation method and storage device | |
CN112287497A (en) | Three-dimensional power grid tidal current diagram visualization method based on OSG | |
CN106846431B (en) | Unified Web graph drawing system supporting multiple expression forms | |
CN104715054A (en) | Method for converting Silverlight content into HTML webpage content | |
CN109086515B (en) | Modeling method for primary equipment drawing information in SSD (solid State drive) of intelligent substation based on SVG (scalable vector graphics) | |
CN103617073A (en) | Method for analyzing and displaying picture file of electrical power system | |
CN104616099A (en) | Power grid tide data comparison and analysis graphic display method | |
CN103559342B (en) | The emulation mode of liquid crystal display in a kind of protective relaying device | |
CN104317972B (en) | A kind of dynamic layer inducing method and system | |
CN102129502B (en) | Optimal electrical power line selection method and system | |
Zou et al. | An overview of geospatial information visualization | |
CN202677693U (en) | Electronic sand table for demonstration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180320 Termination date: 20210928 |
|
CF01 | Termination of patent right due to non-payment of annual fee |