CN103823934B - Drawing comparative approach and device in computer drawing - Google Patents
Drawing comparative approach and device in computer drawing Download PDFInfo
- Publication number
- CN103823934B CN103823934B CN201410069502.XA CN201410069502A CN103823934B CN 103823934 B CN103823934 B CN 103823934B CN 201410069502 A CN201410069502 A CN 201410069502A CN 103823934 B CN103823934 B CN 103823934B
- Authority
- CN
- China
- Prior art keywords
- moulding
- pixel group
- pixel
- version
- group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Image Generation (AREA)
Abstract
The invention discloses the drawing comparative approach in a kind of computer drawing and device.Drawing comparative approach in the computer drawing includes:Obtain the pixel group of the first moulding in first version drawing;Search the pixel Groups List of the second moulding in second edition drawing;Judge in list with the presence or absence of the pixel group identical pixel group with the first moulding;And if it is judged that the pixel group identical pixel group with the first moulding is not present in list, then processing is marked in the pixel group to the first moulding, wherein, drawing includes first version drawing and second edition drawing, and first version drawing is to associate drawing with second edition drawing.By the present invention, the problem of being difficult to obtain the entire difference between drawing in correlation technique is solved.
Description
Technical field
The present invention relates to computer realm, in particular to the drawing comparative approach in a kind of computer drawing
And device.
Background technology
During computer graphics, drawing is changed repeatedly unavoidably, the drawing of different editions can be so produced, from
And generate the demand of the difference between the drawing for comparing different editions.
The difference between drawing in order to compare different editions, compares instrument there is provided a kind of drawing in the related art,
The drawing compares instrument according to geometric properties set in advance(The geometric position of such as moulding, color, line style), travel through in drawing
Moulding, compare the difference between the moulding in the drawing of different editions.But the drawing compares instrument and is difficult to obtain between drawing
Entire difference because its geometric properties for being difficult to obtain all moulding.For example, for the customized moulding of third party,
Although can be broken up to obtain geometric properties, but the customized moulding of not every third party can break up.
In addition, in the related art, the drawing compares instrument can also be according to handle set in advance or mark, traversing graph
The handle or mark of moulding in paper, compare the difference between the moulding in the drawing of different editions.But the drawing compares work
Can tool be also difficult to obtain the entire difference between drawing, because uniquely determine moulding with being in drawing by handle or mark
No to there is external reference relevant, if there is external reference in drawing, can not be uniquely determined by handle or mark in drawing
Moulding, if external reference is not present in drawing, moulding in drawing can be uniquely determined by handle or mark.Example
Such as, when drawing A is shown in the way of external reference in drawing B, because drawing A and drawing B are separate, therefore drawing A
With the moulding handle or mark that repetition is there may be in drawing B, moulding cannot be uniquely determined in the handle or mark repeated.
The problem of for being difficult to obtain the entire difference between drawing in correlation technique, effective solution party is not yet proposed at present
Case.
The content of the invention
It is a primary object of the present invention to provide drawing comparative approach and device in a kind of computer drawing, to solve
The problem of certainly being difficult to obtain the entire difference between drawing in correlation technique.
To achieve these goals, according to an aspect of the invention, there is provided a kind of figure in computer drawing
Paper comparative approach.This method includes:Obtain the pixel group of the first moulding in first version drawing;Search second edition drawing
In the second moulding pixel Groups List;Judge in list with the presence or absence of the pixel group identical pixel with the first moulding
Group;And if it is judged that the pixel group identical pixel group with the first moulding is not present in list, then to the first moulding
Pixel group processing is marked, wherein, first version drawing and second edition drawing, first version drawing and the second edition
Drawing is association drawing.
Further, after in judging list with the presence or absence of the pixel group identical pixel group with the first moulding,
The drawing comparative approach also includes:If it is judged that the pixel group identical pixel with the first moulding is not present in list
Group, then obtain the pixel group of the first moulding and the first incidence relation of the first moulding;First is searched based on the first incidence relation
Corresponding first moulding of pixel group of moulding;Processing is marked to the first moulding found.
Further, before the pixel group and the first incidence relation of the first moulding for obtaining the first moulding, the drawing
Comparative approach also includes:Generate the pixel group of the first moulding and the first incidence relation of the first moulding.
Further, before the pixel of the first moulding in obtaining first version drawing, the drawing comparative approach is also
Including:Travel through the first moulding in first version drawing;Generate the pixel group of the first moulding;Travel through in second edition drawing
Second moulding;And the pixel group of the second moulding of generation.
Further, the pixel group of the first moulding of generation includes:Mapping software front end receiver opens first version drawing
Order;Mapping software front end is based on order and opens first version drawing;Obtain displayable in the first version drawing opened
Moulding, wherein, displayable moulding is the first moulding;Travel through the first moulding in first version drawing;And by drawing the
One moulding generates the pixel group of the first moulding.
To achieve these goals, there is provided the figure in a kind of computer drawing according to another aspect of the present invention
Paper comparison means.The device includes:First acquisition unit, the pixel for obtaining the first moulding in first version drawing
Group;First searching unit, the pixel Groups List for searching the second moulding in second edition drawing;Judging unit, is used for
Judge in list with the presence or absence of the pixel group identical pixel group with the first moulding;And first indexing unit, for such as
Fruit is judged the pixel group identical pixel group with the first moulding is not present in list, then to the pixel group of the first moulding
Processing is marked, wherein, drawing includes first version drawing and second edition drawing, first version drawing and second edition figure
Paper is association drawing.
Further, the drawing comparison means also includes:Second acquisition unit, in list is judged whether there is with
After the pixel group identical pixel group of first moulding, if it is judged that the pixel with the first moulding is not present in list
Group identical pixel group, then obtain the pixel group of the first moulding and the first incidence relation of the first moulding;Second searches list
Member, corresponding first moulding of pixel group for searching the first moulding based on the first incidence relation;Second indexing unit, is used for
Processing is marked to the first moulding found.
Further, the drawing comparison means also includes:First generation unit, for obtaining the pixel of the first moulding
Group with before the first incidence relation of the first moulding, generate the first moulding pixel group associated with the first of the first moulding
System.
Further, the drawing comparison means also includes:First Traversal Unit, in first version drawing is obtained
Before the pixel of first moulding, the first moulding in traversal first version drawing;Second generation unit, makes for generating first
The pixel group of type;Second Traversal Unit, for traveling through the second moulding in second edition drawing;And the 3rd generation unit,
Pixel group for generating the second moulding.
Further, the second generation unit includes:Receiving module, first version figure is opened for mapping software front end receiver
The order of paper;Module is opened, being based on order for mapping software front end opens first version drawing;Acquisition module, for obtaining
Displayable moulding in the first version drawing of opening, wherein, displayable moulding is the first moulding;Spider module, for time
The first moulding gone through in first version drawing;And generation module, the picture for generating the first moulding by drawing the first moulding
Vegetarian refreshments group.
By the present invention, using the pixel group for obtaining the first moulding in first version drawing;Search second edition figure
The pixel Groups List of the second moulding in paper;Judge in list with the presence or absence of the pixel group identical pixel with the first moulding
Point group;And if it is judged that in the absence of the pixel group identical pixel group with the first moulding in list, then made to first
Processing is marked in the pixel group of type, solves the problem of being difficult to obtain the entire difference between drawing in correlation technique, and then
The effect of the entire difference between drawing can be compared by having reached.
Brief description of the drawings
The accompanying drawing for constituting the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the drawing comparison means in computer drawing according to embodiments 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 the flow chart of the drawing comparative approach in computer drawing according to embodiments of the present invention;And
Fig. 4 is the flow chart of the drawing comparative approach in computer drawing according to the preferred embodiment of the invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art is better understood from the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, in ordinary skill
Personnel do not make the every other embodiment obtained under the premise of creative work, should all belong to the protection model of the present invention
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included.
There is provided the drawing comparison means in a kind of computer drawing, the computer for embodiments in accordance with the present invention
Drawing comparison means in graphic plotting is used to compare the entire difference between drawing.
Fig. 1 is the schematic diagram of the drawing comparison means in computer drawing according to embodiments of the present invention.
As shown in figure 1, the device includes:First acquisition unit 10, the first searching unit 20, judging unit 30 and first are marked
Remember unit 40.
It should be noted that drawing can include first version drawing and second edition drawing.First version drawing and
Two version drawings can be associated diagram paper, for example, first version drawing and second edition drawing are association in time drawing.When first
When version drawing and second edition drawing is association in time drawings, first version drawing can be the drawing in the first period, second
Version drawing can be the drawing in the second period.First period can also be the second period before period, the first period can be with
For the period after the second period.First version drawing can for one or multiple, second edition drawing can also be one
Or multiple.It will be one with first version drawing and second edition drawing below in the present embodiment and following embodiments
The situation of drawing is illustrated.
In addition, moulding refers to that the basic element selected during the content of draw calculation machine drawing, i.e. moulding are to constitute drawing
Elementary cell, for example, moulding can be lines, word in drawing etc..
First acquisition unit 10 is used for the pixel group for obtaining the first moulding in first version drawing.
Specifically, the pixel Groups List of the first moulding in first version drawing can be traveled through, is obtained from the list
The pixel group of the first moulding in first version drawing, the list at this can be first list.
Wherein, the first moulding can be one or more first moulding, each first moulding can correspond to one or
Multiple pixels, all pixels point of each first moulding can be stored in a row group, and the row group is the first moulding
Pixel group, all pixels point group of whole first moulding can be stored in first list.
It should be noted that whole pixels in the pixel group of each first moulding have size information, scaling
Percent information and the relative position information between other pixels in group etc..Wherein, in the pixel group of each first moulding
Whole pixels can wait greatly, and with identical scaling and fixed relative position.So, when some first is made
After type is determined, size, scaling and each pixel of each pixel in first moulding are in the interior relative position of group
Determined that etc. information, and if the first moulding changes, the size of each pixel in the first moulding, or pantograph ratio
Example, or each pixel information such as relative position in group can change therewith.Conversely, passing through each pixel in the first moulding
The size of point, either scaling or each pixel change that the information such as relative position occurs in group, it can be determined that go out
First moulding is changed.In summary, the first moulding change with the first moulding in each pixel change one by one
Correspondence.
First searching unit 20 is used for the pixel Groups List for searching the second moulding in second edition drawing.
Specifically, the picture of the second moulding in the pixel Groups List of the second moulding in second edition drawing can be traveled through
Vegetarian refreshments group, is searched with the pixel Groups List to the second moulding in second edition drawing.Wherein, in second edition drawing
The pixel Groups List of the second moulding can be second list.
Wherein, the second moulding can be one or more second moulding, each second moulding can correspond to one or
Multiple pixels, all pixels point of each second moulding can be stored in a row group, and the row group is the second moulding
Pixel group, all pixels point group of whole second moulding can be stored in second list.
It should be noted that whole pixels in the pixel group of each second moulding have size information, scaling
Percent information and the relative position information between other pixels in group etc..Wherein, in the pixel group of each second moulding
Whole pixels can wait greatly, and with identical scaling and fixed relative position.So, when some second is made
After type is determined, size, scaling and each pixel of each pixel in second moulding are in the interior relative position of group
Determined that etc. information, and if the second moulding changes, the size of each pixel in the second moulding, or pantograph ratio
Example, or each pixel information such as relative position in group can change therewith.Conversely, passing through each pixel in the second moulding
The size of point, either scaling or each pixel change that the information such as relative position occurs in group, it can be determined that go out
Second moulding is changed.In summary, the second moulding change with the second moulding in each pixel change one by one
Correspondence.
Judging unit 30 is used to judge in list with the presence or absence of the pixel group identical pixel group with the first moulding.
It should be noted that for each pixel in the pixel group of some the first moulding, if can be at some
The number phase of the pixel in same pixel, and two pixel groups is found in the pixel group of second moulding
Deng the pixel group for then showing the pixel group of the first moulding and the second moulding is identical pixel group, otherwise shows first
The pixel group of moulding and the pixel group of the second moulding are the pixel group differed.Wherein, the pixel of first moulding
Pixel in group is identical with the pixel of the second moulding refer to the two pixels and meanwhile meet etc. it is big, with identical scaling
The condition such as ratio and fixed relative position in respective pixel group.
Specifically, it can be judged by following steps in list with the presence or absence of the pixel group identical picture with the first moulding
Vegetarian refreshments group:Obtain each pixel in the pixel group of the first moulding one by one first, secondly travel through the pixel of the second moulding
Pixel in group and the pixel group of the second moulding, judges to whether there is in the pixel group of the second moulding again and is made with first
The pixel identical pixel of type, then if it is determined that the pixel with the first moulding is not present in the pixel group of the second moulding
Point identical pixel, then judge the pixel group identical pixel group with the first moulding is not present in list;If sentenced
There is the pixel identical pixel with the first moulding in the pixel group of disconnected second moulding, then judge two pixel point range groups
In pixel number it is whether equal, if it is judged that the number of the pixel in two pixel point range groups is equal, then judge
Go out in list the pixel group identical pixel group existed with the first moulding.
First indexing unit 40 is used for if it is judged that the pixel group identical picture with the first moulding is not present in list
Vegetarian refreshments group, then the pixel group to the first moulding processing is marked.
Processing is marked in pixel group that can be in several ways to the first moulding, for example, can be by first
Processing is marked to the pixel group of the first moulding in the mode that the pixel group of moulding is coloured.
By the embodiment of the present invention, due to the first moulding pixel group not only not by the first moulding whether be third party from
The limitation of the moulding that can not be broken up of definition, and not the limiting with the presence or absence of the outside drawing of reference by the drawing where the first moulding
System, thus the effect for comparing the entire difference between drawing can be reached.In addition, the entire difference between drawing is compared
Afterwards, it may provide the user with correct information, it is to avoid cause economy to user due to cannot get the entire difference in drawing
Loss.
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 Fig. 2 the embodiment can as embodiment illustrated in fig. 1 preferred embodiment, the calculating of the embodiment
Drawing comparison means in machine graphic plotting except the first acquisition unit 10 including first embodiment, the first searching unit 20,
Outside the indexing unit 40 of judging unit 30 and first, in addition to second acquisition unit 50, the second searching unit 60 and the second mark
Unit 70.
First acquisition unit 10, the first searching unit 20, the effect and first of the indexing unit 40 of judging unit 30 and first
It is identical in embodiment, it will not be repeated here.
Second acquisition unit 50 is used for if it is judged that the pixel group identical picture with the first moulding is not present in list
Vegetarian refreshments group, then obtain the pixel group of the first moulding and the first incidence relation of the first moulding.
First incidence relation can be incidence relation set in advance, and it can be stored in the first incidence relation list
In.Due to unique first moulding of pixel group correspondence of each first moulding, therefore the pixel group of the first moulding is right with it
The first incidence relation is unique between unique first moulding answered.So, the pixel group of the first moulding, the first moulding and
First incidence relation can be corresponded, thus pixel group and the pixel group and first of the first moulding with first moulding
First incidence relation of moulding can obtain the first moulding.
Second searching unit 60 is used to make based on the pixel group corresponding first that the first incidence relation searches the first moulding
Type.
For example, can the mark ID based on the first incidence relation, and by traveling through drawing to search the mark of the first moulding
ID, judge the first incidence relation mark ID and the first moulding mark ID it is whether identical, if identical, this find
One moulding is corresponding first moulding of pixel group of the first moulding, else if differing, then first moulding found
It is not corresponding first moulding of pixel group of the first moulding.
Second indexing unit 70 is used to processing is marked to the first moulding found.
Processing can be marked to the first moulding in several ways in second indexing unit 70, for example, can be by right
Processing is marked to the first moulding in the mode that first moulding is coloured.
By the embodiment of the present invention, due to the first moulding pixel group not only not by the first moulding whether be third party from
The limitation of the moulding that can not be broken up of definition, and not the limiting with the presence or absence of the outside drawing of reference by the drawing where the first moulding
System, thus the effect for comparing the entire difference between drawing can be reached.In addition, the entire difference between drawing is compared
Afterwards, it may provide the user with correct information, it is to avoid cause economy to user due to cannot get the entire difference in drawing
Loss.Simultaneously as the first moulding is the moulding in first version drawing, therefore it can be carried out in first version drawing
Mark processing, can so search the difference part between drawing in order to user.
Alternatively, in embodiments of the present invention, the drawing comparison means also includes:First generation unit.First generation is single
Member is used for before the pixel group and the first incidence relation of the first moulding for obtaining the first moulding, generates the pixel of the first moulding
Point group and the first incidence relation of the first moulding.Further, in embodiments of the present invention, the drawing comparison means also includes life
Into the pixel group and the generation unit of the second incidence relation of the second moulding of the second moulding.Wherein, the second incidence relation can be with
It is stored in the second incidence relation list, and the first incidence relation list and the second incidence relation list can be different passes
Join relation list.First incidence relation can be used for pointing to the first moulding by the pixel group of the first moulding;Second incidence relation
It can be used for pointing to the second moulding by the pixel group of the second moulding.
Alternatively, in embodiments of the present invention, should before the pixel of the first moulding in obtaining first version drawing
Drawing comparison means also includes:First Traversal Unit, the second generation unit, the second Traversal Unit and the 3rd generation unit.
First Traversal Unit is used to travel through the first moulding in first version drawing.
Wherein it is possible to travel through one or more first moulding in first version drawing.This one or more first
Moulding can be all the first moulding in whole drawing, or it can be the moulding of part first that user specify.And the portion
It can be the first moulding on the arbitrary region of drawing to divide the first moulding, or it can be the first moulding in presumptive area.
Second generation unit is used for the pixel group for generating the first moulding.
Specifically, the first moulding can be drawn by mapping software, so as to generate the during the first moulding is drawn
The pixel group of one moulding.Wherein, when the first moulding is a moulding, the pixel group of first moulding can be generated;
When the first moulding is multiple moulding, the pixel group of multiple first moulding can be generated, and each first moulding with its
The pixel group of one moulding is corresponding.For example, the first moulding can include straight line and a curve, then two can be generated
The pixel group of first moulding, and the pixel group of two first moulding is respectively linear pixel point group and curve pixel
Point, so, straight line are corresponding with linear pixel point group, and curve is corresponding with curve pixel group.Preferably, can be by generation
The pixel group of first moulding is stored in first list.
Second Traversal Unit is used to travel through the second moulding in second edition drawing.
The process for traveling through the second moulding in second edition drawing can be with the first moulding in traversal first version drawing
Process it is identical.Wherein it is possible to travel through one or more second moulding in second edition drawing.This one or more
Two moulding can be all the second moulding in whole drawing, or it can be the moulding of part second that user specify.And be somebody's turn to do
The moulding of part second can be the second moulding on the arbitrary region of drawing, or it can make for second in presumptive area
Type.
3rd generation unit is used for the pixel group for generating the second moulding.
The process for generating the pixel group of the second moulding can be identical with the process for the pixel group for generating the first moulding.Tool
Body, the second moulding can be drawn by mapping software, so as to generate the picture of the second moulding during the second moulding is drawn
Vegetarian refreshments group.Wherein, when the second moulding is a moulding, the pixel group of second moulding can be generated;When the second moulding
During for multiple moulding, the pixel group of multiple second moulding, and the picture of each second moulding and its second moulding can be generated
Vegetarian refreshments group is corresponding.For example, the second moulding can include straight line and a curve, then two the second moulding can be generated
Pixel group, and the pixel group of two second moulding is respectively linear pixel point group and curve pixel, so, straight line
Corresponding with linear pixel point group, curve is corresponding with curve pixel group.Preferably, can be by the picture of the second moulding of generation
Vegetarian refreshments group is stored in second list.
Alternatively, in embodiments of the present invention, the second generation unit can include:Receiving module, opening module, acquisition
Module, spider module and generation module.Receiving module is used for the life for causing mapping software front end receiver to open first version drawing
Order.Opening module is used to cause mapping software front end to be based on order and open first version drawing.Acquisition module, which is used to obtain, to be opened
First version drawing in displayable moulding, wherein, displayable moulding is the first moulding, and displayable moulding refers to can be with
It is shown in the moulding in the first version drawing of opening.Spider module is used to travel through the first moulding in first version drawing.It is raw
It is used for the pixel group that the first moulding is generated by drawing the first moulding into module.
Wherein, travel through the process of the first moulding in first version drawing and pass through and draw the first moulding the first moulding of generation
The process of pixel group illustrated that it is no longer repeated herein in the above-described embodiments.
By the embodiment of the present invention, displayable first moulding is generated into pixel group, can be in order to for checking drawing
In in displayable moulding and other association drawings between corresponding displayable moulding with the presence or absence of difference.
There is provided the drawing comparative approach in a kind of computer drawing, the computer for embodiments in accordance with the present invention
Drawing comparative approach in graphic plotting is used to compare the entire difference between drawing.Drawing ratio in the computer drawing
It is may operate in compared with method on computer-processing equipment.It should be noted that the computer graphical that the embodiment of the present invention is provided
Drawing comparative approach in drafting can be held by the drawing comparison means in the computer drawing of the embodiment of the present invention
OK, the drawing comparison means in the computer drawing of the embodiment of the present invention can be used for performing the meter of the embodiment of the present invention
Drawing comparative approach in calculation machine graphic plotting.
Fig. 3 is the flow chart of the drawing comparative approach in computer drawing according to embodiments of the present invention.
As shown in figure 3, this method includes steps S302 to step S308:
It should be noted that drawing can include first version drawing and second edition drawing.First version drawing and
Two version drawings can be associated diagram paper, for example, first version drawing and second edition drawing are association in time drawing.When first
When version drawing and second edition drawing is association in time drawings, first version drawing can be the drawing in the first period, second
Version drawing can be the drawing in the second period.First period can also be the second period before period, the first period can be with
For the period after the second period.First version drawing can for one or multiple, second edition drawing can also be one
Or multiple.It will be one with first version drawing and second edition drawing below in the present embodiment and following embodiments
The situation of drawing is illustrated.
In addition, moulding refers to that the basic element selected during the content of draw calculation machine drawing, i.e. moulding are to constitute drawing
Elementary cell, for example, moulding can be lines, word in drawing etc..
Step S302, obtains the pixel group of the first moulding in first version drawing.
Specifically, the pixel Groups List of the first moulding in first version drawing can be traveled through, is obtained from the list
The pixel group of the first moulding in first version drawing, the list at this can be first list.
Wherein, the first moulding can be one or more first moulding, each first moulding can correspond to one or
Multiple pixels, all pixels point of each first moulding can be stored in a row group, and the row group is the first moulding
Pixel group, all pixels point group of whole first moulding can be stored in first list.
It should be noted that whole pixels in the pixel group of each first moulding have size information, scaling
Percent information and the relative position information between other pixels in group etc..Wherein, in the pixel group of each first moulding
Whole pixels can wait greatly, and with identical scaling and fixed relative position.So, when some first is made
After type is determined, size, scaling and each pixel of each pixel in first moulding are in the interior relative position of group
Determined that etc. information, and if the first moulding changes, the size of each pixel in the first moulding, or pantograph ratio
Example, or each pixel information such as relative position in group can change therewith.Conversely, passing through each pixel in the first moulding
The size of point, either scaling or each pixel change that the information such as relative position occurs in group, it can be determined that go out
First moulding is changed.In summary, the first moulding change with the first moulding in each pixel change one by one
Correspondence.
Step S304, searches the pixel Groups List of the second moulding in second edition drawing.
Specifically, the picture of the second moulding in the pixel Groups List of the second moulding in second edition drawing can be traveled through
Vegetarian refreshments group, is searched with the pixel Groups List to the second moulding in second edition drawing.Wherein, in second edition drawing
The pixel Groups List of the second moulding can be second list.
Wherein, the second moulding can be one or more second moulding, each second moulding can correspond to one or
Multiple pixels, all pixels point of each second moulding can be stored in a row group, and the row group is the second moulding
Pixel group, all pixels point group of whole second moulding can be stored in second list.
It should be noted that whole pixels in the pixel group of each second moulding have size information, scaling
Percent information and the relative position information between other pixels in group etc..Wherein, in the pixel group of each second moulding
Whole pixels can wait greatly, and with identical scaling and fixed relative position.So, when some second is made
After type is determined, size, scaling and each pixel of each pixel in second moulding are in the interior relative position of group
Determined that etc. information, and if the second moulding changes, the size of each pixel in the second moulding, or pantograph ratio
Example, or each pixel information such as relative position in group can change therewith.Conversely, passing through each pixel in the second moulding
The size of point, either scaling or each pixel change that the information such as relative position occurs in group, it can be determined that go out
Second moulding is changed.In summary, the second moulding change with the second moulding in each pixel change one by one
Correspondence.
Step S306, judges in list with the presence or absence of the pixel group identical pixel group with the first moulding.
It should be noted that for each pixel in the pixel group of some the first moulding, if can be at some
The number phase of the pixel in same pixel, and two pixel groups is found in the pixel group of second moulding
Deng the pixel group for then showing the pixel group of the first moulding and the second moulding is identical pixel group, otherwise shows first
The pixel group of moulding and the pixel group of the second moulding are the pixel group differed.Wherein, the pixel of first moulding
Pixel in group is identical with the pixel of the second moulding refer to the two pixels and meanwhile meet etc. it is big, with identical scaling
The condition such as ratio and fixed relative position in respective pixel group.
Specifically, it can be judged by following steps in list with the presence or absence of the pixel group identical picture with the first moulding
Vegetarian refreshments group:Obtain each pixel in the pixel group of the first moulding one by one first, secondly travel through the pixel of the second moulding
Pixel in group and the pixel group of the second moulding, judges to whether there is in the pixel group of the second moulding again and is made with first
The pixel identical pixel of type, then if it is determined that the pixel with the first moulding is not present in the pixel group of the second moulding
Point identical pixel, then judge the pixel group identical pixel group with the first moulding is not present in list;If sentenced
There is the pixel identical pixel with the first moulding in the pixel group of disconnected second moulding, then judge two pixel point range groups
In pixel number it is whether equal, if it is judged that the number of the pixel in two pixel point range groups is equal, then judge
Go out in list the pixel group identical pixel group existed with the first moulding.
Step S308, if it is judged that the pixel group identical pixel group with the first moulding is not present in list, then
Processing is marked in pixel group to the first moulding.
Processing is marked in pixel group that can be in several ways to the first moulding, for example, can be by first
Processing is marked to the pixel group of the first moulding in the mode that the pixel group of moulding is coloured.
By the embodiment of the present invention, due to the first moulding pixel group not only not by the first moulding whether be third party from
The limitation of the moulding that can not be broken up of definition, and not the limiting with the presence or absence of the outside drawing of reference by the drawing where the first moulding
System, thus the effect for comparing the entire difference between drawing can be reached.In addition, the entire difference between drawing is compared
Afterwards, it may provide the user with correct information, it is to avoid cause economy to user due to cannot get the entire difference in drawing
Loss.
Fig. 4 is the flow chart 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 the computer drawing includes steps S402 to step
S406 and step S414, the embodiment can as embodiment illustrated in fig. 3 preferred embodiment.
Step S402 to step S408, respectively with the step S302 to step S308 of embodiment illustrated in fig. 3, no longer goes to live in the household of one's in-laws on getting married herein
State.
Step S410, if it is judged that the pixel group identical pixel group with the first moulding is not present in list, then
Obtain the pixel group of the first moulding and the first incidence relation of the first moulding.
First incidence relation can be incidence relation set in advance, and it can be stored in the first incidence relation list
In.Due to unique first moulding of pixel group correspondence of each first moulding, therefore the pixel group of the first moulding is right with it
The first incidence relation between unique first moulding answered is unique.So, the pixel group of the first moulding, the first moulding
It can be corresponded with the first incidence relation, thus can be obtained with the pixel group and the first incidence relation of first moulding
One moulding.
Step S412, corresponding first moulding of pixel group of the first moulding is searched based on the first incidence relation.
For example, can the mark ID based on the first incidence relation, and by traveling through drawing to search the mark of the first moulding
ID, judge the first incidence relation mark ID and the first moulding mark ID it is whether identical, if identical, this find
One moulding is corresponding first moulding of pixel group of the first moulding, else if differing, then first moulding found
It is not corresponding first moulding of pixel group of the first moulding.
Step S414, processing is marked to the first moulding found.
Processing can be marked to the first moulding in several ways, for example, can be by being carried out to the first moulding
Processing is marked to the first moulding in the mode of color.
By the embodiment of the present invention, due to the first moulding pixel group not only not by the first moulding whether be third party from
The limitation of the moulding that can not be broken up of definition, and not the limiting with the presence or absence of the outside drawing of reference by the drawing where the first moulding
System, thus the effect for comparing the entire difference between drawing can be reached.In addition, the entire difference between drawing is compared
Afterwards, it may provide the user with correct information, it is to avoid cause economy to user due to cannot get the entire difference in drawing
Loss.Simultaneously as the first moulding is the moulding in first version drawing, therefore it can be carried out in first version drawing
Mark processing, can so search the difference part between drawing in order to user.
Alternatively, in embodiments of the present invention, associated in the pixel group for obtaining the first moulding with the first of the first moulding
Before relation, the drawing comparative approach also includes:Generate the pixel group of the first moulding and the first incidence relation of the first moulding.
Further, in embodiments of the present invention, the drawing comparative approach also includes:The pixel group and second for generating the second moulding are made
Second incidence relation of type.Wherein, the second incidence relation can be stored in the second incidence relation list, and the first association is closed
Series of tables and the second incidence relation list can be different incidence relation lists.First incidence relation can be used for being made by first
The pixel group of type points to the first moulding;Second incidence relation can be used for being made by the pixel group sensing second of the second moulding
Type.
Alternatively, in embodiments of the present invention, should before the pixel of the first moulding in obtaining first version drawing
Drawing comparative approach also includes:
First, the first moulding in traversal first version drawing.
Wherein it is possible to travel through one or more first moulding in first version drawing.This one or more first
Moulding can be all the first moulding in whole drawing, or it can be the moulding of part first that user specify.And the portion
It can be the first moulding on the arbitrary region of drawing to divide the first moulding, or it can be the first moulding in presumptive area.
Secondly, the pixel group of the first moulding is generated.
Specifically, the first moulding can be drawn by mapping software, so as to generate the during the first moulding is drawn
The pixel group of one moulding.Wherein, when the first moulding is a moulding, the pixel group of first moulding can be generated;
When the first moulding is multiple moulding, the pixel group of multiple first moulding can be generated, and each first moulding with its
The pixel group of one moulding is corresponding.For example, the first moulding can include straight line and a curve, then two can be generated
The pixel group of first moulding, and the pixel group of two first moulding is respectively linear pixel point group and curve pixel
Point, so, straight line are corresponding with linear pixel point group, and curve is corresponding with curve pixel group.Preferably, can be by generation
The pixel group of first moulding is stored in first list.
Again, the second moulding in traversal second edition drawing.
The process for traveling through the second moulding in second edition drawing can be with the first moulding in traversal first version drawing
Process it is identical.Wherein it is possible to travel through one or more second moulding in second edition drawing.This one or more
Two moulding can be all the second moulding in whole drawing, or it can be the moulding of part second that user specify.And be somebody's turn to do
The moulding of part second can be the second moulding on the arbitrary region of drawing, or it can make for second in presumptive area
Type.
Then, the pixel group of the second moulding is generated.
The process for generating the pixel group of the second moulding can be identical with the process for the pixel group for generating the first moulding.Tool
Body, the second moulding can be drawn by mapping software, so as to generate the picture of the second moulding during the second moulding is drawn
Vegetarian refreshments group.Wherein, when the second moulding is a moulding, the pixel group of second moulding can be generated;When the second moulding
During for multiple moulding, the pixel group of multiple second moulding, and the picture of each second moulding and its second moulding can be generated
Vegetarian refreshments group is corresponding.For example, the second moulding can include straight line and a curve, then two the second moulding can be generated
Pixel group, and the pixel group of two second moulding is respectively linear pixel point group and curve pixel, so, straight line
Corresponding with linear pixel point group, curve is corresponding with curve pixel group.Preferably, can be by the picture of the second moulding of generation
Vegetarian refreshments group is stored in second list.
Alternatively, in embodiments of the present invention, the pixel group of the first moulding can be generated by following steps:It is first
First, mapping software front end receiver opens the order of first version drawing.Secondly, mapping software front end is based on order and opens the first edition
This drawing.Again, displayable moulding in the first version drawing opened is obtained, wherein, displayable moulding is the first moulding,
Displayable moulding refers to may be displayed on the moulding in the first version drawing of opening.Then, in traversal first version drawing
The first moulding.Then, the pixel group of the first moulding is generated by drawing the first moulding.
Wherein, travel through the process of the first moulding in first version drawing and pass through and draw the first moulding the first moulding of generation
The process of pixel group illustrated that it is no longer repeated herein in the above-described embodiments.
By the embodiment of the present invention, displayable first moulding is generated into pixel group, can be in order to for checking drawing
In in displayable moulding and other association drawings between corresponding displayable moulding with the presence or absence of difference.
It should be noted that can be in such as one group computer executable instructions the step of the flow of accompanying drawing is illustrated
Performed in computer system, and, although logical order is shown in flow charts, but in some cases, can be with not
The order being same as herein performs shown or described step.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and constituted
Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step single integrated circuit module is fabricated to realize.So, the present invention is not restricted to any specific
Hardware and software is combined.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (8)
1. the drawing comparative approach in a kind of computer drawing, it is characterised in that drawing includes first version drawing and the
Two version drawings, the first version drawing and the second edition drawing is associate drawing, and the drawing comparative approach includes:
Obtain the pixel group of the first moulding in the first version drawing;
Search the pixel Groups List of the second moulding in the second edition drawing;
Judge in the list with the presence or absence of the pixel group identical pixel group with first moulding;And
If it is judged that the pixel group identical pixel group with first moulding is not present in the list, then to described
Processing is marked in the pixel group of first moulding;
After in judging the list with the presence or absence of the pixel group identical pixel group with first moulding, the figure
Paper comparative approach also includes:
If it is judged that the pixel group identical pixel group with first moulding is not present in the list, then institute is obtained
State the pixel group of the first moulding and the first incidence relation of first moulding;
Corresponding first moulding of pixel group of first moulding is searched based on first incidence relation;
Processing is marked to first moulding found,
By traveling through drawing to search the mark ID of the first moulding, the mark ID of the first incidence relation and the mark of the first moulding are judged
Whether identical know ID, if identical, the first moulding found is corresponding first moulding of pixel group of the first moulding, such as
Fruit differs, then the first moulding found is not corresponding first moulding of pixel group of the first moulding.
2. drawing comparative approach according to claim 1, it is characterised in that obtaining the pixel group of first moulding
Before the first incidence relation of first moulding, the drawing comparative approach also includes:
Generate the pixel group of first moulding and the first incidence relation of first moulding.
3. drawing comparative approach according to claim 1, it is characterised in that the in the first version drawing is obtained
Before the pixel of one moulding, the drawing comparative approach also includes:
Travel through first moulding in the first version drawing;
Generate the pixel group of first moulding;
Travel through second moulding in the second edition drawing;And
Generate the pixel group of second moulding.
4. drawing comparative approach according to claim 3, it is characterised in that the pixel group bag of generation first moulding
Include:
Mapping software front end receiver opens the order of the first version drawing;
The mapping software front end is based on the order and opens the first version drawing;
Displayable moulding in the first version drawing opened is obtained, wherein, the displayable moulding is described first
Moulding;
Travel through first moulding in the first version drawing;And
The pixel group of first moulding is generated by drawing first moulding.
5. the drawing comparison means in a kind of computer drawing, it is characterised in that drawing includes first version drawing and the
Two version drawings, the first version drawing and the second edition drawing is associate drawing, and the drawing comparison means includes:
First acquisition unit, the pixel group for obtaining the first moulding in the first version drawing;
First searching unit, the pixel Groups List for searching the second moulding in the second edition drawing;
Judging unit, for judging in the list with the presence or absence of the pixel group identical pixel with first moulding
Group;And
First indexing unit, for if it is judged that the pixel group identical with first moulding is not present in the list
Pixel group, then the pixel group to first moulding processing is marked;
Also include:
Second acquisition unit, for whether there is the pixel group identical picture with first moulding in the list is judged
After vegetarian refreshments group, if it is judged that the pixel group identical pixel group with first moulding is not present in the list,
Then obtain the pixel group of first moulding and the first incidence relation of first moulding;
Second searching unit, the pixel group for searching first moulding based on first incidence relation is corresponding described
First moulding;
Second indexing unit, for processing to be marked to first moulding found,
Wherein, the drawing comparison means judges the first incidence relation by traveling through drawing to search the mark ID of the first moulding
Mark ID and the first moulding mark ID it is whether identical, if identical, the first moulding found be the first moulding picture
Corresponding first moulding of vegetarian refreshments group, if it is not the same, the first moulding then found is not the pixel group correspondence of the first moulding
The first moulding.
6. drawing comparison means according to claim 5, it is characterised in that also include:
First generation unit, in the pixel group and the first incidence relation of first moulding for obtaining first moulding
Before, first incidence relation of the pixel group with first moulding of first moulding is generated.
7. drawing comparison means according to claim 5, it is characterised in that also include:
First Traversal Unit, for before the pixel of the first moulding in obtaining the first version drawing, traversal to be described
First moulding in first version drawing;
Second generation unit, the pixel group for generating first moulding;
Second Traversal Unit, for traveling through second moulding in the second edition drawing;And
3rd generation unit, the pixel group for generating second moulding.
8. drawing comparison means according to claim 7, it is characterised in that second generation unit includes:
Receiving module, the order of the first version drawing is opened for mapping software front end receiver;
Module is opened, being based on the order for the mapping software front end opens the first version drawing;
Acquisition module, for obtaining displayable moulding in the first version drawing opened, wherein, it is described displayable to make
Type is first moulding;
Spider module, for traveling through first moulding in the first version drawing;And
Generation module, the pixel group for generating first moulding by drawing first moulding.
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 CN103823934A (en) | 2014-05-28 |
CN103823934B true 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) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106503283B (en) * | 2016-09-09 | 2018-02-02 | 武汉开目信息技术股份有限公司 | A kind of two-dimentional drawing intelligence comparative approach and device |
CN109271159A (en) * | 2018-08-20 | 2019-01-25 | 北京知本源信息技术有限公司 | The online cooperation device of tree-shaped logical formula and method |
CN109213484A (en) * | 2018-08-20 | 2019-01-15 | 北京知本源信息技术有限公司 | Online Collaborative Design figure condition managing device and method |
CN112100795B (en) * | 2019-06-17 | 2024-01-05 | 北京鸿鹄云图科技股份有限公司 | Computer aided design drawing comparison method and device |
JP7380341B2 (en) * | 2020-03-06 | 2023-11-15 | 横河電機株式会社 | Drawing management device, drawing management system, drawing management method, and program |
CN112861713B (en) * | 2021-02-06 | 2022-10-25 | 贵州博汇云技术开发有限公司 | Large-scale drawing multi-piece local amplification contrast analysis system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1173288C (en) * | 2001-11-27 | 2004-10-27 | 英业达股份有限公司 | Computer aided circuit design and topological design |
US7139990B2 (en) * | 2004-03-23 | 2006-11-21 | International Business Machines Corporation | Method of checking the layout versus the schematic of multi-fingered MOS transistor layouts using a sub-circuit based extraction |
CN102128628B (en) * | 2010-01-19 | 2013-03-27 | 北京四维图新科技股份有限公司 | Difference analysis method and difference analysis device for electronic maps |
CN102622463B (en) * | 2012-01-05 | 2013-04-17 | 山东电力工程咨询院有限公司 | Drawing-model uniformity based method for automatic check of design drawings |
-
2014
- 2014-02-27 CN CN201410069502.XA patent/CN103823934B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103823934A (en) | 2014-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103823934B (en) | Drawing comparative approach and device in computer drawing | |
Peyghan | About soft topological spaces | |
CN105205180B (en) | A kind of evaluation method and device of knowledge mapping | |
CN107423322B (en) | Method and device for displaying label nesting hierarchy of webpage | |
CN107077474A (en) | Rapid color is searched for | |
CN106156082A (en) | A kind of body alignment schemes and device | |
CN103001878B (en) | The determination method and device of MAC Address hash-collision | |
CN107818168B (en) | Topic searching method, device and equipment | |
CN109282826B (en) | Method and system for planning multipoint paths of map based on point aggregation mode | |
JP2019503025A (en) | Method and apparatus for obtaining abbreviations of points of interest on a map | |
CN112306439A (en) | One-machine multi-screen interaction system and management method thereof, electronic equipment and storage medium | |
Yamanaka et al. | Efficient enumeration of all ladder lotteries and its application | |
CN106886594A (en) | For the method and apparatus of exhibition information | |
CN111709455A (en) | Evaluation method of wine bottle surface defect model, electronic device and storage medium | |
Han | Almost fixed point property for digital spaces associated with Marcus-Wyse topological spaces. | |
CN109413227A (en) | IPv4 user based on more IPv6 networks accesses IPv6 network interworking device and equipment | |
CN103020651B (en) | Method for detecting sensitive information of microblog pictures | |
CN103745071B (en) | Data processing method and device for labeled product manufacturing information | |
CN110942001A (en) | Method, device, equipment and storage medium for identifying finger vein data after expansion | |
JP2015203989A (en) | Display control program, display control device, and display control method | |
CN111709452A (en) | Evaluation method of wine bottle surface defect model, electronic device and storage medium | |
Hellmuth | A local prime factor decomposition algorithm | |
CN110287331A (en) | Work compound group determines method, apparatus, equipment and storage medium | |
CN106570017A (en) | Data caching method and system | |
CN105044752A (en) | User movement trajectory acquisition method and apparatus |
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 |