CN112580124A - Graphic modeling method, apparatus, browser and computer readable storage medium - Google Patents

Graphic modeling method, apparatus, browser and computer readable storage medium Download PDF

Info

Publication number
CN112580124A
CN112580124A CN202011568470.XA CN202011568470A CN112580124A CN 112580124 A CN112580124 A CN 112580124A CN 202011568470 A CN202011568470 A CN 202011568470A CN 112580124 A CN112580124 A CN 112580124A
Authority
CN
China
Prior art keywords
primitive
point
selection instruction
instruction
receiving
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
CN202011568470.XA
Other languages
Chinese (zh)
Other versions
CN112580124B (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.)
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Original Assignee
Shenzhen Digital Power Grid Research Institute of China Southern 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 Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd filed Critical Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Priority to CN202011568470.XA priority Critical patent/CN112580124B/en
Publication of CN112580124A publication Critical patent/CN112580124A/en
Application granted granted Critical
Publication of CN112580124B publication Critical patent/CN112580124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/04Power grid distribution networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a graphic modeling method, a device, a browser and a computer readable storage medium, wherein the graphic modeling method is applied to the browser, the browser is provided with a plurality of different preset point primitives, and the method comprises the following steps: obtaining map information; receiving a point primitive selection instruction; calling a preset point primitive corresponding to the point primitive selection instruction according to the point primitive selection instruction, and taking the preset point primitive as a target point primitive; receiving a position selection instruction; determining a target position from the map information according to the position selection instruction; and setting the target point primitive at the target position. The method can be widely applied to planning of the main power distribution network, planning of the underground pipe network and planning and maintenance operation of the optical cable and the water service pipeline, so that the operation of checking and editing which originally needs CAD drawing software can be completed through one browser page, and the operation is simpler and more efficient. Therefore, the invention has low cost and low upper-hand threshold, is simple and easy to use, and can be customized according to the service scene.

Description

Graphic modeling method, apparatus, browser and computer readable storage medium
Technical Field
The present invention relates to the field of modeling technologies, and in particular, to a graphical modeling method, a graphical modeling apparatus, a browser, and a computer-readable storage medium.
Background
For the current mainstream graphic modeling mode, CAD drawing software is often used, and the following problems can occur when the CAD drawing software is used for graphic modeling: firstly, the use threshold is high, so that the personnel who are not trained by related professionals are difficult to operate and difficult to master through short-term training; secondly, the use cost is high, the CAD drawing software is charging software and is expensive, and a large amount of software purchasing cost is needed for modeling by using the CAD drawing software; third, absent customization operations, although CAD drawing software is powerful, many functions are not needed in graphical modeling, and CAD drawing software cannot provide fast operations for rapid customization, which is a high-frequency function required for graphical modeling.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a graphical modeling method, a graphical modeling device, a browser and a computer readable storage medium, which have low cost and low hands-on threshold, are simple and easy to use and can be customized according to a service scene.
In a first aspect, an embodiment of the present invention provides a graph modeling method, which is applied to a browser, where the browser is provided with a plurality of different preset-point primitives, and the method includes:
obtaining map information;
receiving a point diagram element selection instruction input by a user;
calling the preset point primitive corresponding to the point-diagram element selection instruction according to the point-diagram element selection instruction, and taking the preset point primitive as a target point primitive;
receiving a position selection instruction input by the user;
determining a target position from the map information according to the position selection instruction;
and setting the target point primitive at the target position.
The graphical modeling method provided by the embodiment of the invention at least has the following beneficial effects: the embodiment of the invention can be widely applied to planning of power main and distribution networks, planning of underground pipe networks and planning and maintenance operation of optical cables and water service pipelines, so that the operation of checking and editing which originally needs CAD drawing software can be completed through one browser page, and the operation is simpler and more efficient. Therefore, the embodiment of the invention has the advantages of low cost, low upper-hand threshold, simplicity and easiness in use and capability of customizing according to the service scene.
According to some embodiments of the invention, further comprising:
counting the calling times of the multiple preset point primitives;
and sequencing the multiple preset point primitives from high to low according to the calling times.
According to some embodiments of the invention, further comprising:
and if the target point primitive is close to a historical point primitive, generating a line primitive to connect the target point primitive and the historical point primitive, wherein the historical point primitive is the preset point primitive which is already arranged on the map information.
According to some embodiments of the invention, further comprising:
receiving a line drawing element disconnection instruction input by the user;
receiving a line drawing element selection instruction input by the user;
and disconnecting the line primitive corresponding to the line primitive selection instruction according to the line primitive disconnection instruction and the line primitive selection instruction.
According to some embodiments of the invention, further comprising:
receiving a point diagram element dragging instruction input by the user;
receiving a point diagram element selection instruction input by the user;
and according to the point diagram element dragging instruction and the point diagram element selecting instruction, synchronously dragging the historical point diagram element corresponding to the point diagram element selecting instruction and other historical point diagram elements and all line diagram elements connected with the historical point diagram element.
According to some embodiments of the invention, further comprising:
receiving a ranging instruction input by the user;
receiving a primitive selection instruction input by the user, and determining a first primitive and a second primitive according to the primitive selection instruction, wherein the first primitive is the history point primitive or the line primitive, and the second primitive is the history point primitive or the line primitive;
and calculating a distance value between the first primitive and the second primitive according to the ranging instruction and the primitive selection instruction.
According to some embodiments of the invention, further comprising at least one of:
receiving an import instruction input by the user, and importing a first CAD format file corresponding to the import instruction according to the import instruction;
and receiving an export instruction input by the user, and exporting a second CAD format file according to the export instruction.
In a second aspect, an embodiment of the present invention further provides a graph modeling apparatus, which is applied to a browser, where the browser is provided with a plurality of different preset-point primitives, and the graph modeling apparatus includes:
a map information acquisition unit for acquiring map information;
the point diagram element selection instruction receiving unit is used for receiving a point diagram element selection instruction input by a user;
the calling unit is used for calling the preset point primitive corresponding to the point diagram element selection instruction according to the point diagram element selection instruction and taking the preset point primitive as a target point primitive;
a position selection instruction receiving unit, configured to receive a position selection instruction input by the user;
the target position selecting unit is used for determining a target position from the map information according to the position selecting instruction;
and the setting unit is used for setting the target point primitive at the target position.
The graphical modeling device provided by the embodiment of the invention at least has the following beneficial effects: the embodiment of the invention can be widely applied to planning of power main and distribution networks, planning of underground pipe networks and planning and maintenance operation of optical cables and water service pipelines, so that the operation of checking and editing which originally needs CAD drawing software can be completed through one browser page, and the operation is simpler and more efficient. Therefore, the embodiment of the invention has the advantages of low cost, low upper-hand threshold, simplicity and easiness in use and capability of customizing according to the service scene.
In a third aspect, an embodiment of the present invention further provides a browser, where the browser may execute the graphical modeling method according to the first aspect or include the graphical modeling apparatus according to the second aspect.
The browser provided by the embodiment of the invention at least has the following beneficial effects: the embodiment of the invention can be widely applied to planning of power main and distribution networks, planning of underground pipe networks and planning and maintenance operation of optical cables and water service pipelines, so that the operation of checking and editing which originally needs CAD drawing software can be completed through one browser page, and the operation is simpler and more efficient. Therefore, the embodiment of the invention has the advantages of low cost, low upper-hand threshold, simplicity and easiness in use and capability of customizing according to the service scene.
In a fourth aspect, the present invention further provides a computer-readable storage medium storing computer-executable instructions for performing the graphical modeling method according to the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a schematic diagram of a system architecture platform for performing a graphical modeling method provided by one embodiment of the present invention;
FIG. 2 is a flow diagram of a graphical modeling method provided by one embodiment of the present invention;
FIG. 3 is a flow chart of a graphical modeling method provided by another embodiment of the present invention;
FIG. 4 is a flow chart of a graphical modeling method provided by another embodiment of the present invention;
FIG. 5 is a flow chart of a graphical modeling method provided by another embodiment of the present invention;
FIG. 6 is a flow chart of a graphical modeling method provided by another embodiment of the present invention;
FIG. 7 is a flow chart of a graphical modeling method provided by another embodiment of the present invention;
FIG. 8 is a flow chart of a graphical modeling method provided by another embodiment of the present invention;
FIG. 9 is a flow chart of a graphical modeling method provided by another embodiment of the present invention;
FIG. 10 is a schematic view of an operation interface of a browser in the graphical modeling method according to an embodiment of the present invention;
FIG. 11 is a schematic view of an operation interface of a browser in a graphical modeling method according to another embodiment of the present invention;
fig. 12 is a schematic diagram of a graphical modeling apparatus provided by an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
At present, for the current mainstream graphic modeling mode, CAD drawing software is often used, and the following problems can exist when the CAD drawing software is used for graphic modeling: firstly, the use threshold is high, so that the personnel who are not trained by related professionals are difficult to operate and difficult to master through short-term training; secondly, the use cost is high, the CAD drawing software is charging software and is expensive, and a large amount of software purchasing cost is needed for modeling by using the CAD drawing software; third, absent customization operations, although CAD drawing software is powerful, many functions are not needed in graphical modeling, and CAD drawing software cannot provide fast operations for rapid customization, which is a high-frequency function required for graphical modeling.
Based on this, an embodiment of the present invention provides a graph modeling method, a graph modeling apparatus, a browser, and a computer-readable storage medium, where the graph modeling method is applied to a browser, and the browser is provided with a plurality of different preset-point primitives, and the graph modeling method includes the following steps: obtaining map information; receiving a point diagram element selection instruction input by a user; calling a preset point primitive corresponding to the point primitive selection instruction according to the point primitive selection instruction, and taking the preset point primitive as a target point primitive; receiving a position selection instruction input by a user; determining a target position from the map information according to the position selection instruction; and setting the target point primitive at the target position. According to the technical scheme of the embodiment of the invention, the embodiment of the invention can be widely applied to the planning of the power main distribution network, the planning of the underground pipe network and the planning and maintenance operation of the optical cable and the water service pipeline, so that the operation of checking and editing only by using CAD drawing software can be completed through one browser page, and the operation is simpler and more efficient. Therefore, the embodiment of the invention has the advantages of low cost, low upper-hand threshold, simplicity and easiness in use and capability of customizing according to the service scene.
The embodiments of the present invention will be further explained with reference to the drawings.
As shown in fig. 1, fig. 1 is a schematic diagram of a controller 100 for performing a graphical modeling method according to an embodiment of the present invention. The controller 100 according to the embodiment of the present invention includes one or more processors 110 and a memory 120, and fig. 1 illustrates one processor 110 and one memory 120 as an example.
The processor 110 and the memory 120 may be connected by a bus or other means, such as the bus connection shown in FIG. 1.
The memory 120, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory 120 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 120 optionally includes memory 120 located remotely from the processor 110, and these remote memories may be connected to the controller 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 does not constitute a limitation of the controller 100 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In the controller 100 shown in fig. 1, the processor 110 may be configured to call a graphical modeling program stored in the memory 120 to implement a graphical modeling method.
Various embodiments of the graphical modeling method of the present invention are presented based on the hardware structure of the controller 100 described above.
Referring to fig. 2, fig. 2 is a flowchart of a graphic modeling method according to an embodiment of the present invention, the graphic modeling method is applied to a browser, wherein the browser is provided with a plurality of different preset-point primitives, and the graphic modeling method includes, but is not limited to, step S110, step S120, step S130, step S140, step S150, and step S160.
Step S110, obtaining map information;
step S120, receiving a point diagram element selection instruction input by a user;
step S130, calling a preset point primitive corresponding to the point primitive selection instruction according to the point primitive selection instruction, and taking the preset point primitive as a target point primitive;
step S140, receiving a position selection instruction input by a user;
step S150, determining a target position from the map information according to the position selection instruction;
step S160, the target point primitive is set at the target position.
According to the technical scheme of the embodiment of the invention, the embodiment of the invention can be widely applied to the planning of the power main distribution network, the planning of the underground pipe network and the planning and maintenance operation of the optical cable and the water service pipeline, so that the operation of checking and editing only by using CAD drawing software can be completed through one browser page, and the operation is simpler and more efficient. Therefore, the embodiment of the invention has the advantages of low cost, low upper-hand threshold, simplicity and easiness in use and capability of customizing according to the service scene.
It should be noted that, in the browser, by clicking a specific primitive button, a corresponding graphics type is selected, and clicking is performed at a specified position, so that a desired graphics can be drawn.
It will be appreciated that, in relation to the above-mentioned preset point primitives, in particular, preset point primitives for characterizing a work well or a tower may be used.
In addition, referring to fig. 3, fig. 3 is a flowchart of a graph modeling method according to another embodiment of the present invention, which further includes, but is not limited to, step S210 and step S220.
Step S210, counting the calling times of a plurality of preset point primitives;
and step S220, sequencing the multiple preset point primitives from high to low according to the calling times.
According to the technical scheme of the embodiment of the invention, the calling times of the multiple preset point primitives can be counted, and the multiple preset point primitives are sorted according to the calling times from high to low, so that the preset point primitive used at high frequency can be placed at the most front and most obvious position, and a user can conveniently and quickly select the preset point primitive.
In addition, referring to fig. 4, fig. 4 is a flowchart of a graph modeling method according to another embodiment of the present invention, which further includes, but is not limited to, step S300.
In step S300, if the target point primitive is close to the history point primitive, a line primitive is generated to connect the target point primitive and the history point primitive, wherein the history point primitive is a preset point primitive which has been set on the map information.
According to the technical scheme of the embodiment of the invention, when the target point primitive is close to the historical point primitive, the embodiment of the invention can also generate the line primitive to connect the target point primitive and the historical point primitive, wherein the historical point primitive is a preset point primitive which is already arranged on the map information.
Specifically, when the drawn primitive passes through the existing primitive node, the primitive is automatically adsorbed to the existing node, and the purpose of automatically establishing the connection relationship is achieved.
In addition, referring to fig. 5, fig. 5 is a flowchart of a graph modeling method according to another embodiment of the present invention, where the graph modeling method further includes, but is not limited to, step S410, step S420, and step S430.
Step S410, receiving a line drawing element disconnection instruction input by a user;
step S420, receiving a line drawing element selection instruction input by a user;
and step S430, according to the line drawing element disconnection instruction and the line drawing element selection instruction, disconnecting the line drawing element corresponding to the line drawing element selection instruction.
According to the technical scheme of the embodiment of the invention, a user can input the line primitive disconnection instruction and the line primitive selection instruction, and then the embodiment of the invention disconnects the line primitive corresponding to the line primitive selection instruction according to the line primitive disconnection instruction and the line primitive selection instruction.
Specifically, the user selects the interruption function in the editing mode, and clicks on the line primitive, so that interruption of the line primitive can be realized.
In addition, referring to fig. 6, fig. 6 is a flowchart of a graph modeling method according to another embodiment of the present invention, where the graph modeling method further includes, but is not limited to, step S510, step S520, and step S530.
Step S510, receiving a point diagram element dragging instruction input by a user;
step S520, receiving a point diagram element selection instruction input by a user;
step S530, according to the point primitive dragging instruction and the point primitive selecting instruction, dragging the historical point primitive corresponding to the point primitive selecting instruction and other historical point primitives and all line primitives connected with the historical point primitive synchronously.
According to the technical scheme of the embodiment of the invention, a user can input a point primitive dragging instruction and a point primitive selecting instruction, and then the embodiment of the invention synchronously drags the historical point primitive corresponding to the point primitive selecting instruction and other historical point primitives and all line primitives connected with the historical point primitive according to the point primitive dragging instruction and the point primitive selecting instruction.
Specifically, when the user selects a point in the editing mode, the point primitive can be dragged, and other graphics connected to the point primitive can move together with the point primitive.
In addition, referring to fig. 7, fig. 7 is a flowchart of a graph modeling method according to another embodiment of the present invention, where the graph modeling method further includes, but is not limited to, step S610, step S620, and step S630.
Step S610, receiving a ranging instruction input by a user;
step S620, receiving a primitive selection instruction input by a user, and determining a first primitive and a second primitive according to the primitive selection instruction, wherein the first primitive is a history point primitive or a line primitive, and the second primitive is a history point primitive or a line primitive;
step S630, according to the ranging command and the primitive selecting command, a distance value between the first primitive and the second primitive is calculated.
According to the technical scheme of the embodiment of the invention, a user can input a ranging instruction and a primitive selection instruction, and then the embodiment of the invention determines a first primitive and a second primitive according to the primitive selection instruction, wherein the first primitive is a historical point primitive or a line primitive, and the second primitive is a historical point primitive or a line primitive; then, according to the ranging command and the primitive selection command, the embodiment of the present invention calculates the distance value between the first primitive and the second primitive.
Specifically, the embodiment of the invention supports inter-primitive ranging besides the conventional line drawing ranging, and can be used for measuring the straight line distance from a point primitive to a point primitive, the closest point distance from the point primitive to a line drawing primitive and the closest distance between the line primitive and the line drawing primitive.
In addition, referring to fig. 8, fig. 8 is a flowchart of a graph modeling method according to another embodiment of the present invention, where the graph modeling method further includes, but is not limited to, step S710.
Step S710, receiving an import instruction input by a user, and importing a first CAD format file corresponding to the import instruction according to the import instruction.
In addition, referring to fig. 9, fig. 9 is a flowchart of a graph modeling method according to another embodiment of the present invention, where the graph modeling method further includes, but is not limited to, step S720.
And step S720, receiving an export instruction input by the user, and exporting the second CAD format file according to the export instruction.
Based on the method steps in fig. 8 and fig. 9, according to the technical solution of the embodiment of the present invention, considering that many graphic modeling files are currently drawn based on CAD, the embodiment of the present invention particularly supports the import and export operations of CAD. Illustratively, a typical usage scenario is that a file created by using a CAD is imported into a browser according to an embodiment of the present invention, and the file is edited and exported to the CAD, so that seamless switching between the browser and a CAD tool is achieved.
Specifically, the embodiment of the invention supports import and export operations in a CAD format, and is perfectly compatible with a CAD file format drawn by a traditional drawing tool.
Based on the above graph modeling method, a detailed schematic diagram of the graph modeling method according to the embodiment of the present invention is shown in fig. 10 and 11. FIG. 10 is a schematic view of an operation interface of a browser in the graphical modeling method according to an embodiment of the present invention; fig. 11 is a schematic view of an operation interface of a browser in a graphical modeling method according to another embodiment of the present invention.
Based on the flow steps of the graphical modeling method, various embodiments of the graphical modeling apparatus of the present invention are presented.
Referring to fig. 12, fig. 12 is a schematic diagram of a graphical modeling apparatus 200 according to an embodiment of the present invention. The graphic modeling apparatus 200 provided in the embodiment of the present invention is applied to a browser, where the browser is provided with a plurality of different preset point primitives, and the graphic modeling apparatus 200 includes a map information obtaining unit 211, a point primitive selection instruction receiving unit 212, a calling unit 213, a position selection instruction receiving unit 214, a target position selecting unit 215, and a setting unit 216.
Specifically, the map information acquisition unit 211 is configured to acquire map information;
the point diagram element selection instruction receiving unit 212 is used for receiving a point diagram element selection instruction input by a user;
the calling unit 213 is configured to call a preset point primitive corresponding to the point primitive selection instruction according to the point primitive selection instruction, and use the preset point primitive as a target point primitive;
the position selection instruction receiving unit 214 is used for receiving a position selection instruction input by a user;
the target position selecting unit 215 is configured to determine a target position from the map information according to the position selecting instruction;
the setting unit 216 is configured to set the target point primitive at the target position.
It should be noted that, for the specific implementation and technical effects of the graph modeling apparatus 200 according to the embodiment of the present invention, reference may be made to the specific implementation and technical effects of the graph modeling method according to the above-described embodiment.
In addition, as shown in fig. 12, the graphical modeling apparatus 200 according to the embodiment of the present invention further includes, but is not limited to, a call count counting unit 221 and a sorting unit 222.
Specifically, the calling number counting unit 221 is configured to count the calling numbers of multiple preset-point primitives; the sorting unit 222 is configured to sort the multiple preset-point primitives according to the number of calls from high to low.
It should be noted that, for the specific implementation and technical effects of the graph modeling apparatus 200 according to the embodiment of the present invention, reference may be made to the specific implementation and technical effects of the graph modeling method according to the above-described embodiment.
In addition, as shown in fig. 12, the graphic modeling apparatus 200 according to the embodiment of the present invention further includes, but is not limited to, a wired primitive generation unit 223.
Specifically, if the target point primitive is close to the history point primitive, the line primitive generation unit 223 is configured to generate a line primitive to connect the target point primitive and the history point primitive, where the history point primitive is a preset point primitive that has been set on the map information.
It should be noted that, for the specific implementation and technical effects of the graph modeling apparatus 200 according to the embodiment of the present invention, reference may be made to the specific implementation and technical effects of the graph modeling method according to the above-described embodiment.
In addition, as shown in fig. 12, the graphic modeling apparatus 200 according to the embodiment of the present invention further includes, but is not limited to, a wired primitive disconnection instruction receiving unit 224, a line primitive selection instruction receiving unit 225, and a disconnection unit 226.
Specifically, the line drawing unit disconnection instruction receiving unit 224 is configured to receive a line drawing unit disconnection instruction input by a user; the line drawing element selection instruction receiving unit 225 is configured to receive a line drawing element selection instruction input by a user; the breaking unit 226 is configured to break the line primitive corresponding to the line primitive selection instruction according to the line primitive breaking instruction and the line primitive selection instruction.
It should be noted that, for the specific implementation and technical effects of the graph modeling apparatus 200 according to the embodiment of the present invention, reference may be made to the specific implementation and technical effects of the graph modeling method according to the above-described embodiment.
In addition, as shown in fig. 12, the graphic modeling apparatus 200 according to the embodiment of the present invention further includes, but is not limited to, a dot primitive dragging instruction receiving unit 227, a dot primitive selecting instruction receiving unit 228, and a dragging unit 229.
Specifically, the point-diagram-element drag instruction receiving unit 227 is configured to receive a point-diagram-element drag instruction input by a user; the point diagram element selection instruction receiving unit 228 is configured to receive a point diagram element selection instruction input by a user; the dragging unit 229 is configured to synchronously drag the history point primitive corresponding to the point primitive selecting instruction, and the other history point primitives and all line primitives connected to the history point primitive, according to the point primitive dragging instruction and the point primitive selecting instruction.
It should be noted that, for the specific implementation and technical effects of the graph modeling apparatus 200 according to the embodiment of the present invention, reference may be made to the specific implementation and technical effects of the graph modeling method according to the above-described embodiment.
In addition, as shown in fig. 12, the graphic modeling apparatus 200 according to the embodiment of the present invention further includes, but is not limited to, a ranging command receiving unit 230, a primitive selecting command receiving unit 231, and a calculating unit 232.
Specifically, the ranging instruction receiving unit 230 is configured to receive a ranging instruction input by a user; the primitive selection instruction receiving unit 231 is configured to receive a primitive selection instruction input by a user, and determine a first primitive and a second primitive according to the primitive selection instruction, where the first primitive is a history point primitive or a line primitive, and the second primitive is a history point primitive or a line primitive; the calculating unit 232 is configured to calculate a distance value between the first primitive and the second primitive according to the ranging instruction and the primitive selecting instruction.
It should be noted that, for the specific implementation and technical effects of the graph modeling apparatus 200 according to the embodiment of the present invention, reference may be made to the specific implementation and technical effects of the graph modeling method according to the above-described embodiment.
In addition, as shown in fig. 12, the graphical modeling apparatus 200 according to the embodiment of the present invention further includes, but is not limited to, an importing unit 233 and an exporting unit 234.
Specifically, the importing unit 233 is configured to receive an import instruction input by a user, and import a first CAD format file corresponding to the import instruction according to the import instruction; the export unit 234 is configured to receive an export instruction input by a user, and export the second CAD format file according to the export instruction.
It should be noted that, for the specific implementation and technical effects of the graph modeling apparatus 200 according to the embodiment of the present invention, reference may be made to the specific implementation and technical effects of the graph modeling method according to the above-described embodiment.
Based on the graphical modeling method and the graphical modeling apparatus 200 described above, various embodiments of the controller, the browser, and the computer-readable storage medium of the present invention are set forth below, respectively.
In addition, an embodiment of the present invention provides a controller including: a memory, a processor, and a computer program stored on the memory and executable on the processor.
The processor and memory may be connected by a bus or other means.
It should be noted that the controller in this embodiment may be applied to the system architecture platform in the embodiment shown in fig. 1, and the controller in this embodiment can form a part of the system architecture platform in the embodiment shown in fig. 1, and both of them belong to the same inventive concept, so both of them have the same implementation principle and beneficial effect, and are not described in detail herein.
The non-transitory software programs and instructions required to implement the graphical modeling method of the above-described embodiments are stored in a memory and, when executed by a processor, perform the graphical modeling method of the above-described embodiments, e.g., perform the method steps in fig. 2-9 described above.
In addition, an embodiment of the present invention provides a browser, which can execute the graphical modeling method according to any one of the above embodiments or the graphical modeling apparatus including any one of the above embodiments.
It should be noted that, since the browser according to the embodiment of the present invention can execute the graph modeling method according to any one of the embodiments described above or the graph modeling apparatus including any one of the embodiments described above, and the graph modeling apparatus corresponds to the graph modeling method, the specific implementation and technical effects of the browser according to the embodiment of the present invention can refer to the specific implementation and technical effects of the graph modeling method according to any one of the embodiments described above.
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions for performing the graphical modeling method described above. For example, the method steps in fig. 2 to 9 described above are performed.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described in detail, it will be understood by those skilled in the art that the foregoing and various other changes, omissions and deviations in the form and detail thereof may be made without departing from the scope of this invention.

Claims (10)

1. A graphical modeling method applied to a browser, wherein the browser is provided with a plurality of different preset point primitives, the method comprising:
obtaining map information;
receiving a point diagram element selection instruction input by a user;
calling the preset point primitive corresponding to the point-diagram element selection instruction according to the point-diagram element selection instruction, and taking the preset point primitive as a target point primitive;
receiving a position selection instruction input by the user;
determining a target position from the map information according to the position selection instruction;
and setting the target point primitive at the target position.
2. The method of claim 1, further comprising:
counting the calling times of the multiple preset point primitives;
and sequencing the multiple preset point primitives from high to low according to the calling times.
3. The method of claim 1, further comprising:
and if the target point primitive is close to a historical point primitive, generating a line primitive to connect the target point primitive and the historical point primitive, wherein the historical point primitive is the preset point primitive which is already arranged on the map information.
4. The method of claim 3, further comprising:
receiving a line drawing element disconnection instruction input by the user;
receiving a line drawing element selection instruction input by the user;
and disconnecting the line primitive corresponding to the line primitive selection instruction according to the line primitive disconnection instruction and the line primitive selection instruction.
5. The method of claim 3, further comprising:
receiving a point diagram element dragging instruction input by the user;
receiving a point diagram element selection instruction input by the user;
and according to the point diagram element dragging instruction and the point diagram element selecting instruction, synchronously dragging the historical point diagram element corresponding to the point diagram element selecting instruction and other historical point diagram elements and all line diagram elements connected with the historical point diagram element.
6. The method of claim 3, further comprising:
receiving a ranging instruction input by the user;
receiving a primitive selection instruction input by the user, and determining a first primitive and a second primitive according to the primitive selection instruction, wherein the first primitive is the history point primitive or the line primitive, and the second primitive is the history point primitive or the line primitive;
and calculating a distance value between the first primitive and the second primitive according to the ranging instruction and the primitive selection instruction.
7. The method of any one of claims 1 to 6, further comprising at least one of:
receiving an import instruction input by the user, and importing a first CAD format file corresponding to the import instruction according to the import instruction;
and receiving an export instruction input by the user, and exporting a second CAD format file according to the export instruction.
8. A graphical modeling apparatus, for use in a browser, the browser being configured with a plurality of different pre-set point primitives, the graphical modeling apparatus comprising:
a map information acquisition unit for acquiring map information;
the point diagram element selection instruction receiving unit is used for receiving a point diagram element selection instruction input by a user;
the calling unit is used for calling the preset point primitive corresponding to the point diagram element selection instruction according to the point diagram element selection instruction and taking the preset point primitive as a target point primitive;
a position selection instruction receiving unit, configured to receive a position selection instruction input by the user;
the target position selecting unit is used for determining a target position from the map information according to the position selecting instruction;
and the setting unit is used for setting the target point primitive at the target position.
9. A browser, characterized in that it can perform a graphical modeling method according to any one of claims 1 to 7 or comprises a graphical modeling apparatus according to claim 8.
10. A computer-readable storage medium having stored thereon computer-executable instructions for performing the graphical modeling method of any of claims 1 to 7.
CN202011568470.XA 2020-12-25 2020-12-25 Graphic modeling method, device, browser and computer readable storage medium Active CN112580124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011568470.XA CN112580124B (en) 2020-12-25 2020-12-25 Graphic modeling method, device, browser and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011568470.XA CN112580124B (en) 2020-12-25 2020-12-25 Graphic modeling method, device, browser and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112580124A true CN112580124A (en) 2021-03-30
CN112580124B CN112580124B (en) 2024-05-14

Family

ID=75139891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011568470.XA Active CN112580124B (en) 2020-12-25 2020-12-25 Graphic modeling method, device, browser and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112580124B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646091A (en) * 2013-12-17 2014-03-19 北京中电普华信息技术有限公司 Generation method and device of grid graph data
CN106599272A (en) * 2016-12-23 2017-04-26 北京超图软件股份有限公司 Graphic object dynamic plotting method, apparatus and system at browser end
CN109858182A (en) * 2019-02-28 2019-06-07 国电南瑞科技股份有限公司 Editor's display technique of regulation cloud station wiring diagram based on B/S framework
CN109933322A (en) * 2019-01-28 2019-06-25 平安科技(深圳)有限公司 A kind of page editing method, apparatus and computer readable storage medium
CN110188150A (en) * 2019-04-16 2019-08-30 厦门亿力吉奥信息科技有限公司 The modeling method and computer readable storage medium of distribution network line figure
CN111737800A (en) * 2020-06-23 2020-10-02 广联达科技股份有限公司 Primitive selection method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646091A (en) * 2013-12-17 2014-03-19 北京中电普华信息技术有限公司 Generation method and device of grid graph data
CN106599272A (en) * 2016-12-23 2017-04-26 北京超图软件股份有限公司 Graphic object dynamic plotting method, apparatus and system at browser end
CN109933322A (en) * 2019-01-28 2019-06-25 平安科技(深圳)有限公司 A kind of page editing method, apparatus and computer readable storage medium
CN109858182A (en) * 2019-02-28 2019-06-07 国电南瑞科技股份有限公司 Editor's display technique of regulation cloud station wiring diagram based on B/S framework
CN110188150A (en) * 2019-04-16 2019-08-30 厦门亿力吉奥信息科技有限公司 The modeling method and computer readable storage medium of distribution network line figure
CN111737800A (en) * 2020-06-23 2020-10-02 广联达科技股份有限公司 Primitive selection method and device and electronic equipment

Also Published As

Publication number Publication date
CN112580124B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN105930020A (en) Method and apparatus for function icons of management terminal application program
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN111481939B (en) Game account control method, device, medium and electronic equipment
CN104104588A (en) Instant message display method and device
CN110164057A (en) Package processing method, device, server and readable medium based on intelligent cabinet-type air conditioner
CN105183311A (en) Folder merging method and device
CN105205108A (en) Method and device for dissolving folder
CN107958127B (en) Cable laying design method and device, computer equipment and readable storage medium
CN111399941A (en) Batch configuration method, device and equipment for BMC (baseboard management controller) functions
CN109960768A (en) Display methods, device, terminal device and the system of map interface
CN112580124A (en) Graphic modeling method, apparatus, browser and computer readable storage medium
CN111123728A (en) Unmanned vehicle simulation method, device, equipment and computer readable medium
CN111966111A (en) Automatic power distribution based mobile charging equipment formation control method, system and device
CN109808689B (en) Unmanned vehicle control method, device and equipment
CN107529095A (en) A kind of video-splicing method and device
CN108347355A (en) A kind of detection method and its equipment of application state
CN104301235A (en) Network flow control method and device
CN115983918A (en) Advertisement pushing method, medium, device and computing equipment
CN111552705B (en) Data processing method and device based on chart, electronic equipment and medium
CN109190969A (en) Weighing-appliance management-control method, system, weighing-appliance management middleware and medium
CN105610596A (en) Resource directory management method and network terminal
CN113271351A (en) Cloud computing resource scheduling method, device, equipment and readable storage medium
CN111339413A (en) Scenic spot map data pushing method and system
CN112396081A (en) Data fusion method and device
CN114840112B (en) POP resource management method, device, equipment and computer readable storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: 518000 building 501, 502, 601, 602, building D, wisdom Plaza, Qiaoxiang Road, Gaofa community, Shahe street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: China Southern Power Grid Digital Platform Technology (Guangdong) Co.,Ltd.

Address before: 518000 building 501, 502, 601, 602, building D, wisdom Plaza, Qiaoxiang Road, Gaofa community, Shahe street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: China Southern Power Grid Shenzhen Digital Power Grid Research Institute Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant