CN103823934A - Drawing comparison method and device during computer graphic plotting - Google Patents

Drawing comparison method and device during computer graphic plotting Download PDF

Info

Publication number
CN103823934A
CN103823934A CN201410069502.XA CN201410069502A CN103823934A CN 103823934 A CN103823934 A CN 103823934A CN 201410069502 A CN201410069502 A CN 201410069502A CN 103823934 A CN103823934 A CN 103823934A
Authority
CN
China
Prior art keywords
moulding
pixel group
version
pixel
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410069502.XA
Other languages
Chinese (zh)
Other versions
CN103823934B (en
Inventor
周彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN201410069502.XA priority Critical patent/CN103823934B/en
Publication of CN103823934A publication Critical patent/CN103823934A/en
Application granted granted Critical
Publication of CN103823934B publication Critical patent/CN103823934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

The invention discloses a drawing comparison method and device during computer graphic plotting. The drawing comparison method during computer graphic plotting comprises the steps that pixel groups of a first style in a first-version drawing are obtained; a list of pixel groups of a second style in a second-version drawing are found; whether the pixel groups identical to the pixel groups of the first style exist in the list is judged; if not, the pixel groups of the first style are marked, wherein the drawings comprise the first-version drawing and the second-version drawing, and the first-version drawing and the second-version drawing are correlated drawings. By means of the drawing comparison method and device during computer graphic plotting, the problem that according to the correlation technology, complete difference between the drawings is difficult to obtain is solved.

Description

Drawing comparative approach and device in computer drawing
Technical field
The present invention relates to computer realm, in particular to drawing comparative approach and device in a kind of computer drawing.
Background technology
In computer graphics process, unavoidably drawing is revised repeatedly, can produce like this drawing of different editions, thereby produce the relatively demand of the difference between the drawing of different editions.
For the difference between the drawing of comparison different editions, in correlation technique, a kind of drawing compare tool is provided, this drawing compare tool is according to predefined geometric properties (as the geometric position of moulding, color, line style etc.), moulding in traversal drawing, the relatively difference between the moulding in the drawing of different editions.But this drawing compare tool is difficult to obtain the complete difference between drawing, this is because it is difficult to obtain the geometric properties of all moulding.For example, for the self-defining moulding of third party, although can be broken up to obtain geometric properties, but the self-defining moulding of not every third party can be broken up.
In addition, in correlation technique, this drawing compare tool can also be according to predefined handle or mark, handle or the mark of the moulding in traversal drawing, the relatively difference between the moulding in the drawing of different editions.But this drawing compare tool is also difficult to obtain the complete difference between drawing, whether can this be because by handle or identify unique definite moulding and exist external reference relevant in drawing, if there is external reference in drawing, cannot or identify the moulding in unique definite drawing by handle, if there is not external reference in drawing, can or identify the moulding in unique definite drawing by handle.For example, in the time that drawing A is presented in drawing B in the mode of external reference, due to drawing A and drawing B separate, therefore in drawing A and drawing B, may there is moulding handle or the mark of repetition, the handle of repetition or mark can not unique definite moulding.
For the problem that is difficult to obtain the complete difference between drawing in correlation technique, effective solution is not yet proposed at present.
Summary of the invention
Fundamental purpose of the present invention is to provide drawing comparative approach and the device in a kind of computer drawing, to solve the problem that is difficult to obtain the complete difference between drawing in correlation technique.
To achieve these goals, according to an aspect of the present invention, provide the comparative approach of the drawing in a kind of computer drawing.The method comprises: the pixel group of obtaining the first moulding in first version drawing; Search the pixel Groups List of the second moulding in the second version drawing; Judge and in list, whether have the pixel group identical with the pixel group of the first moulding; And if judge and do not have the pixel group identical with the pixel group of the first moulding in list, the pixel group of the first moulding is carried out to mark processing, wherein, first version drawing and the second version drawing, first version drawing is associated drawing with the second version drawing.
Further, after judging and whether having the pixel group identical with the pixel group of the first moulding in list, this drawing comparative approach also comprises: do not have the pixel group identical with the pixel group of the first moulding if judged in list, obtain the pixel group of the first moulding and the first incidence relation of the first moulding; Search first moulding corresponding to pixel group of the first moulding based on the first incidence relation; The first moulding finding is carried out to mark processing.
Further, before obtaining the pixel group of the first moulding and the first incidence relation of the first moulding, this drawing comparative approach also comprises: generate the pixel group of the first moulding and the first incidence relation of the first moulding.
Further, before obtaining the pixel of the first moulding in first version drawing, this drawing comparative approach also comprises: the first moulding in traversal first version drawing; Generate the pixel group of the first moulding; Travel through the second moulding in the second version drawing; And the pixel group of generation the second moulding.
Further, the pixel group of generation the first moulding comprises: mapping software front end receives the order of opening first version drawing; Mapping software front end is opened first version drawing based on order; Obtain displayable moulding in the first version drawing of opening, wherein, be displayablely shaped to the first moulding; The first moulding in traversal first version drawing; And generate the pixel group of the first moulding by drawing the first moulding.
To achieve these goals, according to a further aspect in the invention, provide the comparison means of the drawing in a kind of computer drawing.This device comprises: the first acquiring unit, for obtaining the pixel group of the first moulding of first version drawing; First searches unit, for searching the pixel Groups List of the second moulding of the second version drawing; Judging unit, for judging whether list exists the pixel group identical with the pixel group of the first moulding; And first indexing unit, if there is not the pixel group identical with the pixel group of the first moulding for judging list, the pixel group of the first moulding is carried out to mark processing, wherein, drawing comprises first version drawing and the second version drawing, and first version drawing is associated drawing with the second version drawing.
Further, this drawing comparison means also comprises: second acquisition unit, for after judging whether list exists the pixel group identical with the pixel group of the first moulding, if judge in list and do not have the pixel group identical with the pixel group of the first moulding, obtain the pixel group of the first moulding and the first incidence relation of the first moulding; Second searches unit, for search first moulding corresponding to pixel group of the first moulding based on the first incidence relation; The second indexing unit, for carrying out mark processing to the first moulding finding.
Further, this drawing comparison means also comprises: the first generation unit, for before obtaining the pixel group of the first moulding and the first incidence relation of the first moulding, generates the pixel group of the first moulding and the first incidence relation of the first moulding.
Further, this drawing comparison means also comprises: the first traversal unit, and for before obtaining the pixel of the first moulding of first version drawing, the first moulding in traversal first version drawing; The second generation unit, for generating the pixel group of the first moulding; The second traversal unit, for traveling through the second moulding of the second version drawing; And the 3rd generation unit, for generating the pixel group of the second moulding.
Further, the second generation unit comprises: receiver module, receives the order of opening first version drawing for mapping software front end; Open module, open first version drawing for mapping software front end based on order; Acquisition module, for obtaining the displayable moulding of first version drawing of opening, wherein, is displayablely shaped to the first moulding; Spider module, for traveling through the first moulding of first version drawing; And generation module, for generate the pixel group of the first moulding by drawing the first moulding.
By the present invention, adopt the pixel group of obtaining the first moulding in first version drawing; Search the pixel Groups List of the second moulding in the second version drawing; Judge and in list, whether have the pixel group identical with the pixel group of the first moulding; And if judge and do not have the pixel group identical with the pixel group of the first moulding in list, the pixel group of the first moulding is carried out to mark processing, solve and in correlation technique, be difficult to obtain the problem of the complete difference between drawing, and then reached the effect that can compare the complete difference between drawing.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the schematic diagram of the drawing comparison means in the computer drawing of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the drawing comparison means in computer drawing according to the preferred embodiment of the invention;
Fig. 3 is according to the process flow diagram of the drawing comparative approach in the computer drawing of the embodiment of the present invention; And
Fig. 4 is the process flow diagram of the drawing comparative approach in computer drawing according to the preferred embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
In order to make those skilled in the art better understand the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Based on the embodiment in the present invention, do not make the every other embodiment obtaining under creative work prerequisite those of ordinary skills, all should belong to protection scope of the present invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and needn't be used for describing specific order or precedence.The data that should be appreciated that such use suitably can exchanged in situation, so as embodiments of the invention described herein can with except diagram here or describe those order enforcement.In addition, term " comprises " and " having " and their any distortion, is intended to be to cover not exclusive comprising.
According to embodiments of the invention, the comparison means of the drawing in a kind of computer drawing is provided, the drawing comparison means in this computer drawing is for comparing the complete difference between drawing.
Fig. 1 is according to the schematic diagram of the drawing comparison means in the computer drawing of the embodiment of the present invention.
As shown in Figure 1, this device comprises: the first acquiring unit 10, first is searched unit 20, judging unit 30 and the first indexing unit 40.
It should be noted that, drawing can comprise first version drawing and the second version drawing.First version drawing and the second version drawing can be associated diagram paper, and for example, first version drawing and the second version drawing are drawing time correlation.When first version drawing and the second version drawing are time correlation when drawing, first version drawing can be the drawing in the first period, and the second version drawing can be the drawing in the second period.Also can be the period before the second period the first period, and can be the period after the second period the first period.First version drawing can be one or multiple, and the second version drawing can be also one or multiple.In the present embodiment and following embodiment, the situation that is a drawing with first version drawing and the second version drawing is set forth below.
In addition, the fundamental element of selecting when moulding refers to the content of draw calculation machine drawing, i.e. moulding is the elementary cell that forms drawing, for example, moulding can be lines, the word etc. in drawing.
The first acquiring unit 10 is for obtaining the pixel group of the first moulding of first version drawing.
Particularly, can travel through the pixel Groups List of the first moulding in first version drawing, obtain the pixel group of the first moulding in first version drawing from this list, the list at this place can be first row table.
Wherein, the first moulding can be one or more first moulding, each the first moulding can corresponding one or more pixel, all pixels of each the first moulding can be stored in a row group, this row group is the pixel group of the first moulding, and all pixel groups of whole the first moulding can be stored in the first list.
It should be noted that, the whole pixels in the pixel group of each the first moulding have size information, scaling information and and group in relative position information between other pixels etc.Wherein, the whole pixels in the pixel group of each the first moulding can wait greatly, and have identical scaling and fixing relative position.Like this, after certain first moulding is determined, size, scaling and each pixel of each pixel in this first moulding information such as relative position in group is just definite, if and the first moulding changes, the size of each pixel in the first moulding, or scaling, or each pixel information such as relative position in group can change thereupon.Otherwise, by the size of each pixel in the first moulding, or scaling, or the variation of each pixel information generation such as relative position in group, can judge the first moulding variation has occurred.In sum, the variation of the first moulding is corresponding one by one with the variation of each pixel in the first moulding.
First searches unit 20 for searching the pixel Groups List of the second moulding of the second version drawing.
Particularly, can travel through the pixel group of the second moulding in the pixel Groups List of the second moulding in the second version drawing, search with the pixel Groups List of the second moulding in the second version drawing.Wherein, the pixel Groups List of the second moulding in the second version drawing can be secondary series table.
Wherein, the second moulding can be one or more second moulding, each the second moulding can corresponding one or more pixel, all pixels of each the second moulding can be stored in a row group, this row group is the pixel group of the second moulding, and all pixel groups of whole the second moulding can be stored in the second list.
It should be noted that, the whole pixels in the pixel group of each the second moulding have size information, scaling information and and group in relative position information between other pixels etc.Wherein, the whole pixels in the pixel group of each the second moulding can wait greatly, and have identical scaling and fixing relative position.Like this, after certain second moulding is determined, size, scaling and each pixel of each pixel in this second moulding information such as relative position in group is just definite, if and the second moulding changes, the size of each pixel in the second moulding, or scaling, or each pixel information such as relative position in group can change thereupon.Otherwise, by the size of each pixel in the second moulding, or scaling, or the variation of each pixel information generation such as relative position in group, can judge the second moulding variation has occurred.In sum, the variation of the second moulding is corresponding one by one with the variation of each pixel in the second moulding.
Judging unit 30 is for judging whether list exists the pixel group identical with the pixel group of the first moulding.
It should be noted that, for the each pixel in the pixel group of certain the first moulding, if can find identical with it pixel in the pixel group of certain the second moulding, and the number of the pixel in two pixel groups equates, show that the pixel group of the first moulding and the pixel group of the second moulding are identical pixel group, otherwise show that the pixel group of the first moulding and the pixel group of the second moulding are not identical pixel group.Wherein, the pixel of the pixel in the pixel group of this first moulding and the second moulding identical refer to these two pixels meet simultaneously wait large, there is identical scaling and the condition such as fixing relative position in pixel group separately.
Particularly, can judge in list, whether there be the pixel group identical with the pixel group of the first moulding by following steps: obtain first one by one the each pixel in the pixel group of the first moulding, secondly the pixel in the traversal pixel group of the second moulding and the pixel group of the second moulding, again judge in the pixel group of the second moulding and whether have the pixel identical with the pixel of the first moulding, if then judge in the pixel group of the second moulding and do not have the pixel identical with the pixel of the first moulding, judge and in list, do not have the pixel group identical with the pixel group of the first moulding, if judge and have the pixel identical with the pixel of the first moulding in the pixel group of the second moulding, whether the number that judges two pixels in pixel point range group equates, equate if judge the number of two pixels in pixel point range group, judge the existence pixel group identical with the pixel group of the first moulding in list.
If the first indexing unit 40 does not exist the pixel group identical with the pixel group of the first moulding for judging list, the pixel group of the first moulding is carried out to mark processing.
Can carry out mark processing to the pixel group of the first moulding in several ways, for example, can carry out painted mode by the pixel group to the first moulding the pixel group of the first moulding is carried out to mark processing.
Pass through the embodiment of the present invention, whether be the restriction of the self-defining moulding that can not break up of third party because the pixel group of the first moulding is not only subject to the first moulding, and be not subject to the drawing at the first moulding place whether to have the restriction of quoting outside drawing, thereby can reach the effect that compares the complete difference between drawing.In addition, after the complete difference comparing between drawing, can provide correct information to user, avoid causing economic loss owing to can not get the complete difference in drawing to user.
Fig. 2 is the schematic diagram of the drawing comparison means in computer drawing according to the preferred embodiment of the invention.
As shown in Figure 2, this embodiment can be used as preferred implementation embodiment illustrated in fig. 1, drawing comparison means in the computer drawing of this embodiment is searched unit 20, judging unit 30 and the first indexing unit 40 except the first acquiring unit 10, first that comprises the first embodiment, also comprises that second acquisition unit 50, second searches unit 60 and the second indexing unit 70.
The first acquiring unit 10, first is searched identical with the first embodiment of the effect of unit 20, judging unit 30 and the first indexing unit 40, does not repeat them here.
If second acquisition unit 50 does not exist the pixel group identical with the pixel group of the first moulding for judging list, obtain the pixel group of the first moulding and the first incidence relation of the first moulding.
The first incidence relation can be predefined incidence relation, and it can be stored in the first incidence relation list.Due to the first moulding corresponding to the pixel group of each the first moulding, therefore between the pixel group of the first moulding and its corresponding the first unique moulding, the first incidence relation is unique.Like this, the pixel group of the first moulding, the first moulding and the first incidence relation are can be one by one corresponding, thereby can obtain the first moulding with the first incidence relation of the pixel group of this first moulding and the pixel group of the first moulding and the first moulding.
Second searches unit 60 for search first moulding corresponding to pixel group of the first moulding based on the first incidence relation.
For example, mark ID that can be based on the first incidence relation, and by traveling through drawing to search the mark ID of the first moulding, judge that whether the mark ID of the first incidence relation is identical with the mark ID of the first moulding, if identical, this first first moulding corresponding to pixel group that is shaped to the first moulding finding, not identical else if, the first moulding corresponding to pixel group that this first moulding finding is not the first moulding.
The second indexing unit 70 is for carrying out mark processing to the first moulding finding.
The second indexing unit 70 can carry out mark processing to the first moulding in several ways, for example, can carry out mark processing to the first moulding by the first moulding is carried out to painted mode.
Pass through the embodiment of the present invention, whether be the restriction of the self-defining moulding that can not break up of third party because the pixel group of the first moulding is not only subject to the first moulding, and be not subject to the drawing at the first moulding place whether to have the restriction of quoting outside drawing, thereby can reach the effect that compares the complete difference between drawing.In addition, after the complete difference comparing between drawing, can provide correct information to user, avoid causing economic loss owing to can not get the complete difference in drawing to user.Meanwhile, due to the first moulding being shaped in first version drawing, therefore can in first version drawing, carry out mark processing to it, like this can be so that user searches the difference part between drawing.
Alternatively, in embodiments of the present invention, this drawing comparison means also comprises: the first generation unit.The first generation unit, for before obtaining the pixel group of the first moulding and the first incidence relation of the first moulding, generates the pixel group of the first moulding and the first incidence relation of the first moulding.Further, in embodiments of the present invention, this drawing comparison means also comprises the generation unit that generates the pixel group of the second moulding and the second incidence relation of the second moulding.Wherein, the second incidence relation can be stored in the second incidence relation list, and the first incidence relation list and the second incidence relation list can be different incidence relation lists.The first incidence relation can point to the first moulding for the pixel group by the first moulding; The second incidence relation can point to the second moulding for the pixel group by the second moulding.
Alternatively, in embodiments of the present invention, before obtaining the pixel of the first moulding in first version drawing, this drawing comparison means also comprises: the first traversal unit, the second generation unit, the second traversal unit and the 3rd generation unit.
The first traversal unit is for traveling through the first moulding of first version drawing.
Wherein, can travel through one or more first moulding in first version drawing.This one or more the first moulding can be whole the first moulding in whole drawing, or it can be part first moulding of user's appointment.And the first moulding on the arbitrary region that this part first moulding can be drawing, or it can be the first moulding in presumptive area.
The second generation unit is for generating the pixel group of the first moulding.
Particularly, can draw the first moulding by mapping software, thereby in the process of drawing the first moulding, generate the pixel group of the first moulding.Wherein, in the time that first is shaped to a moulding, can generate the pixel group of first moulding; In the time that first is shaped to multiple moulding, can generate the pixel group of multiple the first moulding, and each the first moulding is corresponding with the pixel group of its first moulding.For example, the first moulding can comprise straight line and a curve, can generate the pixel group of two the first moulding, and the pixel group of these two the first moulding is respectively straight line pixel group and curve pixel, like this, straight line is corresponding with straight line pixel group, and curve is corresponding with curve pixel group.Preferably, the pixel group of the first moulding generating can be stored in the first list.
The second traversal unit is for traveling through the second moulding of the second version drawing.
The process that travels through the second moulding in the second version drawing can be identical with the process of the first moulding in traversal first version drawing.Wherein, can travel through one or more second moulding in the second version drawing.This one or more the second moulding can be whole the second moulding in whole drawing, or it can be part second moulding of user's appointment.And the second moulding on the arbitrary region that this part second moulding can be drawing, or it can be the second moulding in presumptive area.
The 3rd generation unit is for generating the pixel group of the second moulding.
The process that generates the pixel group of the second moulding can be identical with the process of the pixel group of generation the first moulding.Particularly, can draw the second moulding by mapping software, thereby in the process of drawing the second moulding, generate the pixel group of the second moulding.Wherein, in the time that second is shaped to a moulding, can generate the pixel group of second moulding; In the time that second is shaped to multiple moulding, can generate the pixel group of multiple the second moulding, and each the second moulding is corresponding with the pixel group of its second moulding.For example, the second moulding can comprise straight line and a curve, can generate the pixel group of two the second moulding, and the pixel group of these two the second moulding is respectively straight line pixel group and curve pixel, like this, straight line is corresponding with straight line pixel group, and curve is corresponding with curve pixel group.Preferably, the pixel group of the second moulding generating can be stored in the second list.
Alternatively, in embodiments of the present invention, the second generation unit can comprise: receiver module, open module, acquisition module, spider module and generation module.Receiver module is for making mapping software front end receive the order of opening first version drawing.Open module for making mapping software front end open first version drawing based on order.Acquisition module is for obtaining the displayable moulding of first version drawing of opening, and wherein, is displayablely shaped to the first moulding, and displayable moulding refers to the moulding may be displayed in the first version drawing of opening.Spider module is for traveling through the first moulding of first version drawing.Generation module is for generating the pixel group of the first moulding by drawing the first moulding.
Wherein, the process of the first moulding in traversal first version drawing and the process that generates the pixel group of the first moulding by drawing the first moulding are set forth in the above-described embodiments, and at this, it is no longer repeated.
By the embodiment of the present invention, displayable the first moulding is generated to pixel group, can so that whether there are differences between corresponding displayable moulding for checking in the displayable moulding of drawing and other associated drawings.
According to embodiments of the invention, the comparative approach of the drawing in a kind of computer drawing is provided, the drawing comparative approach in this computer drawing is for comparing the complete difference between drawing.Drawing comparative approach in this computer drawing may operate on computer-processing equipment.It should be noted that, drawing comparative approach in the computer drawing that the embodiment of the present invention provides can be carried out by the drawing comparison means in the computer drawing of the embodiment of the present invention, and the drawing comparison means in the computer drawing of the embodiment of the present invention also can be for the drawing comparative approach in the computer drawing of the execution embodiment of the present invention.
Fig. 3 is according to the process flow diagram of the drawing comparative approach in the computer drawing of the embodiment of the present invention.
As shown in Figure 3, the method comprises that following step S302 is to step S308:
It should be noted that, drawing can comprise first version drawing and the second version drawing.First version drawing and the second version drawing can be associated diagram paper, and for example, first version drawing and the second version drawing are drawing time correlation.When first version drawing and the second version drawing are time correlation when drawing, first version drawing can be the drawing in the first period, and the second version drawing can be the drawing in the second period.Also can be the period before the second period the first period, and can be the period after the second period the first period.First version drawing can be one or multiple, and the second version drawing can be also one or multiple.In the present embodiment and following embodiment, the situation that is a drawing with first version drawing and the second version drawing is set forth below.
In addition, the fundamental element of selecting when moulding refers to the content of draw calculation machine drawing, i.e. moulding is the elementary cell that forms drawing, for example, moulding can be lines, the word etc. in drawing.
Step S302, obtains the pixel group of the first moulding in first version drawing.
Particularly, can travel through the pixel Groups List of the first moulding in first version drawing, obtain the pixel group of the first moulding in first version drawing from this list, the list at this place can be first row table.
Wherein, the first moulding can be one or more first moulding, each the first moulding can corresponding one or more pixel, all pixels of each the first moulding can be stored in a row group, this row group is the pixel group of the first moulding, and all pixel groups of whole the first moulding can be stored in the first list.
It should be noted that, the whole pixels in the pixel group of each the first moulding have size information, scaling information and and group in relative position information between other pixels etc.Wherein, the whole pixels in the pixel group of each the first moulding can wait greatly, and have identical scaling and fixing relative position.Like this, after certain first moulding is determined, size, scaling and each pixel of each pixel in this first moulding information such as relative position in group is just definite, if and the first moulding changes, the size of each pixel in the first moulding, or scaling, or each pixel information such as relative position in group can change thereupon.Otherwise, by the size of each pixel in the first moulding, or scaling, or the variation of each pixel information generation such as relative position in group, can judge the first moulding variation has occurred.In sum, the variation of the first moulding is corresponding one by one with the variation of each pixel in the first moulding.
Step S304, searches the pixel Groups List of the second moulding in the second version drawing.
Particularly, can travel through the pixel group of the second moulding in the pixel Groups List of the second moulding in the second version drawing, search with the pixel Groups List of the second moulding in the second version drawing.Wherein, the pixel Groups List of the second moulding in the second version drawing can be secondary series table.
Wherein, the second moulding can be one or more second moulding, each the second moulding can corresponding one or more pixel, all pixels of each the second moulding can be stored in a row group, this row group is the pixel group of the second moulding, and all pixel groups of whole the second moulding can be stored in the second list.
It should be noted that, the whole pixels in the pixel group of each the second moulding have size information, scaling information and and group in relative position information between other pixels etc.Wherein, the whole pixels in the pixel group of each the second moulding can wait greatly, and have identical scaling and fixing relative position.Like this, after certain second moulding is determined, size, scaling and each pixel of each pixel in this second moulding information such as relative position in group is just definite, if and the second moulding changes, the size of each pixel in the second moulding, or scaling, or each pixel information such as relative position in group can change thereupon.Otherwise, by the size of each pixel in the second moulding, or scaling, or the variation of each pixel information generation such as relative position in group, can judge the second moulding variation has occurred.In sum, the variation of the second moulding is corresponding one by one with the variation of each pixel in the second moulding.
Step S306, judges in list, whether there be the pixel group identical with the pixel group of the first moulding.
It should be noted that, for the each pixel in the pixel group of certain the first moulding, if can find identical with it pixel in the pixel group of certain the second moulding, and the number of the pixel in two pixel groups equates, show that the pixel group of the first moulding and the pixel group of the second moulding are identical pixel group, otherwise show that the pixel group of the first moulding and the pixel group of the second moulding are not identical pixel group.Wherein, the pixel of the pixel in the pixel group of this first moulding and the second moulding identical refer to these two pixels meet simultaneously wait large, there is identical scaling and the condition such as fixing relative position in pixel group separately.
Particularly, can judge in list, whether there be the pixel group identical with the pixel group of the first moulding by following steps: obtain first one by one the each pixel in the pixel group of the first moulding, secondly the pixel in the traversal pixel group of the second moulding and the pixel group of the second moulding, again judge in the pixel group of the second moulding and whether have the pixel identical with the pixel of the first moulding, if then judge in the pixel group of the second moulding and do not have the pixel identical with the pixel of the first moulding, judge and in list, do not have the pixel group identical with the pixel group of the first moulding, if judge and have the pixel identical with the pixel of the first moulding in the pixel group of the second moulding, whether the number that judges two pixels in pixel point range group equates, equate if judge the number of two pixels in pixel point range group, judge the existence pixel group identical with the pixel group of the first moulding in list.
, there is not the pixel group identical with the pixel group of the first moulding if judged in list in step S308, the pixel group of the first moulding is carried out to mark processing.
Can carry out mark processing to the pixel group of the first moulding in several ways, for example, can carry out painted mode by the pixel group to the first moulding the pixel group of the first moulding is carried out to mark processing.
Pass through the embodiment of the present invention, whether be the restriction of the self-defining moulding that can not break up of third party because the pixel group of the first moulding is not only subject to the first moulding, and be not subject to the drawing at the first moulding place whether to have the restriction of quoting outside drawing, thereby can reach the effect that compares the complete difference between drawing.In addition, after the complete difference comparing between drawing, can provide correct information to user, avoid causing economic loss owing to can not get the complete difference in drawing to user.
Fig. 4 is the process flow diagram of the drawing comparative approach in computer drawing according to the preferred embodiment of the invention.
As shown in Figure 4, the drawing comparative approach in this computer drawing comprises that following step S402 is to step S406 and step S414, and this embodiment can be used as preferred implementation embodiment illustrated in fig. 3.
Step S402 is to step S408, respectively with step S302 embodiment illustrated in fig. 3 to step S308, do not repeat them here.
, there is not the pixel group identical with the pixel group of the first moulding if judged in list in step S410, obtains the pixel group of the first moulding and the first incidence relation of the first moulding.
The first incidence relation can be predefined incidence relation, and it can be stored in the first incidence relation list.Due to the first moulding corresponding to the pixel group of each the first moulding, therefore the first incidence relation between the pixel group of the first moulding and its corresponding the first unique moulding is unique.Like this, the pixel group of the first moulding, the first moulding and the first incidence relation are can be one by one corresponding, thereby can obtain the first moulding with pixel group and first incidence relation of this first moulding.
Step S412, searches first moulding corresponding to pixel group of the first moulding based on the first incidence relation.
For example, mark ID that can be based on the first incidence relation, and by traveling through drawing to search the mark ID of the first moulding, judge that whether the mark ID of the first incidence relation is identical with the mark ID of the first moulding, if identical, this first first moulding corresponding to pixel group that is shaped to the first moulding finding, not identical else if, the first moulding corresponding to pixel group that this first moulding finding is not the first moulding.
Step S414, carries out mark processing to the first moulding finding.
Can carry out mark processing to the first moulding in several ways, for example, can carry out mark processing to the first moulding by the first moulding is carried out to painted mode.
Pass through the embodiment of the present invention, whether be the restriction of the self-defining moulding that can not break up of third party because the pixel group of the first moulding is not only subject to the first moulding, and be not subject to the drawing at the first moulding place whether to have the restriction of quoting outside drawing, thereby can reach the effect that compares the complete difference between drawing.In addition, after the complete difference comparing between drawing, can provide correct information to user, avoid causing economic loss owing to can not get the complete difference in drawing to user.Meanwhile, due to the first moulding being shaped in first version drawing, therefore can in first version drawing, carry out mark processing to it, like this can be so that user searches the difference part between drawing.
Alternatively, in embodiments of the present invention, before obtaining the pixel group of the first moulding and the first incidence relation of the first moulding, this drawing comparative approach also comprises: generate the pixel group of the first moulding and the first incidence relation of the first moulding.Further, in embodiments of the present invention, this drawing comparative approach also comprises: generate the pixel group of the second moulding and the second incidence relation of the second moulding.Wherein, the second incidence relation can be stored in the second incidence relation list, and the first incidence relation list and the second incidence relation list can be different incidence relation lists.The first incidence relation can point to the first moulding for the pixel group by the first moulding; The second incidence relation can point to the second moulding for the pixel group by the second moulding.
Alternatively, in embodiments of the present invention, before obtaining the pixel of the first moulding in first version drawing, this drawing comparative approach also comprises:
First, the first moulding in traversal first version drawing.
Wherein, can travel through one or more first moulding in first version drawing.This one or more the first moulding can be whole the first moulding in whole drawing, or it can be part first moulding of user's appointment.And the first moulding on the arbitrary region that this part first moulding can be drawing, or it can be the first moulding in presumptive area.
Secondly, generate the pixel group of the first moulding.
Particularly, can draw the first moulding by mapping software, thereby in the process of drawing the first moulding, generate the pixel group of the first moulding.Wherein, in the time that first is shaped to a moulding, can generate the pixel group of first moulding; In the time that first is shaped to multiple moulding, can generate the pixel group of multiple the first moulding, and each the first moulding is corresponding with the pixel group of its first moulding.For example, the first moulding can comprise straight line and a curve, can generate the pixel group of two the first moulding, and the pixel group of these two the first moulding is respectively straight line pixel group and curve pixel, like this, straight line is corresponding with straight line pixel group, and curve is corresponding with curve pixel group.Preferably, the pixel group of the first moulding generating can be stored in the first list.
Again, the second moulding in traversal the second version drawing.
The process that travels through the second moulding in the second version drawing can be identical with the process of the first moulding in traversal first version drawing.Wherein, can travel through one or more second moulding in the second version drawing.This one or more the second moulding can be whole the second moulding in whole drawing, or it can be part second moulding of user's appointment.And the second moulding on the arbitrary region that this part second moulding can be drawing, or it can be the second moulding in presumptive area.
Then, generate the pixel group of the second moulding.
The process that generates the pixel group of the second moulding can be identical with the process of the pixel group of generation the first moulding.Particularly, can draw the second moulding by mapping software, thereby in the process of drawing the second moulding, generate the pixel group of the second moulding.Wherein, in the time that second is shaped to a moulding, can generate the pixel group of second moulding; In the time that second is shaped to multiple moulding, can generate the pixel group of multiple the second moulding, and each the second moulding is corresponding with the pixel group of its second moulding.For example, the second moulding can comprise straight line and a curve, can generate the pixel group of two the second moulding, and the pixel group of these two the second moulding is respectively straight line pixel group and curve pixel, like this, straight line is corresponding with straight line pixel group, and curve is corresponding with curve pixel group.Preferably, the pixel group of the second moulding generating can be stored in the second list.
Alternatively, in embodiments of the present invention, can generate by following steps the pixel group of the first moulding: first, mapping software front end receives the order of opening first version drawing.Secondly, mapping software front end is opened first version drawing based on order.Again, obtain displayable moulding in the first version drawing of opening, wherein, be displayablely shaped to the first moulding, displayable moulding refers to the moulding may be displayed in the first version drawing of opening.Then, the first moulding in traversal first version drawing.Then, generate the pixel group of the first moulding by drawing the first moulding.
Wherein, the process of the first moulding in traversal first version drawing and the process that generates the pixel group of the first moulding by drawing the first moulding are set forth in the above-described embodiments, and at this, it is no longer repeated.
By the embodiment of the present invention, displayable the first moulding is generated to pixel group, can so that whether there are differences between corresponding displayable moulding for checking in the displayable moulding of drawing and other associated drawings.
It should be noted that, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the drawing comparative approach in computer drawing, is characterized in that, drawing comprises first version drawing and the second version drawing, and described first version drawing is associated drawing with described the second version drawing, and described drawing comparative approach comprises:
Obtain the pixel group of the first moulding in described first version drawing;
Search the pixel Groups List of the second moulding in described the second version drawing;
Judge and in described list, whether have the pixel group identical with the pixel group of described the first moulding; And
If judge in described list and do not have the pixel group identical with the pixel group of described the first moulding, the pixel group of described the first moulding is carried out to mark processing.
2. drawing comparative approach according to claim 1, is characterized in that, after judging and whether having the pixel group identical with the pixel group of described the first moulding in described list, described drawing comparative approach also comprises:
If judge in described list and do not have the pixel group identical with the pixel group of described the first moulding, obtain the pixel group of described the first moulding and the first incidence relation of described the first moulding;
Search described first moulding corresponding to pixel group of described the first moulding based on described the first incidence relation;
Described the first moulding finding is carried out to mark processing.
3. drawing comparative approach according to claim 2, is characterized in that, before obtaining the pixel group of described the first moulding and the first incidence relation of described the first moulding, described drawing comparative approach also comprises:
Generate the pixel group of described the first moulding and the first incidence relation of described the first moulding.
4. drawing comparative approach according to claim 1, is characterized in that, before obtaining the pixel of the first moulding in described first version drawing, described drawing comparative approach also comprises:
Travel through described the first moulding in described first version drawing;
Generate the pixel group of described the first moulding;
Travel through described the second moulding in described the second version drawing; And
Generate the pixel group of described the second moulding.
5. drawing comparative approach according to claim 4, is characterized in that, the pixel group that generates described the first moulding comprises:
Mapping software front end receives the order of opening described first version drawing;
Described mapping software front end is opened described first version drawing based on described order;
Obtain displayable moulding in the described first version drawing of opening, wherein, described displayable described the first moulding that is shaped to;
Travel through described the first moulding in described first version drawing; And
Generate the pixel group of described the first moulding by drawing described the first moulding.
6. the drawing comparison means in computer drawing, is characterized in that, drawing comprises first version drawing and the second version drawing, and described first version drawing is associated drawing with described the second version drawing, and described drawing comparison means comprises:
The first acquiring unit, for obtaining the pixel group of the first moulding of described first version drawing;
First searches unit, for searching the pixel Groups List of the second moulding of described the second version drawing;
Judging unit, for judging whether described list exists the pixel group identical with the pixel group of described the first moulding; And
The first indexing unit, if there is not the pixel group identical with the pixel group of described the first moulding for judging described list, carries out mark processing to the pixel group of described the first moulding.
7. drawing comparison means according to claim 6, is characterized in that, also comprises:
Second acquisition unit, for after judging whether described list exists the pixel group identical with the pixel group of described the first moulding, if judge in described list and do not have the pixel group identical with the pixel group of described the first moulding, obtain the pixel group of described the first moulding and the first incidence relation of described the first moulding;
Second searches unit, for search described first moulding corresponding to pixel group of described the first moulding based on described the first incidence relation;
The second indexing unit, for carrying out mark processing to described the first moulding finding.
8. drawing comparison means according to claim 7, is characterized in that, also comprises:
The first generation unit, for before obtaining the pixel group of described the first moulding and the first incidence relation of described the first moulding, generates the pixel group of described the first moulding and the first incidence relation of described the first moulding.
9. drawing comparison means according to claim 6, is characterized in that, also comprises:
The first traversal unit, for before obtaining the pixel of the first moulding of described first version drawing, travels through described the first moulding in described first version drawing;
The second generation unit, for generating the pixel group of described the first moulding;
The second traversal unit, for traveling through described second moulding of described the second version drawing; And
The 3rd generation unit, for generating the pixel group of described the second moulding.
10. drawing comparison means according to claim 9, is characterized in that, described the second generation unit comprises:
Receiver module, receives the order of opening described first version drawing for mapping software front end;
Open module, open described first version drawing for described mapping software front end based on described order;
Acquisition module, for obtaining the displayable moulding of described first version drawing of opening, wherein, described displayable described the first moulding that is shaped to;
Spider module, for traveling through described first moulding of described first version drawing; And
Generation module, for generating the pixel group of described the first moulding by drawing described the first moulding.
CN201410069502.XA 2014-02-27 2014-02-27 Drawing comparative approach and device in computer drawing Active CN103823934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410069502.XA CN103823934B (en) 2014-02-27 2014-02-27 Drawing comparative approach and device in computer drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410069502.XA CN103823934B (en) 2014-02-27 2014-02-27 Drawing comparative approach and device in computer drawing

Publications (2)

Publication Number Publication Date
CN103823934A true CN103823934A (en) 2014-05-28
CN103823934B CN103823934B (en) 2017-10-27

Family

ID=50758994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410069502.XA Active CN103823934B (en) 2014-02-27 2014-02-27 Drawing comparative approach and device in computer drawing

Country Status (1)

Country Link
CN (1) CN103823934B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503283A (en) * 2016-09-09 2017-03-15 武汉开目信息技术股份有限公司 A kind of two-dimentional drawing intelligence comparative approach and device
CN109213484A (en) * 2018-08-20 2019-01-15 北京知本源信息技术有限公司 Online Collaborative Design figure condition managing device and method
CN109271159A (en) * 2018-08-20 2019-01-25 北京知本源信息技术有限公司 The online cooperation device of tree-shaped logical formula and method
CN112100795A (en) * 2019-06-17 2020-12-18 北京广联达云图梦想科技有限公司 Method and device for comparing computer aided design drawings
CN112861713A (en) * 2021-02-06 2021-05-28 贵州博汇云技术开发有限公司 Large-scale drawing multi-local amplification comparison analysis system
CN113361842A (en) * 2020-03-06 2021-09-07 横河电机株式会社 Drawing management device, drawing management system, and drawing management method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1421806A (en) * 2001-11-27 2003-06-04 英业达股份有限公司 Computer aided circuit design and topological design
US20050216873A1 (en) * 2004-03-23 2005-09-29 Raminderpal Singh Method of checking the layout versus the schematic of multi-fingered MOS transistor layouts using a sub-circuit based extraction
CN1776742A (en) * 2005-12-16 2006-05-24 北京中星微电子有限公司 Method for detecting image problem
CN101630335A (en) * 2008-07-18 2010-01-20 纬衡浩建科技(深圳)有限公司 Method for comparing similarity and difference between drawings
CN102128628A (en) * 2010-01-19 2011-07-20 北京四维图新科技股份有限公司 Difference analysis method and difference analysis device for electronic maps
CN102622463A (en) * 2012-01-05 2012-08-01 山东电力工程咨询院有限公司 Drawing-model uniformity based method for automatic check of design drawings

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1421806A (en) * 2001-11-27 2003-06-04 英业达股份有限公司 Computer aided circuit design and topological design
US20050216873A1 (en) * 2004-03-23 2005-09-29 Raminderpal Singh Method of checking the layout versus the schematic of multi-fingered MOS transistor layouts using a sub-circuit based extraction
CN1776742A (en) * 2005-12-16 2006-05-24 北京中星微电子有限公司 Method for detecting image problem
CN101630335A (en) * 2008-07-18 2010-01-20 纬衡浩建科技(深圳)有限公司 Method for comparing similarity and difference between drawings
CN102128628A (en) * 2010-01-19 2011-07-20 北京四维图新科技股份有限公司 Difference analysis method and difference analysis device for electronic maps
CN102622463A (en) * 2012-01-05 2012-08-01 山东电力工程咨询院有限公司 Drawing-model uniformity based method for automatic check of design drawings

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭裴 等: "CAD图纸自动比对算法研究", 《电子技术》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503283A (en) * 2016-09-09 2017-03-15 武汉开目信息技术股份有限公司 A kind of two-dimentional drawing intelligence comparative approach and device
CN109213484A (en) * 2018-08-20 2019-01-15 北京知本源信息技术有限公司 Online Collaborative Design figure condition managing device and method
CN109271159A (en) * 2018-08-20 2019-01-25 北京知本源信息技术有限公司 The online cooperation device of tree-shaped logical formula and method
CN112100795A (en) * 2019-06-17 2020-12-18 北京广联达云图梦想科技有限公司 Method and device for comparing computer aided design drawings
CN112100795B (en) * 2019-06-17 2024-01-05 北京鸿鹄云图科技股份有限公司 Computer aided design drawing comparison method and device
CN113361842A (en) * 2020-03-06 2021-09-07 横河电机株式会社 Drawing management device, drawing management system, and drawing management method
CN113361842B (en) * 2020-03-06 2024-06-14 横河电机株式会社 Drawing management device, drawing management system and drawing management method
CN112861713A (en) * 2021-02-06 2021-05-28 贵州博汇云技术开发有限公司 Large-scale drawing multi-local amplification comparison analysis system

Also Published As

Publication number Publication date
CN103823934B (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN103823934A (en) Drawing comparison method and device during computer graphic plotting
CN107423322B (en) Method and device for displaying label nesting hierarchy of webpage
CN105205180B (en) A kind of evaluation method and device of knowledge mapping
CN105740402A (en) Method and device for acquiring semantic labels of digital images
CN109815932A (en) A kind of paper corrects method, apparatus, electronic equipment and storage medium
CN110225453A (en) Mobile terminal locating method, device, electronic equipment and storage medium
CN106603545A (en) Verification method based on interaction operation, server, terminal equipment and system
Carmo et al. Branch and bound algorithms for the maximum clique problem under a unified framework
CN103761249A (en) Data importing method and system based on data matching
CN104156725B (en) Novel Chinese character stroke combination method based on angle between stroke segments
CN106708813A (en) Title processing method and equipment
CN112070456A (en) Task issuing method, terminal equipment, robot and storage medium
Baskoro et al. The partition dimension of a subdivision of a complete graph
CN105681199A (en) Method and device for processing message data in vehicular bus
CN114332880A (en) Text detection method, device, equipment and storage medium
CN102722530A (en) Community detection method in complex network
CN105302715B (en) The acquisition methods and device of application program user interface
CN105323141B (en) A kind of information transferring method, system and mobile terminal based on image recognition
CN103020651B (en) Method for detecting sensitive information of microblog pictures
CN105930763B (en) The method and product of handwritten stroke grouping based on stroke property
Hung et al. QUBLE: blending visual subgraph query formulation with query processing on large networks
CN103745071A (en) Data processing method and device for labeled product manufacturing information
KR20220034077A (en) Training method for character generation model, character generation method, apparatus and device
CN110991050B (en) CAD (computer-aided design) image stacking method and related product
CN106910394B (en) Dynamic geometric multi-coordinate system implementation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant