CN105374056B - A kind of CGM forms map treating method and apparatus - Google Patents
A kind of CGM forms map treating method and apparatus Download PDFInfo
- Publication number
- CN105374056B CN105374056B CN201410438420.8A CN201410438420A CN105374056B CN 105374056 B CN105374056 B CN 105374056B CN 201410438420 A CN201410438420 A CN 201410438420A CN 105374056 B CN105374056 B CN 105374056B
- Authority
- CN
- China
- Prior art keywords
- width
- cgm
- length
- plotter
- form maps
- 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
Abstract
The invention discloses a kind of CGM forms map treating method and apparatus, belongs to CGM form map processing technology fields.Methods described includes:Obtain the length and width of CGM form maps;When the length and width of CGM form maps is all higher than the width of the maximum plotter of width, CGM forms map is divided;When the higher value in the length and width of the first CGM form maps is more than, smaller value is less than or equal to the width of (or be respectively less than or equal to) maximum plotter of width, the difference of width and the smaller value (or higher value) in the length and width of the first CGM form maps is selected as the plotter of minimum nonnegative number;First CGM forms map is the CGM form maps after CGM forms map or division;First CGM form maps are sent to the plotter selected.Present invention, avoiding causing, the utilization rate of paper is not high, the problem of paper waste.
Description
Technical field
The present invention relates to CGM form map processing technology fields, more particularly to a kind of CGM forms map processing method and dress
Put.
Background technology
CGM (Computer Graphics Metafile, CGM) is ISO (International
Organization for Standardization, International Organization for standardization) a kind of graphical format that the committee defines, it is used for
Description, storage and transmission and device-independent vector, vector and both the image that mixes.
At present, the map of CGM forms is used mostly in petroleum exploration and development geological research.Generally drawn using Zeh
After system is handled, the map of CGM forms can be output on the plotter of some selected size and be drawn.
During the present invention is realized, inventor has found that prior art at least has problems with:
The size of CGM form maps is varied, is drawn, can be caused using the plotter of same size every time
The utilization rate of paper is not high, paper waste.And all artificially judge CGM form map sizes if drawn every time and select corresponding size
Plotter, in-convenience in use, operability is not strong.
The content of the invention
In order to solve prior art the utilization rate of paper can be caused not high, the problem of paper waste, the embodiment of the present invention provides
A kind of CGM forms map treating method and apparatus.The technical scheme is as follows:
On the one hand, the embodiments of the invention provide a kind of CGM forms map processing method, methods described to include:
Obtain the length and width of CGM form maps;
When the length and width of the CGM forms map is all higher than the width of the maximum plotter of width, by the CGM
The direction of smaller value in length and width of the form map along the CGM forms map is divided into two portions of size identical
Point, if the length and width of the CGM forms map after division is incited somebody to action still greater than the width of the plotter of width maximum
The direction of the smaller value in length and width of the CGM forms map along the CGM forms map after division after division
Two parts of size identical are again divided into, until smaller in the length and width of the CGM forms map after division
Value is less than or equal to the width of the maximum plotter of the width;
When the higher value in the length and width of the first CGM form maps is more than the width of the maximum plotter of the width
Smaller value in degree and the length and width of the first CGM form maps is less than or equal to the maximum plotter of the width
Width when, the difference that selects the smaller value in the length and width of width and the first CGM form maps is minimum non-negative
Several plotters;The first CGM forms map is the CGM forms map after the CGM forms map or division;
When the length and width of the first CGM form maps is respectively less than or the width of the plotter maximum equal to the width
When spending, the difference for selecting the higher value in the length and width of width and the first CGM form maps is the nonnegative number of minimum
Plotter;
The first CGM form maps are sent to the plotter selected.
In a kind of possible implementation of the present invention, when in the length and width of the first CGM form maps compared with
When small value is the length of the first CGM form maps, the length and width of the selection width and the first CGM form maps
The difference of smaller value in degree is the plotter of minimum nonnegative number, including:
The first CGM form maps are rotated by 90 °;
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum;
When the length that the higher value in the length and width of the first CGM form maps is the first CGM form maps
When spending, the difference of the higher value in the length and width of the selection width and the first CGM form maps is the non-negative of minimum
Several plotters, including:
The first CGM form maps are rotated by 90 °;
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum.
Alternatively, the difference of the width of the selection width and the first CGM form maps painting for the nonnegative number of minimum
Figure instrument, including:
The width of the plotter is entered according to width of the order from small to large successively with the first CGM form maps
Row compares;
When the width of the plotter is more than the width of the first CGM form maps, stop comparing, and paint described
Plotter of the figure instrument as the difference of width and the width of the first CGM form maps for minimum nonnegative number.
In the alternatively possible implementation of the present invention, the length and width of the acquisition CGM form maps, including:
By the fileid.exe programs in Zeh drafting systems, the length and width of the CGM forms map is obtained.
Alternatively, the width of the plotter includes 24 inches, 36 inches and 42 inches.
On the other hand, the embodiments of the invention provide a kind of CGM forms map processing unit, described device to include:
Acquisition module, for obtaining the length and width of CGM form maps;
Division module, for being all higher than the width of the maximum plotter of width when the length and width of the CGM forms map
When spending, the direction of the smaller value in length and width of the CGM forms map along the CGM forms map is divided into size
Two parts of identical, if the drawing that the length and width of the CGM forms map after division is maximum still greater than the width
The width of instrument, then by length and width of the CGM forms map after division along the CGM forms map after division
The direction of smaller value is again divided into two parts of size identical, the length of the CGM forms map after division and
Smaller value in width is less than or equal to the width of the maximum plotter of the width;
Selecting module, for being more than width maximum when the higher value in the length and width of the first CGM form maps
Plotter width and the length and width of the first CGM form maps in smaller value be less than or equal to the width
During the width of maximum plotter, the difference of the smaller value in the length and width of width and the first CGM form maps is selected
For the plotter of the nonnegative number of minimum;The first CGM forms map is described after the CGM forms map or division
CGM form maps;When the length and width of the first CGM form maps is respectively less than or the plotter maximum equal to the width
Width when, the difference that selects the higher value in the length and width of width and the first CGM form maps is minimum non-negative
Several plotters;
Output module, for the first CGM form maps to be sent into the plotter selected.
In a kind of possible implementation of the present invention, the selecting module includes:
Rotary unit, for being the first CGM when the smaller value in the length and width of the first CGM form maps
The length of form map, and the higher value in the length and width of the first CGM form maps is more than the maximum drawing of width
During the width of instrument, or, when the higher value in the length and width of the first CGM form maps is the first CGM forms
The length of map, and the length and width of the first CGM form maps is respectively less than or the width of the plotter maximum equal to width
When spending, the first CGM form maps are rotated by 90 °;
Selecting unit, for selecting the difference of the width of width and the first CGM form maps as minimum nonnegative number
Plotter.
Alternatively, the selecting unit is used for,
The width of the plotter is entered according to width of the order from small to large successively with the first CGM form maps
Row compares;
When the width of the plotter is more than the width of the first CGM form maps, stop comparing, and paint described
Plotter of the figure instrument as the difference of width and the width of the first CGM form maps for minimum nonnegative number.
In the alternatively possible implementation of the present invention, the acquisition module is used for,
By the fileid.exe programs in Zeh drafting systems, the length and width of the CGM forms map is obtained.
Alternatively, the width of the plotter includes 24 inches, 36 inches and 42 inches.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By the width for being more than the maximum plotter of width when the higher value in the length and width of the first CGM form maps
When smaller value in degree and the length and width of the first CGM form maps is less than the width of the maximum plotter of width, selection is wide
The difference of smaller value in the length and width of degree and the first CGM form maps is the plotter of minimum nonnegative number, as the first CGM
The length and width of form map is respectively less than or during the width of the plotter maximum equal to width, selects width and the first CGM lattice
The difference of higher value in the length and width of formula map is the plotter of minimum nonnegative number, and the first CGM forms map is CGM lattice
CGM form maps after formula map or division, for the plotter of the size selection respective width of CGM form maps, effectively
Using drawing paper, avoid and drawn using the plotter of same size and cause the utilization rate of paper not high, paper wave
The problem of taking.Moreover, when the length and width of CGM form maps is all higher than the width of the maximum plotter of width, by CGM lattice
The direction of smaller value in length and width of the formula map along CGM form maps is divided into two parts of size identical, if drawing
The width of the length and width of CGM form maps after point plotter maximum still greater than width, then by the CGM forms after division
The direction of smaller value in length and width of the map along the CGM form maps after division is again divided into size identical two
Part, until the smaller value in the length and width of the CGM form maps after division is less than or equal to the maximum plotter of width
Width, by adjusting the length and width of CGM form maps, the length and width of CGM form maps is fully coordinated drawing
The width of instrument, effectively prevent because the length and width of CGM form maps is all higher than the width of the maximum plotter of width and
Cause the problem of large area blank occur on paper during the part printing more than plotter width, further increase the utilization of paper
Rate.In addition, whole process is carried out automatically, it is not necessary to manual operation, it is easy to use, and it is workable.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of flow chart for CGM forms map processing method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart for CGM forms map processing method that the embodiment of the present invention two provides;
Fig. 3 is a kind of structural representation for CGM forms map processing unit that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural representation for CGM forms map processing unit that the embodiment of the present invention four provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of CGM forms map processing method, referring to Fig. 1, this method includes:
Step 101:Obtain the length and width of CGM form maps.
It should be noted that CGM form maps can be generally output to after being handled using Zeh drafting systems
Drawn on plotter, therefore CGM lattice can be obtained before CGM form maps are output to plotter by Zeh drafting systems
Formula map, and it is re-fed into plotter after handling CGM form maps.
The width of CGM form maps is used for the length of side for limiting side corresponding with the width position of plotter, CGM form maps
Length be used for the length of side for limiting the side adjacent with the width position of CGM form maps.
Step 102:When the length and width of CGM form maps is all higher than the width of the maximum plotter of width, by CGM
The direction of smaller value in length and width of the form map along CGM form maps is divided into two parts of size identical, if
The width of the length and width of CGM form maps after the division plotter maximum still greater than width, then by the CGM lattice after division
The direction of smaller value in length and width of the formula map along the CGM form maps after division is again divided into size identical two
Individual part, until the smaller value in the length and width of the CGM form maps after division is less than or equal to the maximum drawing of width
The width of instrument.
In the present embodiment, step 102 is optional step.After step 101 or step 102 perform, when the first CGM lattice
Higher value in the length and width of formula map is more than the width of the maximum plotter of width, and the length of the first CGM form maps
When smaller value in degree and width is less than or equal to the width of the maximum plotter of width, step 103,105 are performed;When first
The length and width of CGM form maps is respectively less than or during the width of the plotter maximum equal to width, performs step 104-105.
Wherein, the first CGM forms map is the CGM form maps after CGM forms map or division.
Step 103:The difference for selecting the smaller value in the length and width of width and the first CGM form maps is the non-of minimum
The plotter of negative.
Step 104:The difference for selecting the higher value in the length and width of width and the first CGM form maps is the non-of minimum
The plotter of negative.
Step 105:First CGM form maps are sent to the plotter selected.
It is to be appreciated that after plotter receives the first CGM form maps, the width institute of the first CGM form maps is right
The width alignment for the edge plotter answered, is drawn along the length direction of the first CGM form maps.
The embodiment of the present invention when the higher value in the length and width of the first CGM form maps by being more than width maximum
Smaller value in the length and width of the width of plotter and the first CGM form maps is less than the width of the maximum plotter of width
When spending, the difference of smaller value in the length and width of width and the first CGM form maps is selected as the drawing of minimum nonnegative number
Instrument, when the length and width of the first CGM form maps is respectively less than or during the width of the plotter maximum equal to width, select width
And the plotter that the difference of the higher value in the length and width of the first CGM form maps is minimum nonnegative number, the first CGM forms
Map is the CGM form maps after CGM forms map or division, for the size selection respective width of CGM form maps
Plotter, drawing paper effectively is utilized, avoid and drawn using the plotter of same size and cause the utilization rate of paper
It is not high, the problem of paper waste.Moreover, when the length and width of CGM form maps is all higher than the width of the maximum plotter of width
When spending, the direction of the smaller value in length and width of the CGM forms map along CGM form maps is divided into size identical two
Individual part, if the length and width of the CGM form maps after division will divide still greater than the width of the plotter of width maximum
The direction of smaller value in length and width of the CGM forms map afterwards along the CGM form maps after division is again divided into greatly
Small two parts of identical, until the smaller value in the length and width of the CGM form maps after division is less than or equal to width
The width of maximum plotter, by adjusting the length and width of CGM form maps, makes the length and width of CGM form maps
Fully coordinate the width of plotter, effectively prevent because the length and width of CGM form maps is all higher than painting for width maximum
The width of figure instrument and cause more than plotter width part printing when paper on there is the problem of large area blank, further improve
The utilization rate of paper.In addition, whole process is carried out automatically, it is not necessary to manual operation, it is easy to use, and it is workable.
Embodiment two
The embodiments of the invention provide a kind of CGM forms map processing method, referring to Fig. 2, this method includes:
Step 201:Obtain the length and width of CGM form maps.
In a kind of implementation of the present embodiment, the step 201 can include:
Pass through the fileid.exe programs in Zeh drafting systems, the length and width of acquisition CGM form maps.
It should be noted that CGM form maps can be generally output to after being handled using Zeh drafting systems
Drawn on plotter, therefore CGM lattice can be obtained before CGM form maps are output to plotter by Zeh drafting systems
Formula map, and it is re-fed into plotter after handling CGM form maps.
The width of CGM form maps is used for the length of side for limiting side corresponding with the width position of plotter, CGM form maps
Length be used for the length of side for limiting the side adjacent with the width position of CGM form maps.
Step 202:Judge that the size of the width of the length and width of the CGM form maps plotter maximum with width is closed
System.When the length and width of CGM form maps is all higher than the width of the maximum plotter of width, step 203 is performed;Work as CGM
Higher value in the length and width of form map is more than the width of the maximum plotter of width, and the length of CGM form maps
When being less than or equal to the width of the maximum plotter of width with the smaller value in width, step 204 is performed;When CGM form maps
Length and width be respectively less than or during the width of the plotter maximum equal to width, perform step 205.
Step 203:The direction of smaller value in length and width of the CGM forms map along CGM form maps is divided into
Two parts of size identical.If the length and width of the CGM form maps after the division plotter maximum still greater than width
Width, then step 203 is continued executing with until the smaller value in the length and width of the CGM form maps after division is less than or equal to
The width of the maximum plotter of width.After step 203 execution, step 204 or 205 is performed.Specifically, after division
Higher value in the length and width of CGM form maps is more than the width of the maximum plotter of width, and the CGM forms after division
When smaller value in the length and width of map is less than or equal to the width of the maximum plotter of width, step 204 is performed;When draw
The length and width of CGM form maps after point is respectively less than or during the width of the plotter maximum equal to width, performs step
205。
In the specific implementation, when the length and width of CGM form maps is all higher than the width of the maximum plotter of width,
First with the set angle (such as angle of CGM forms map lower left) of CGM form maps for the origin of coordinates, according to CGM form maps
Length and width, determine the coordinate of cut-point.Specifically, when the length of CGM form maps is more than the width of CGM form maps
When, the coordinate of cut-point length direction from 0 to CGM form maps width, the coordinate of cut-point width is CGM format charts
The half of the length of part.When the length of CGM form maps is less than or equal to the width of CGM form maps, cut-point length side
To coordinate for the width of CGM form maps half, the coordinate of cut-point width from 0 to CGM form maps length.
Then according to the coordinate of cut-point, CGM form maps are divided into two parts of size identical.If the CGM forms after division
The length and width of map is still all higher than the width of the maximum plotter of width, then continues to divide according to the method described above.If draw
The length and/or width of CGM form maps after point are less than or equal to the width of the maximum plotter of width, then by after division
CGM form maps are separately sent to plotter.After plotter respectively prints the CGM form maps after division, people
For the CGM forms map after the division printed is matched.
In actual applications, before step 202 is performed, can artificially be checked, determine CGM form maps length and
Width be all higher than the maximum plotter of width width whether be CGM form Drawing Figures mistakes caused by.
In the present embodiment, step 202 is optional step.
Step 204:The difference for selecting the smaller value in the length and width of width and the first CGM form maps is the non-of minimum
The plotter of negative.After step 204 execution, step 206 is performed.
In the present embodiment, the first CGM forms map is the CGM form maps after CGM forms map or division.
In a kind of implementation of the present embodiment, when the smaller value in the length and width of the first CGM form maps is
During the length of the first CGM form maps, the step 204 can include:
First CGM form maps are rotated by 90 °;
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum.
It is to be appreciated that the first CGM form maps are rotated by 90 °, that is, exchange the length of the first CGM form maps and the
The width of one CGM form maps.
In another implementation of the present embodiment, the smaller value in the length and width of the first CGM form maps
For the first CGM form maps width when, the step 204 can include:
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum.
Alternatively, the difference of the width of width and the first CGM form maps is selected as the plotter of minimum nonnegative number, can be with
Including:
By the width of plotter according to order from small to large successively compared with the width of the first CGM form maps;
When the width of plotter is more than the width of the first CGM form maps, stop comparing, and using plotter as width
And the difference of the width of the first CGM form maps is the plotter of minimum nonnegative number.
Alternatively, the width of plotter can include 24 inches, 36 inches and 42 inches.
Step 205:The difference for selecting the higher value in the length and width of width and the first CGM form maps is the non-of minimum
The plotter of negative.After step 205 execution, step 206 is performed.
In a kind of implementation of the present embodiment, when the higher value in the length and width of the first CGM form maps is
During the length of the first CGM form maps, the step 205 can include:
First CGM form maps are rotated by 90 °;
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum.
In another implementation of the present embodiment, the higher value in the length and width of the first CGM form maps
For the first CGM form maps width when, the step 205 can include:
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum.
Step 206:First CGM form maps are sent to the plotter selected.
It is to be appreciated that after plotter receives the first CGM form maps, the width institute of the first CGM form maps is right
The width alignment for the edge plotter answered, is drawn along the length direction of the first CGM form maps.
The embodiment of the present invention when the higher value in the length and width of the first CGM form maps by being more than width maximum
Smaller value in the length and width of the width of plotter and the first CGM form maps is less than the width of the maximum plotter of width
When spending, the difference of smaller value in the length and width of width and the first CGM form maps is selected as the drawing of minimum nonnegative number
Instrument, when the length and width of the first CGM form maps is respectively less than or during the width of the plotter maximum equal to width, select width
And the plotter that the difference of the higher value in the length and width of the first CGM form maps is minimum nonnegative number, the first CGM forms
Map is the CGM form maps after CGM forms map or division, for the size selection respective width of CGM form maps
Plotter, drawing paper effectively is utilized, avoid and drawn using the plotter of same size and cause the utilization rate of paper
It is not high, the problem of paper waste.Moreover, when the length and width of CGM form maps is all higher than the width of the maximum plotter of width
When spending, the direction of the smaller value in length and width of the CGM forms map along CGM form maps is divided into size identical two
Individual part, if the length and width of the CGM form maps after division will divide still greater than the width of the plotter of width maximum
The direction of smaller value in length and width of the CGM forms map afterwards along the CGM form maps after division is again divided into greatly
Small two parts of identical, until the smaller value in the length and width of the CGM form maps after division is less than or equal to width
The width of maximum plotter, by adjusting the length and width of CGM form maps, makes the length and width of CGM form maps
Fully coordinate the width of plotter, effectively prevent because the length and width of CGM form maps is all higher than painting for width maximum
The width of figure instrument and cause more than plotter width part printing when paper on there is the problem of large area blank, further improve
The utilization rate of paper.In addition, whole process is carried out automatically, it is not necessary to manual operation, it is easy to use, and it is workable.Further
Ground, when the length that the smaller value in the length and width of CGM form maps is CGM form maps, and the length of CGM form maps
When being more than the width of the maximum plotter of width with the higher value in width, or, when in the length and width of CGM form maps
Higher value be CGM form maps length, and the length and width of CGM form maps is respectively less than or maximum equal to width painted
During the width of figure instrument, CGM form maps are rotated by 90 °, for the size adjust automatically drawing direction of CGM form maps, enter one
Step improves the utilization rate of paper.
Embodiment three
The embodiments of the invention provide a kind of CGM forms map processing unit, referring to Fig. 3, the device includes:
Acquisition module 301, for obtaining the length and width of CGM form maps;
Division module 302, for being all higher than the width of the maximum plotter of width when the length and width of CGM form maps
When, the direction of the smaller value in length and width of the CGM forms map along CGM form maps is divided into size identical two
Part, will be after division if the width of the length and width of the CGM form maps after the division plotter maximum still greater than width
Length and width of the CGM forms map along the CGM form maps after division in the direction of smaller value be again divided into size
Two parts of identical, until the smaller value in the length and width of the CGM form maps after division is less than or equal to width most
The width of big plotter;
Selecting module 303, for being more than width maximum when the higher value in the length and width of the first CGM form maps
Smaller value in the length and width of the width of plotter and the first CGM form maps is less than or equal to the maximum drawing of width
During the width of instrument, the difference for selecting the smaller value in the length and width of width and the first CGM form maps is minimum nonnegative number
Plotter;First CGM forms map is the CGM form maps after CGM forms map or division;When the first CGM format charts
The length and width of part is respectively less than or during the width of the plotter maximum equal to width, selects width and the first CGM form maps
Length and width in higher value difference for minimum nonnegative number plotter;
Output module 304, for the first CGM form maps to be sent into the plotter selected.
It should be noted that the width of CGM form maps be used for limit it is corresponding with the width position of plotter while while
Long, the length of CGM form maps is used for the length of side for limiting the side adjacent with the width position of CGM form maps.
The embodiment of the present invention when the higher value in the length and width of the first CGM form maps by being more than width maximum
Smaller value in the length and width of the width of plotter and the first CGM form maps is less than the width of the maximum plotter of width
When spending, the difference of smaller value in the length and width of width and the first CGM form maps is selected as the drawing of minimum nonnegative number
Instrument, when the length and width of the first CGM form maps is respectively less than or during the width of the plotter maximum equal to width, select width
And the plotter that the difference of the higher value in the length and width of the first CGM form maps is minimum nonnegative number, the first CGM forms
Map is the CGM form maps after CGM forms map or division, for the size selection respective width of CGM form maps
Plotter, drawing paper effectively is utilized, avoid and drawn using the plotter of same size and cause the utilization rate of paper
It is not high, the problem of paper waste.Moreover, when the length and width of CGM form maps is all higher than the width of the maximum plotter of width
When spending, the direction of the smaller value in length and width of the CGM forms map along CGM form maps is divided into size identical two
Individual part, if the length and width of the CGM form maps after division will divide still greater than the width of the plotter of width maximum
The direction of smaller value in length and width of the CGM forms map afterwards along the CGM form maps after division is again divided into greatly
Small two parts of identical, until the smaller value in the length and width of the CGM form maps after division is less than or equal to width
The width of maximum plotter, by adjusting the length and width of CGM form maps, makes the length and width of CGM form maps
Fully coordinate the width of plotter, effectively prevent because the length and width of CGM form maps is all higher than painting for width maximum
The width of figure instrument and cause more than plotter width part printing when paper on there is the problem of large area blank, further improve
The utilization rate of paper.In addition, whole process is carried out automatically, it is not necessary to manual operation, it is easy to use, and it is workable.
Example IV
The embodiments of the invention provide a kind of CGM forms map processing unit, referring to Fig. 4, the device includes:
Acquisition module 401, for obtaining the length and width of CGM form maps;
Division module 402, for being all higher than the width of the maximum plotter of width when the length and width of CGM form maps
When, the direction of the smaller value in length and width of the CGM forms map along CGM form maps is divided into size identical two
Part, will be after division if the width of the length and width of the CGM form maps after the division plotter maximum still greater than width
Length and width of the CGM forms map along the CGM form maps after division in the direction of smaller value be again divided into size
Two parts of identical, until the smaller value in the length and width of the CGM form maps after division is less than or equal to width most
The width of big plotter;
Selecting module 403, for being more than width maximum when the higher value in the length and width of the first CGM form maps
Smaller value in the length and width of the width of plotter and the first CGM form maps is less than or equal to the maximum drawing of width
During the width of instrument, the difference for selecting the smaller value in the length and width of width and the first CGM form maps is minimum nonnegative number
Plotter;First CGM forms map is the CGM form maps after CGM forms map or division;When the first CGM format charts
The length and width of part is respectively less than or during the width of the plotter maximum equal to width, selects width and the first CGM form maps
Length and width in higher value difference for minimum nonnegative number plotter;
Output module 404, for the first CGM form maps to be sent into the plotter selected.
It should be noted that the width of CGM form maps be used for limit it is corresponding with the width position of plotter while while
Long, the length of CGM form maps is used for the length of side for limiting the side adjacent with the width position of CGM form maps.
In a kind of implementation of the present invention, selecting module 403 can include:
Rotary unit 4031, for being the first CGM forms when the smaller value in the length and width of the first CGM form maps
The length of map, and the higher value in the length and width of the first CGM form maps is more than the width of the maximum plotter of width
When, or, when the length that the higher value in the length and width of the first CGM form maps is the first CGM form maps, and first
The length and width of CGM form maps is respectively less than or during the width of the plotter maximum equal to width, by the first CGM form maps
It is rotated by 90 °;
Selecting unit 4032, for selecting the difference of the width of width and the first CGM form maps as minimum nonnegative number
Plotter.
Alternatively, selecting unit 4032 is used for,
By the width of plotter according to order from small to large successively compared with the width of the first CGM form maps;
When the width of plotter is more than the width of the first CGM form maps, stop comparing, and using plotter as width
And the difference of the width of the first CGM form maps is the plotter of minimum nonnegative number.
In another implementation of the present invention, acquisition module 401 can be used for,
Pass through the fileid.exe programs in Zeh drafting systems, the length and width of acquisition CGM form maps.
Alternatively, the width of plotter can include 24 inches, 36 inches and 42 inches.
The embodiment of the present invention when the higher value in the length and width of the first CGM form maps by being more than width maximum
Smaller value in the length and width of the width of plotter and the first CGM form maps is less than the width of the maximum plotter of width
When spending, the difference of smaller value in the length and width of width and the first CGM form maps is selected as the drawing of minimum nonnegative number
Instrument, when the length and width of the first CGM form maps is respectively less than or during the width of the plotter maximum equal to width, select width
And the plotter that the difference of the higher value in the length and width of the first CGM form maps is minimum nonnegative number, the first CGM forms
Map is the CGM form maps after CGM forms map or division, for the size selection respective width of CGM form maps
Plotter, drawing paper effectively is utilized, avoid and drawn using the plotter of same size and cause the utilization rate of paper
It is not high, the problem of paper waste.Moreover, when the length and width of CGM form maps is all higher than the width of the maximum plotter of width
When spending, the direction of the smaller value in length and width of the CGM forms map along CGM form maps is divided into size identical two
Individual part, if the length and width of the CGM form maps after division will divide still greater than the width of the plotter of width maximum
The direction of smaller value in length and width of the CGM forms map afterwards along the CGM form maps after division is again divided into greatly
Small two parts of identical, until the smaller value in the length and width of the CGM form maps after division is less than or equal to width
The width of maximum plotter, by adjusting the length and width of CGM form maps, makes the length and width of CGM form maps
Fully coordinate the width of plotter, effectively prevent because the length and width of CGM form maps is all higher than painting for width maximum
The width of figure instrument and cause more than plotter width part printing when paper on there is the problem of large area blank, further improve
The utilization rate of paper.In addition, whole process is carried out automatically, it is not necessary to manual operation, it is easy to use, and it is workable.Further
Ground, when the length that the smaller value in the length and width of CGM form maps is CGM form maps, and the length of CGM form maps
When being more than the width of the maximum plotter of width with the higher value in width, or, when in the length and width of CGM form maps
Higher value be CGM form maps length, and the length and width of CGM form maps is respectively less than or maximum equal to width painted
During the width of figure instrument, CGM form maps are rotated by 90 °, for the size adjust automatically drawing direction of CGM form maps, enter one
Step improves the utilization rate of paper.
It should be noted that:Above-described embodiment provide CGM form map processing units when handling CGM form maps,
, can be as needed and by above-mentioned function distribution only with the division progress of above-mentioned each functional module for example, in practical application
Completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, it is described above to complete
All or part of function.In addition, the CGM format analysis processings device and CGM form maps processing method that above-described embodiment provides are real
Apply example and belong to same design, its specific implementation process refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (10)
1. a kind of CGM CGM forms map processing method, it is characterised in that methods described includes:
Obtain the length and width of CGM form maps;
When the length and width of the CGM forms map is all higher than the width of the maximum plotter of width, by the CGM forms
The direction of smaller value in length and width of the map along the CGM forms map is divided into two parts of size identical, if
The width of the length and width of the CGM forms map after the division plotter maximum still greater than the width, then will division
The direction of smaller value in length and width of the CGM forms map afterwards along the CGM forms map after division is again
Two parts of size identical are divided into, until the smaller value in the length and width of the CGM forms map after division is small
In or equal to the maximum plotter of the width width;
When the higher value in the length and width of the first CGM form maps be more than the width of the maximum plotter of the width and
Smaller value in the length and width of the first CGM form maps is less than or equal to the width of the maximum plotter of the width
When, select difference the painting for minimum nonnegative number of the smaller value in the length and width of width and the first CGM form maps
Figure instrument;The first CGM forms map is the CGM forms map after the CGM forms map or division;
When the length and width of the first CGM form maps is respectively less than or the width of the plotter maximum equal to the width
When, select difference the painting for minimum nonnegative number of the higher value in the length and width of width and the first CGM form maps
Figure instrument;
The first CGM form maps are sent to the plotter selected.
2. according to the method for claim 1, it is characterised in that when in the length and width of the first CGM form maps
Smaller value when being the length of the first CGM form maps, the length of selection width and the first CGM form maps
Difference with the smaller value in width is the plotter of minimum nonnegative number, including:
The first CGM form maps are rotated by 90 °;
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum;
When the higher value in the length and width of the first CGM form maps is the length of the first CGM form maps,
The difference of higher value in the length and width of the selection width and the first CGM form maps is painted for the nonnegative number of minimum
Figure instrument, including:
The first CGM form maps are rotated by 90 °;
The difference of the width of width and the first CGM form maps is selected as the plotter of the nonnegative number of minimum.
3. according to the method for claim 2, it is characterised in that the selection width and the first CGM form maps
The difference of width is the plotter of minimum nonnegative number, including:
The width of the plotter is compared according to width of the order from small to large successively with the first CGM form maps
Compared with;
When the width of the plotter is more than the width of the first CGM form maps, stop comparing, and by the plotter
Plotter as the difference of width and the width of the first CGM form maps for minimum nonnegative number.
4. according to the method described in claim any one of 1-3, it is characterised in that the length of the acquisition CGM form maps and
Width, including:
By the fileid.exe programs in Zeh drafting systems, the length and width of the CGM forms map is obtained.
5. according to the method described in claim any one of 1-3, it is characterised in that the width of the plotter include 24 inches,
36 inches and 42 inches.
6. a kind of CGM CGM forms map processing unit, it is characterised in that described device includes:
Acquisition module, for obtaining the length and width of CGM form maps;
Division module, during width for being all higher than the maximum plotter of width when the length and width of the CGM forms map,
It is identical that the direction of smaller value in length and width of the CGM forms map along the CGM forms map is divided into size
Two parts, if the length and width of the CGM forms map after the division plotter maximum still greater than the width
Width, then will be smaller in length and width of the CGM forms map after division along the CGM forms map after division
The direction of value is again divided into two parts of size identical, the length and width of the CGM forms map after division
In smaller value be less than or equal to the width of the maximum plotter of the width;
Selecting module, for the width is maximum to be painted when the higher value in the length and width of the first CGM form maps is more than
It is maximum that smaller value in the length and width of the width of figure instrument and the first CGM form maps is less than or equal to the width
Plotter width when, select the difference of smaller value in the length and width of width and the first CGM form maps as most
The plotter of small nonnegative number;The first CGM forms map is the CGM lattice after the CGM forms map or division
Formula map;When the length and width of the first CGM form maps is respectively less than or the width of the plotter maximum equal to the width
When spending, the difference for selecting the higher value in the length and width of width and the first CGM form maps is the nonnegative number of minimum
Plotter;
Output module, for the first CGM form maps to be sent into the plotter selected.
7. device according to claim 6, it is characterised in that the selecting module includes:
Rotary unit, for being the first CGM forms when the smaller value in the length and width of the first CGM form maps
The length of map, and the higher value in the length and width of the first CGM form maps is more than the maximum plotter of width
During width, or, when the higher value in the length and width of the first CGM form maps is the first CGM form maps
Length, and the length and width of the first CGM form maps is respectively less than or during the width of the plotter maximum equal to width,
The first CGM form maps are rotated by 90 °;
Selecting unit, for select the difference of the width of width and the first CGM form maps for minimum nonnegative number drawing
Instrument.
8. device according to claim 7, it is characterised in that the selecting unit is used for,
The width of the plotter is compared according to width of the order from small to large successively with the first CGM form maps
Compared with;
When the width of the plotter is more than the width of the first CGM form maps, stop comparing, and by the plotter
Plotter as the difference of width and the width of the first CGM form maps for minimum nonnegative number.
9. according to the device described in claim any one of 6-8, it is characterised in that the acquisition module is used for,
By the fileid.exe programs in Zeh drafting systems, the length and width of the CGM forms map is obtained.
10. according to the device described in claim any one of 6-8, it is characterised in that the width of the plotter include 24 inches,
36 inches and 42 inches.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410438420.8A CN105374056B (en) | 2014-08-29 | 2014-08-29 | A kind of CGM forms map treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410438420.8A CN105374056B (en) | 2014-08-29 | 2014-08-29 | A kind of CGM forms map treating method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105374056A CN105374056A (en) | 2016-03-02 |
CN105374056B true CN105374056B (en) | 2017-12-05 |
Family
ID=55376228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410438420.8A Active CN105374056B (en) | 2014-08-29 | 2014-08-29 | A kind of CGM forms map treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105374056B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1182280A (en) * | 1996-11-11 | 1998-05-20 | 日本电气株式会社 | Pattern drawing method using charged particle beams and apparatus therefor |
JP2012095079A (en) * | 2010-10-27 | 2012-05-17 | Nec Engineering Ltd | Pixel number conversion method, program for executing the same and pixel number converter |
CN102624873A (en) * | 2012-02-16 | 2012-08-01 | 上海华勤通讯技术有限公司 | Image sharing method, image sharing system and electronic equipment |
CN102760120A (en) * | 2012-05-12 | 2012-10-31 | 西北工业大学 | Engineering drawing layout optimization method |
-
2014
- 2014-08-29 CN CN201410438420.8A patent/CN105374056B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1182280A (en) * | 1996-11-11 | 1998-05-20 | 日本电气株式会社 | Pattern drawing method using charged particle beams and apparatus therefor |
JP2012095079A (en) * | 2010-10-27 | 2012-05-17 | Nec Engineering Ltd | Pixel number conversion method, program for executing the same and pixel number converter |
CN102624873A (en) * | 2012-02-16 | 2012-08-01 | 上海华勤通讯技术有限公司 | Image sharing method, image sharing system and electronic equipment |
CN102760120A (en) * | 2012-05-12 | 2012-10-31 | 西北工业大学 | Engineering drawing layout optimization method |
Also Published As
Publication number | Publication date |
---|---|
CN105374056A (en) | 2016-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10032089B2 (en) | Spatial transformer modules | |
CN109377467A (en) | Generation method, object detection method and the device of training sample | |
WO2008031085A3 (en) | System and method for web enabled geo-analytics and image processing | |
CN102393966B (en) | Self-adapting image compressive sampling method based on multi-dimension saliency map | |
CN108846842B (en) | Image noise detection method and device and electronic equipment | |
CN102074080A (en) | Customization and management method of visual management invoice template | |
EP2879054A3 (en) | Communication control device, information processing apparatus, parallel computer system, and control method for parallel computer system | |
EP3781944A1 (en) | Automated analysis of petrographic thin section images using advanced machine learning techniques | |
CN107248192A (en) | Solid figure method for drafting, device, equipment and storage medium | |
CN111768405B (en) | Method, device, equipment and storage medium for processing marked image | |
CN104951981A (en) | System for reporting and approving investment financing | |
EP3376409A3 (en) | Method and apparatus for spatial data visualization | |
CN104572610B (en) | A kind of automatic keyline layout method and device | |
CN105374056B (en) | A kind of CGM forms map treating method and apparatus | |
CN106897988A (en) | Unimolecule image correction system | |
CN110264452A (en) | A kind of workpiece inspection method, device, equipment and storage medium | |
CN114529909A (en) | Sample data set generation method and device and electronic equipment | |
CN104216882B (en) | File mask method and device | |
CN110334818B (en) | Method and system for automatically identifying pipeline | |
CN108804978A (en) | A kind of printed page analysis method and device | |
CN107977980A (en) | A kind of method for tracking target, equipment and computer-readable recording medium | |
CN106548027A (en) | A kind of new Source Apportionment based on Non-negative Matrix Factorization | |
Bonettini et al. | Primal-dual first order methods for total variation image restoration in presence of Poisson noise | |
CN110427944A (en) | Acquisition methods, device, equipment and the storage medium of car plate detection data | |
CN114283442A (en) | Intelligent identification method and device for secondary wiring diagram and storage medium |
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 |