CN117631930A - Method, system and storage medium for quick response of drawing - Google Patents
Method, system and storage medium for quick response of drawing Download PDFInfo
- Publication number
- CN117631930A CN117631930A CN202311661918.6A CN202311661918A CN117631930A CN 117631930 A CN117631930 A CN 117631930A CN 202311661918 A CN202311661918 A CN 202311661918A CN 117631930 A CN117631930 A CN 117631930A
- Authority
- CN
- China
- Prior art keywords
- data
- display
- graphic file
- graphic
- display state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 100
- 230000004044 response Effects 0.000 title claims abstract description 35
- 238000003860 storage Methods 0.000 title claims abstract description 6
- 230000002452 interceptive effect Effects 0.000 claims abstract description 63
- 230000008569 process Effects 0.000 claims abstract description 53
- 230000003993 interaction Effects 0.000 claims abstract description 26
- 230000008859 change Effects 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 17
- 241000592183 Eidolon Species 0.000 claims description 15
- 230000000694 effects Effects 0.000 claims description 13
- 238000009877 rendering Methods 0.000 claims description 9
- 238000011960 computer-aided design Methods 0.000 description 28
- 241000699666 Mus <mouse, genus> Species 0.000 description 13
- 230000015654 memory Effects 0.000 description 9
- 230000000903 blocking effect Effects 0.000 description 8
- 238000013519 translation Methods 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000004091 panning Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002195 synergetic effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04845—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Databases & Information Systems (AREA)
- Computational Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a drawing quick response method, a system and a storage medium, wherein the method comprises the following steps: displaying the graphic file in a display; identifying an interaction operation made by a user on the graphic file to determine a display state of the graphic file, and the display state includes: the first display state and the second display state are respectively used for displaying the changing process and the changing result of the graphic file under the interactive operation; reading first data of the graphic file and second data used for displaying a base map of the graphic file in a display; displaying the graphic file based on the first data and the display state; in a first display state, the graphic file display includes the steps of: reading the first data and the second data for drawing the graphics respectively to obtain a display graphic, wherein the first data and the second data are the data which are updated recently; and the graphics file is displayed by displaying the graphics. The method can effectively improve the response speed of the drawing in the interaction process.
Description
The present application is a divisional application of Chinese patent application based on application number 202211061194.7, application date 2022, 09 and 01, and the invention name is "a method, system and computer program product for quick response of drawing".
Technical Field
The invention relates to the field of computer graphic display, in particular to a method, a system and a storage medium for quick response of a drawing.
Background
In recent years, with the continuous development of the construction industry, the manufacturing industry and other industries involving the use of drawing software, drawing information amounts drawn by various types of drawing software, particularly CAD (computer aided design ) software, are larger and more complex than before, and in this scenario, the smoothness of operation of CAD software is more challenging. Generally, no matter how much the drawing information is, how complex the graphics in the drawing are, after the drawing is opened by using CAD software, no obvious click phenomenon should exist in the CAD software display during the operation of the user (for example, operations such as translation, scaling, rotation, copying, pasting, drawing, editing, etc.). However, due to various reasons such as overlarge data size of the drawing, insufficient performance of hardware equipment running CAD software and the like, the jamming phenomenon can be very obvious when a user operates the drawing, and especially the faster the user operates, the more serious the jamming phenomenon of the drawing can be, so that the operation experience of the user is very influenced.
In the prior art, in order to solve the problem of blocking, the drawing is displayed more smoothly, and the following two types of modes are generally adopted:
1. the hardware processing performance is improved, for example, drawing operation and display are performed on hardware equipment with better chip performance (such as a computer provided with an x86 chip and the like). However, the problem of jamming can only be relieved to a certain extent, and the problem of jamming can not be completely avoided; in addition, such a treatment method increases the use cost of the designer or user of the corresponding practitioner, and is limited in practical use.
2. And optimizing the data format or the operation logic related to the drawing display so as to improve the data processing efficiency. However, for the drawing software such as CAD, the drawing software is a relatively complex logic body, and the existing logic needs to be replaced, which is very time-consuming and labor-consuming. Also, improvement in response speed in this way is limited.
Disclosure of Invention
The invention aims to provide a method for quick response of drawings, which partially solves or alleviates the defects in the prior art and can effectively relieve the clamping phenomenon of a user in the process of interactive operation.
In order to solve the technical problems, the invention adopts the following technical scheme: a quick response method of a drawing includes:
displaying a first graphic file in a display, the first graphic file comprising a plurality of graphic objects;
identifying an interaction operation made by a user on the first graphic file to determine a display state of the first graphic file, wherein the display state comprises: a first display state for displaying a change process of the first graphic file under the interactive operation, and a second display state for displaying a change result of the first graphic file based on the interactive operation;
reading first data of the first graphic file and second data used for displaying a base map of the first graphic file in the display;
displaying the first graphic file based on the first and second data and the display state;
wherein when the display state is in the first display state, displaying the first graphic file includes the steps of:
reading the first data and the second data for graphics drawing, wherein the first data and the second data for graphics drawing are the data which are updated recently;
And acquiring a plurality of display graphs obtained by graph drawing based on the first data and the second data, and displaying the plurality of display graphs on the display based on the display sequence so as to display the first graph file.
In some embodiments, the method further comprises the step of:
in response to the interactive operation, updating the first and second data in real time based on a predetermined order;
when the updating of the first data or the second data is completed, the updated first data or the updated second data correspondingly replace the existing first data or second data.
In some embodiments, displaying the first graphic file while in the second display state includes the steps of:
(i) Judging whether the first data and/or the second data are in an updated state or not;
(ii) When the judgment result is negative, the method comprises the following steps,
reading the first and second data for graphics rendering, respectively;
a plurality of display graphs obtained by graph drawing based on the first data are obtained, and the display graphs are displayed on the display based on the display sequence so as to display the first graph file;
(iii) And (3) returning to the step (i) when the judgment result is yes.
In some embodiments, the step of identifying interactions made by the user with the first graphic file to determine the display state of the first graphic file comprises:
judging whether the user performs the interactive operation on the first graphic file in the current time;
if yes, the display state is the first display state, and if not, the display state is the second display state.
In some embodiments, the step of identifying interactions made by the user with the first graphic file to determine the display state of the first graphic file comprises:
acquiring the speed of the interactive operation;
when the speed is smaller than a preset first speed, the display state is considered to be the second display state; and when the speed is not less than the first speed, the display state is considered to be the first display state.
In some embodiments, the method further comprises the step of:
based on the attribute of the first data, correspondingly dividing the first data into a plurality of data layers, wherein the plurality of data layers comprise:
a database layer for expressing the graphical objects;
a floating layer for expressing an editing effect;
a eidolon layer for expressing the feature data;
Accordingly, the step of drawing the graph includes:
and responding to the interactive operation of the user, respectively independently drawing the second data, and/or the database layer, and/or the floating layer, and/or the eidolon layer, and correspondingly drawing to a display graph.
In some embodiments, the display graphic is a raster image.
The second aspect of the present invention provides a rapid response system corresponding to the above method, comprising:
a first display module configured to display a first graphic file in a display, the first graphic file comprising a plurality of graphic objects;
a display state determination module configured to identify interactions made by a user with the first graphic file to determine a display state of the first graphic file, the display state comprising: a first display state for displaying a change process of the first graphic file under the interactive operation, and a second display state for displaying a change result of the first graphic file based on the interactive operation;
a data reading module configured to read first data of the first graphic file and second data of a base map for displaying the first graphic file in the display;
A second display module configured to display the first graphic file based on the first, the second, and the display status; wherein when the display state is in the first display state, the second display module is configured to provide:
a graphic drawing unit configured to read the first and the second data for graphic drawing, respectively, wherein the first and the second data for graphic drawing are data of which updating is completed recently;
and the graphic display unit is configured to acquire a plurality of display graphics obtained by graphic drawing based on the first data and the second data, and display the plurality of display graphics on the display based on the display sequence so as to display the first graphic file.
In some embodiments, further comprising:
a first data updating module configured to update the first and second data in real time based on a preset order in response to the interactive operation; and when the updating of the first data or the second data is completed, the updated first data or the updated second data correspondingly replace the existing first data or second data.
In a third aspect the invention also provides a computer program product comprising computer instructions which, when executed by a processor, implement the steps of any of the methods as described in the embodiments above.
The beneficial technical effects are as follows:
unlike the prior art, the present invention focuses on optimizing the drawing response process based on the "human (i.e., user)" requirements, rather than merely optimizing from data structure types or algorithms to increase computational efficiency, or optimizing device hardware to increase computational performance. According to the method, the interactive operation made by the user is identified to analyze the requirement of the user, so that the user can quickly respond based on the requirement of the user, the problem of blocking in the interactive operation process is relieved, and the user experience is greatly optimized.
The larger the graphic file to be displayed, the faster the user's interactive operation, and the more likely the display interface will get stuck. Especially, in the middle process of the interactive operation, once the current operation data volume is too large, the chart is jammed, and the user can always only wait for the end of the jam to perform the next operation. At this time, even if the user issues an instruction for interactive operation (e.g., sliding or dragging by a mouse), the display cannot recognize the operation of the user; even a calculation error may occur, resulting in an automatic restart of the software, and the user also needs to reopen the file. Therefore, once the click phenomenon occurs in the interaction process, the current and subsequent operations of the user are affected very inconveniently. The drawing quick response method provided by the invention can be particularly used for relieving the blocking phenomenon of the user in the process of carrying out interactive operation on the large drawing, so that the user can smoothly operate the drawing in the whole interactive process, and smooth interactive change is observed on a display interface.
In addition, the invention is also based on the division of the first data so as to realize independent multithreading drawing operation, thereby further improving the response speed of the drawing. The multi-thread drawing of the data is matched with a scheme for identifying the user demands, and the generated synergistic effect can further optimize the operation experience of the user in the whole operation process. Especially when the user edits only a part of the data, the operation result of the user can be displayed accurately quickly based on the recognition of the user's needs and the multi-threaded graphic drawing.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. Like elements or portions are generally identified by like reference numerals throughout the several figures. In the drawings, elements or portions thereof are not necessarily drawn to scale. It will be apparent to those of ordinary skill in the art that the drawings in the following description are of some embodiments of the invention and that other drawings may be derived from these drawings without inventive faculty.
FIG. 1 is a flow chart of a response method of a drawing in an exemplary embodiment of the invention;
FIG. 2 is a schematic diagram of a CAD software display system according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a final display window data flow according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a response system according to the drawing in an exemplary embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this document, suffixes such as "module", "component", or "unit" used to represent elements are used only for facilitating the description of the present invention, and have no particular meaning in themselves. Thus, "module," "component," or "unit" may be used in combination.
The terms "upper," "lower," "inner," "outer," "front," "rear," "one end," "the other end," and the like herein refer to an orientation or positional relationship based on that shown in the drawings, merely for convenience of description and to simplify the description, and do not denote or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The terms "mounted," "configured to," "connected," and the like, herein, are to be construed broadly as, for example, "connected," whether fixedly, detachably, or integrally connected, unless otherwise specifically defined and limited; the two components can be mechanically connected, can be directly connected or can be indirectly connected through an intermediate medium, and can be communicated with each other. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Herein, "and/or" includes any and all combinations of one or more of the associated listed items.
Herein, "plurality" means two or more, i.e., it includes two, three, four, five, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Noun paraphrasing:
"entity" (entity): herein, an entity refers to graphical data on a CAD file that is displayed on a CAD drawing interface. The entity has attributes, i.e., data values that control entity or element specific visual characteristics (e.g., visibility, color, and line style). In various embodiments, entities may also be referred to as "pixels," primitives.
"object" in this context refers to information on a CAD file that is not to be displayed on a CAD drawing interface, e.g., layers, text styles, labeling styles, etc.
"element": in this context, an element refers to all possible information on a CAD file, i.e. including "entities" and "objects", but also blocks, groups, unit definitions based on "entities" and/or "objects".
"File": in this context, a file refers to a variety of files that can be run in a CAD system for drawing, editing, modifying, storing, viewing CAD drawings. Common CAD file formats include, but are not limited to DWG, DXF, DWT, DWF, DWL, DWS, DWX, MNU, MNC, MNL, MNS, CUI, CUIX, SHX, PAT, LIN, CTB, STB, PLT, PC3, etc.
Example 1
The first aspect of the present invention provides a quick response method for a drawing, as shown in fig. 1, including the steps of:
s10, displaying a first graphic file in a display, wherein the first graphic file comprises a plurality of graphic objects;
s20 identifies an interactive operation performed by the user on the first graphic file to determine a display state of the first graphic file, the display state including: a first display state for displaying a change process of the first graphic file under the interactive operation, and a second display state for displaying a change result of the first graphic file based on the interactive operation;
S30, reading first data of the first graphic file and second data used for displaying a base map of the first graphic file in a display;
s40, displaying the first graphic file based on the first data and the display state;
wherein when the display state is in the first display state, displaying the first graphic file includes the steps of:
s41, reading the first data and the second data for graphics drawing, wherein the first data and the second data for graphics drawing are the data which are updated recently;
s42, a plurality of display graphs obtained by graph drawing based on the first data and the second data are obtained, and the display graphs are displayed on a display based on the display sequence so as to display the first graph file.
In some embodiments, the first graphic file may be a CAD graphic file and the corresponding plurality of graphic objects may be one or more of: entities, objects, and elements. For example, the graphical object may be a circle, an arc, or the like.
Of course, in other embodiments, the first graphic file may be a graphic file in other formats, such as the graphic file shown in SolidWorks, and the like. Alternatively, the display may be a browser or the like.
In some embodiments, the interoperation includes one or more of: translation, scaling, rotation, copying, pasting, drawing, editing primitives, and the like. When the user makes one or more of the above-described interactions with the first graphic file, the first graphic file presents its changes based on the interactions via the display.
In some embodiments, the first data refers to data stored in the inside of the first graphic file, such as data information of circles, arcs, lines, etc. included in the first graphic file, or data information added by an interactive operation made by the user on the first graphic file, etc.
In some embodiments, the second data refers to base map data information, such as a grid, coordinate axes, etc., that is displayed on the first graphic file in a display (or software for displaying the first graphic file).
In this embodiment, the display states of the first graphic file are divided into a first display state and a second display state based on the interactive operation of the user. For example, in one embodiment, when a user drags a first graphic file displayed on a display through a mouse and causes the first graphic file to move on the display, a process of moving the first graphic file on the display in real time is identified/determined as a first display state, and a display time (or, when a drag operation is stopped) after the first graphic file is completed is identified/determined as a second display state. And, during the entire interactive operation, the first, data is in a dynamic (or real-time) updated state, and the first, data selected for graphics rendering in the first display state is the last stored data for which updating has been completed. Meanwhile, the first data updating and the second data updating and the drawing threads in the embodiment are mutually independent, so that the blocking delay caused by the mutual waiting of the first data and the second data in the updating process is avoided.
In some embodiments, the method further comprises the step of:
s50, in response to the interactive operation, updating the first data and the second data in real time (or dynamically) based on a preset sequence (namely, a set sequence);
and S60, when the updating of the first data or the second data is completed, the updated first data or the updated second data correspondingly replace the existing first data or second data.
In some embodiments, the display (or a manager/server connected to the display) obtains an operation instruction sent by the user in real time, and updates the first data of the first graphic file and the second data of the base map in real time based on the operation instruction sent by the user. When the first data or the second data is updated, the original (or existing) first data or the second data is replaced correspondingly, so that the display can update the displayed graph based on the updated first and second data. The original first, data (or, alternatively, the replaced first, data) here is typically the data that was just updated or just replaced last time.
In some embodiments, displaying the first graphic file while in the second display state includes the steps of:
(i) Judging whether the first data and/or the second data are in an updated state or not;
(ii) When the judgment result is negative, the method comprises the following steps,
the steps are performed:
step A1: reading the first data and the second data for drawing the graphics respectively;
step A2: acquiring a plurality of display graphs obtained by graph drawing based on the first data and the second data, and displaying the plurality of display graphs on a display based on a display sequence so as to display a first graph file;
(iii) And (3) returning to the step (i) when the judgment result is yes.
In this embodiment, the current display flow is set by dual judgment of the current display state of the first graphic file and the update states of the first data and the second data. That is, the operation environment of the user is identified through the dual judgment step, so as to provide a more accurate display interface based on the real-time requirement of the user.
In addition, the method in the embodiment also reduces the requirements on the software version and the equipment performance on the premise of ensuring the smoothness of the user operation, so that the user can obtain smoother operation experience in multiple types of use environments, and the use cost of the user is reduced.
Some preferred application scenarios of this embodiment are as follows:
the interactive operation made by the user mainly relates to an operation scene of the change of the display area. For example, an operation scene in which the first graphic file graphic is partially enlarged or reduced by a zoom operation. And the presented display area of the first graphic file is caused to be switched from display area a to display area b, for example by a panning operation.
Alternatively, in other embodiments, when the display state of the first graphic file is in the second display state, the same or similar display scheme (i.e., the graphic drawing step) as in the first display state may be selected.
In some embodiments, the first and second data may be drawn independently and graphically at the same time. Of course, in other embodiments, the first and second data may be graphically depicted in a predetermined order.
Preferably, in some embodiments, determining the display state of the first graphic file in step S20 includes the steps of:
step B1: judging whether the user performs interactive operation on the first graphic file in the current time;
step B2: if yes, the display state is the first display state, and if not, the display state is the second display state.
In some embodiments, the current time may be a time point or a time period.
For example, in some embodiments, the current time may be the current time of the step B1 of making the determination operation.
For another example, in some embodiments, if the current time of starting to perform the step B1 is T, the current time may be set to [ T-T, T ], where T may be set by the user, for example, to 1s, 0.5s, 0.2s, etc., and of course, T may also be set to 0, where the current time is a specific time. In this embodiment, the interaction operation in the adjacent time period is identified, so as to analyze the user requirement, thereby meeting the corresponding requirement of the user by providing different display states.
Alternatively, in some embodiments, the step of identifying an interaction made by the user with the first graphic file to determine the display state of the first graphic file comprises:
acquiring the speed of interactive operation;
and when the speed is smaller than the preset first speed, the display state is considered to be a second display state.
Further, in some embodiments, when the speed is greater than or equal to the first preset speed, then the display state is considered to be the first display state.
In some embodiments, when the user continuously operates the first graphic file through the mouse (or other auxiliary function keys), the computer receives a plurality of operation instructions of continuous interactive operation sent by the user, and each operation instruction (or a plurality of operation instructions) modifies and updates corresponding data. In this embodiment, each time an operation instruction is received, that is, the first data or the second data is updated once, specifically, after the modification of the first data or the second data is implemented based on the operation instruction, the first data or the second data is replaced correspondingly, so that the currently stored first data or second data is the data (i.e., the data I) that has been updated recently, and at this time, the data I is in a state that can be acquired. Then, when one or more operation instructions are not executed, the first data or the second data is modified based on the next operation instruction, and similarly, the last updated data is replaced based on the new first data or the second data after the modification is completed (i.e. the data I is replaced), so that the currently stored first data or the second data is updated to the latest updated data (i.e. the data II).
Of course, in other embodiments, when the user is performing continuous operations, a plurality of operation instructions (for example, a plurality of operation instructions with operation intervals shorter than the first preset time) may be used as a set of operations to update data, and when the first data or the second data is modified based on the set of operations, the original first data or the second data is replaced correspondingly. That is, the update process in the present embodiment may be an update process implemented based on a single operation instruction or an update process implemented based on a set of operation instructions.
For example, in some embodiments, an update to the first and second data may be based on an operation instruction or a set of operation instructions, such as the second data completing an update process based on an operation instruction, and then the first data completing a corresponding update process based on the updated second data and the operation instruction.
For example, in some embodiments, the speed of the interactive operation is the number of operation instructions issued by the user per unit time.
The speed recognition of the embodiment is particularly suitable for scenes in which the user performs operations such as continuous rotation, translation, scaling and the like on the first graphic file.
For example, when the user performs a zoom-out operation on the first graphic file, the mouse wheel is typically quickly slid to zoom out on the current display interface. At this time, the faster the user slides the wheel, the more the amount of data change involved and the greater the amount of data calculation per unit time. In order to avoid the occurrence of the blocking in the process and further delay the interactive operation expected to be made by the user, in the embodiment, through identifying the operation speed, the user needs are accurately analyzed, and the important point is to display the interface effect expected by the user, so that the blocking problem (no waiting is needed between the graphic drawing threads of each data layer) in the quick operation process of the user is greatly relieved, and a smoother operation environment is provided for the user. And under the same time period, the first data and the second data are in the continuously updated state, so that the operation smoothness of a user can be ensured, and meanwhile, the phenomenon that display hysteresis occurs to a certain extent to bring poor operation experience to the user (because the selected drawing data are the result of the last update) can be avoided. Therefore, the user can realize the rapid operation of the displayed graph, and can observe the change (such as movement, deformation and the like) of the graph based on the interactive operation on the display during use, so that the user can more intuitively check the influence caused by the interactive operation, and the method has better man-machine interaction to assist the user in judging the interactive operation of the next step.
In other words, the method in the present embodiment balances the demands of the user and the real-time response speed of the graphic refresh, thereby achieving the dual effects of smooth vision (viewing the refresh change) and smooth operation (the user can smoothly input the operation instruction through the mouse or other operation/editing tool).
Further, in some embodiments, the value of the first speed may be set by the user himself.
Unlike the prior art, the present embodiment focuses on optimizing the display scheme based on the "man" requirement, rather than merely optimizing from the data structure type or algorithm to improve the computing efficiency (especially, very complex software of a logic system such as CAD, the difficulty of setting up a logic replacement change is very great), or optimizing the hardware of the device to improve the computing performance.
Of course, to further speed up the drawing response, in some embodiments, the graphics rendering process is optimized in addition to analyzing from the need for "people".
For example, in some preferred embodiments, before applying the first data for graphics rendering, the method further comprises the steps of:
based on the attribute of the first data (i.e., the class of the first data), the first data is correspondingly divided into a plurality of data layers, including:
A database layer for expressing graphic objects;
a floating layer for expressing an editing effect;
a eidolon layer for expressing feature data (e.g., feature points);
accordingly, the step of drawing the graph includes:
and responding to the interactive operation of the user, respectively independently drawing the second data, and/or the database layer, and/or the floating layer, and/or the eidolon layer, and correspondingly drawing to obtain a display graph.
In this embodiment, by dividing the first data into a plurality of data layers, the multithreading independent drawing of the first data is realized, so as to further improve the efficiency of drawing graphics.
Specifically, in some embodiments, the second data (e.g., a background layer) is a base map that the display uses to display the first graphic file (e.g., when the first graphic file is displayed in a CAD, the CAD software displays the base map in the system), wherein the second data comprises: grid, coordinate axis, etc., such data not being stored in the first graphics file.
In some embodiments, the database layer refers to data held in the first graphics file. For example, after the user finishes storing the information of circles, arcs, straight lines and the like drawn by the CAD software, the information of the entity which can be drawn such as the circles, the arcs, the straight lines and the like is correspondingly stored on the CAD graphic file. And the data in the database layer can be resolved by using any software compatible with the CAD graph format. It will be appreciated that the CAD graphics file itself is a custom formatted database (as with mysql, ms server, etc., where the user-created information is stored in the database file, unlike mysql, ms server databases, which are relational databases, the database of CAD drawings is a custom database).
The floating layer refers to a rubber band effect which appears when a user creates a graphic object (for example, the user wants to draw a circle, a straight line, etc.) or edits a graphic (for example, the user selects a circle, wants to modify the radius of the circle, etc.) in graphic drawing software (wherein the rubber band effect refers to that when the user creates or modifies the graphic, the user can view the currently modified graphic effect in real time, for example, the user designates the circle center in the process of creating the circle, then the radius between the current mouse point and the designated circle center is calculated in the process of moving the mouse, the current circle is drawn in real time for the user to view, the real-time drawn graphic defines a floating layer in a display system or a display, and the real-time drawn data is put into the floating layer).
The data of the eidolon layer refers to some display information that can express the position of the graphic property, including: the circle center, the starting point, the end point, the middle point, the intersection point and other characteristic data (characteristic points) of the intersecting line segments. In the drawing process of a user, the characteristic data are displayed when the mouse slides to the existing graph on the drawing, because the characteristic data are flexible, whether the characteristic data are displayed or not and which characteristic data are displayed are uncertain according to different places where the mouse passes by, that is, the refreshing of the data of the eidolon layer can be triggered as long as the user interacts with the mouse.
For example, the data of the database layer is virtually all visible data read from the drawing file and then parsed, such as: in a CAD drawing, circles, line segments, rays, construction lines, spline curves, text, lines of text, tables, fills, and the like are most common.
For example, in CAD software, a sprite layer refers to some feature points that may capture a graphic during the CAD software drawing process. For example, in drawing a straight line, if a straight line or a circle already exists in the graphic file, the mouse moves to the vicinity of the center of the circle, the vicinity of the end point of the straight line, etc., the feature points are automatically captured, and then a small rectangle or a small center of the circle (depending on the feature point type, the small center of the circle is displayed, and the small rectangle is displayed if the end point is the center of the circle).
Specifically, in some embodiments, the user may only have a floating layer, a puck layer (which may need to be drawn), need data updates during the drawing of CAD graphics, such as when drawing circles. The updating of the floating layer is to display the rubber band effect in the process of drawing the circle, namely the actual effect of the circle in the process of changing the radius of the current circle can be seen in real time in the drawing process, and the graph in the process is displayed on the floating layer, so that the floating layer needs to be updated. While the user may draw other graphics on the display window, such as the mouse may pass an end point of a line segment, a logo (typically a small rectangle) of the line segment end point may be displayed, and the temporarily displayed graphics may be in the eidolon layer, so the eidolon layer may also need to be refreshed.
It should be noted that the concept of "data layer" in this embodiment is not the same as the concept of "layer" in the prior art. The layers in the prior art refer to data in CAD graphic files (specifically, drawing with drawing format such as dwg, dxf, dwt), and a user can operate the layers, for example, the user can create a layer, delete a layer, edit layer data, specifically, modify default colors of the layer, layer names, and the like, and hide the layer. The "data layer" in this embodiment is an abstract data structure for implementing multi-line Cheng Huizhi (i.e. hierarchical display), which can be used to draw visible physical objects in CAD, unlike the meaning of "layer", which is generally not directly accessible to users using CAD software, and does not involve operations such as creating a data layer, editing a data layer, deleting a data layer, and the like.
In this embodiment, the first data is preferably divided into a plurality of data layers, so as to implement independent drawing of multiple threads, and further improve graphic display efficiency. Meanwhile, the division of a plurality of data layers improves the independence of the updating process of each data layer to a certain extent. Specifically, the database layer, the floating layer, the eidolon layer, and the like have a degree of independence in the data update process and the graphics drawing process. Particularly, in the process of user interaction operation (or when the graphic file is in a first display state), the data updating of each data layer does not need to wait mutually, and the graphic drawing threads do not need to wait mutually, so that the problem of blocking caused by waiting mutually in the updating and drawing processes is avoided; and each time the data for drawing is the result of the last update, the graphics response speed is faster and the content delay is smaller. Especially when partial data layer updates or other necessary data updates are involved in a small amount, the method can quickly display the latest and most accurate operation results.
In some embodiments, the display graphic is a raster image.
For example, in some embodiments, as shown in fig. 2, 3, the data used to render CAD graphics is divided into a puck layer, a floating layer, a CAD database layer, and a background layer. When a user performs interactive operation on the CAD graph, the background layer, the CAD database layer, the floating layer and the eidolon layer are updated based on the sequence from top to bottom (i.e., new data drawing is performed based on the interactive operation) as shown in FIG. 2, and after the new data drawing is completed, the original data is updated and replaced based on the newly drawn data. The graphic drawing process is multi-thread drawing, the graphic drawing step corresponding to each data layer is to acquire the data after the latest update (namely the data after the latest update) from the data layer, independently draw the raster image based on the acquired data, and finally, carry out superposition display on the raster image based on the same sequence so as to realize refreshing display of the graphic.
Through the above embodiments, it can be seen that the technical problems solved and the technical effects achieved by the present invention are as follows: the invention provides a method for quickly responding to a CAD graph in a large drawing display environment, which enables a user to more quickly and smoothly check the display effect after operation in the process of using the CAD software, and enables the user to use the CAD software very smoothly no matter whether the user performs scene operation (translation, scaling, rotation and the like) or editing graph operation (drawing new primitives, copying and pasting graphs and the like), thereby improving the working efficiency and the user experience of the user.
Preferably, in some embodiments, in response to the interoperation, updating the first, data in real time based on the preset order includes the steps of:
determining update priorities of the first and second data based on the interaction;
the first and second data are updated in real time based on the update priority.
In some embodiments, the selected setting order may be a display order with a default setting for the computer/system.
Alternatively, in other embodiments, the selected setting order may be a user-defined order, or an order automatically determined by a user-defined rule.
Preferably, in some embodiments, the updating is performed preferentially for the data with the highest update priority, and the interface is refreshed.
For example, in some embodiments, when the operation made by the user is zooming, then the first data is set to a first update priority, the first data is first updated based on the existing second data (i.e., the historical second data), and then the display interface is refreshed based on the current first data. Of course, when the user stops making the interactive operation (or when there are redundant available computing resources), the scene redrawing will be triggered, and at this time, the first and second data will be updated entirely to display the first graphic file newly.
For another example, in some embodiments, when the user-made operation is a translation, the second data is set to the first update priority, and the first data is set to the second update priority accordingly, and especially when the computing resources are relatively limited, the data in the second data is updated preferentially, and interface refreshing is performed based on the second data. When the user stops the interactive operation (or there are superfluous available computing resources), a scene redraw will be triggered.
It will be appreciated that the relationship between the category of the interaction and the priority of the data update may be set by the user himself.
In this embodiment, based on the content (which may be represented by the category of the interactive operation) focused by the user, the update priority of the data is set, and the computing resource is optimally managed. Specifically, the data updating and the interface refreshing are preferably performed on the key content, so that the user can timely check the most main and visual operation change. And then, the data is updated integrally so as to ensure that the final display interface can display the operation of the user comprehensively.
Further, in some embodiments, when the first data is divided into different data layers, the update priority of the different data layers may also be set.
In this embodiment, when the display change involved in the interactive operation is mainly related to a certain data layer (or a plurality of data layers), the update priority of the data layer may be preferably arranged at a front position, so that the main attention content of the user under the current operation may be quickly refreshed.
In order to make the technical solution of the present invention clearer, the following specific examples are provided to further illustrate the use of the technical solution:
using scenario 1:
for the display of the translated graph, the first data of the last drawing update is saved into a snapshot (such as a raster image form), the latest second data is adopted to draw a new background layer image, and the background layer image and the snapshot are displayed in a superposition mode. In the use scene, the translation response speed can be greatly improved, and the viewing requirement of a user can be met. Of course, when the user stops the panning operation, the scene redrawing will be triggered.
Using scenario 2:
for other operations of the user, such as: the operation of the scene (zooming in or out of the scene, rotating the scene), the operation of the graphics (copying a large number of graphics, pasting, drawing new graphics, editing existing graphics, etc.), the display after the operation is performed, and the mode of drawing and displaying graphics such as raster images by adopting a multi-line Cheng Fenceng and loading the graphics is adopted. Specifically, after all the operations are executed, the raster images of each layer are respectively drawn in different threads without mutual interference, for example: background layer raster images (background layers are provided with some grid, graphic information of a coordinate system icon and the like) draw graphics in a drawing thread of the background layer, database layer raster images are drawn in a thread of the database layer, floating layer raster images (including some temporary graphic elements, such as mark graphic elements) are drawn in a thread of the floating layer, and a wizard layer raster image (including graphic elements of some capturing points, such as circle centers, line segment midpoints, line segment endpoints and the like) is drawn in a thread of the wizard layer, and after each layer is drawn, the drawn raster images are stored in mutually independent memories. When the graphic window of the display is displayed, the drawn graphic information (namely the grating image) is acquired from the memory saved in each layer, and is displayed according to the sequence of displaying the background layer graphic, then displaying the database layer, and then displaying the background layer graphic, the database layer graphic, the floating layer graphic and the eidolon layer graphic. The user will not feel significant jamming during the operation of the CAD, the response time of the operation will be greatly reduced, and the running of the software will be very stable and fast.
It will be appreciated that the larger the graphic file to be displayed, the faster the user's interaction, and the more likely the display interface will be stuck. Especially, in the middle process of the interactive operation, once the current operation data volume is too large, the chart is jammed, and the user can always only wait for the end of the jam to perform the next operation. At this time, even if the user issues an instruction for interactive operation (e.g., sliding or dragging by a mouse), the display cannot recognize the operation of the user; even a calculation error may occur, resulting in an automatic restart of the software, and the user also needs to reopen the file. Therefore, once the click phenomenon occurs in the interaction process, the current and subsequent operations of the user are affected very inconveniently. The drawing quick response method provided by the embodiment can be particularly used for relieving the blocking phenomenon of the user in the process of carrying out interactive operation on the large drawing, so that the user can smoothly operate the drawing in the whole interactive process, and smooth interactive change is observed on a display interface. Furthermore, the data layering design can improve response speed in different stages of interaction process, interaction ending and the like.
Example two
The second aspect of the present invention is that the method corresponding to the first embodiment further provides a quick response system for a drawing, as shown in fig. 4, including:
a first display module 10 configured to display a first graphic file in a display, the first graphic file comprising a plurality of graphic objects;
a display state determining module 20 configured to identify an interaction made by a user with the first graphic file to determine a display state of the first graphic file, the display state including: a first display state for displaying a change process of the first graphic file under the interactive operation, and a second display state for displaying a change result of the first graphic file based on the interactive operation;
a data reading module 30 configured to read first data of the first graphic file and second data of the display for displaying a base map of the first graphic file;
a second display module 40 configured to display the first graphic file based on the first, the second, and the display status; wherein when the display state is in the first display state, the second display module is configured to provide:
A graphics drawing unit 401 configured to read the first and the second data for graphics drawing, respectively, wherein the first and the second data for graphics drawing are data of which updating has been completed recently;
the graphics display unit 402 is configured to obtain a plurality of display graphics obtained by graphics rendering based on the first and second data, and cause the plurality of display graphics to be displayed on the display based on a display order, so as to display the first graphics file.
It will be appreciated that in some embodiments, the first display module and the second display module may be configured as one functional module, or may be configured as different functional modules.
Further, in some embodiments, further comprising:
a first data updating module configured to update the first and second data in real time based on the interaction; and when the updating of the first data or the second data is completed, the updated first data or the updated second data correspondingly replace the existing first data or second data.
Further, in some embodiments, the second display module further comprises, when in the second display state:
The first judging unit is configured to judge whether the first data and/or the second data are in an updated state, and if so, the updated state of the first data and/or the second data is continuously judged;
a first drawing unit configured to read the first and second data for graphics drawing, respectively, when the determination result is no; and acquiring a plurality of display graphs obtained by graph drawing based on the first data and the second data, and displaying the plurality of display graphs on the display based on the display sequence so as to display the first graph file.
It is to be understood that the first drawing unit in this embodiment and the graphics drawing unit in the above embodiments may be implemented by the same functional module, or may be configured to be implemented by the same functional module.
In some embodiments, the display state determination module 20 includes
And the second judging unit is configured to judge whether the user performs the interactive operation on the first graphic file in the current time, if so, the display state is the first display state, and if not, the display state is the second display state.
Alternatively, in other embodiments, the display state determination module 20 includes
A first acquisition unit configured to acquire a speed of the interactive operation;
a third judging unit configured to consider the display state to be the second display state when the speed is less than a preset first speed; and when the speed is not less than the first speed, the display state is considered to be the first display state.
In some embodiments, further comprising:
a data layering unit configured to correspondingly divide the first data into a plurality of data layers based on an attribute of the first data, wherein the plurality of data layers includes:
a database layer for expressing the graphical objects;
a floating layer for expressing an editing effect;
a eidolon layer for expressing the feature data;
accordingly, the graphics rendering unit (or the first rendering unit) is further configured for rendering said second data, and/or the database layer, and/or the floating layer, and/or the eidolon layer, independently, and correspondingly to the display graphics, respectively, in response to an interactive operation by the user.
In some embodiments, the display graphic is a raster image.
Example III
In a third aspect, the present invention provides a computer program product embodied in a non-transitory computer readable medium, the computer program product programmed for achieving a quick response of a drawing sheet, the computer program product comprising instructions for performing the operations of any of the methods of the above embodiments.
For example, the executed instructions include: displaying a first graphic file in a display, the first graphic file comprising a plurality of graphic objects; identifying an interaction operation made by a user on the first graphic file to determine a display state of the first graphic file, wherein the display state comprises: a first display state for displaying a change process of the first graphic file under the interactive operation, and a second display state for displaying a change result of the first graphic file based on the interactive operation; reading first data of the first graphic file and second data used for displaying a base map of the first graphic file in the display; displaying the first graphic file based on the first and second data and the display state; wherein when the display state is in the first display state, displaying the first graphic file includes the steps of: reading the first data and the second data for graphics drawing, wherein the first data and the second data for graphics drawing are the data which are updated recently; and acquiring a plurality of display graphs obtained by graph drawing based on the first data and the second data, and displaying the plurality of display graphs on the display based on the display sequence so as to display the first graph file.
Exemplary hardware and software environments for implementing one or more embodiments of the invention include a computer, which may be a user/client computer, a server computer, or a database computer. The computer includes a processor and memory, such as Random Access Memory (RAM). Computers may be coupled and/or integrated with other devices, including input/output (I/O) devices such as keyboards, cursor control devices (e.g., mice, pointing devices, pens and tablet computers, touch screens, multi-touch devices, etc.), and printers. In one or more embodiments, the computer may be coupled to or constitute a portable or media viewing/listening device (e.g., MP3 player, iPod TM 、Nook TM Portable digital video players, cellular devices, personal digital assistants, etc.). In another embodiment, the computer may include a multi-touch device, mobile phone, gaming system, internet-enabled television, television set-top box, or other internet-enabled device executing on a variety of platforms and operating systems.
In one embodiment, a computer operates through a general purpose processor to execute instructions defined by a computer program under the control of an operating system. The computer program and/or operating system may be stored in memory and may be connected to a user and/or other device to accept inputs and commands and provide outputs and results in accordance with the inputs and commands and instructions defined by the computer program and operating system.
Some or all of the operations performed by a computer according to computer program instructions may be implemented in a special purpose processor. In this embodiment, some or all of the instructions of the computer program may be implemented by firmware instructions stored in a read-only memory (ROM), programmable read-only memory (PROM), or flash memory, which is located in a dedicated processor or memory. A special purpose processor may also be hardwired to perform some or all of the operations to implement the present invention by circuit design. Furthermore, the special purpose processor may be a hybrid processor that includes special purpose circuitry for performing a subset of the functions, as well as other circuitry for performing more general-purpose functions, such as in response to computer program instructions. In one embodiment, the special purpose processor is an Application Specific Integrated Circuit (ASIC).
A computer may also implement a compiler that allows an application or computer program written in a programming language (e.g., COBOL, pascal, c ++, FORTRAN, or other language) to be translated into processor-readable code. Alternatively, the compiler may be an interpreter that directly executes the instructions/source code, converts the source code into an intermediate representation to be executed, or executes stored pre-compiled code. Such source code may be written in a variety of programming languages, such as Java TM 、Perl TM 、Basic TM Etc. Upon completion, the application program or computer program accesses and manipulates data received from the I/O device and stored in the memory of the computer using the compiler-generated relationships and logic.
The computer may also optionally include an external communication device such as a modem, satellite link, ethernet card, or other device for accepting input from and providing output to other computers.
In one embodiment, instructions implementing the operating system, computer program, and compiler are tangibly embodied in a non-transitory computer-readable medium, such as a data storage device, which may include one or more fixed or removable data storage devices, such as a compression drive, a floppy disk drive, a hard disk drive, a CD-ROM drive, a tape drive, and the like. Furthermore, the operating system and computer programs are comprised of computer program instructions which when accessed, read and executed by a computer cause the computer to perform the necessary steps.
Of course, those skilled in the art will recognize that any combination of the above components, or any number of different components, peripherals, and other devices, may be used with a computer.
The distributed computer system uses a network to connect client computers to server computers. Typical combinations of resources may include networks including the Internet, lan (local area network), wan (wide area network), SNA (system network architecture) networks, or similar personal computing clients.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a computer terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Claims (10)
1. A method for rapid response of a drawing, comprising:
displaying a first graphic file in a display, the first graphic file comprising a plurality of graphic objects;
identifying an interaction operation made by a user on the first graphic file to determine a display state of the first graphic file, wherein the display state comprises: a first display state for displaying a change process of the first graphic file under the interactive operation, and a second display state for displaying a change result of the first graphic file based on the interactive operation;
reading first data of the first graphic file and second data used for displaying a base map of the first graphic file in the display;
Displaying the first graphic file based on the first and second data and the display state;
wherein when the display state is in the first display state, displaying the first graphic file includes the steps of:
reading the first data and the second data for graphics drawing, wherein the first data and the second data for graphics drawing are the data which are updated recently;
and acquiring a plurality of display graphs obtained by graph drawing based on the first data and the second data, and displaying the plurality of display graphs on the display based on the display sequence so as to display the first graph file.
2. The method of claim 1, further comprising the step of:
in response to the interactive operation, updating the first and second data in real time based on a predetermined order;
when the updating of the first data or the second data is completed, the updated first data or the updated second data correspondingly replace the existing first data or second data.
3. The method of claim 2, wherein displaying the first graphic file when in the second display state comprises the steps of:
(i) Judging whether the first data and/or the second data are in an updated state or not;
(ii) When the judgment result is negative, the method comprises the following steps,
reading the first and second data for graphics rendering, respectively;
a plurality of display graphs obtained by graph drawing based on the first data are obtained, and the display graphs are displayed on the display based on the display sequence so as to display the first graph file;
(iii) And (3) returning to the step (i) when the judgment result is yes.
4. A method according to claim 3, wherein the step of identifying user interactions with the first graphic file to determine the display status of the first graphic file comprises:
judging whether the user performs the interactive operation on the first graphic file in the current time;
if yes, the display state is the first display state, and if not, the display state is the second display state.
5. A method according to claim 3, wherein the step of identifying user interactions with the first graphic file to determine the display status of the first graphic file comprises:
acquiring the speed of the interactive operation;
When the speed is smaller than a preset first speed, the display state is considered to be the second display state; and when the speed is not less than the first speed, the display state is considered to be the first display state.
6. The method of claim 1, further comprising the step of:
based on the attribute of the first data, correspondingly dividing the first data into a plurality of data layers, wherein the plurality of data layers comprise:
a database layer for expressing the graphical objects;
a floating layer for expressing an editing effect;
a eidolon layer for expressing the feature data;
accordingly, the step of drawing the graph includes:
and responding to the interactive operation of the user, respectively independently drawing the second data, and/or the database layer, and/or the floating layer, and/or the eidolon layer, and correspondingly drawing to obtain a display graph.
7. The method of claim 1, wherein the display graphic is a raster image.
8. A drawing rapid response system, comprising:
a first display module configured to display a first graphic file in a display, the first graphic file comprising a plurality of graphic objects;
A display state determination module configured to identify interactions made by a user with the first graphic file to determine a display state of the first graphic file, the display state comprising: a first display state for displaying a change process of the first graphic file under the interactive operation, and a second display state for displaying a change result of the first graphic file based on the interactive operation;
a data reading module configured to read first data of the first graphic file and second data of a base map for displaying the first graphic file in the display;
a second display module configured to display the first graphic file based on the first, the second, and the display status; wherein when the display state is in the first display state, the second display module is configured to provide:
a graphic drawing unit configured to read the first and the second data for graphic drawing, respectively, wherein the first and the second data for graphic drawing are data of which updating is completed recently;
and the graphic display unit is configured to acquire a plurality of display graphics obtained by graphic drawing based on the first data and the second data, and display the plurality of display graphics on the display based on the display sequence so as to display the first graphic file.
9. The system of claim 8, further comprising:
a first data updating module configured to update the first and second data in real time based on a predetermined order in response to the interactive operation; and when the updating of the first data or the second data is completed, the updated first data or the updated second data correspondingly replace the existing first data or second data.
10. A storage medium having stored thereon a computer program product comprising computer instructions, which when executed by a processor, implement the steps of the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311661918.6A CN117631930B (en) | 2022-09-01 | 2022-09-01 | Method, system and storage medium for quick response of drawing |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211061194.7A CN116521043B (en) | 2022-09-01 | 2022-09-01 | Method, system and computer program product for quick response of drawing |
CN202311661918.6A CN117631930B (en) | 2022-09-01 | 2022-09-01 | Method, system and storage medium for quick response of drawing |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211061194.7A Division CN116521043B (en) | 2022-09-01 | 2022-09-01 | Method, system and computer program product for quick response of drawing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117631930A true CN117631930A (en) | 2024-03-01 |
CN117631930B CN117631930B (en) | 2024-10-01 |
Family
ID=87389133
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211061194.7A Active CN116521043B (en) | 2022-09-01 | 2022-09-01 | Method, system and computer program product for quick response of drawing |
CN202311661918.6A Active CN117631930B (en) | 2022-09-01 | 2022-09-01 | Method, system and storage medium for quick response of drawing |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211061194.7A Active CN116521043B (en) | 2022-09-01 | 2022-09-01 | Method, system and computer program product for quick response of drawing |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN116521043B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582409A (en) * | 2018-10-15 | 2019-04-05 | 广东宝莱特医用科技股份有限公司 | A kind of display stacking method based on double buffering |
CN110232258A (en) * | 2018-07-16 | 2019-09-13 | 苏州浩辰软件股份有限公司 | CAD diagram paper checks method, system, computer readable storage medium and the terminal of reference variation under editable environment |
CN110727386A (en) * | 2019-09-12 | 2020-01-24 | 湖南新云网科技有限公司 | Method, system and storage medium for operating graphic elements of electronic whiteboard |
CN111161385A (en) * | 2019-12-30 | 2020-05-15 | 北京奇艺世纪科技有限公司 | Image rendering method and device, electronic equipment and storage medium |
CN112906087A (en) * | 2021-02-03 | 2021-06-04 | 深圳市显控科技股份有限公司 | CAD asynchronous rendering method and system based on double buffering |
CN114445537A (en) * | 2021-12-30 | 2022-05-06 | 万翼科技有限公司 | Model processing method and device, electronic equipment and storage medium |
WO2022095808A1 (en) * | 2020-11-06 | 2022-05-12 | 华为技术有限公司 | Method for implementing graphics rendering on basis of vulkan, and related apparatus |
CN114518815A (en) * | 2022-02-23 | 2022-05-20 | 阿里巴巴(中国)有限公司 | Method, device, equipment, medium and program product for displaying construction drawing |
CN114816193A (en) * | 2022-04-29 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Drawing display method and device and terminal equipment |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020045008A (en) * | 2000-12-07 | 2002-06-19 | 구자홍 | management system for information of drawing and operation method for this system |
CN108920048B (en) * | 2018-06-06 | 2020-09-29 | 武汉新迪数字工程系统有限公司 | Large drawing browsing method, system, server and computer readable storage medium |
CN110597512B (en) * | 2019-08-23 | 2022-04-08 | 荣耀终端有限公司 | Method for displaying user interface and electronic equipment |
US11062491B1 (en) * | 2020-08-06 | 2021-07-13 | Robert Bosch Gmbh | Graph plotter and replicator tool |
CN113111044A (en) * | 2021-04-07 | 2021-07-13 | 多点(深圳)数字科技有限公司 | Data processing method and device, server device and storage medium |
CN113093969A (en) * | 2021-06-09 | 2021-07-09 | 北京易真学思教育科技有限公司 | Hand-drawn track rendering method, device, electronic equipment, medium and program product |
CN113360148B (en) * | 2021-07-09 | 2022-04-15 | 上海万纬纵横科技有限公司 | Graph processing method and device and electronic equipment |
CN113535019B (en) * | 2021-07-14 | 2024-08-27 | Vidaa美国公司 | Display device and application icon display method |
CN114169027A (en) * | 2021-12-16 | 2022-03-11 | 福建永福信息科技有限公司 | Collaborative drawing method, collaborative client and collaborative system based on CAD platform |
CN114546232A (en) * | 2022-04-24 | 2022-05-27 | 广州中望龙腾软件股份有限公司 | View translation method, terminal and computer-readable storage medium |
-
2022
- 2022-09-01 CN CN202211061194.7A patent/CN116521043B/en active Active
- 2022-09-01 CN CN202311661918.6A patent/CN117631930B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110232258A (en) * | 2018-07-16 | 2019-09-13 | 苏州浩辰软件股份有限公司 | CAD diagram paper checks method, system, computer readable storage medium and the terminal of reference variation under editable environment |
CN109582409A (en) * | 2018-10-15 | 2019-04-05 | 广东宝莱特医用科技股份有限公司 | A kind of display stacking method based on double buffering |
CN110727386A (en) * | 2019-09-12 | 2020-01-24 | 湖南新云网科技有限公司 | Method, system and storage medium for operating graphic elements of electronic whiteboard |
CN111161385A (en) * | 2019-12-30 | 2020-05-15 | 北京奇艺世纪科技有限公司 | Image rendering method and device, electronic equipment and storage medium |
WO2022095808A1 (en) * | 2020-11-06 | 2022-05-12 | 华为技术有限公司 | Method for implementing graphics rendering on basis of vulkan, and related apparatus |
CN112906087A (en) * | 2021-02-03 | 2021-06-04 | 深圳市显控科技股份有限公司 | CAD asynchronous rendering method and system based on double buffering |
CN114445537A (en) * | 2021-12-30 | 2022-05-06 | 万翼科技有限公司 | Model processing method and device, electronic equipment and storage medium |
CN114518815A (en) * | 2022-02-23 | 2022-05-20 | 阿里巴巴(中国)有限公司 | Method, device, equipment, medium and program product for displaying construction drawing |
CN114816193A (en) * | 2022-04-29 | 2022-07-29 | 阿里巴巴(中国)有限公司 | Drawing display method and device and terminal equipment |
Non-Patent Citations (1)
Title |
---|
常臻: "移动端机械CAD图纸查看系统的设计与实现", 中国优秀硕士学位论文全文数据库 信息科技辑, 15 February 2017 (2017-02-15), pages 27 - 30 * |
Also Published As
Publication number | Publication date |
---|---|
CN117631930B (en) | 2024-10-01 |
CN116521043B (en) | 2023-12-22 |
CN116521043A (en) | 2023-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108279964B (en) | Method and device for realizing covering layer rendering, intelligent equipment and storage medium | |
US9207858B2 (en) | Method and apparatus for drawing and erasing calligraphic ink objects on a display surface | |
US7911481B1 (en) | Method and apparatus of graphical object selection | |
US9671922B1 (en) | Scaling of displayed objects with shifts to the periphery | |
EP2743825A1 (en) | Dynamical and smart positioning of help overlay graphics in a formation of user interface elements | |
US20070250788A1 (en) | Optimal Display of Multiple Windows within a Computer Display | |
US20110258534A1 (en) | Declarative definition of complex user interface state changes | |
US9405449B2 (en) | Layout constraint manipulation via user gesture recognition | |
US20170221242A1 (en) | Automatic overdraw reduction before rendering | |
US20140325418A1 (en) | Automatically manipulating visualized data based on interactivity | |
US10169307B2 (en) | Method and system for the use of adjustment handles to facilitate dynamic layout editing | |
CN110221889A (en) | A kind of page display method, device, electronic equipment and storage medium | |
CN105528217A (en) | Partial refreshing method and device based on display list | |
WO2019105191A1 (en) | Multi-element interaction method, apparatus and device, and storage medium | |
US20110285727A1 (en) | Animation transition engine | |
CN109828820B (en) | Focus refreshing method and device of application window, storage medium and terminal | |
US20130238977A1 (en) | Method and system for master-page based integrated editing and dynamic layout activation | |
CN115878935B (en) | Method, system, device, equipment and medium for partial refreshing of chart | |
JP4158462B2 (en) | Screen display processing apparatus, screen display processing method, and computer program | |
US10241651B2 (en) | Grid-based rendering of nodes and relationships between nodes | |
CN110727383A (en) | Touch interaction method and device based on small program, electronic equipment and storage medium | |
US11189010B2 (en) | Method and apparatus for image processing | |
US11237699B2 (en) | Proximal menu generation | |
CN116521043B (en) | Method, system and computer program product for quick response of drawing | |
WO2023134655A1 (en) | Operation method and apparatus, and electronic device 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |