CN112614210B - Engineering drawing display method, system and related device - Google Patents

Engineering drawing display method, system and related device Download PDF

Info

Publication number
CN112614210B
CN112614210B CN202011545150.2A CN202011545150A CN112614210B CN 112614210 B CN112614210 B CN 112614210B CN 202011545150 A CN202011545150 A CN 202011545150A CN 112614210 B CN112614210 B CN 112614210B
Authority
CN
China
Prior art keywords
data
coordinate point
server
target
electronic equipment
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.)
Active
Application number
CN202011545150.2A
Other languages
Chinese (zh)
Other versions
CN112614210A (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 Wanyi Digital Technology Co ltd
Original Assignee
Shenzhen Wanyi Digital Technology 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 Wanyi Digital Technology Co ltd filed Critical Shenzhen Wanyi Digital Technology Co ltd
Priority to CN202011545150.2A priority Critical patent/CN112614210B/en
Publication of CN112614210A publication Critical patent/CN112614210A/en
Application granted granted Critical
Publication of CN112614210B publication Critical patent/CN112614210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method, a system and a related device for displaying engineering drawings, wherein firstly, a server acquires category and coordinate point data of objects in a target engineering drawing; then merging coordinate point data of the objects in the same category to obtain target object data, and storing the target object data into a vertex buffer object VBO; and finally, after receiving a display instruction sent by the electronic equipment, sending the target object data to the electronic equipment to render and display the object in the target engineering drawing. Objects in the target engineering drawing can be classified in advance at a server (rear end), each class of objects are respectively and correspondingly stored in one VBO after being combined, and then the electronic equipment (front end) calls a Web image library interface, such as a Draw Call command, for each VBO to conduct rendering, so that the Call times of the Draw Call are reduced, the rendering efficiency is improved, and the display performance is improved.

Description

Engineering drawing display method, system and related device
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method, a system, and a related device for displaying engineering drawings.
Background
With the development of technology, drawing and displaying of engineering drawings play an important role in various fields. Currently, when displaying objects in a target engineering drawing by using a Web graphic library (Web Graphics Library, webGL), a server (back end) generally stores each object (point, line, surface, text, etc.) in the drawing into a vertex cache object (Vertex Buffer Object, VBO) respectively, and then an electronic device (front end) calls a Web graphic library interface, such as a Draw Call command, for each VBO to render. The method has the defects that when the number of objects in the target engineering drawing is particularly large or the content is very complex, the Draw Call load is overlarge during front-end rendering, the rendering efficiency is low, and the display performance is poor.
Disclosure of Invention
Based on the above problems, the embodiments of the present application provide a method, a system, and a related device for displaying an engineering drawing, where objects in a target engineering drawing may be classified in advance on a server, and each class of objects may be respectively and correspondingly stored in a VBO after being combined, and then, each VBO may be respectively called a Draw Call command on an electronic device to render and display the object in the target engineering drawing, so that the number of times of calling the Draw Call is reduced, rendering efficiency is improved, and display performance is improved.
In a first aspect, an embodiment of the present application provides an engineering drawing display method, which is applied to a server, and the method includes:
acquiring category and coordinate point data of a first object in a target engineering drawing, and category and coordinate point data of a second object;
when the category of the first object is the same as the category of the second object, combining the coordinate point data of the first object and the coordinate point data of the second object into first target object data;
storing the first target object data into a first vertex cache object (VBO);
after receiving a display instruction sent by electronic equipment, sending the first target object data stored in the first VBO to the electronic equipment, wherein the first target object data is used for rendering and displaying the first object and the second object in the target engineering drawing by the electronic equipment.
In one possible embodiment, the merging the coordinate point data of the first object and the coordinate point data of the second object into the first target object data specifically includes:
acquiring N vertex coordinates of the first object and the second object, wherein N is a positive integer;
combining the N vertex coordinates into an object coordinate set;
establishing an index relation between the N vertex coordinates and the first object and the second object;
and storing the object coordinate set and the index relation as the first target object data.
In one possible embodiment, after transmitting the first target object data stored in the first VBO to the electronic device, the method further includes:
receiving a first instruction sent by the electronic equipment;
responding to the first instruction, and determining that the first instruction corresponds to the first object;
storing coordinate point data of the first object into a second VBO;
and sending the coordinate point data of the first object stored in the second VBO to the electronic equipment, wherein the coordinate point data of the first object is used for rendering and displaying the first object by the electronic equipment, and marking information is displayed at the position of the first object.
In a possible embodiment, the marking information comprises a color marking, a highlighting marking.
In one possible embodiment, after transmitting the first target object data stored in the first VBO to the electronic device, the method further includes:
receiving a second instruction and coordinate point modification data sent by the electronic equipment;
in response to the second instruction, replacing coordinate point data of the first object with the coordinate point modification data;
combining the coordinate point modification data of the first object and the coordinate point data of the second object into second target object data;
storing the second target object data into a third VBO;
and sending the second target object data stored in the third VBO to the electronic equipment, wherein the second target object data is used for rendering and displaying the first object and the second object after the coordinate point is modified in the target engineering drawing by the electronic equipment.
In one possible embodiment, the coordinate point data includes vertex coordinates for representing the first object and the second object in the target engineering drawing.
In a second aspect, an embodiment of the present application provides an engineering drawing display system, including a server and an electronic device, where,
the server is used for acquiring the category and coordinate point data of the first object and the category and coordinate point data of the second object in the target engineering drawing;
the server is further configured to combine the coordinate point data of the first object and the coordinate point data of the second object into first target object data when the category of the first object and the category of the second object are the same;
the server is further configured to store the first target object data into a first vertex cache object VBO;
the electronic equipment is used for sending a display instruction to the server;
the server is further configured to send the first target object data stored in the first VBO to the electronic device after receiving a display instruction sent by the electronic device;
the electronic device is further configured to render and display the first object and the second object based on the first target object data.
In a possible embodiment, the server is specifically configured to:
acquiring N vertex coordinates of the first object and the second object, wherein N is a positive integer;
combining the N vertex coordinates into an object coordinate set;
establishing an index relation between the N vertex coordinates and the first object and the second object;
and storing the object coordinate set and the index relation as the first target object data.
In a possible embodiment, the electronic device is further configured to receive a click operation of a user after rendering and displaying the first object and the second object based on the first target object data;
the electronic device is further configured to determine the first object corresponding to the click operation based on a click coordinate position of the click operation and the index relationship;
the server is further used for receiving a first instruction sent by the electronic equipment;
the server is further configured to respond to the first instruction, and determine that the first instruction corresponds to the first object;
the server is further configured to store coordinate point data of the first object into a second VBO;
the server is further configured to send coordinate point data of the first object stored in the second VBO to the electronic device, where the coordinate point data of the first object is used for rendering and displaying the first object by the electronic device, and display marker information at a position of the first object.
In a possible embodiment, the marking information comprises a color marking, a highlighting marking.
In a possible embodiment, the server is further configured to receive a second instruction and coordinate point modification data sent by the electronic device;
the server is further configured to replace coordinate point data of the first object with the coordinate point modification data in response to the second instruction;
the server is further configured to combine the coordinate point modification data of the first object and the coordinate point data of the second object into second target object data;
the server is further configured to store the second target object data into a third VBO;
the server is further configured to send the second target object data stored in the third VBO to the electronic device, where the second target object data is used for rendering, by the electronic device, the first object and the second object after modifying the coordinate point in the target engineering drawing.
In a third aspect, an embodiment of the present application provides an engineering drawing display device, including:
the data acquisition unit is used for acquiring the category and coordinate point data of the first object and the category and coordinate point data of the second object in the target engineering drawing;
a data merging unit configured to merge coordinate point data of the first object and coordinate point data of the second object into first target object data when a category of the first object and a category of the second object are the same;
the data storage unit is used for storing the first target object data into a first vertex cache object VBO;
the data sending unit is used for sending the first target object data stored in the first VBO to the electronic equipment after receiving a display instruction sent by the electronic equipment, wherein the first target object data is used for rendering and displaying the first object and the second object in the target engineering drawing by the electronic equipment.
In a fourth aspect, an embodiment of the present application provides an engineering drawing display device, including:
the instruction sending unit is used for sending a display instruction to the server;
a data receiving unit, configured to receive target object data sent by the server;
and the drawing display unit is used for rendering the target object data and displaying the target engineering drawing.
In a fifth aspect, embodiments of the present application provide a server comprising one or more processors and one or more memories coupled to the one or more processors, the one or more memories for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the server to perform the steps of the first aspect of embodiments of the present application.
In a sixth aspect, embodiments of the present application provide an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more memories being configured to store computer program code that includes computer instructions that, when executed by the one or more processors, cause the electronic device to perform the steps in the second aspect of the embodiments of the present application.
In a seventh aspect, embodiments of the present application provide a computer storage medium storing a computer program comprising program instructions which, when executed by a processor, perform some or all of the steps described in the first aspect of embodiments of the present application.
In an eighth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the method, the system and the related device for displaying engineering drawings provided in the embodiments of the present application, first, a server obtains category and coordinate point data of an object in a target engineering drawing; then merging coordinate point data of the objects in the same category to obtain target object data, and storing the target object data into a vertex buffer object VBO; and finally, after receiving a display instruction sent by the electronic equipment, sending the target object data to the electronic equipment to render and display the object in the target engineering drawing. Objects in the target engineering drawing can be classified in advance on the server, each class of objects are respectively and correspondingly stored in one vertex cache object after being combined, then the electronic equipment calls a Web image library interface, such as a Draw Call command, for each vertex cache object to conduct rendering, so that the Call times of the Draw Call are reduced, the rendering efficiency is improved, and the display performance is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an engineering drawing display method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another method for displaying engineering drawings according to an embodiment of the present application;
fig. 3 is an application scenario schematic diagram of an engineering drawing display method provided in an embodiment of the present application;
FIG. 4 is a schematic flow chart of an engineering drawing display method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 7 is a functional block diagram of an engineering drawing display device according to an embodiment of the present application;
fig. 8 is a functional unit block diagram of another engineering drawing display device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be understood that the terms first, second, and the like in the description and in the claims and drawings of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
Fig. 1 is a schematic diagram of an engineering drawing display method according to an embodiment of the present application.
As shown in fig. 1, for example, the target engineering drawing may include a plurality of line objects, plane objects, and text objects, and the server may store each object in a vertex buffer object VBO, that is, only one object is stored in one VBO. The electronic device may Call a Web graphics library interface, such as a Draw Call command, for each VBO to render and display the objects in the target engineering drawing, i.e., the electronic device may render and display only one object once the Draw Call command is called. The method has the defects that when the number of objects in the target engineering drawing is particularly large or the content is very complex, excessive Draw Call times are caused during the rendering of the electronic equipment, the calling load is excessive, the rendering efficiency is low, and the display performance is poor.
Accordingly, another method for displaying engineering drawings is provided in the embodiments of the present application. Fig. 2 is a schematic diagram of another engineering drawing display method according to an embodiment of the present application.
As shown in fig. 2, the server may illustratively merge and store a plurality of line objects into one VBO, merge and store a plurality of plane objects into one VBO, and merge and store a plurality of text objects into one VBO, that is, may store a plurality of merged objects in one VBO. The electronic device may Call a Web graphics library interface, such as a Draw Call command, for each VBO to render and display the objects in the target engineering drawing, that is, the electronic device may render and display a plurality of objects by calling the Draw Call command once. Therefore, the Call times to the Draw Call can be reduced, the rendering efficiency is improved, and the display performance is improved.
The application scenario of the engineering drawing display method in the embodiment of the application is described below.
As shown in fig. 3, the application scenario may include a server 310 and an electronic device 320, where the electronic device 320 may include a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a video matrix, a monitoring platform, a mobile internet device (MID, mobile Internet Devices), or a wearable device, etc., which are merely examples, but not limited to the above-mentioned apparatus. The electronic device 320 may access the server 310 through the internet or a local area network, a drawing display client may be built in the electronic device 320, and the electronic device 320 may perform data interaction with the server 310 through the drawing display client.
In some embodiments, server 310 may be a host of a personal computer PC and electronic device 320 may be a display device connected to the personal computer PC.
Specifically, the server 310 may obtain the class and coordinate point data of the object in the target engineering drawing, combine the coordinate point data of the object in the same class in the target engineering drawing to obtain the target object data, store the target object data in a vertex buffer object VBO, and when the target engineering drawing needs to be displayed, the electronic device 320 may obtain the target object data stored in the vertex buffer object VBO from the server 310, then render the coordinate point data, and display the object in the target engineering drawing. That is, the server may classify the objects in the target engineering drawing in advance, each class of objects is merged and then stored in a VBO correspondingly, and then the electronic device may Call a Web graphics library interface, such as a Draw Call command, for each VBO to perform rendering, so that the number of times of Call to Draw Call is reduced, rendering efficiency is improved, and display performance is improved.
The Web graphics library (Web Graphics Library, webGL) is a JavaScript API that can render high-performance interactive 3D and 2D graphics in any compatible Web browser without the use of plug-ins. WebGL does this by introducing an API that is very consistent with OpenGL ES 2.0, which can be used in the HTML5< canvas > element. This consistency allows the API to take advantage of the hardware graphics provided by the user device.
An engineering drawing display method provided in an embodiment of the present application is described below with reference to fig. 4.
Fig. 4 is a schematic flow chart of an engineering drawing display method provided in an embodiment of the present application, and is developed below:
stage one (S401-S408): original object display
S401, the server acquires category and coordinate point data of a first object and a second object in a target engineering drawing.
The first object and the second object in the target engineering drawing may be graphics in the target engineering drawing. Each object has a corresponding category, which may include points, lines, faces, text, etc. The coordinate point data may include vertex data, which may be used to represent objects in the target engineering drawing.
The target engineering drawing at least comprises a first object and a second object. The first object and the second object may be objects of the same class.
And S402, when the categories of the first object and the second object are the same, the server merges the coordinate point data of the first object and the coordinate point data of the second object into first target object data.
Specifically, when the categories of the first object and the second object are the same, the server may obtain N vertex coordinates of the first object and the second object, where N is a positive integer, then combine the N vertex coordinates into an object coordinate set, establish an index relationship between the N vertex coordinates and the first object and the second object, and finally store the object coordinate set and the index relationship as the first target object data.
Illustratively, the first object and the second object may both be line objects. The vertex coordinates of the first object may be (0, 1) and (1, 2), and the vertex coordinates of the second object may be (1, 3) and (3, 4). The server may obtain 4 vertex coordinates: (0, 1), (1, 2), (1, 3), (3, 4). The 4 vertex coordinates may then be combined into one object coordinate set { (0, 1), (1, 2), (1, 3), (3, 4) }. Establishing index relation between 4 vertex coordinates and the first object and the second object: a.fwdarw.0, 1, A.fwdarw.1, 2, B.fwdarw.1, 3, B.fwdarw.3, 4, wherein A represents a first object and B represents a second object. Finally, the server may store the 4 vertex coordinates and index relationships as first target object data for the electronic device to render and display the first object and the second object in the target engineering drawing.
S403, the server stores the first target object data into the first vertex buffer object VBO.
Specifically, the vertex cache object (Vertex Buffer Object, VBO) permits vertex array data to be stored in the high performance graphics card memory at the server side and provides for efficient data transfer. VBO creates "cache objects" for vertex attributes in server-side high-performance memory and provides access functions referencing these arrays, which are identical to functions used in vertex arrays, such as glvertex pointer (), glNormalPointer (), glTexCoordPointer (), and the like.
Memory management in VBO places the cache object in the most appropriate memory location according to user cues ("target" and "use" modes). Therefore, the memory management can optimize the cache by balancing the three memories of the system, the AGP and the graphics card memory.
Unlike the display list, the data in the VBO can be read and updated by mapping the buffer into the client memory space.
Another important advantage of VBO is that cached data can be shared across multiple clients as well as display lists and textures. Because VBO is at the server side, multiple clients can access the same cache through corresponding identifiers.
S404, the electronic equipment sends a display instruction to the server.
When the electronic equipment needs to display the target engineering drawing, the electronic equipment can send a display instruction to the server. The display instructions may carry the target engineering drawing identification to display the target engineering drawing.
S405-S406, after receiving a display instruction sent by the electronic equipment, the server sends first target object data stored in the first VBO to the electronic equipment.
S407-S408, after the electronic equipment receives the first target object data sent by the server, rendering and displaying a first object and a second object in the target engineering drawing.
After receiving the first target object data sent by the server, the electronic device may Call a Web graphics library interface, such as a Draw Call command, to render the first target object data, and display the first object and the second object in the target engineering drawing.
Through the method, the objects in the target engineering drawing can be classified in advance on the server, each class of objects are combined and then are respectively and correspondingly stored in one VBO, and then a Draw Call command is respectively called for each VBO on the electronic equipment to render and display, so that the Call times of the Draw Call are reduced, the rendering efficiency is improved, and the display performance is improved.
Stage two (S409-S416): pointing object and marking information display thereof
S409-S410, after the electronic equipment finishes rendering and displays the first object and the second object in the target engineering drawing, the electronic equipment receives the click operation of the user, and determines the first object corresponding to the click operation based on the click coordinate position and the index relation of the click operation.
Specifically, after receiving the click operation of the user, the electronic device may determine the first object corresponding to the click operation based on the coordinate position of the click operation and the index relationship in the first target object data.
S411-S413, the electronic device sends a first instruction to the server, the server receives the first instruction sent by the electronic device, determines that the first instruction corresponds to the first object, and stores coordinate point data of the first object into the second VBO.
S414-S416, the server sends coordinate point data of the first object to the electronic equipment, the electronic equipment receives the coordinate point data of the first object sent by the server, renders and displays the first object, and displays marking information at the position of the first object.
The marking information may include a color mark, a highlighting mark, and other marking information, which is not limited herein.
The pointing object is exemplified by the first object, and the pointing object may be the second object, which is not limited herein.
Through the method, the electronic equipment can select the object in the target engineering drawing, such as the first object, by utilizing the default click function in the Web graphic library, obtain the corresponding index relation, and then map the corresponding index relation to the object before merging according to the index relation, so that the effect of independently picking and highlighting the object before merging can be realized.
Stage three (S417-S423): object display after modifying coordinate points
S417-S419, after the electronic device finishes rendering and displays the first object and the second object in the target engineering drawing, the electronic device sends a second instruction and coordinate point modification data to the server, and the server responds to the second instruction to replace the coordinate point data of the first object with the coordinate point modification data.
S420, the server merges the coordinate point modification data of the first object and the coordinate point data of the second object into second target object data, and stores the second target object data into a third VBO.
S421-S423, the server sends second target object data to the electronic equipment, the electronic equipment receives the second target object data sent by the server, and the first object and the second object after the coordinate point is modified in the target engineering drawing are rendered and displayed.
The object after modifying the coordinate point is exemplified by the first object, and the object after modifying the coordinate point may be the second object, which is not limited herein.
Through the method, the electronic equipment can render and display the object after the coordinate points are modified, namely, the effect of independently modifying and displaying the object before combination can be realized.
In some embodiments of the present application, the above-described stages two (including steps S409-S416) and three (including steps S417-S423) are optional. For example, in some embodiments, the method may perform only the steps in the second stage (including steps S409-S416) after performing the steps in the first stage (including steps S401-S408). In other embodiments, the method may perform only the steps in the third stage (including steps S417-S423) after performing the steps in the first stage (including steps S401-S408).
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the servers and electronic devices, in order to implement the above-described functions, include corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
A server 310 provided in an embodiment of the present application is described below with reference to fig. 5.
Fig. 5 is a schematic structural diagram of a server 310 according to an embodiment of the present application, as shown in fig. 5, the server 310 may include a processor 311, a communication interface 312, and a memory 313, where the processor 311, the communication interface 312, and the memory 313 are connected to each other by a bus 314, and the bus 314 may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. Bus 314 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus. The memory 313 is configured to store a computer program, the computer program includes program instructions, and the processor 311 is configured to invoke the program instructions to perform the steps described in the above method embodiments, and the specific steps may refer to the relevant content and are not described herein.
An electronic device 320 provided in an embodiment of the present application is described below with reference to fig. 6.
Fig. 6 is a schematic structural diagram of an electronic device 320 according to an embodiment of the present application, as shown in fig. 6, the electronic device 320 may include a processor 321, a communication interface 322, and a memory 323, where the processor 321, the communication interface 322, and the memory 323 are connected to each other by a bus 324, and the bus 324 may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. Bus 324 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus. The memory 323 is configured to store a computer program, where the computer program includes program instructions, and the processor 321 is configured to invoke the program instructions to perform the steps described in the above method embodiments, and specific steps may refer to the foregoing relevant content and are not repeated herein.
The embodiment of the application may divide the functional units of the server and the electronic device according to the embodiment of the method, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
An engineering drawing processing apparatus provided in an embodiment of the present application is described in detail below with reference to fig. 7.
Fig. 7 is a functional unit block diagram of an engineering drawing processing apparatus 700 according to an embodiment of the present application. The engineering drawing processing apparatus 700 may be the server 310, as shown in fig. 7, and the engineering drawing processing apparatus 700 may include:
the data obtaining unit 710 is configured to obtain category and coordinate point data of a first object and category and coordinate point data of a second object in the target engineering drawing;
a data merging unit 720, configured to merge coordinate point data of the first object and coordinate point data of the second object into first target object data when the category of the first object and the category of the second object are the same;
a data storage unit 730, configured to store the first target object data into the first vertex cache object VBO;
the data sending unit 740 is configured to send, after receiving a display instruction sent by the electronic device, first target object data stored in the first VBO to the electronic device, where the first target object data is used for rendering and displaying a first object and a second object in a target engineering drawing by the electronic device.
The specific functional description of each functional module in the engineering drawing processing apparatus 700 may refer to the method embodiment shown in fig. 4 and will not be described herein.
An engineering drawing display device provided in an embodiment of the present application is described in detail below with reference to fig. 8.
Fig. 8 is a functional unit block diagram of an engineering drawing display device 800 according to an embodiment of the present application, where the engineering drawing display device 800 may be the electronic device 320, as shown in fig. 8, and the engineering drawing display device 800 may include:
an instruction transmitting unit 810 for transmitting a display instruction to the server;
a data receiving unit 820 for receiving the target object data transmitted by the server;
and a drawing display unit 830 for rendering the target object data and displaying the target engineering drawing.
The specific functional description of each functional module in the engineering drawing display device 800 may refer to the method embodiment shown in fig. 4 and will not be described herein.
The present application also provides a computer storage medium storing a computer program for electronic data exchange, the computer program causing a computer to execute some or all of the steps of any one of the methods described in the method embodiments above.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. An engineering drawing display method, which is characterized by being applied to a server, comprising:
acquiring category and coordinate point data of a first object in a target engineering drawing, and category and coordinate point data of a second object;
when the category of the first object is the same as the category of the second object, combining the coordinate point data of the first object and the coordinate point data of the second object into first target object data;
storing the first target object data into a first vertex cache object (VBO);
after receiving a display instruction sent by electronic equipment, sending the first target object data stored in the first VBO to the electronic equipment, wherein the first target object data is used for rendering and displaying the first object and the second object in the target engineering drawing by the electronic equipment;
receiving a first instruction sent by the electronic equipment, wherein the first instruction is sent after the electronic equipment receives a click operation of a user and determines the first object corresponding to the click operation;
responding to the first instruction, and determining that the first instruction corresponds to the first object;
storing coordinate point data of the first object into a second VBO;
sending coordinate point data of the first object stored in the second VBO to the electronic equipment, wherein the coordinate point data of the first object is used for rendering and displaying the first object by the electronic equipment, and marking information is displayed at the position of the first object;
receiving a second instruction and coordinate point modification data sent by the electronic equipment;
in response to the second instruction, replacing coordinate point data of the first object with the coordinate point modification data;
combining the coordinate point modification data of the first object and the coordinate point data of the second object into second target object data;
the second target object data is stored into a third VBO.
2. The method according to claim 1, wherein the merging the coordinate point data of the first object and the coordinate point data of the second object into the first target object data specifically includes:
acquiring N vertex coordinates of the first object and the second object, wherein N is a positive integer;
combining the N vertex coordinates into an object coordinate set;
establishing an index relation between the N vertex coordinates and the first object and the second object;
and storing the object coordinate set and the index relation as the first target object data.
3. The method of claim 1, wherein the marking information comprises a color marking, a highlighting marking.
4. The method according to claim 1, wherein the method further comprises:
and sending the second target object data stored in the third VBO to the electronic equipment, wherein the second target object data is used for rendering and displaying the first object and the second object after the coordinate point is modified in the target engineering drawing by the electronic equipment.
5. The method of any of claims 1-4, wherein the coordinate point data includes vertex coordinates representing the first object and the second object in the target engineering drawing.
6. The engineering drawing display system is characterized by comprising a server and electronic equipment; wherein,
the server is used for acquiring the category and coordinate point data of the first object and the category and coordinate point data of the second object in the target engineering drawing;
the server is further configured to combine the coordinate point data of the first object and the coordinate point data of the second object into first target object data when the category of the first object and the category of the second object are the same;
the server is further configured to store the first target object data into a first vertex cache object VBO;
the electronic equipment is used for sending a display instruction to the server;
the server is further configured to send the first target object data stored in the first VBO to the electronic device after receiving a display instruction sent by the electronic device;
the electronic device is further configured to render and display the first object and the second object based on the first target object data;
the electronic equipment is also used for receiving the clicking operation of the user and determining the first object corresponding to the clicking operation;
the electronic equipment is further used for sending a first instruction to the server;
the server is further configured to receive the first instruction sent by the electronic device;
the server is further configured to determine that the first instruction corresponds to the first object;
the server is further configured to store coordinate point data of the first object into a second VBO;
the server is further configured to send coordinate point data of the first object stored in the second VBO to the electronic device;
the electronic equipment is further used for rendering and displaying the first object based on the coordinate point data of the first object and displaying marking information at the position of the first object;
the electronic equipment is further used for sending a second instruction and coordinate point modification data to the server;
the server is further configured to receive the second instruction and the coordinate point modification data sent by the electronic device;
the server is further configured to replace coordinate point data of the first object with the coordinate point modification data;
the server is further configured to combine the coordinate point modification data of the first object and the coordinate point data of the second object into second target object data;
the server is further configured to store the second target object data into a third VBO.
7. The system according to claim 6, wherein the server is specifically configured to:
acquiring N vertex coordinates of the first object and the second object, wherein N is a positive integer;
combining the N vertex coordinates into an object coordinate set;
establishing an index relation between the N vertex coordinates and the first object and the second object;
and storing the object coordinate set and the index relation as the first target object data.
8. The system of claim 6, wherein the system further comprises a controller configured to control the controller,
the mark information comprises a color mark and a highlighting mark.
9. The system of claim 6, wherein the system further comprises a controller configured to control the controller,
the server is further configured to send the second target object data stored in the third VBO to the electronic device;
the electronic equipment is further used for rendering the first object and the second object after the coordinate points are modified in the target engineering drawing based on the second target object data.
10. A server comprising one or more processors and one or more memories coupled to the one or more processors, the one or more memories for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the server to perform the steps in the method of any of claims 1-5.
CN202011545150.2A 2020-12-23 2020-12-23 Engineering drawing display method, system and related device Active CN112614210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011545150.2A CN112614210B (en) 2020-12-23 2020-12-23 Engineering drawing display method, system and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011545150.2A CN112614210B (en) 2020-12-23 2020-12-23 Engineering drawing display method, system and related device

Publications (2)

Publication Number Publication Date
CN112614210A CN112614210A (en) 2021-04-06
CN112614210B true CN112614210B (en) 2024-03-19

Family

ID=75245393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011545150.2A Active CN112614210B (en) 2020-12-23 2020-12-23 Engineering drawing display method, system and related device

Country Status (1)

Country Link
CN (1) CN112614210B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419806B (en) * 2021-06-30 2023-08-08 腾讯科技(上海)有限公司 Image processing method, device, computer equipment and storage medium
CN113379872A (en) * 2021-07-13 2021-09-10 重庆云图软件科技有限公司 Engineering drawing generation method, device and system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6362825B1 (en) * 1999-01-19 2002-03-26 Hewlett-Packard Company Real-time combination of adjacent identical primitive data sets in a graphics call sequence
KR20090111134A (en) * 2008-04-21 2009-10-26 주식회사 코아로직 Graphic accelerator integrating 2D and 3D, Application process comprising the same graphic accelerator, and graphic accelerating method in same application
CN106504185A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 One kind renders optimization method and device
CN109993760A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of edge detection method and device of picture
CN110609677A (en) * 2018-06-15 2019-12-24 搜游网络科技(北京)有限公司 WebGL-based graph drawing method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6362825B1 (en) * 1999-01-19 2002-03-26 Hewlett-Packard Company Real-time combination of adjacent identical primitive data sets in a graphics call sequence
KR20090111134A (en) * 2008-04-21 2009-10-26 주식회사 코아로직 Graphic accelerator integrating 2D and 3D, Application process comprising the same graphic accelerator, and graphic accelerating method in same application
CN106504185A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 One kind renders optimization method and device
CN109993760A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of edge detection method and device of picture
CN110609677A (en) * 2018-06-15 2019-12-24 搜游网络科技(北京)有限公司 WebGL-based graph drawing method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
利用GPU进行实时大规模3D地形渲染的方法研究;韩永红 等;计算机工程与应用;47(05);第57-60页 *

Also Published As

Publication number Publication date
CN112614210A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN110211218B (en) Picture rendering method and device, storage medium and electronic device
US9928637B1 (en) Managing rendering targets for graphics processing units
CN112614210B (en) Engineering drawing display method, system and related device
CN103678631A (en) Page rendering method and device
CN111862344B (en) Image processing method, apparatus and storage medium
CN109472852A (en) Display methods and device, the equipment and storage medium of point cloud chart picture
CN104765636B (en) A kind of synthetic method and device of remote desktop image
WO2023197762A1 (en) Image rendering method and apparatus, electronic device, computer-readable storage medium, and computer program product
CN112486383A (en) Picture examination sharing method and related device
CN103699652A (en) Webpage access method and webpage access system
CN112530549B (en) Image display method, device and computer equipment
CN113536168A (en) Component processing method and device
US9934610B2 (en) Techniques for rendering and caching graphics assets
CN110089076B (en) Method and device for realizing information interaction
CN114549303B (en) Image display method, image processing method, image display device, image processing apparatus, image display device, image processing program, and storage medium
CN116958375A (en) Graphics processor, system, apparatus, device, and method
CN112416489A (en) Engineering drawing display method and related device
US7487516B1 (en) Desktop composition for incompatible graphics applications
CN113835890A (en) Rendering data processing method, device, equipment and storage medium
CN111866065A (en) Rendering image returning method and device
CN111259288B (en) Webpage texture processing method and device, terminal equipment and readable storage medium
CN117112950B (en) Rendering method, device, terminal and storage medium for objects in electronic map
CN116263981B (en) Graphics processor, system, apparatus, device, and method
US20230119741A1 (en) Picture annotation method, apparatus, electronic device, and storage medium
CN102104584B (en) Method and device for transmitting 3D model data, and 3D model data transmission system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230627

Address after: A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518051

Applicant after: Shenzhen Wanyi Digital Technology Co.,Ltd.

Address before: 519000 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area)

Applicant before: WANYI TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant