CN103617073A - Method for analyzing and displaying picture file of electrical power system - Google Patents

Method for analyzing and displaying picture file of electrical power system Download PDF

Info

Publication number
CN103617073A
CN103617073A CN201310535832.9A CN201310535832A CN103617073A CN 103617073 A CN103617073 A CN 103617073A CN 201310535832 A CN201310535832 A CN 201310535832A CN 103617073 A CN103617073 A CN 103617073A
Authority
CN
China
Prior art keywords
file
thread
pel
data
electric system
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
CN201310535832.9A
Other languages
Chinese (zh)
Other versions
CN103617073B (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.)
Maoming Power Supply Bureau of Guangdong Power Grid Co Ltd
Dongfang Electronics Co Ltd
Original Assignee
Maoming Power Supply Bureau of Guangdong Power Grid 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 Maoming Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Maoming Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority to CN201310535832.9A priority Critical patent/CN103617073B/en
Publication of CN103617073A publication Critical patent/CN103617073A/en
Application granted granted Critical
Publication of CN103617073B publication Critical patent/CN103617073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method for analyzing and displaying a picture file of an electrical power system. The method comprises the following steps that a picture display interface is started; the picture file to be opened is selected; an analysis thread analyzes the file in a data stream mode; a pixel generating thread reads pixel basic data from a pixel basic data queue to generate pixel objects; the analysis thread reads all the data of the file, and the analysis process of the file is finished; the pixel generating thread submits the generated pixel objects to a picture display host process, the pixel objects are displayed through the host process, and the picture file is displayed. The picture file is based on an SVG format. The method for analyzing and displaying the picture file of the SVG electrical power system is simple, easy to use and high in reliability.

Description

A kind of electric system graphic file is resolved display packing
Technical field
The present invention relates to grid automation field, is a kind of employing multithreading specifically, for SVG graphical format, realizes the parsing display packing of SVG form electric system graphic file.
Background technology
SVG is a kind of language with XML definition, is used for describing two-dimensional vector and vector/grid graph.SVG provides the Drawing Object of 3 types: vector graphics (vectorgraphicshape for example: the path being comprised of straight line and curve), image (image), text (text).Drawing Object also can divide into groups, add the operations such as pattern, conversion, combination, and feature set comprises that nested conversion (nestedtransformations), shear path (clippingpaths), alpha cover plate (alphamasks), filter effect (filtereffects), template object (templateobjects) and other expansion (extensibility).
Scalable vector graphics (SVG), as the graphical format of International Electrotechnical Commission's formal recommendation, has incomparable advantage.SVG has been image file format the most burning hot in power automatic system, and the figure based on SVG appears in various power automatic systems in a large number at electric system figure, becomes a graphical interaction standard between each the most frequently used system.
The present invention has realized parsing and the display packing of SVG figure of power system by application multithreading, by thread management module, graphical analysis module, primitive generating module and figure show process, jointly completed the parsing of SVG figure of power system and demonstration.
Summary of the invention
The object of the present invention is to provide a kind of SVG electric system graphic file that is simple and easy to use, high reliability to resolve display packing.
Object of the present invention can realize by following technical measures: a kind of electric system graphic file is resolved display packing, comprises the steps:
1) start figure graphic display interface (g3_mmi);
In described start-up course, loading tasks management object, by task management object initialization graphical analysis thread pool and primitive generating thread pool.
2) graphic file that selection will be opened; Described graphic file is the graphic file of SVG form.
3) task management object obtains an idle thread in graphical analysis thread pool, as resolving thread, by it, be responsible for resolving current file, in primitive generating thread pool, obtain another idle thread simultaneously, as primitive generating thread, by it, be responsible for generating the pel for showing;
4) resolve thread and obtain file content, check whether file layout is corresponding graphical format, if not, finish this and resolve demonstration; If so, entering next step resolves file;
5) described parsing thread is with the mode resolution file of data stream, read the data of a current document position at every turn and extract electric system pel master data, electric system pel fundamental packets is drawn together pel coordinate of living in, the corresponding power system device attribute of pel (device id, some ID, device type etc.) information, and the data of extraction are put in the queue of pel master data; Described data are data of the graphic file of SVG form.
6) described primitive generating thread reads pel master data from the queue of pel master data, generates graphics primitive object;
7) described parsing thread has read all data of file, finishes the resolving of presents;
8) described primitive generating thread is submitted to figure demonstration host process by the graphics primitive object of generation, by host process, graphics primitive object is shown, and completes the demonstration of graphic file.
The present invention contrasts prior art, has the following advantages:
1 has set up element figure model, is conducive to the expansion to different graphic type.
2 graphical analysis have adopted stream mode, and resolution speed is fast.
The design of 3 multithread pools, has greatly improved the resolution speed of file, and when resolving large file, effect is especially obvious.
4 adopt task object to manage thread pool, realize simple, standard, are easy to expansion.
Accompanying drawing explanation
Fig. 1 is the process flow diagram that electric system graphic file of the present invention is resolved;
Fig. 2 is the process flow diagram that electric system graphic file of the present invention shows.
Embodiment
Below in conjunction with accompanying drawing, electric system graphic file of the present invention is resolved to display packing and be specifically described, the method comprises the steps:
1) start figure graphic display interface (g3_mmi);
In described start-up course, loading tasks management object, the worker thread administration module shown in initialization Fig. 1, figure element resolution thread and primitive generating thread.
When opening figure, by worker thread administration module, find an idle graphical analysis thread, it is responsible for figure to resolve.Resolved after a complete pel, this primitive data has been put into the queue of pel master data.And then find an idle primitive generating thread by worker thread administration module, by this thread, be responsible for generating concrete real pel according to the data in the queue of pel master data, and the pel of generation is submitted to figure demonstration host process for showing.
2) the SVG graphic file that selection will be opened.
3) task management object obtains an idle thread in graphical analysis thread pool, as resolving thread, by it, be responsible for resolving current file, in primitive generating thread pool, obtain another idle thread simultaneously, as primitive generating thread, by it, be responsible for generating the pel for showing, as shown in Figure 1.
4) resolve thread and obtain file content, check whether file layout is SVG graphical format, if not, finish this and resolve demonstration;
5) described parsing thread is with the mode resolution file of data stream, read the SVG data of a current document position at every turn and extract electric system pel master data, electric system pel fundamental packets is drawn together pel coordinate of living in, the corresponding power system device attribute of pel (device id, some ID, device type etc.) information, and the data of extraction are put in the queue of pel master data;
6) primitive generating thread reads pel master data from the queue of pel master data, generates graphics primitive object;
7) resolve thread and read all information of file, finish the resolving of presents; The situation that in Fig. 2, pel is NULL.Fig. 2 is the flow for displaying that figure shows host process.For the pel that in Fig. 1, primitive generating thread sends, first judge whether it is NULL, and NULL, shows that document analysis completes if, can start to obtain real time data from database, carries out refreshing of pel.If be not NULL, the figure layer information of identification pel, for the pel with figure layer information, put into figure layer container and show.And for the pel that does not comprise figure layer information, directly put into displayed scene.
8) described primitive generating thread is submitted to figure demonstration host process by the graphics primitive object of generation, by host process, graphics primitive object is shown, and completes the demonstration of SVG graphic file, as shown in Figure 2.
Embodiments of the present invention are not limited to this; under the above-mentioned basic fundamental thought of the present invention prerequisite; modification, replacement or the change to other various ways that content of the present invention is made according to the ordinary skill knowledge of this area and customary means, within all dropping on rights protection scope of the present invention.

Claims (4)

1. electric system graphic file is resolved a display packing, it is characterized in that comprising the steps:
1) start figure graphic display interface; In start-up course, loading tasks management object, by task management object initialization graphical analysis thread pool and primitive generating thread pool;
2) graphic file that selection will be opened;
3) task management object obtains an idle thread in graphical analysis thread pool, as resolving thread, by it, be responsible for resolving current file, in primitive generating thread pool, obtain another idle thread simultaneously, as primitive generating thread, by it, be responsible for generating the pel for showing;
4) resolve thread and obtain file content, check whether file layout is corresponding graphical format, if not, finish this and resolve demonstration; If so, entering next step resolves file;
5) described parsing thread, with the mode resolution file of data stream, reads the data of a current document position at every turn and extracts electric system pel master data, and the data of extraction are put in the queue of pel master data;
6) described primitive generating thread reads pel master data from the queue of pel master data, generates graphics primitive object;
7) described parsing thread has read all data of file, finishes the resolving of presents;
8) described primitive generating thread is submitted to figure demonstration host process by the graphics primitive object of generation, by host process, graphics primitive object is shown, and completes the demonstration of graphic file.
2. electric system graphic file according to claim 1 is resolved display packing, it is characterized in that: described graphic file is the graphic file of SVG form; Described data in described step 5) are data of the graphic file of SVG form.
3. electric system graphic file according to claim 1 is resolved display packing, it is characterized in that: the described electric system pel fundamental packets in described step 5) is drawn together pel coordinate of living in, the corresponding power system device attribute information of pel.
4. electric system graphic file according to claim 3 is resolved display packing, it is characterized in that: described device attribute information comprises device id, some ID, device type.
CN201310535832.9A 2013-11-01 2013-11-01 Method for analyzing and displaying picture file of electrical power system Active CN103617073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310535832.9A CN103617073B (en) 2013-11-01 2013-11-01 Method for analyzing and displaying picture file of electrical power system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310535832.9A CN103617073B (en) 2013-11-01 2013-11-01 Method for analyzing and displaying picture file of electrical power system

Publications (2)

Publication Number Publication Date
CN103617073A true CN103617073A (en) 2014-03-05
CN103617073B CN103617073B (en) 2017-02-01

Family

ID=50167776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310535832.9A Active CN103617073B (en) 2013-11-01 2013-11-01 Method for analyzing and displaying picture file of electrical power system

Country Status (1)

Country Link
CN (1) CN103617073B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599272A (en) * 2016-12-23 2017-04-26 北京超图软件股份有限公司 Graphic object dynamic plotting method, apparatus and system at browser end
CN108182199A (en) * 2017-11-29 2018-06-19 中国电力科学研究院有限公司 A kind of method and system of electricity transaction datagraphic generation
CN109471613A (en) * 2018-09-25 2019-03-15 北京广利核系统工程有限公司 The graphic file generation method and system of nuclear safe level application
CN111597364A (en) * 2020-03-27 2020-08-28 广联达科技股份有限公司 Engineering quantity calculation intermediate layer generation method and device, storage medium and electronic equipment
CN111737196A (en) * 2020-06-22 2020-10-02 国能日新科技股份有限公司 Meteorological resource grid text to vector diagram conversion method and device based on electric power transaction system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042816A (en) * 2007-04-27 2007-09-26 重庆邮电大学 Interactive switching system and processing method based on SDL graphics relationship
CN101826016A (en) * 2010-05-13 2010-09-08 天津大学 Visual modeling and code skeleton generating method for supporting design of multinuclear parallel program
CN103226471A (en) * 2013-03-21 2013-07-31 南京工业大学 Design method of firmware graphical user interface based on SVG

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042816A (en) * 2007-04-27 2007-09-26 重庆邮电大学 Interactive switching system and processing method based on SDL graphics relationship
CN101826016A (en) * 2010-05-13 2010-09-08 天津大学 Visual modeling and code skeleton generating method for supporting design of multinuclear parallel program
CN103226471A (en) * 2013-03-21 2013-07-31 南京工业大学 Design method of firmware graphical user interface based on SVG

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599272A (en) * 2016-12-23 2017-04-26 北京超图软件股份有限公司 Graphic object dynamic plotting method, apparatus and system at browser end
CN108182199A (en) * 2017-11-29 2018-06-19 中国电力科学研究院有限公司 A kind of method and system of electricity transaction datagraphic generation
CN108182199B (en) * 2017-11-29 2022-10-25 中国电力科学研究院有限公司 Method and system for generating electric power transaction data graph
CN109471613A (en) * 2018-09-25 2019-03-15 北京广利核系统工程有限公司 The graphic file generation method and system of nuclear safe level application
CN111597364A (en) * 2020-03-27 2020-08-28 广联达科技股份有限公司 Engineering quantity calculation intermediate layer generation method and device, storage medium and electronic equipment
CN111597364B (en) * 2020-03-27 2024-01-30 广联达科技股份有限公司 Engineering quantity calculation middle layer generation method and device, storage medium and electronic equipment
CN111737196A (en) * 2020-06-22 2020-10-02 国能日新科技股份有限公司 Meteorological resource grid text to vector diagram conversion method and device based on electric power transaction system
CN111737196B (en) * 2020-06-22 2023-11-10 国能日新科技股份有限公司 Meteorological resource grid text-to-vector diagram method and device based on power transaction system

Also Published As

Publication number Publication date
CN103617073B (en) 2017-02-01

Similar Documents

Publication Publication Date Title
KR101940720B1 (en) Contents authoring tool for augmented reality based on space and thereof method
WO2016078474A1 (en) Method for graphics interaction between grid production management system and scheduling automation system
CN103617073A (en) Method for analyzing and displaying picture file of electrical power system
CN106408631B (en) Three-dimensional macro methods of exhibiting and system
CN103034502B (en) A kind of method embedding dynamic realtime monitoring chart in SVG interface
CN104516867A (en) Table reordering method and table reordering system
CN105629653A (en) Interactive holographic projection method on the basis of three-dimensional model
CN105096368B (en) Three dimensional object processing method and relevant apparatus
CN103208225A (en) Tile map manufacturing method and system
CN101236485A (en) Multi-screen 3-D in-phase display process, device and system
CN103035031B (en) Towards the three-dimensional man-machine interaction display control method of grid operating monitoring
CN111459501A (en) SVG-based Web configuration picture storage and display system, method and medium
CN104680532A (en) Object labeling method and device
CN101968895A (en) Two-dimensional image conversion system and method
CN115393872B (en) Method, device and equipment for training text classification model and storage medium
CN105184836A (en) Multifunctional electrical wiring diagram display method based on QT graphics frame
CN105488839A (en) Interactive operation system for three-dimensional scene and operation method thereof
CN103473984B (en) Template-based dynamic map obtaining method in network environment
CN106846431B (en) Unified Web graph drawing system supporting multiple expression forms
CN116402020A (en) Signature imaging processing method, system and storage medium based on OFD document
JP2007109221A (en) Part management system, part management method, program and recording medium
CN103020343A (en) Dynamic primitive implementation method for comprehensively reflecting power grid operation condition
CN105389409B (en) Visualization and diagnostic analysis of elements of interest in complex systems
CN103577046A (en) 3D stereoscopic desktop system and implementation method thereof
CN108197373A (en) D CAD figure based on CoFrac turns three-dimensional VR design systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: DONGFANG ELECTRONICS CORP.

Effective date: 20141011

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Kong Haibin

Inventor after: Ren Yongwei

Inventor after: Chen Honghui

Inventor after: Liu Zhongyao

Inventor after: Li Suirong

Inventor after: Wu Haiyong

Inventor after: Hu Tiebin

Inventor after: Zou Jian

Inventor after: Wu Xiwu

Inventor after: Zhou Zhihui

Inventor before: Chen Honghui

Inventor before: Zhou Zhihui

Inventor before: Ren Yongwei

Inventor before: Cao Yanchao

Inventor before: Hu Tiebin

Inventor before: Zou Jian

Inventor before: Wu Xiwu

Inventor before: Kong Haibin

Inventor before: Liu Zhongyao

Inventor before: Li Suirong

Inventor before: Wu Haiyong

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: CHEN HONGHUI CAO YANCHAO HU TIEBIN ZOU JIAN WU XIWU KONG HAIBIN LIU ZHONGYAO LI SUIRONG WU HAIYONG ZHOU ZHIHUI REN YONGWEI TO: KONG HAIBIN CHEN HONGHUI LIU ZHONGYAO LI SUIRONG WU HAIYONG HU TIEBIN ZOU JIAN WU XIWU ZHOU ZHIHUI REN YONGWEI

TA01 Transfer of patent application right

Effective date of registration: 20141011

Address after: 525000 Guangdong Province, Maoming City, Guan Shan Road, No. four, No. 2

Applicant after: MAOMING POWER SUPPLY BUREAU OF GUANGDONG POWER GRID Corp.

Applicant after: DONGFANG ELECTRONICS Co.,Ltd.

Address before: 525000 Guangdong Province, Maoming City, Guan Shan Road, No. four, No. 2

Applicant before: MAOMING POWER SUPPLY BUREAU OF GUANGDONG POWER GRID Corp.

C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 525000 No.2, Guanshan 4th Road, Maoming City, Guangdong Province

Patentee after: MAOMING POWER SUPPLY BUREAU, GUANGDONG POWER GRID Co.,Ltd.

Patentee after: DONGFANG ELECTRONICS Co.,Ltd.

Address before: 525000 No.2, Guanshan 4th Road, Maoming City, Guangdong Province

Patentee before: MAOMING POWER SUPPLY BUREAU OF GUANGDONG POWER GRID Corp.

Patentee before: DONGFANG ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210125

Address after: 525000 No.2, Guanshan 4th Road, Maoming City, Guangdong Province

Patentee after: MAOMING POWER SUPPLY BUREAU, GUANGDONG POWER GRID Co.,Ltd.

Address before: 525000 No.2, Guanshan 4th Road, Maoming City, Guangdong Province

Patentee before: MAOMING POWER SUPPLY BUREAU, GUANGDONG POWER GRID Co.,Ltd.

Patentee before: DONGFANG ELECTRONICS Co.,Ltd.