CN114546558A - Drawing processing method and device, computer equipment and storage medium - Google Patents
Drawing processing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114546558A CN114546558A CN202210156131.3A CN202210156131A CN114546558A CN 114546558 A CN114546558 A CN 114546558A CN 202210156131 A CN202210156131 A CN 202210156131A CN 114546558 A CN114546558 A CN 114546558A
- Authority
- CN
- China
- Prior art keywords
- thumbnail
- target
- generation mode
- generation
- processed
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000012545 processing Methods 0.000 claims abstract description 56
- 238000000034 method Methods 0.000 claims abstract description 37
- 238000004590 computer program Methods 0.000 claims description 23
- 230000004044 response Effects 0.000 claims description 9
- 238000012216 screening Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000002829 reductive effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 125000000174 L-prolyl group Chemical group [H]N1C([H])([H])C([H])([H])C([H])([H])[C@@]1([H])C(*)=O 0.000 description 1
- 238000009435 building construction Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011960 computer-aided design Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000036961 partial effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- 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/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04815—Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
-
- 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
- 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/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04802—3D-info-object: information is displayed on the internal or external surface of a three dimensional manipulable object, e.g. on the faces of a cube that can be rotated by the user
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04806—Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application relates to a drawing processing method, a drawing processing device, computer equipment and a storage medium. The method comprises the following steps: acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed; determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data; determining a target thumbnail from the thumbnails; uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system. By adopting the method, the processing efficiency of the drawing can be improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a drawing, a computer device, and a storage medium.
Background
With the development of computer technology, a drawing processing system can generally provide corresponding thumbnails for an original drawing, so that summary information in the original drawing can be known directly through the thumbnails without opening the original drawing, and for example, CAD software can provide fixed thumbnails for the CAD drawing.
At present, when previewing thumbnails on stored drawings, generally, only through a thumbnail generation interface provided by a drawing processing system, an acquired original drawing is directly converted into a thumbnail with a fixed form, and then the thumbnail with the fixed form is stored and displayed. However, since only the thumbnail with a fixed form can be previewed and managed, and the fixed form thumbnail sometimes cannot accurately and effectively express the main intention of the drawing designer, the prior art thumbnail type has a problem of insufficient diversity, thereby reducing the flexibility of drawing processing.
Disclosure of Invention
In view of the above, it is necessary to provide a drawing processing method, an apparatus, a computer device, a computer readable storage medium, and a computer program product, which can improve flexibility of drawing processing.
In a first aspect, the present application provides a drawing processing method. The method comprises the following steps:
acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In one embodiment, the determining a target thumbnail from the thumbnails includes: displaying a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail; in response to a selection operation for the thumbnail, a target thumbnail of the at least one thumbnail is determined.
In one embodiment, the thumbnail generation mode has multiple modes; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises: and for each thumbnail generation mode in the plurality of thumbnail generation modes, generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode.
In one embodiment, the thumbnail generation mode comprises a first thumbnail generation mode corresponding to the two-dimensional drawing; the generated data comprises at least one thumbnail proportion and the number of thumbnails; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises: when the thumbnail generation mode is a first thumbnail generation mode, carrying out at least one thumbnail interception operation on the drawing to be processed according to the at least one thumbnail proportion to obtain candidate thumbnails corresponding to each thumbnail proportion; and screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
In one embodiment, the thumbnail generation mode further comprises a second thumbnail generation mode corresponding to the three-dimensional drawing; the generated data comprises a rotation angle; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises: when the thumbnail generation mode is a second thumbnail generation mode, determining a target object and a rotation angle in the drawing to be processed; and rotating the target object according to the rotation angle, and performing intercepting operation on the rotated target object to obtain a second thumbnail corresponding to the target object.
In one embodiment, the thumbnail generation mode further comprises a third thumbnail generation mode; the generated data comprises an interface identification; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises: and when the current thumbnail generation mode is a third thumbnail generation mode, obtaining a third thumbnail associated with the drawing to be processed through a thumbnail generation interface of the drawing processing system corresponding to the receiving identifier.
In one embodiment, the thumbnail generation mode further comprises a fourth thumbnail generation mode associated with the region selection operation; the generated data includes a target size; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises: when the thumbnail generation mode is a fourth thumbnail generation mode, responding to the region selection operation aiming at the drawing to be processed, and determining at least one region drawing in the drawing to be processed; and intercepting the region drawing to obtain a fourth thumbnail with a target size corresponding to the region drawing.
In one embodiment, the method further includes: acquiring an update request of the thumbnail sent by the target system; the updating request comprises a thumbnail identifier of the thumbnail to be updated; determining an original drawing according to the thumbnail identification; determining a thumbnail updating mode corresponding to the original drawing, and generating an updating thumbnail corresponding to the original drawing through the thumbnail updating mode; uploading the updated thumbnail to a target system; and the uploaded updated thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identifier.
In a second aspect, the application further provides a drawing processing device. The device comprises:
the drawing acquisition module is used for acquiring a drawing to be processed and determining a thumbnail generation mode of the drawing to be processed;
the thumbnail generation module is used for determining generation data corresponding to the thumbnail generation mode and generating a corresponding thumbnail according to the thumbnail generation mode and the generation data; determining a target thumbnail from the thumbnails;
the thumbnail uploading module is used for uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
According to the drawing processing method, the drawing processing device, the computer equipment, the storage medium and the computer program product, the to-be-processed drawing is obtained, the thumbnail generation mode associated with the to-be-processed drawing and the generation data corresponding to the thumbnail generation mode are determined, and the corresponding thumbnail is generated according to the thumbnail generation mode and the generation data. Because can be through thumbnail generating means and generated data, generate many thumbnails to confirm the target thumbnail from the many thumbnail that contract, consequently, compare in traditional thumbnail generation interface through the drawing processing system only, directly convert original drawing into the fixed thumbnail's of form mode, the thumbnail generating means that this application provided can select many thumbnails, has compensatied the not enough problem of target thumbnail variety, has improved the flexibility of drawing processing. Meanwhile, the thumbnail which can express the main intention of the drawing designer is used as the target thumbnail, so that the accuracy of drawing processing is improved.
Drawings
FIG. 1 is a diagram of an application environment of a drawing processing method in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a drawing processing method according to one embodiment;
FIG. 3 is a schematic flow chart showing a drawing processing method in another embodiment;
FIG. 4 is a schematic diagram of a drawing processing method according to an embodiment;
FIG. 5 is a block diagram showing the construction of a drawing processing apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The drawing processing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1, and can be applied to an application environment shown in fig. 1, where the application environment includes a first terminal 102a, a second terminal 102b, and a server 104, where the first terminal 102a can communicate with the server 104 through a network, and the second terminal 102b can communicate with the server 104 through the network. The first terminal 102a is configured to acquire a drawing to be processed and determine a thumbnail generation method, and send the drawing to be processed and the thumbnail generation method to the server 104. The server 104 generates a thumbnail corresponding to the drawing to be processed according to the thumbnail generation mode, and sends the target thumbnail determined from the thumbnail to the second terminal 102b, so that the second terminal 102b displays the received target thumbnail. The first terminal 102a and the second terminal 102b may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster composed of a plurality of servers. It should be noted that the first terminal 102a and the second terminal 102b may be the same terminal or different terminals, and the embodiment of the present application is not limited herein.
In an embodiment, as shown in fig. 2, a drawing processing method is provided, which is described by taking the method as an example applied to the first terminal in fig. 1, and includes the following steps:
step 202, obtaining a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed.
The drawings to be processed are drawings obtained through drawing processing application, such as electrical drawings, building construction drawings and the like; the drawing processing application is a computer aided design application which can draw and generate a thumbnail of the drawing to be processed, such as a CAD software application, a Pro/Engineer software application and the like; the thumbnail is a small-sized figure capable of briefly displaying the original drawing, can include part of summary information in the original drawing, and can acquire the original drawing needing to be managed by looking up the summary information in the thumbnail without acquiring all the original drawings.
Specifically, the drawing to be processed acquired by the first terminal may be a drawing uploaded by the user in real time, or a drawing pre-stored in the database. The method comprises the steps that a first terminal determines at least one thumbnail generation mode associated with a to-be-processed drawing according to the drawing type of the to-be-processed drawing, wherein the thumbnail generation mode comprises a first thumbnail generation mode, a second thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode. For example, when the drawing type of the drawing to be processed is a two-dimensional drawing, determining that at least one thumbnail generation mode associated with the two-dimensional drawing comprises a first thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode; when the drawing type of the drawing to be processed is a three-dimensional drawing, determining that at least one thumbnail generation mode associated with the three-dimensional drawing comprises a second thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode.
In one embodiment, the first terminal displays a thumbnail generation mode selection interface, and determines at least one thumbnail generation mode selected by the selection operation in response to the selection operation of the user on the thumbnail generation mode selection interface.
In one embodiment, a drawing processing application providing a drawing processing system runs in the first terminal, and the drawing processing application can acquire a drawing to be processed and determine a thumbnail generation mode.
In one embodiment, the first terminal recommends at least one thumbnail generation mode associated with the drawing to be processed for the user according to the drawing type of the drawing to be processed, and displays the recommended at least one thumbnail generation mode in a thumbnail generation mode selection interface.
And step 204, determining the generation data corresponding to the thumbnail generation mode, and generating the corresponding thumbnail according to the thumbnail generation mode and the generation data.
The generated data may be preset data, data determined according to drawing information of the drawing to be processed, or data obtained by setting the drawing to be processed by a user. The generated data at least includes one of a thumbnail proportion, a number of thumbnails, a rotation angle, an interface identifier of a thumbnail generation interface, and a target size, and for example, the generated data may specifically be to scale the drawing to be processed according to a thumbnail proportion of 1 to 0.4, or generate 2 thumbnail, or generate one thumbnail every 10 degrees of rotation, or the like.
Specifically, the first terminal determines corresponding generated data according to the drawing type of the drawing to be processed. When the drawing type of the drawing to be processed is a two-dimensional drawing, determining that the thumbnail generation mode is a first thumbnail generation mode, wherein the generation data corresponding to the first thumbnail generation mode can be the thumbnail proportion of the two-dimensional drawing and the number of thumbnails; when the drawing type of the drawing to be processed is a three-dimensional drawing, determining that the thumbnail generation mode is a second thumbnail generation mode, and generating data corresponding to the second thumbnail generation mode can be the rotation angle of the three-dimensional drawing and the like.
Further, the first terminal determines that the thumbnail generation mode is the fourth thumbnail generation mode in response to the area selection operation on the to-be-processed drawing, determines that the thumbnail generation mode is the third thumbnail generation mode if the first terminal does not respond to the area selection operation on the to-be-processed drawing, and determines that the generation data corresponding to the third thumbnail generation mode can be the interface identifier of the thumbnail generation interface. The fourth thumbnail generation mode is a mode of directly acquiring the thumbnail corresponding to the regional drawing after selecting a partial region in the drawing to be processed according to the user requirement; and the third thumbnail generation mode is a mode of acquiring the thumbnail corresponding to the drawing to be processed through a corresponding thumbnail generation interface. Further, the first terminal generates a corresponding thumbnail through a thumbnail generation mode and data generation. For example, in the above example, when the thumbnail proportion of the two-dimensional drawing is 1 to 0.4, the drawing to be processed is abbreviated according to the thumbnail proportion of 1 to 0.4, the abbreviated drawing is subjected to screenshot processing to obtain a screenshot, and the screenshot is taken as the generated thumbnail.
In one embodiment, the first terminal can respond to a trigger operation of a user on a plug-in the drawing processing application, the generated data pre-stored in the plug-in can be acquired through the trigger operation, a real-time setting operation can be performed on the plug-in through the trigger operation, and the generated data associated with the drawing to be processed can be determined through the setting operation.
In one embodiment, a user clicks a setting control in a drawing processing application, and a first terminal can respond to the clicking operation of the user and display a setting page, so that the user can input generation data in the setting page to obtain the generation data corresponding to the thumbnail generation mode. For example, a thumbnail scale, a rotation angle, and the like are input.
In one embodiment, the first terminal determines generation data corresponding to a current thumbnail generation mode according to drawing information in a to-be-processed drawing.
Specifically, the first terminal determines data information in generated data corresponding to the current thumbnail generation mode according to the current thumbnail generation mode and drawing information of the drawing to be processed, such as the drawing size, the drawing definition, the number of primitives included in the drawing, and the like, for example, if the drawing to be processed is a two-dimensional drawing with higher definition, the thumbnail proportion in the generated data can be set to 1: 0.2, and the generated thumbnail still has higher definition. And if the to-be-processed drawing is a two-dimensional drawing with lower definition, setting the thumbnail proportion in the generated data to be 1: 0.4, so that the generated thumbnail can be clear. For another example, when the number of primitives included in the drawing is greater than or equal to a preset number threshold, the thumbnail ratio in the generated data is set to 1 to 0.4; and when the number of the primitives is less than a preset number threshold, setting the thumbnail proportion in the generated data to be 1 to 0.2. By flexibly determining the thumbnail proportion according to the number of the graphic elements, a user can clearly see all the graphic elements included in the drawing through the thumbnail. The primitive categories refer to local images in the drawing, such as windows, fire hydrants, doors, parking spaces and the like in the drawing.
In the embodiment, the generated data is flexibly determined through the drawing information of the drawing to be processed, so that the thumbnail generated through the generated data has higher identification degree.
Step 206, determine the target thumbnail from the thumbnails.
Specifically, the first terminal responds to the selection operation of the user for the thumbnail, and determines the selected target thumbnail according to the selection operation. The target thumbnail is the thumbnail which can best represent the summary information of the drawing to be processed or the main intention of the drawing designer.
In one embodiment, determining a target thumbnail from the thumbnails includes: displaying a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail; in response to a selection operation for a thumbnail, a target thumbnail of the at least one thumbnail is determined.
Specifically, a thumbnail selection interface is displayed in the first terminal, wherein at least one thumbnail generated according to the thumbnail generation mode is displayed in the thumbnail selection interface. The first terminal responds to the selection operation of a user on the thumbnail in the thumbnail selection interface, and determines a target thumbnail selected by the selection operation.
In one embodiment, the user can also determine a recommended target thumbnail through the thumbnail selection interface, so that a special identifier can be displayed in the recommended target thumbnail when the target thumbnail is displayed through a target system, for example, when the drawing to be processed is a three-dimensional drawing, the thumbnail obtained at multiple rotation angles can better reflect summary information of the three-dimensional drawing, and therefore, a second thumbnail obtained through a second thumbnail generation mode can be used as the target thumbnail, and the special identifier is displayed.
In one embodiment, the user can also compare the thumbnails generated by various thumbnail generation modes, and take the thumbnail generated by one thumbnail generation mode as a target thumbnail. For example, when the drawing to be processed is a two-dimensional drawing, if the third thumbnail obtained by the third thumbnail generation method is not clear due to instability of the thumbnail generation interface, the clearer first thumbnail may be used as the target thumbnail.
In the embodiment, the target thumbnail which can most reflect the summary information of the drawing to be processed is screened from at least one thumbnail, so that the accuracy of managing the drawing to be processed can be improved.
Step 208, uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target system to display the target thumbnail.
The target system is a management system for managing all the drawings to be processed and thumbnails corresponding to the drawings to be processed. For example, a PLM system (Product Lifecycle Management), a file Management system, and the like.
Specifically, the first terminal can upload a target thumbnail selected by a user to a target system, so that the target system manages the drawing to be processed and the target thumbnail corresponding to the drawing to be processed. It is easily understood that the summary information in different target thumbnails is not the same.
In one embodiment, the first terminal processes the target thumbnails according to the preset thumbnail size, that is, all the target thumbnails are adjusted to the same display size, so that the target thumbnails with the same display size are uploaded to the target system.
In one embodiment, a drawing list interface is displayed in the target system, and at least one target thumbnail selected by the selection operation is displayed in response to the selection operation of the user on the thumbnails in the drawing list interface.
According to the drawing processing method, the to-be-processed drawing is obtained, the thumbnail generation mode associated with the to-be-processed drawing and the generation data corresponding to the thumbnail generation mode are determined, and the corresponding thumbnail is generated according to the thumbnail generation mode and the generation data. Because the target thumbnail which can most express the main intention of the drawing designer can be directly determined from the thumbnails, the subsequent checking and management of the drawing by a user are more convenient, and the flexibility of drawing processing is improved.
In addition, due to the difference of different thumbnail generation interfaces, the general information usually embodied by the thumbnails generated by the thumbnail generation interfaces is not uniform, so that the management difficulty of the thumbnails is increased; and the method and the device can generate uniform thumbnails, so that the difficulty in managing the thumbnails is reduced. Because the existing thumbnail obtaining mode is single, the definition of the generated thumbnail is generally poor, and the thumbnail with high definition can be generated through various thumbnail generating modes, so that the effect of the generated thumbnail is improved. Furthermore, because the traditional technical scheme can only generate the thumbnail in the fixed form, the generated thumbnail in the fixed form can not accurately express the intention of the designer sometimes, so that the accuracy of processing the drawing is reduced, and because the thumbnail is generated in various modes, the intention of the designer can be accurately expressed through the thumbnails in various forms, so that the accuracy of processing the drawing is improved.
In one embodiment, the thumbnail generation mode has multiple modes; generating a corresponding thumbnail through a thumbnail generation mode and generated data, wherein the thumbnail generation mode comprises the following steps: and for each thumbnail generation mode in the plurality of thumbnail generation modes, generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode.
Specifically, a trigger mode corresponding to the current thumbnail generation mode is determined for each thumbnail generation mode in a plurality of thumbnail generation modes; and when the trigger mode corresponding to the current thumbnail generation mode is a set trigger mode, determining the generation data corresponding to the current thumbnail generation mode. The first terminal determines a current trigger mode corresponding to the current thumbnail generation mode, namely determines a trigger mode for triggering the current thumbnail generation mode, and determines generation data corresponding to the current thumbnail generation mode according to the current trigger mode. That is, when the current trigger mode is the set trigger mode, the generated data corresponding to the first thumbnail generation mode is the thumbnail proportion and the thumbnail number, and the generated data corresponding to the second thumbnail generation mode is the rotation angle; and when the current trigger mode is the non-set trigger mode, generating data corresponding to the third thumbnail generating mode is an interface identifier of the thumbnail generating interface. The setting triggering mode refers to a mode that generated data corresponding to the drawing to be processed needs to be set, and the non-setting triggering mode refers to a mode that generated data corresponding to the drawing to be processed does not need to be set.
For example, a setting control may be displayed in the first terminal, and the thumbnail generation mode may be set through the setting control. When the user clicks the setting control, it can be considered that the thumbnail generation mode is triggered at this time, and the thumbnail generation mode includes a first thumbnail generation mode and a second thumbnail generation mode. When the user does not click the setting control and directly intercepts the drawing to be processed, the thumbnail generation mode can be considered to be triggered at the moment, and the thumbnail generation mode comprises a third thumbnail generation mode and a fourth thumbnail generation mode.
In the embodiment, the thumbnail generation mode and the generation data corresponding to the thumbnail generation mode are determined through different trigger modes, so that the corresponding thumbnail can be generated conveniently and quickly in the follow-up process according to the generation data corresponding to the thumbnail generation mode, and the thumbnail generation efficiency is improved.
In one embodiment, the thumbnail generation mode comprises a first thumbnail generation mode corresponding to the two-dimensional drawing; generating data including at least one thumbnail proportion and the number of thumbnails; generating a corresponding thumbnail through a thumbnail generation mode and generated data, wherein the thumbnail generation mode comprises the following steps: when the thumbnail generation mode is a first thumbnail generation mode, carrying out at least one thumbnail interception operation on the drawing to be processed according to at least one thumbnail proportion to obtain candidate thumbnails corresponding to each thumbnail proportion; and screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
Specifically, when the first terminal determines that the thumbnail generation manner is the first thumbnail generation manner, at least one thumbnail ratio may be included in the generation data corresponding to the first thumbnail generation manner. And for each thumbnail proportion in the plurality of thumbnail proportions, the first terminal thumbnails the to-be-processed drawing according to the current thumbnail proportion, and intercepts the thumbnail drawing to obtain a candidate thumbnail corresponding to the current thumbnail proportion. For example, when the current thumbnail proportion is 1 to 0.6, after the thumbnail and the interception operation are performed on the drawing to be processed, a candidate thumbnail corresponding to the drawing to be processed can be obtained; likewise, a 1 to 0.5, 1 to 0.4, 1 to 0.2, etc. may also be used at the current abbreviated ratio. Further, the first terminal determines the number of thumbnails in the generated data corresponding to the first thumbnail generation mode, and screens out at least one first thumbnail associated with the drawing to be processed from the candidate thumbnails according to the number of thumbnails. For example, referring to the above example, when the number of thumbnails is 3, if the thumbnail candidate generated at the thumbnail ratio of 1 to 0.2 is low in definition, it may be deleted, and only the thumbnail candidates generated at the thumbnail ratios of 1 to 0.6, 1 to 0.5, 1 to 0.4 are retained, and the thumbnail candidates generated at the thumbnail ratios of 1 to 0.6, 1 to 0.5, 1 to 0.4 are taken as the first thumbnail.
In the embodiment, by providing a thumbnail generation mode associated with the two-dimensional drawing, the thumbnail information of the two-dimensional drawing under different thumbnail proportions can be clearly acquired, so that the flexibility of processing the drawing is improved. Due to the fact that the thumbnails with higher definition are screened out according to the number of the thumbnails, accuracy of subsequent processing of the drawings is improved.
In one embodiment, the thumbnail generation mode further comprises a second thumbnail generation mode corresponding to the three-dimensional drawing; generating data including a rotation angle; generating a corresponding thumbnail through a thumbnail generation mode and generated data, wherein the thumbnail generation mode comprises the following steps: when the thumbnail generation mode is a second thumbnail generation mode, determining a target object and a rotation angle in the drawing to be processed; and rotating the target object according to the rotation angle, and performing intercepting operation on the rotated target object to obtain a second thumbnail corresponding to the target object.
The target object is a graphic primitive selected by a user in the three-dimensional drawing, or the target object can be any graphic primitive in the three-dimensional drawing; the generation data corresponding to the second thumbnail generation method is a rotation angle associated with the three-dimensional drawing.
Specifically, when the thumbnail generation mode is determined to be the second thumbnail generation mode, the first terminal may determine a target object in the drawing to be processed and a rotation angle in the generated data corresponding to the second thumbnail generation mode, rotate the target object according to the rotation angle to obtain the rotated target object, and perform an intercepting operation on the rotated target object to obtain a second thumbnail corresponding to the target object.
In one embodiment, the first terminal may traverse a primitive in the drawing to be processed, take the currently traversed primitive as a target object, and perform rotation interception processing on the target object.
In one embodiment, the first terminal intercepts the target object every time the first terminal rotates once according to the determined rotation angle until the target object rotates for a circle, and the first terminal uniformly performs the thumbnail processing on at least one screenshot formed after the target object rotates for a circle. For example, the determined rotation angle is 90 degrees, the target object is intercepted once after being rotated by 90 degrees, the target object is intercepted once again when being rotated to 180 degrees until the target object rotates for a circle, and finally 4 screenshots associated with the target object are taken as a second thumbnail.
In one embodiment, the first terminal intercepts the target object every time the first terminal rotates once according to the determined rotation angle, and performs thumbnail processing on a screenshot formed after each interception operation to obtain at least one thumbnail associated with the target object. For example, when the rotation angle is 90 degrees, the rotated target object is subjected to abbreviative processing, and the rotation of the abbreviated target object is intercepted to obtain a second thumbnail; similarly, when the target object rotates to 180 degrees, the thumbnail is cut again to obtain another second thumbnail.
In one embodiment, the generated data may include a plurality of rotation angles, and for each rotation angle of the plurality of rotation angles, the first terminal performs an intercepting operation on the target object at the current rotation angle, so as to obtain a second thumbnail corresponding to the target object. For example, the rotation angles may be set to 45 degrees, 60 degrees, 70 degrees, and the like, respectively
In one embodiment, the generated data may further include the number of thumbnails, and the second thumbnail is obtained by screening the number. For example, if the number of thumbnails is 3, for thumbnails formed at rotation angles of 45 degrees, 60 degrees, and 70 degrees, since some of the pixels overlap in the thumbnails formed at 70 degrees, the thumbnails formed at 70 degrees can be deleted, and only the thumbnails formed at 45 degrees and 60 degrees can be used as the second thumbnail.
In the embodiment, the thumbnail generation method associated with the three-dimensional drawing is provided, so that the thumbnail information of the three-dimensional drawing at different rotation angles can be clearly acquired, and the flexibility of processing the drawing is improved.
In one embodiment, the thumbnail generation mode further comprises a third thumbnail generation mode; generating data including an interface identification; generating a corresponding thumbnail through a thumbnail generation mode and generated data, wherein the thumbnail generation mode comprises the following steps: and when the current thumbnail generation mode is the third thumbnail generation mode, obtaining a third thumbnail associated with the drawing to be processed through the thumbnail generation interface of the drawing processing system corresponding to the receiving identifier.
Wherein the thumbnail generation interface is the only interface associated with the version characteristic of the drawing processing system; the generated data is an interface identifier of the thumbnail generation interface, for example, versions of drawing processing systems developed by different manufacturers are different, and thumbnail generation interfaces of the drawing processing systems are also different.
Specifically, when the first terminal determines that the thumbnail generation mode is the third thumbnail generation mode, the first terminal determines a trigger mode corresponding to the third thumbnail generation mode, and when the trigger mode is the non-set trigger mode, determines that the generation data corresponding to the third thumbnail generation mode is the interface identifier of the thumbnail generation interface. And the first terminal calls a third thumbnail associated with the drawing to be processed through the interface corresponding to the interface identifier of the thumbnail generation interface. It is easy to understand that when the interface identifiers are different, the first terminal generates the interfaces through thumbnails of different drawing processing systems, and the obtained thumbnails associated with the drawing to be processed are different.
In one embodiment, the first terminal can call the thumbnail related to the drawing to be processed in the drawing processing system through a default screenshot interface in the Windows system. For example, the default screenshot interface is used as a plug-in the CAD software, a function menu is displayed on the plug-in, and screenshot and calling are performed on the corresponding thumbnail through triggering the function menu of the plug-in.
In the embodiment, the third thumbnail related to the drawing to be processed is directly called through the thumbnail generating interface of the drawing processing system, so that omission of calling the thumbnails under different versions of the drawing processing system is avoided.
In one embodiment, the thumbnail generation mode further comprises a fourth thumbnail generation mode associated with the region selection operation; generating data including a target size; generating a corresponding thumbnail through a thumbnail generation mode and generated data, wherein the thumbnail generation mode comprises the following steps: when the thumbnail generation mode is a fourth thumbnail generation mode, responding to the region selection operation aiming at the drawing to be processed, and determining at least one region drawing in the drawing to be processed; and intercepting the region drawing to obtain a fourth thumbnail with a target size corresponding to the region drawing.
Specifically, when the first terminal determines that the thumbnail generation mode is the fourth thumbnail generation mode, in response to a region selection operation of a user for a to-be-processed drawing, at least one region drawing selected by the region selection operation is determined, and a target size in generated data is determined, where the region drawing may be a region capable of embodying important information of the to-be-processed drawing or a region capable of embodying a drawing design purpose of the user better. And the first terminal responds to the intercepting operation of the user for the region drawing to obtain a fourth thumbnail with a target size corresponding to the region drawing.
In one embodiment, the first terminal responds to the setting operation of the target size of the drawing to be processed by the user, and after the selected area is determined, the selected area drawing is contracted according to the set target size, and then the contracted area drawing is intercepted, namely screenshot operation is carried out.
In the embodiment, the region drawing can be selected according to the actual requirement of the user by responding to the region selection operation performed by the user, so that another thumbnail generation mode is provided, and the flexibility of drawing processing is improved. Because the region of the important information of the drawing to be processed is selected, omission of part of the more important region drawing is avoided.
In one embodiment, the method further includes: acquiring an update request of a thumbnail sent by a target system; the updating request comprises a thumbnail identifier of the thumbnail to be updated; determining an original drawing according to the thumbnail identification; determining a thumbnail updating mode corresponding to the original drawing, and generating an updating thumbnail corresponding to the original drawing through the thumbnail updating mode; uploading the updated thumbnail to a target system; and the uploaded updated thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identifier.
The thumbnail updating mode may be at least one of thumbnail generating modes. For example, if the two-dimensional drawing initially generates corresponding thumbnails through a first thumbnail generation manner, a third thumbnail generation manner, and a fourth thumbnail generation manner, respectively, and if the thumbnail to be updated is obtained through the first thumbnail generation manner, at this time, the thumbnail updating manner corresponding to the original drawing may be at least one of the first thumbnail generation manner, the third thumbnail generation manner, and the fourth thumbnail generation manner; if the thumbnail to be updated is obtained in the third thumbnail generation mode, at this time, the thumbnail updating mode corresponding to the original drawing may be at least one of the first thumbnail generation mode and the fourth thumbnail generation mode.
Specifically, the first terminal may obtain an update request of a thumbnail sent by a target system in the second terminal, and analyze the update request to obtain a thumbnail identifier of the thumbnail to be updated associated with the update request, where the thumbnail to be updated may be a thumbnail with unclear drawing information. And the first terminal determines an original drawing corresponding to the thumbnail identification and a thumbnail updating mode corresponding to the original drawing from a database in which a plurality of drawings are prestored according to the thumbnail identification. The step of generating the update thumbnail corresponding to the original drawing in the thumbnail updating mode is the same as the step of generating the update thumbnail corresponding to the to-be-processed drawing in the thumbnail generating mode, and is not repeated here.
In the embodiment, the updated thumbnail can be obtained by updating the thumbnail, and the updated thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identifier, so that a user can check and process the thumbnail in real time through the target system, and the flexibility of processing the drawing is improved.
In one embodiment, a first terminal may operate with a drawing processing system and a second terminal may operate with a target system. It should be noted that the drawing processing system and the target system may also be the same first terminal, and the application is not limited herein.
In one embodiment, as shown in fig. 3, fig. 3 provides a flow chart of another drawing processing method. S301, uploading a drawing to be processed by a user; s302, obtaining a thumbnail with a preset size through a target system interface; s303, calling the drawing to be processed through a CAD software interface; s304, zooming the drawing to be processed, and intercepting the screenshot under the corresponding zooming scale; s305, calling a three-dimensional drawing through a CAD software interface; s306, carrying out rotary screenshot on the three-dimensional drawing; s307, providing a thumbnail selection interface for a user; s308, setting the selected thumbnail to a preset size; and S309, uploading the thumbnails with uniform sizes to a target system.
In one embodiment, as shown in FIG. 4, a schematic illustration of a drawing processing method is provided. The method comprises the steps that a user logs in a target system in a second terminal through an account, the second terminal displays a drawing list interface, responds to selection operation of the user on drawings in the drawing list interface, determines at least one drawing to be processed selected by the selection operation, and sends a drawing processing request corresponding to the drawing to be processed to the first terminal. The method comprises the steps that a first terminal determines a to-be-processed drawing according to a received drawing processing request, determines at least one thumbnail generation mode according to the to-be-processed drawing, generates corresponding thumbnails for the to-be-processed drawing according to each thumbnail generation mode, and preliminarily displays at least one thumbnail in a thumbnail selection interface. The first terminal responds to the selection operation of a user on the thumbnail in the thumbnail selection interface, determines the target thumbnail selected by the selection operation, and adjusts each target thumbnail to be the same in display size according to the size of the preset thumbnail so that the first terminal uploads the adjusted target thumbnail to the second terminal. And the second terminal stores the received target thumbnail in the same directory corresponding to the drawing to be processed, and displays the target thumbnail by responding to the selection operation of the user on the target thumbnail in the drawing list interface.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a drawing processing device for realizing the drawing processing method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the method, so specific limitations in one or more embodiments of the drawing processing apparatus provided below can be referred to as limitations on the drawing processing method in the foregoing, and details are not repeated here.
In one embodiment, as shown in fig. 5, there is provided a drawing processing apparatus 500 including: the drawing acquisition module 502, the thumbnail generation module 504 and the thumbnail uploading module 506, wherein:
the drawing obtaining module 502 is configured to obtain a drawing to be processed and determine a thumbnail generation mode of the drawing to be processed.
The thumbnail generation module 504 is configured to determine generation data corresponding to the thumbnail generation manner, and generate a corresponding thumbnail through the thumbnail generation manner and the generation data; a target thumbnail is determined from the thumbnails.
A thumbnail uploading module 506, configured to upload a target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In one embodiment, the thumbnail generation module 504 is further configured to display a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail; in response to a selection operation for a thumbnail, a target thumbnail of the at least one thumbnail is determined.
In one embodiment, the thumbnail generation mode has multiple modes; the thumbnail generation module 504 is further configured to, for each thumbnail generation manner in the multiple thumbnail generation manners, generate at least one thumbnail according to the current thumbnail generation manner and the generation data corresponding to the current thumbnail generation manner.
In one embodiment, the thumbnail generation mode comprises a first thumbnail generation mode corresponding to the two-dimensional drawing; generating data including at least one thumbnail proportion and the number of thumbnails; the thumbnail generation module 504 further includes a first generation module 5041, configured to, when the thumbnail generation manner is the first thumbnail generation manner, perform at least one thumbnail interception operation on the to-be-processed drawing according to at least one thumbnail proportion to obtain a candidate thumbnail corresponding to each thumbnail proportion; and screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
In one embodiment, the thumbnail generation mode further comprises a second thumbnail generation mode corresponding to the three-dimensional drawing; generating data including a rotation angle; the thumbnail selection boundary generating module 504 further includes a second generating module 5042, configured to determine, when the thumbnail generating manner is the second thumbnail generating manner, a target object in the to-be-processed drawing and rotate by an angle; and rotating the target object according to the rotation angle, and performing intercepting operation on the rotated target object to obtain a second thumbnail corresponding to the target object.
In one embodiment, the thumbnail generation mode comprises a third thumbnail generation mode; generating data including an interface identification; the thumbnail selection generation module 504 further includes a third generation module 5043, configured to obtain a third thumbnail associated with the to-be-processed drawing through the thumbnail generation interface of the drawing processing system corresponding to the connection identifier when the current thumbnail generation mode is the third thumbnail generation mode.
In one embodiment, the thumbnail generation mode comprises a fourth thumbnail generation mode associated with the region selection operation; generating data including a target size; the thumbnail generation module 504 further includes a fourth generation module 5044, configured to determine at least one region drawing in the to-be-processed drawing in response to a region selection operation for the to-be-processed drawing when the thumbnail generation manner is the fourth thumbnail generation manner; and intercepting the region drawing to obtain a fourth thumbnail with a target size corresponding to the region drawing.
In one embodiment, the drawing processing apparatus 500 further includes a thumbnail update module 508, configured to obtain an update request of a thumbnail sent by a target system; the updating request comprises a thumbnail identifier of the thumbnail to be updated; determining an original drawing according to the thumbnail identification; determining a thumbnail updating mode corresponding to the original drawing, and generating an updating thumbnail corresponding to the original drawing through the thumbnail updating mode; uploading the updated thumbnail to a target system; and the uploaded updated thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identifier.
All or part of the modules in the drawing processing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a drawing processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims (12)
1. A drawing processing method is characterized by comprising the following steps:
acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
2. The method of claim 1, wherein the determining a target thumbnail from the thumbnails comprises:
displaying a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail;
in response to a selection operation for the thumbnail, a target thumbnail of the at least one thumbnail is determined.
3. The method according to claim 1, wherein the thumbnail images are generated in a plurality of ways; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises:
and for each thumbnail generation mode in the plurality of thumbnail generation modes, generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode.
4. The method according to claim 1, wherein the thumbnail generation manner comprises a first thumbnail generation manner corresponding to a two-dimensional drawing; the generated data comprises at least one thumbnail proportion and the number of thumbnails; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises:
when the thumbnail generation mode is a first thumbnail generation mode, carrying out at least one thumbnail interception operation on the drawing to be processed according to the at least one thumbnail proportion to obtain candidate thumbnails corresponding to each thumbnail proportion;
and screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
5. The method according to claim 1, wherein the thumbnail generation manner further comprises a second thumbnail generation manner corresponding to the three-dimensional drawing; the generated data comprises a rotation angle; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises:
when the thumbnail generation mode is a second thumbnail generation mode, determining a target object and a rotation angle in the drawing to be processed;
and rotating the target object according to the rotation angle, and performing intercepting operation on the rotated target object to obtain a second thumbnail corresponding to the target object.
6. The method according to claim 1, wherein the thumbnail generation manner further comprises a third thumbnail generation manner; the generated data comprises an interface identification; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises:
and when the current thumbnail generation mode is a third thumbnail generation mode, obtaining a third thumbnail associated with the drawing to be processed through a thumbnail generation interface of the drawing processing system corresponding to the receiving identifier.
7. The method according to claim 1, wherein the thumbnail generation manner further comprises a fourth thumbnail generation manner associated with a region selection operation; the generated data includes a target size; generating a corresponding thumbnail through the thumbnail generation mode and the generation data comprises:
when the thumbnail generation mode is a fourth thumbnail generation mode, responding to the region selection operation aiming at the drawing to be processed, and determining at least one region drawing in the drawing to be processed;
and intercepting the region drawing to obtain a fourth thumbnail with a target size corresponding to the region drawing.
8. The method of claim 1, further comprising:
acquiring an update request of the thumbnail sent by the target system; the updating request comprises a thumbnail identifier of the thumbnail to be updated;
determining an original drawing according to the thumbnail identification;
determining a thumbnail updating mode corresponding to the original drawing, and generating an updating thumbnail corresponding to the original drawing through the thumbnail updating mode;
uploading the updated thumbnail to a target system; and the uploaded updated thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identifier.
9. A drawing processing apparatus, characterized by comprising:
the drawing acquisition module is used for acquiring a drawing to be processed and determining a thumbnail generation mode of the drawing to be processed;
the thumbnail generation module is used for determining generation data corresponding to the thumbnail generation mode and generating a corresponding thumbnail according to the thumbnail generation mode and the generation data; determining a target thumbnail from the thumbnails;
the thumbnail uploading module is used for uploading the target thumbnail to a target system; and the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210156131.3A CN114546558B (en) | 2022-02-21 | 2022-02-21 | Drawing processing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210156131.3A CN114546558B (en) | 2022-02-21 | 2022-02-21 | Drawing processing method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114546558A true CN114546558A (en) | 2022-05-27 |
CN114546558B CN114546558B (en) | 2024-06-04 |
Family
ID=81674734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210156131.3A Active CN114546558B (en) | 2022-02-21 | 2022-02-21 | Drawing processing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114546558B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115859413A (en) * | 2023-02-16 | 2023-03-28 | 北京探索者软件股份有限公司 | Data insertion method and device for CAD client, storage medium and electronic device |
JP7472422B1 (en) | 2023-01-13 | 2024-04-23 | 株式会社Fact Base | Drawing management system, drawing management device, drawing management method |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402603A (en) * | 2011-11-18 | 2012-04-04 | 百度在线网络技术(北京)有限公司 | Method and equipment for providing picture abstract information corresponding to thumbnail |
US20140104477A1 (en) * | 2012-10-16 | 2014-04-17 | Samsung Electronics Co., Ltd. | Method for generating thumbnail image and electronic device thereof |
CN106126108A (en) * | 2016-06-30 | 2016-11-16 | 维沃移动通信有限公司 | A kind of breviary map generalization method and mobile terminal |
CN107509038A (en) * | 2017-10-16 | 2017-12-22 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108363535A (en) * | 2018-02-09 | 2018-08-03 | 网易(杭州)网络有限公司 | Display methods, device, storage medium, processor and the terminal of picture |
CN108920048A (en) * | 2018-06-06 | 2018-11-30 | 武汉新迪数字工程系统有限公司 | Large scale drawing browsing method, system, server and computer readable storage medium |
CN109814784A (en) * | 2019-01-07 | 2019-05-28 | 平安科技(深圳)有限公司 | Picture rotation method, apparatus, computer equipment and storage medium |
CN110572723A (en) * | 2019-08-30 | 2019-12-13 | 华为终端有限公司 | Thumbnail generation method and related device |
CN112162814A (en) * | 2020-09-27 | 2021-01-01 | 维沃移动通信有限公司 | Image display method and device and electronic equipment |
CN112634131A (en) * | 2019-09-24 | 2021-04-09 | 脸谱公司 | Customized thumbnail image generation and selection for digital content |
CN112927241A (en) * | 2021-03-08 | 2021-06-08 | 携程旅游网络技术(上海)有限公司 | Picture capturing and thumbnail generating method, system, equipment and storage medium |
CN113190893A (en) * | 2021-02-24 | 2021-07-30 | 万翼科技有限公司 | Method for determining steel bar attribute of component and related device |
CN113298923A (en) * | 2021-05-31 | 2021-08-24 | 北京大学 | Method, device, equipment and storage medium for generating simulation electronic picture |
CN113327313A (en) * | 2021-06-18 | 2021-08-31 | 中德(珠海)人工智能研究院有限公司 | Face animation display method, device, system, server and readable storage medium |
-
2022
- 2022-02-21 CN CN202210156131.3A patent/CN114546558B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402603A (en) * | 2011-11-18 | 2012-04-04 | 百度在线网络技术(北京)有限公司 | Method and equipment for providing picture abstract information corresponding to thumbnail |
US20140104477A1 (en) * | 2012-10-16 | 2014-04-17 | Samsung Electronics Co., Ltd. | Method for generating thumbnail image and electronic device thereof |
CN106126108A (en) * | 2016-06-30 | 2016-11-16 | 维沃移动通信有限公司 | A kind of breviary map generalization method and mobile terminal |
CN107509038A (en) * | 2017-10-16 | 2017-12-22 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108363535A (en) * | 2018-02-09 | 2018-08-03 | 网易(杭州)网络有限公司 | Display methods, device, storage medium, processor and the terminal of picture |
CN108920048A (en) * | 2018-06-06 | 2018-11-30 | 武汉新迪数字工程系统有限公司 | Large scale drawing browsing method, system, server and computer readable storage medium |
CN109814784A (en) * | 2019-01-07 | 2019-05-28 | 平安科技(深圳)有限公司 | Picture rotation method, apparatus, computer equipment and storage medium |
CN110572723A (en) * | 2019-08-30 | 2019-12-13 | 华为终端有限公司 | Thumbnail generation method and related device |
CN112634131A (en) * | 2019-09-24 | 2021-04-09 | 脸谱公司 | Customized thumbnail image generation and selection for digital content |
CN112162814A (en) * | 2020-09-27 | 2021-01-01 | 维沃移动通信有限公司 | Image display method and device and electronic equipment |
CN113190893A (en) * | 2021-02-24 | 2021-07-30 | 万翼科技有限公司 | Method for determining steel bar attribute of component and related device |
CN112927241A (en) * | 2021-03-08 | 2021-06-08 | 携程旅游网络技术(上海)有限公司 | Picture capturing and thumbnail generating method, system, equipment and storage medium |
CN113298923A (en) * | 2021-05-31 | 2021-08-24 | 北京大学 | Method, device, equipment and storage medium for generating simulation electronic picture |
CN113327313A (en) * | 2021-06-18 | 2021-08-31 | 中德(珠海)人工智能研究院有限公司 | Face animation display method, device, system, server and readable storage medium |
Non-Patent Citations (1)
Title |
---|
张虹: "电厂继电保护整定系统图模库一体化工具的研发", 《中国优秀硕士学位论文全文数据库工程科技II辑》, no. 9, 15 September 2011 (2011-09-15), pages 042 - 524 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7472422B1 (en) | 2023-01-13 | 2024-04-23 | 株式会社Fact Base | Drawing management system, drawing management device, drawing management method |
CN115859413A (en) * | 2023-02-16 | 2023-03-28 | 北京探索者软件股份有限公司 | Data insertion method and device for CAD client, storage medium and electronic device |
CN115859413B (en) * | 2023-02-16 | 2023-11-28 | 北京探索者软件股份有限公司 | Data insertion method and device of CAD (computer aided design) client, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN114546558B (en) | 2024-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114546558B (en) | Drawing processing method, device, computer equipment and storage medium | |
US20170139824A1 (en) | Memory management and image display for mobile devices | |
CN111596911B (en) | Method, device, computer equipment and storage medium for generating control | |
CN118261133A (en) | File generation method, apparatus, computer device, storage medium, and program product | |
CN117055785A (en) | Method, device, equipment and storage medium for loading digital twin model | |
CN112612989A (en) | Data display method and device, computer equipment and storage medium | |
CN117557677A (en) | Chart drawing method, device and computer equipment | |
CN112748839A (en) | Picture processing method and device, computer readable storage medium and computer equipment | |
CN111159593A (en) | Method and device for generating flow chart, storage medium and electronic equipment | |
CN118264693A (en) | Remote control method, apparatus, device, medium, and computer program product | |
CN116309057B (en) | Remote sensing image splicing method, device, computer equipment and storage medium | |
CN116644444A (en) | File access method, device, computer equipment and storage medium thereof | |
CN115330921A (en) | Three-dimensional model demonstration method and device, computer equipment and storage medium | |
CN115016883A (en) | Color value switching method, device, system, computer equipment and storage medium | |
CN117435100A (en) | Element display method, device, computer equipment and storage medium | |
CN118153532A (en) | Method, device, equipment, medium and program product for displaying space chart information | |
CN117196924A (en) | Watermark adding method, watermark adding device, computer equipment and storage medium | |
CN115904900A (en) | Behavior data processing method and device, computer equipment and storage medium | |
CN117688638A (en) | Electronic drawing generation method, system, electronic device and storage medium | |
CN117632951A (en) | Algorithm flow arranging method, device, computer equipment and storage medium | |
CN116778084A (en) | Three-dimensional model determining method and system | |
CN117369895A (en) | Shortcut generation method, shortcut generation device, computer equipment and storage medium | |
CN118193083A (en) | Software resource loading method and device, computer equipment and storage medium | |
CN115437596A (en) | Screen mapping method, device and system | |
CN118642950A (en) | Black box testing method, device and equipment based on graphical user interface |
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 |