CN106557457A - A kind of system for automatically generating cross-platform Complicated Flow figure based on QT - Google Patents

A kind of system for automatically generating cross-platform Complicated Flow figure based on QT Download PDF

Info

Publication number
CN106557457A
CN106557457A CN201611061266.2A CN201611061266A CN106557457A CN 106557457 A CN106557457 A CN 106557457A CN 201611061266 A CN201611061266 A CN 201611061266A CN 106557457 A CN106557457 A CN 106557457A
Authority
CN
China
Prior art keywords
flow
node
connecting line
flow chart
class
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
CN201611061266.2A
Other languages
Chinese (zh)
Other versions
CN106557457B (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.)
CETC 28 Research Institute
Original Assignee
CETC 28 Research Institute
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 CETC 28 Research Institute filed Critical CETC 28 Research Institute
Priority to CN201611061266.2A priority Critical patent/CN106557457B/en
Publication of CN106557457A publication Critical patent/CN106557457A/en
Application granted granted Critical
Publication of CN106557457B publication Critical patent/CN106557457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The invention discloses a kind of system for automatically generating cross-platform Complicated Flow figure based on QT, including flow chart element figure drafting module, flow graph construction describing module, flow monitoring function supporting module and flow monitoring application supporting module;The flow chart element figure drafting module is inherited and is derived from from the base class that QT is provided, and forms the parent map metaclass of flow chart;The flow graph construction describing module is for whole flow process figure is described by structured way, and carries out format analysis to description, and information is placed in correspondence container;The flow monitoring function supporting module is used for the setting of flow chart display styles, network transmission, database access, connection and closed loop inspection, and the switching of different grain size flow process;The flow monitoring application supporting module is used for topological sorting, task scheduling, critical path and shortest path and calculates, and supports construction network figure application.

Description

A kind of system for automatically generating cross-platform Complicated Flow figure based on QT
Technical field
The invention belongs to field of information system, more particularly to a kind of cross-platform Complicated Flow figure that automatically generates based on QT System.
Background technology
The characteristics of graphic process monitoring interface has visual pattern, should be readily appreciated that, interact convenient, easy to operate, is each Class application operating personnel and the first-selection of application developer.Based on windows platform, each software vendor provides and can much carry out two The flow chart control product of secondary exploitation, such as Microsoft Microsoft Office Visio, expert EDraw Max, arrow shown in hundred million figures Amount image rendering software Diagram Designer etc..Visio is wherein the most widely used product, can be carried out various multiple Miscellaneous graphic designs, powerful, rich interface, and pel customization function is provided.
However, under the megatrend of software and hardware production domesticization, types of applications software starts to Godson CPU, acceptance of the bid kylin Operating system, migrated up to dream data base for the production domesticization hardware environment of Typical Disposition, for Application developer, Urgent need has a set of lightweight and is easy to the flow chart control based on production domesticization hardware and software platform of secondary development.
Diagram Designer are a powerful cross-platform programs, establishment in a document that can be quick and easy The icon and illustration of specialty, there is provided vector plotting instrument, storehouse and many preset legend shapes, but the operation ring to software and hardware Border requires higher;ConceptDraw Office are also a kind of cross-platform control product, but which has the disadvantage bulky, interface Complexity, being not suitable for being embedded into application system carries out secondary development.Up till now, also do not find on market a set of based on production domesticization soft or hard Compact, relatively low to the running environment requirement flow chart control of part platform, perfect in shape and function, the light, scale of exploitation.
The content of the invention
This patent purpose is to propose a kind of system for automatically generating cross-platform Complicated Flow figure based on QT, including flow chart Element figure drafting module, flow graph construction describing module, flow monitoring function supporting module and flow monitoring application are supported Module.
Base class QObject (base class of all classes of QT) that the flow chart element figure drafting module is provided from QT, QGraphicsItem (X-Y scheme base class in QT graphics view systems), QGraphicsLineItem (QT graphics view systems Middle linear graph base class), the basic class such as QGraphicsLayoutItem (layout object base class in QT graphics view systems) carries out Inherit and derive from, form the parent map metaclass of flow chart, the parent map metaclass includes connecting line class and node class;
The flow graph construction describing module for whole flow process figure is described by structured way, including stream The description of journey figure overall information, branch's procedure information, nodal information and connecting line information, and format analysis are carried out to description, will Information is placed in correspondence container;
The flow monitoring function supporting module is used for the setting of flow chart display styles, network transmission, database access, company Logical and closed loop inspection, and the switching of different grain size flow process;
The flow monitoring application supporting module is used for topological sorting, task scheduling, critical path and shortest path and calculates, Support construction network figure application.
To make flow chart be evenly distributed, showing attractive in appearance, the system combines the layout device function that QT X-Y schemes engine is provided, According to flow chart general outline, a matrix, the row, column pair that each node of flow chart is specified in respectively falling in matrix are pre-set The position answered, flow chart control make node align automatically according to default line-spacing and row away from calculate node center;Connecting line Only need to connect start node and the terminal node specified.
Connecting line class of the present invention includes tieline class, parallel connection line class and bifurcated connecting line class;
The tieline class is straight line, is directly connected to two pels, and draws at purpose pel junction point Triangle arrow;
There is the parallel connection line of more than two between two pels in the parallel connection line class, for drafting with it is direct The parallel indirect connection line of connecting line;
The bifurcated connecting line class splits into two or more flow process from main flow, or collects for main flow from two or more flow process Cheng Shi, draws branch line and collects line.
Node class of the present invention includes circular pattern node class and square graphical nodes class, the square graphical nodes class Including rectangular pattern node class and square-shaped patterns node class.
Description to flow chart overall information, branch's procedure information, nodal information and connecting line information of the present invention is Based on expandable mark language XML (Extensible Markup Language), wherein, flow chart overall information attribute bag Include:
1) flow process unique mark:Unique symbol for distinguishing flow process;
2) father's flow process unique mark:Father's flow process (top-level process) symbol of this flow process is distinguished uniquely, by the attribute reality Now this flow process switches to father's flow process, i.e. different grain size flow process switching;
3) whether complex patterns:It is simple mode or complex patterns to distinguish flow chart, and simple mode flow chart is around work Dynamic main line is drawn, and complex patterns do not have movable main line.
Branch's flow process information attribute includes:
1) title:Branch's process name (can be regarded as activity or task);
2) correspondence unit unique mark:Undertake unique differentiation symbol of the unit of the flow process or task;
3) whether main flow:Whether in simple mode flow chart, it is the flow process on movable main line to identify branch's flow process;
4) be expert at sequence number:The row sequence number that current branch flow process is located.
Nodal information attribute includes:
1) title:The title of present node;
2) node unique mark:Unique symbol for distinguishing node;
3) flow process unique mark:The unique mark of the flow chart belonging to present node;
4) correspondence unit unique mark:Unique differentiation symbol of the unit of current connecting line association
5) be expert at sequence number:The row sequence number that node is located;
6) column sequence number:The row sequence number that node is located;
7) node state:The progress of activity or task representated by present node, can be extended as needed;
8) with previous node distance:On a same row the distance between with previous node.
Connecting line information attribute includes:
1) content description:Content representated by connecting line;
2) connecting line unique mark:Unique symbol for distinguishing connecting line;
3) connecting line type:Connecting line type is distinguished, 0 represents tieline, and 1 represents that parallel connection line, 2 represent bifurcated Collect connecting line
4) whether top:When connecting line type is to be connected in parallel line, the parallel connection line for representing current is directly to connect The top or lower section of wiring;
5) away from main flow distance:When connecting line type is to be connected in parallel line, current parallel connection line and centre are represented The distance between tieline parallel lines;
6) whether collect:When connecting line type collects connecting line for bifurcated, indicate whether to collect connecting line
7) correspondence unit unique mark:Unique differentiation symbol of the unit of current connecting line association;
8) start node unique mark:The start node of current connecting line connection uniquely distinguishes symbol;
9) terminal node unique mark:The start node of current connecting line connection uniquely distinguishes symbol.
Flow monitoring function supporting module of the present invention is used for the setting of flow chart display styles, network transmission, data base Access, connection and closed loop inspection, the switching of different grain size flow process include:
Based on QT X-Y scheme engines, the setting of flowchart display styles, including font color, size, lines Color, thickness, flow chart background, flow chart pel gap size, background color;
Based on the network transmission function that QtNetWork (cross-platform network module) is provided, realize that network is passed with remote terminal Defeated and information receiving and transmitting;
The access of database table and view is realized based on QtSql (database access module), realizes that data base reads and deposits Storage operation;
Based on the database access in QtXML (XML file module for reading and writing) or QtNetWork (cross-platform network module) Interface, parses to the structure of flow chart, forms overall information, branch's Process containers, node container and the connection of flow chart Line container;
For all kinds of information of container, by the connection inspection and closed loop inspection of directed graph related algorithm flowchart;It is logical The connection inspection of directed graph related algorithm flowchart, such as Tarjan algorithms, Kruskal algorithms, Warshall algorithms are crossed, is led to Cross the methods such as depth-first, topological sorting and realize closed loop inspection;
Believed by the flow process unique mark of father's flow process unique identification information and specified nodal information of flow chart overall information Breath return back to top-level process figure and enters the corresponding refined flow chart of ingress, realizes the switching of different grain size flow process;
User is provided and enters edlin maintenance function to flow chart, and preserve warehouse-in or form XML file.
Flow monitoring application supporting module of the present invention is based on topological sorting, task scheduling, key and shortest path Calculate, support that construction network figure application includes:
For branch's Process containers, node container and connecting line container, based on directed graph topological sorting method, there is provided flow process Topological sorting and task scheduling function;
For application demand, based on the application parameter information that connecting line or node give, the such as network bandwidth, treatment effeciency Path can be converted into Deng, application parameter or cost is spent, it is external using graph key path and figure shortest path first The functional interface for solving critical path and shortest path is provided;
Based on the application parameter information that connecting line or node give, there is provided based on AOE nets (Activity On Edge Network, activity-on-edge network) or AOV nets (Activity On Vertex Network put the net of expression activity) are most The early time started, late start time, can late time started, total time kept in reserve and free time kept in reserve calculating and the time carry Awake function.
The system possesses structure elucidation, flow process and shows and flow monitoring function, including:
Class is parsed by flow chart and parses the primitive information stored in data base or XML configuration file, including nodal information, Continuous relation information and node other application information before and after between node;
Flow chart display window class parses information according to flow graph construction and draws each pel, and is respectively schemed by layout device layout Unit, builds entire flow figure;
Monitoring programme class by port snoop class receive pel correspondence unit send status information, real-time update pel and Network chart state, and call flow chart core algorithm automatically, analyze current operating state, point out user, and according to user's needs Call concrete function.
Secondary development is carried out based on the system, user can inherit the section for deriving new attribute on the basis of on going result Point class and connecting line class, expand the function that flow process shows;Meanwhile, user can customize topographical analysis algorithm, and work(is applied in superposition Can, lifted to applied analysis and aid decision ability, realize all kinds of flow monitorings of finding and gained.
The system perfect in shape and function, the light, scale of exploitation are compact, relatively low to running environment requirement, can be good at supporting state The exploitation and operation of productization hardware and software platform flow monitoring application software.
The flow chart control of the QT language developments that this flow chart control development is carried in being based entirely on domestic operating system, The domestic operating system that existing domestic Ji great production firms provide carries QT development environments, and such as University of Science and Technology for National Defence and acceptance of the bid software is public The acceptance of the bid kylin operating system that department's joint is issued carries version for 4.7.4QT development environments.This flow chart control need not be in addition Purchase and installation development environment, small volume and less weight, cross-platform operation, disclosure satisfy that substantially conventional flow chart secondary development demand and answer Use demand.
The system is directly inherited and is derived from from QT bases X-Y scheme class, is realized all kinds of basic needed for flow monitoring Pel, including be directly connected to, be connected in parallel and bifurcated connect three kinds of connecting lines, square, circular two classes flow nodes;Based on structure Change mode is defined and is described to monitoring flow process, checks that aided algorithm ensures that flow chart builds using connectivity checks and closed loop Correct effectiveness, there is provided the development interface that the attribute of all kinds of pels is obtained and changed, form flow chart control development.Using soft Part carries out integrated and configuration to the system, with reference to functions such as database access, network transmission and aid decisions, disclosure satisfy that each Plant the flow monitoring application demand of complicated demand;As the system is all based on QT realizations, being capable of across different operating system platform It is compiled, accomplishes once to write, runs everywhere;Meanwhile, the system is relatively low to soft hardware performance requirement, in current software and hardware state Under the megatrend of productization, preferable technical support is provided for application software flow process graphical representation.
Beneficial effect:The system remarkable advantage is:(1) cross-platform compiling and operation, the system are based entirely on QT exploitations, energy Enough accomplish primary development, run everywhere;(2) it is low to running environment performance requirement, by the verification experimental verification control Godson CPU, Acceptance of the bid kylin operating system, run smooth up under dream data base's typical domestic hardware environment, no interim card and occupy a large amount of Resource situation;(3) displaying and monitoring of Complicated Flow are supported, two kinds of flow process ways of presentation of AOE nets and AOV nets are supported;(4) adopt Closed loop with connect inspection, it is ensured that flow chart build correctness and availability.
Description of the drawings
With reference to the accompanying drawings and detailed description the present invention is done and is further illustrated, the present invention it is above-mentioned or Otherwise advantage will become apparent.
Fig. 1 is system overall framework.
Fig. 2 is network system realization schematic diagram.
Fig. 3 is the class sequence chart that flow chart is generated.
Fig. 4 is simple mode typical process example.
Fig. 5 is complex patterns typical process example.
Fig. 6 is tieline schematic diagram.
Fig. 7 is parallel connection line schematic diagram.
Fig. 8 is bifurcated connecting line schematic diagram.
Specific embodiment
Technology contents to inventing are described in detail below in conjunction with the accompanying drawings:
The function logic of the system is divided as shown in figure 1, support QT functional modules, realize element figure layer, function Support layer and the functional module using supporting layer, support the secondary development of all kinds of monitoring applications based on all kinds of interfaces.
QT layers are that the system needs the QT main functional modules that use, including QtCore (QT basic modules, including signal with Groove communication, input and output, event, object handles, multithreading etc.), QtGui (graphical user interface module), GtXML (XML files Module for reading and writing), QtSql (database access module), QtNetwork (cross-platform network module).
Element figure layer is the fundamental of flowchart, including connecting line and node.Connecting line is divided into and being directly connected to Line, parallel connection line and bifurcated collect connecting line;Node point square (rectangle, square), circular two types.
Function supporting layer is parsed for the graphic structure of flow chart, display styles are arranged, network transmission is accessed, data base visits Ask that storage, oriented topology check (connection, closed loop inspection), different grain size flow process handoff functionality.
The flow graph construction describing module for whole flow process figure is described by structured way, including stream The description of journey figure overall information, branch's procedure information, nodal information and connecting line information, and format analysis are carried out to description, will Information is placed in correspondence container;To make flow chart be evenly distributed, showing attractive in appearance, with reference to the layout device that QT X-Y schemes engine is provided Function, according to flow chart general outline, pre-sets a matrix, what each node of flow chart was specified in respectively falling in matrix The corresponding position of row, column, flow chart control make node pair automatically according to default line-spacing and row away from calculate node center Together.
The flow monitoring application supporting layer is used for topological sorting, task scheduling, critical path and shortest path and calculates, Hold construction network figure application.
Parent map metaclass includes two big class, is connecting line class and node class respectively.
1) connecting line class
1. tieline class (Ctrl_GraphicsLink):Straight line, is directly connected to two pels, in purpose figure Rhizoma Coptidis junction draws triangle arrow, as shown in Figure 6;
2. it is connected in parallel line class (Ctrl_GraphicsLinkParallel):Exist between two pels a plurality of parallel Connecting line, for drawing the indirect connection line parallel with tieline, as shown in Figure 7;
3. bifurcated connecting line class (Ctrl_GraphicsLinkBranch):Multiple flow processs are split into from main flow, or from many Individual flow process collect for main flow when, draw and branch line and collect line, as shown in Figure 8.
2) node class
1. circular pattern node class (Ctrl_GraphicsNodeCircle)
2. square graphical nodes class (Ctrl_GraphicsNodeRectangle) (including rectangle and square)
Fig. 4 is one fragment samples of typical process of simple mode, and flow chart should corresponding to the behavior that " specialty 4 " is located The main flow of flow process, specialty 3 and professional 5 corresponding flow processs all be non-master flow process, node 1. with node 2. between pass through directly to connect Wiring and parallel connection line are connected, and what " professional 3 ground installation self-inspection " connecting line was represented is the work that specialty 3 needs to complete Dynamic, what " professional 4 ground installation self-inspection " connecting line was represented is the activity that specialty 4 needs to complete, and " professional 5 ground installation self-inspection " connects What wiring was represented is the activity that specialty 5 needs to complete;" 1. " node represents " professional 3 ground installation self-inspection ", " professional 4 ground sets Standby self-inspection ", " professional 5 ground installation self-inspection " start executed in parallel from the node;" 2. " node represents that each professional equipment self-inspection is equal After end, the inside and outside that can carry out each specialty simultaneously parallel checks work.
One fragment samples of typical process of Fig. 5 for complex patterns, no main flow in flow chart, by straight between node Wiring, parallel connection line and bifurcated connecting line are carried out in parallel or series in succession.(content in Fig. 4 and Fig. 5 is intended merely to this Bright content is illustrated, and is not present invention object to be protected)
In Fig. 5, leftmost blank node represents that follow-up work proceeds by bifurcated executed in parallel from this node, divide into 5 Individual branch performs respectively;After in figure, the blank node of the rightmost side represents that 5 work carried out respectively terminate, behind blank node Work can just carry out.
Illustrate by taking one section of flow process between middle " 1. " " 6. " " 9. " node as an example.It is " movable 1-6 (unit 2) ", " living Activity representated by dynamic 6-9 (unit 3) ", " movable 1-9 (unit 4) " has been each responsible for by unit 2, unit 3, unit 4 respectively Into;" 1. " after node indicates entry into branch's flow process, the activity that " movable 1-6 (unit 2) " and " movable 1-9 (unit 4) " represents Can carry out simultaneously;" 6. " node represents, after the activity end that only " movable 1-6 (unit 2) " represents, " movable 6-9 (units 3) activity representated by " can just start to perform;" 9. " node is represented when " movable 6-9 (unit 3) " and " movable 1-9 (units 4) after the completion of the activity all representated by ", branch's flow process is just fully completed, and can enter rightmost side blank node in figure.
Flow graph constructionization is described:
Whole flow process figure is described by structured way, including flow chart overall information, branch's procedure information, is connected Wiring information, nodal information, and format analysis are carried out to the description, information is placed in correspondence container.
(1) flow chart overall information
It is described using expandable mark language XML, flow chart overall information attribute includes:
1) flow process unique mark:Unique symbol for distinguishing flow process;
2) father's flow process unique mark:Father's flow process (top-level process) symbol of this flow process is distinguished uniquely, by the attribute reality Now this flow process switches to father's flow process, i.e. different grain size flow process switching;
3) whether complex patterns:It is simple mode or complex patterns to distinguish flow chart, and simple mode flow chart is around work Dynamic main line is drawn, and complex patterns do not have movable main line.
(2) branch's procedure information
Branch's flow process information attribute includes:
1) title:Branch's process name (can be regarded as activity or task);
2) correspondence unit unique mark:Undertake unique differentiation symbol of the unit of the flow process or task;
3) whether main flow:Whether in simple mode flow chart, it is the flow process on movable main line to identify branch's flow process;
4) be expert at sequence number:The row sequence number that current branch flow process is located.
Branch's flow process set is formed by some branch's flow processs.
(3) nodal information
Nodal information attribute includes:
1) title:The title of present node;
2) node unique mark:Unique symbol for distinguishing node;
3) flow process unique mark:The unique mark of the flow chart belonging to present node;
4) correspondence unit unique mark:Unique differentiation symbol of the unit of current connecting line association
5) be expert at sequence number:The row sequence number that node is located;
6) column sequence number:The row sequence number that node is located;
7) node state:The progress of activity or task representated by present node, can be extended as needed;
8) with previous node distance:On a same row the distance between with previous node.
If forming node set by dry contact.
(4) connecting line information
Connecting line information attribute includes:
1) content description:Content representated by connecting line;
2) connecting line unique mark:Unique symbol for distinguishing connecting line;
3) connecting line type:Connecting line type is distinguished, 0 represents tieline, and 1 represents that parallel connection line, 2 represent bifurcated Collect connecting line
4) whether top:When connecting line type is to be connected in parallel line, the parallel connection line for representing current is directly to connect The top or lower section of wiring;
5) away from main flow distance:When connecting line type is to be connected in parallel line, current parallel connection line and centre are represented The distance between tieline parallel lines;
6) whether collect:When connecting line type collects connecting line for bifurcated, indicate whether to collect connecting line
7) correspondence unit unique mark:Unique differentiation symbol of the unit of current connecting line association;
8) start node unique mark:The start node of current connecting line connection uniquely distinguishes symbol;
9) terminal node unique mark:The start node of current connecting line connection uniquely distinguishes symbol.
Connecting line set is formed by some connecting lines.
Function is supported:
To realize supporting application, flow monitoring function supporting module is implemented function such as:
(1) based on QT X-Y scheme engines, the setting of flowchart display styles, such as font color, size, lines Color, thickness, flow chart background, flow chart pel gap size, background color etc.;
(2) network transmission function provided based on QtNetWork, can realize network transmission and message with remote terminal Transmitting-receiving;
(3) access of database table and view is realized based on QtSql, realizes that data base reads and stores operation;
(4) based on the database access interface in QtXML or (2), the structure of flow chart is parsed, forms flow process The contents such as the overall information of figure, branch's Process containers, node container, connecting line container;
(5) for (3) in all kinds of information of container, by the connection inspection of directed graph related algorithm flowchart and close Ring is checked;
(6) believed by " the flow process unique mark " of " the father's flow process unique mark " information and specified nodal information of overall information Breath can return back to top-level process figure and enter the corresponding refined flow chart of ingress, realize the scaling of flow process;
(7) user is provided and enters edlin maintenance function to flow chart, and preserve warehouse-in or form XML file.
Using support:
To support various integrated applications, flow monitoring application supporting module realizes function based on function supporting layer, with such as Lower application is supported:
(1) for contents such as branch's Process containers, node container, connecting line containers, based on directed graph topological sorting method, Topological sorting and the task scheduling function of flow process are provided;
(2) for application demand, based on the parameter information that connecting line or node give, can using graph key path and Figure shortest path first externally provides the functional interface for solving critical path and shortest path;
(3) it is to meet the practical application similar to construction network figure, the parameter that control is given based on connecting line or node Information, there is provided based on the earliest start time of AOE or AOV, late start time, can late time started, total time kept in reserve, freedom The computing functions such as time kept in reserve;
(4) the application prompting function of various information is provided for above-mentioned application.
Process is realized mainly:
Entirely to build and its applying graph of a relation, upper right portion is pel graph of a relation to Fig. 2, and upper left is the information of pel Graph of a relation, remainder are presented and how to build flow chart by pel, and the function of monitoring is realized by flow chart.Wherein Expression succession,Expression polymerization,Represent and rely on, the figure mainly includes three parts:
(1) upper left side is primitive information relation, mainly includes nodal information class FlowChart_Node and connecting line information Class FlowChart_Link, they are inherited from graphical information foundation class Ctrl_GraphicsInfoBase, for representing node class The graphic display information included with connecting line class.
(2) upper right side be pel relation, be inherited from Qt figure base class, mainly comprising QObject (base class of all classes of QT), QGraphicsLayoutItem (layout object base class in QT graphics view systems), QGraphicsItem (QT graphics view bodies X-Y scheme base class in system), QGraphicLineItem (linear graph base class in QT graphics view systems), and which is expanded Exhibition, mainly includes connecting line class Ctrl_GraphicsLink and node class Ctrl_GraphicsNodeBase.Connecting line is main Derive bifurcated connecting line class Ctrl_GraphicsLinkBranch and parallel connection line class Ctrl_ GraphicsLinkParallel, node mainly derive rectangle class Ctrl_GraphicsNodeRectangle and circle class Ctrl_GraphicsNodeCircle, different graphic can represent different types of information.Each pel contains related pel letter Breath, its interior joint apoplexy due to endogenous wind is be expert at, relation between column and preposition node, connecting line apoplexy due to endogenous wind start node, terminal node, The information such as connecting line type be used for draw a network, node apoplexy due to endogenous wind earliest start time, Late Start, can evening start when Between, connecting line apoplexy due to endogenous wind total time kept in reserve, whether the information such as critical path be used for the time response for representing each node in network, section Point apoplexy due to endogenous wind father and son's network information is used to represent network hierarchical relationship that user can also to inherit group on the basis of existing component The node class and connecting line class of new attribute are born, the characteristics such as the pattern of display, color, the information for including such as are can customize, from And the function of extension system.
(3) it is system application relation below.When flow chart is built, class CTM_ is parsed by flow chart The primitive information that FlowChartParser is stored in parsing data base or XML configuration file, including between nodal information, node Before and after continuous relation information and node other application information, in flow chart display window class CTM_FlowChartWidget Connecting line, node are drawn, network is generated, and is passed through each pel of layout device layout.Connecting line and node in network can be Monitored object, receives the status information that pel correspondence unit is reported, real-time update figure by monitoring class sjyh_ssjk_server Unit and network chart state, can represent in real time and control task flow process in flow chart monitoring class Sjyh_Ssjk_Wlt, call core Class of algorithms Sjyh_WltXg can real-time inspection network current state, carry out information alert, auxiliary user carries out decision-making and control, Core algorithm includes connectivity checks, closed loop are checked and crucial or shortest path is calculated etc., and user can customize topological diagram Parser, is lifted to applied analysis and aid decision ability.
It is illustrated in figure 3 the class sequence chart of flow chart establishment.
Flow chart display window class calls parsing class to carry out flow graph construction parsing, including node and connecting line information, institute There is structural information to be put in the container of display window class, display window class carries out layout of flow chart according to the structural information of parsing, Call graphical nodes class and figure connecting line class that flow chart node and connecting line are drawn on painting canvas simultaneously, and initialize each section The attribute information of point and connecting line, after flowchart drawing is finished, calls connectivity checks algorithm, closed loop to check that algorithm etc. is carried out The Correctness checking of flow chart.
Connecting line rendering algorithm between node:
Step 1:Two node class pel centers of connection, form a connecting line;
Step 2:The connecting line is carried out intersecting judgement with the frame of node class pel, connecting line and two nodes are calculated The intersection point of class pel, wherein circular node directly obtain the joining of circle and straight line, and rectangle class node needs connecting line and divides Do not carry out intersecting judgement with four edges;
Step 3:The connecting line of two intersection points is exactly the flowline for needing to draw.
The invention provides a kind of system for automatically generating cross-platform Complicated Flow figure based on QT, implements the technology The method and approach of scheme is a lot, and the above is only the preferred embodiment of the present invention, it is noted that for the art Those of ordinary skill for, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these change Enter and retouch also to should be regarded as protection scope of the present invention.In the present embodiment, clearly each ingredient not can use prior art to add To realize.

Claims (8)

1. a kind of system for automatically generating cross-platform Complicated Flow figure based on QT, it is characterised in that including flow chart parent map First drafting module, flow graph construction describing module, flow monitoring function supporting module and flow monitoring application supporting module;
X-Y scheme in base class QObject and graphics view system that the flow chart element figure drafting module is provided from QT Base class QGraphicsItem, linear figure base class QGraphicsLineItem, layout object base class QGraphicsLayoutItem is inherited and is derived from, and forms the parent map metaclass of flow chart, and the parent map metaclass includes connecting Wiring class and node class;
The flow graph construction describing module for whole flow process figure is described by structured way, including flow chart The description of overall information, branch's procedure information, nodal information and connecting line information, and format analysis are carried out to description, by information It is placed in correspondence container;
The flow monitoring function supporting module be used for the setting of flow chart display styles, network transmission, database access, connection and Closed loop is checked, and the switching of different grain size flow process;
The flow monitoring application supporting module is used for topological sorting, task scheduling, critical path and shortest path and calculates, and Support construction network figure application.
2. system according to claim 1, it is characterised in that the system is pre-set according to flow chart general outline One matrix, the corresponding position of the row, column that each node of flow chart is specified in respectively falling in matrix, flow chart control automatically according to Default line-spacing and row make node align away from calculate node center.
3. system according to claim 2, it is characterised in that the connecting line class includes tieline class, connects parallel Wiring class and bifurcated connecting line class;
The tieline class is straight line, is directly connected to two pels, and draws triangle at purpose pel junction point Shape arrow;
There is the parallel connection line of more than two in the parallel connection line class between two pels, for drawing and being directly connected to The parallel indirect connection line of line;
The bifurcated connecting line class splits into two or more flow process from main flow, or collects for main flow from two or more flow process When, draw branch line and collect line.
4. system according to claim 3, it is characterised in that the node class includes circular pattern node class and square chart Shape node class, the square graphical nodes class include rectangular pattern node class and square-shaped patterns node class.
5. system according to claim 4, it is characterised in that described to flow chart overall information, branch's procedure information, section Point information and the description of connecting line information include respectively:
Flow process unique mark:Unique symbol for distinguishing flow process;
Father's flow process unique mark:Father's flow process of this flow process, the i.e. symbol of top-level process are uniquely distinguished, this is realized by the attribute Flow process switches to father's flow process;
Whether complex patterns:It is simple mode or complex patterns to distinguish flow chart, and simple mode flow chart is around movable main line Drawn, complex patterns do not have movable main line;
Branch's flow process information attribute includes:
Title:Branch's process name;
Correspondence unit unique mark:Undertake unique differentiation symbol of the unit of the flow process or task;
Whether main flow:Whether in simple mode flow chart, it is the flow process on movable main line to identify branch's flow process;
Be expert at sequence number:The row sequence number that current branch flow process is located;
Nodal information attribute includes:
Title:The title of present node;
Node unique mark:Unique symbol for distinguishing node;
Flow process unique mark:The unique mark of the flow chart belonging to present node;
Correspondence unit unique mark:Unique differentiation symbol of the unit of current connecting line association
Be expert at sequence number:The row sequence number that node is located;
Column sequence number:The row sequence number that node is located;
Node state:The progress of activity or task representated by present node;
With previous node distance:On a same row the distance between with previous node;
Connecting line information attribute includes:
Content is described:Content representated by connecting line;
Connecting line unique mark:Unique symbol for distinguishing connecting line;
Connecting line type:Connecting line type is distinguished, 0 represents tieline, and 1 represents that parallel connection line, 2 expression bifurcateds collect company Wiring;
Whether top:When connecting line type is to be connected in parallel line, the parallel connection line for representing current is in tieline Top or lower section;
Away from main flow distance:When connecting line type is to be connected in parallel line, the parallel connection line for representing current is directly connected with centre The distance between wiring parallel lines;
Whether collect:When connecting line type collects connecting line for bifurcated, indicate whether to collect connecting line
Correspondence unit unique mark:Unique differentiation symbol of the unit of current connecting line association;
Start node unique mark:The start node of current connecting line connection uniquely distinguishes symbol;
Terminal node unique mark:The start node of current connecting line connection uniquely distinguishes symbol.
6. system according to claim 5, it is characterised in that the flow monitoring function supporting module is aobvious for flow chart Show that style setting, network transmission, database access, connection and closed loop inspection, the switching of different grain size flow process include:
Based on QT X-Y scheme engines, the setting of flowchart display styles, including font color, size, the color of lines, Thickness, flow chart background, flow chart pel gap size, background color;
Based on cross-platform network module QtNetWork provide network transmission function, with remote terminal realize network transmission and Information receiving and transmitting;
The access of database table and view is realized based on database access module QtSql, realizes that data base reads and stores operation;
It is based on the database access interface in XML file module for reading and writing QtXML or cross-platform network module QtNetWork, right The structure of flow chart is parsed, and forms overall information, branch's Process containers, node container and the connecting line container of flow chart;
For all kinds of information of container, by the connection inspection and closed loop inspection of related algorithm flowchart;
Returned by the flow process unique identification information of father's flow process unique identification information and specified nodal information of flow chart overall information Fall back on top-level process figure and enter the corresponding refined flow chart of ingress, realize the switching of different grain size flow process;
User is provided and enters edlin maintenance function to flow chart, and preserve warehouse-in or form XML file.
7. system according to claim 6, it is characterised in that the flow monitoring application supporting module is used for topology row Sequence, task scheduling, key and shortest path are calculated, and support that construction network figure application includes:
For branch's Process containers, node container and connecting line container, based on directed graph topological sorting method, there is provided flow process is opened up Flutter sequence and task scheduling function;
It is for application demand, based on the application parameter information that connecting line or node give, most short using graph key path and figure Routing algorithm externally provides the functional interface for solving critical path and shortest path;
Based on the application parameter information that connecting line or node give, there is provided the earliest start time netted based on AOE nets or AOV, Late start time, can late time started, total time kept in reserve and free time kept in reserve calculating and time alert feature.
8. system according to claim 7, it is characterised in that the system possesses structure elucidation, flow process and shows and flow Range monitoring function, including:
Class is parsed by flow chart and parses the primitive information stored in data base or XML configuration file, including nodal information, node Between before and after continuous relation information and node other application information;
Flow chart display window class parses information according to flow graph construction and draws each pel, and by each pel of layout device layout, Build entire flow figure;
Monitoring programme class receives the status information that pel correspondence unit sends, real-time update pel and networking by port snoop class Figure state, and call flow chart core algorithm automatically, analyze current operating state, point out user, and need to call according to user Concrete function.
CN201611061266.2A 2016-11-28 2016-11-28 QT-based system for automatically generating cross-platform complex flow chart Active CN106557457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611061266.2A CN106557457B (en) 2016-11-28 2016-11-28 QT-based system for automatically generating cross-platform complex flow chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611061266.2A CN106557457B (en) 2016-11-28 2016-11-28 QT-based system for automatically generating cross-platform complex flow chart

Publications (2)

Publication Number Publication Date
CN106557457A true CN106557457A (en) 2017-04-05
CN106557457B CN106557457B (en) 2020-01-17

Family

ID=58445074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611061266.2A Active CN106557457B (en) 2016-11-28 2016-11-28 QT-based system for automatically generating cross-platform complex flow chart

Country Status (1)

Country Link
CN (1) CN106557457B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329842A (en) * 2017-06-29 2017-11-07 福建新和兴信息技术有限公司 The method and terminal of acquisition data based on Qt signal mechanism slots
CN109582299A (en) * 2018-11-27 2019-04-05 西北工业大学 A kind of automatic layout algorithm of serial parallel nesting subtask flow chart
CN111026393A (en) * 2019-11-19 2020-04-17 中冶南方(武汉)自动化有限公司 QT-based SCADA system HMI development method
CN111695880A (en) * 2020-06-17 2020-09-22 常熟市汉泰化纤织造有限公司 Production process monitoring method and system
CN111814438A (en) * 2020-07-08 2020-10-23 中国人民解放军战略支援部队航天工程大学 System and method for drawing network diagram
CN112288228A (en) * 2020-09-27 2021-01-29 北京航空航天大学 Rule-based multi-stage parallel research and development design flow visualization modeling method
CN113569184A (en) * 2021-07-16 2021-10-29 众安在线财产保险股份有限公司 Configurable data calculation method, device, equipment and computer readable medium
CN114723851A (en) * 2022-06-07 2022-07-08 山东捷瑞数字科技股份有限公司 PERT graph drawing method and device based on three-dimensional engine
CN117724706A (en) * 2024-02-06 2024-03-19 湖南盛鼎科技发展有限责任公司 Method and system for batch-flow integrated flow real-time processing of heterogeneous platform mass data
CN117724706B (en) * 2024-02-06 2024-05-03 湖南盛鼎科技发展有限责任公司 Method and system for batch-flow integrated flow real-time processing of heterogeneous platform mass data

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181511B (en) * 2020-08-26 2021-09-14 北京大学 Executable information analysis flow interaction configuration generation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068391A1 (en) * 2002-10-02 2004-04-08 Shingo Futamura Non-iterative method for a fully-coupled thermomechanical analysis of a tire and estimating effects of compound changes on tire temperature distribution using the deformation index
US20080082016A1 (en) * 2006-10-03 2008-04-03 Mark Kohls System and method of serial comparison for detection of long qt syndrome (lqts)
CN102196000A (en) * 2010-03-11 2011-09-21 新奥特(北京)视频技术有限公司 Browser/server (B/S)-structure-based service flow visualization method and system
CN105786526A (en) * 2016-03-24 2016-07-20 江苏大学 Web-based efficient flow chart drawing system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068391A1 (en) * 2002-10-02 2004-04-08 Shingo Futamura Non-iterative method for a fully-coupled thermomechanical analysis of a tire and estimating effects of compound changes on tire temperature distribution using the deformation index
US20080082016A1 (en) * 2006-10-03 2008-04-03 Mark Kohls System and method of serial comparison for detection of long qt syndrome (lqts)
CN102196000A (en) * 2010-03-11 2011-09-21 新奥特(北京)视频技术有限公司 Browser/server (B/S)-structure-based service flow visualization method and system
CN105786526A (en) * 2016-03-24 2016-07-20 江苏大学 Web-based efficient flow chart drawing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
才忠胜 等: "流程图的自动生成系统", 《计算机系统应用》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329842B (en) * 2017-06-29 2020-11-10 福建新和兴信息技术有限公司 Method and terminal for acquiring data based on Qt signal slot mechanism
CN107329842A (en) * 2017-06-29 2017-11-07 福建新和兴信息技术有限公司 The method and terminal of acquisition data based on Qt signal mechanism slots
CN109582299B (en) * 2018-11-27 2021-12-10 西北工业大学 Automatic layout method of serial-parallel nested subtask flowchart
CN109582299A (en) * 2018-11-27 2019-04-05 西北工业大学 A kind of automatic layout algorithm of serial parallel nesting subtask flow chart
CN111026393A (en) * 2019-11-19 2020-04-17 中冶南方(武汉)自动化有限公司 QT-based SCADA system HMI development method
CN111695880A (en) * 2020-06-17 2020-09-22 常熟市汉泰化纤织造有限公司 Production process monitoring method and system
CN111695880B (en) * 2020-06-17 2024-01-12 苏州知云创宇信息科技有限公司 Production flow monitoring method and system
CN111814438A (en) * 2020-07-08 2020-10-23 中国人民解放军战略支援部队航天工程大学 System and method for drawing network diagram
CN112288228A (en) * 2020-09-27 2021-01-29 北京航空航天大学 Rule-based multi-stage parallel research and development design flow visualization modeling method
CN113569184A (en) * 2021-07-16 2021-10-29 众安在线财产保险股份有限公司 Configurable data calculation method, device, equipment and computer readable medium
CN114723851A (en) * 2022-06-07 2022-07-08 山东捷瑞数字科技股份有限公司 PERT graph drawing method and device based on three-dimensional engine
CN114723851B (en) * 2022-06-07 2022-09-20 山东捷瑞数字科技股份有限公司 PERT graph drawing method and device based on three-dimensional engine
CN117724706A (en) * 2024-02-06 2024-03-19 湖南盛鼎科技发展有限责任公司 Method and system for batch-flow integrated flow real-time processing of heterogeneous platform mass data
CN117724706B (en) * 2024-02-06 2024-05-03 湖南盛鼎科技发展有限责任公司 Method and system for batch-flow integrated flow real-time processing of heterogeneous platform mass data

Also Published As

Publication number Publication date
CN106557457B (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN106557457A (en) A kind of system for automatically generating cross-platform Complicated Flow figure based on QT
CN107103113B (en) The Automation Design method, apparatus and optimization method towards neural network processor
CN108334635A (en) Content customizable smart city comprehensive presentation system
US20140317546A1 (en) Logic Visualization Machine
Glinz et al. Object-oriented modeling with ADORA
US20140304214A1 (en) Navigable semantic network definition, modeling, and use
US8229735B2 (en) Grammar checker for visualization
CN102508991A (en) Method of constructing virtual experiment teaching scene based on image material
CN104317842A (en) Intelligent data extraction and thematic map generation engine based on geographic information technology
CN112182236A (en) Knowledge graph construction method and system and electronic equipment
Bai et al. Contextual adaptive knowledge visualization environments
CN105808682A (en) Relational graph display method and apparatus
CN109816750A (en) Image processing method, device and computer equipment based on meteorological data
She et al. 3D building model simplification method considering both model mesh and building structure
CN110119272A (en) A kind of human-machine interface configuration design method and device
Holmberg Geoinformatics for urban and regional planning
CN104484093B (en) The arrangement display methods and device of graphical interfaces
CN116226487B (en) Data large screen visualization method and system based on pattern recognition
CN113468288A (en) Content extraction method of text courseware based on artificial intelligence and related equipment
CN104133680A (en) Fast building method of ERP form module
CN107895282A (en) A kind of tobacco market big data method for visualizing based on space-time grid
CN116108922A (en) Visualization method and device for discipline knowledge graph
CN109086515A (en) The modeling method of primary equipment pictorial information in intelligent substation SSD based on SVG
CN109299158A (en) A kind of data visualization method and system
CN108647337A (en) A kind of format processing method and device of simulation analysis data

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