The content of the invention
For overcome the deficiencies in the prior art, it is an object of the invention to provide a kind of method and dress for drawing plan
Put, mapping worker is easily drawn simple sketch according to field condition at the scene, utilize this method and its device energy intelligence
The numerical value that energy ground inputs according to user adjusts the shape in sketch, simplifies drawing step, can be quickly generated required engineering
Plan.
To solve the above problems, the technical solution adopted in the present invention is as follows:
Technical scheme one:
A kind of method for drawing plan, comprises the following steps:
Step A:The sketch drawn by user that user is submitted is read, the sketch that user draws is to lack one section of closed line
The imperfect sketch of bar;
Step B:One section of vertical element is generated by the terminal of the final stage lines in imperfect sketch and first paragraph lines
For starting point connection closure to form a complete sketch, the vertical element of the generation is designated as adaptive lines;
Step C:User is read first to the actual (tube) length angle value that wherein one section of lines is assigned, and respectively by corresponding length ratio
Example assigns actual (tube) length angle value to other lines in the complete sketch, wherein, corresponding length ratio refers to the lines and head for treating assignment
The display length ratio of the lines of secondary assignment;
Step D:When user modifies to the actual (tube) length angle value of lines, read amended actual (tube) length angle value and accordingly repair
Change display length of the lines in complete sketch;When user modifies to the angle of lines and adjacent lines, reading is changed
Rear angle simultaneously accordingly changes the lines and display angle of the adjacent lines in complete sketch;
Step E:The request that the completion that user is submitted is drawn is read, and is preserved with the final state of complete sketch.
Further, if lines are camber line, the straight length of the length of camber line between two end points of camber line, and arc
The radian of line will not change and change with the length of camber line.
Further, in step D, when user modifies to the radian of camber line, amended radian and corresponding is read
Change display radian of the camber line in complete sketch.
Technical scheme two:
A kind of device for drawing plan, including with lower module:
Sketch module is read, the sketch drawn by user submitted for reading user, the sketch that user draws is scarce
The imperfect sketch of few one section of closure lines;
Complete sketch module is generated, for generating one section of vertical element by the terminal of the final stage lines in imperfect sketch
Closure is connected with the starting point of first paragraph lines to form a complete sketch, the vertical element of the generation is designated as adaptive lines;
Assignment module, for reading user first to the actual (tube) length angle value that wherein one section of lines is assigned, and respectively by pair
Length ratio is answered to assign actual (tube) length angle value to other lines in the complete sketch, wherein, corresponding length ratio, which refers to, treats assignment
The display length ratio of lines and the lines of assignment first;
Assignment modified module, for being modified as user to the actual (tube) length angle value of lines, read amended actual (tube) length
Angle value simultaneously accordingly changes display length of the lines in complete sketch;When user repaiies to the angle of lines and adjacent lines
Change, read amended angle and accordingly change the lines and display angle of the adjacent lines in complete sketch;
Preserving module, the request drawn for reading the completion that user is submitted, and entered with the final state of complete sketch
Row preserves.
Further, if lines are camber line, the straight length of the length of camber line between two end points of camber line, and arc
The radian of line will not change and change with the length of camber line.
Further, in assignment modified module, when user modifies to the radian of camber line, amended radian is read
And accordingly change display radian of the camber line in complete sketch.
Compared with prior art, the beneficial effects of the present invention are:Enable mapping worker easily at the scene according to live feelings
Condition draws simple sketch, and the numerical value that intelligently can be inputted using this method and its device according to user adjusts the shape in sketch
Shape, drawing step is simplified, required engineering plan can be quickly generated.Wherein, in skeletonizing, it is not necessary to draw most
Latter section of lines, but supplemented by this method, the step can not only save plot step, and when mapping worker will be other
After the completion of the length and angle of all lines are all changed, the lines being automatically replenished can judge as a judgment standard by
Whether the length for the lines that method determines and the length actually measured have error.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further:
With reference to figure 1, a kind of method for drawing plan, this method is applied in a kind of software with drawing function, should
Software is preferably cell phone software, and user can draw plan by the software on handset touch panel, by the side in software
Method handles to obtain the engineering plan needed for user, and wherein method comprises the following steps:
Step A:Read the sketch drawn by user that user is submitted.
The live building structure that surveyor arrives according to the observation, the general outline of the structure is drawn out using handset touch panel,
Such as be made up of several lines, lines are straight line or camber line, and these can all be determined by observing.In skeletonizing
When, final stage lines need not be drawn, but by below the step of automatically generate, sketch is supplemented complete, both saves work
Measure, whether can also be met the requirements by this section of lines Judge plane figure automatically generated.For example, to draw five sides
The plan of shape, user only need to draw out four sections of lines.
Step B:One section of vertical element is generated by the terminal of the final stage lines in imperfect sketch and first paragraph lines
For starting point connection closure to form a complete sketch, the vertical element of the generation is designated as adaptive lines.
That section of lines lacked in the sketch that the step automatically submits user, which are supplemented in, to be come, and this section of lines are adaptive
Lines, user can not edit to it, when user enters edlin so as to change the shape of the sketch to other lines, the section
Lines connect the terminal for the final stage lines that user is drawn and the starting point of first paragraph lines all the time.
Step C:User is read first to the actual (tube) length angle value that wherein one section of lines is assigned, and respectively by corresponding length ratio
Example assigns actual (tube) length angle value to other lines in the complete sketch, wherein, corresponding length ratio refers to the lines and head for treating assignment
The display length ratio of the lines of secondary assignment.
In stepb, a complete sketch has been generated, but the lines in the complete sketch are also actual without assigning
The numerical value detected.Therefore, in this step, user will detect the actual (tube) length angle value of wherein one section lines by software to complete
Corresponding lines carry out assignment in whole sketch.Because the length of one section of lines and another section of lines is that have ratio in complete sketch
Example, the line length shown in complete sketch is designated as to show length, then other lines in complete sketch will be each
Assignment is carried out from according to the display length ratio of itself and that section of lines of assignment.It can be realized whole by such mode
Quick valuation is carried out to every section of lines on the basis of the shape invariance of individual complete sketch.For example, in the complete grass of a triangle
In figure, the display length ratio of three sections of lines is 3:4:5, it is 6 that section of most short lines are imparted physical length by user, is passed through
The step assigns two other line to 8 and 10 respectively automatically.
Especially, if lines are camber line, the length of camber line is the straight length between two end points of camber line, and
The length of camber line changes will not be to the radian of change camber line.
Step D:When user modifies to the actual (tube) length angle value of lines, read amended actual (tube) length angle value and accordingly repair
Change display length of the lines in complete sketch;When user modifies to the angle of lines and adjacent lines, reading is changed
Rear angle simultaneously accordingly changes the lines and display angle of the adjacent lines in complete sketch.
In step C, every section of lines all have been assigned actual (tube) length angle value, but because the complete sketch is user according to sight
Examine what is probably described, therefore the actual (tube) length angle value is typically all inaccurate, in addition between lines and adjacent lines
Angle is also inaccurate, is required for adjustment of modifying in step D.
Because the actual (tube) length angle value of that section of lines of assignment is correct first, avoid the need for changing the lines,
User modifies to the actual (tube) length angle value of other lines respectively in the step, wherein, carried out for the length of a certain section of lines
During modification, the length of other lines is also corresponded to while have modified physical length and changed in complete sketch all without change
Show length.Length except changing lines, should also change the angle between two lines bar, the mode of concrete modification angle is:
A dotted line is introduced, the dotted line two sections of lines corresponding with angle form a triangle, because the length of both ends lines corresponding to angle
Spend for determination, so the size of angle can be determined by determining the length of the dotted line.In this programme, the determination of angle is using upper
The mode stated, therefore, user is in the respective length of the adjacent two sections of lines of measurement, it is also necessary to measures the length of above-mentioned dotted line.
User is after the physical length of adjacent two sections of lines is changed, then dotted line length corresponding to changing can change its angle.
Especially, when lines are camber line, it is also necessary to change the radian of the camber line, the mode for determining radian is:Measuring
When, taken on camber line a bit, the length two-end-point of the point and camber line forms a triangle, measures three lines of the triangle respectively
The radian of the camber line can be determined.In this programme, after user changes the physical length of camber line, then the triangle in camber line is changed
The physical lengths of other two sections of lines can change the radian of the camber line.
Step E:The request that the completion that user is submitted is drawn is read, and is preserved with the final state of complete sketch.
After the completion of user's modification, the last modification state of the complete sketch can be preserved by preserving function.
It can be brought great convenience using the above method to mapping worker, this method is applied in a software, mapping worker
Only need the hand-held device for being provided with the software rapidly can be drawn out live structure at mapping scene.Because survey and draw people
Member possesses and has stronger observation ability and susceptibility, therefore can draw out the overall profile of structure in skeletonizing,
When drawing, it is not necessary to draw final stage lines, but supplemented by this method, the step can not only save drafting step
Suddenly, and after the completion of mapping worker all changes the length of other all lines and angle, the lines that this is automatically replenished are just
Whether the length for the lines that can judge to be determined by method as a judgment standard has error with the length actually measured.Under
One step, physical length is inputted using one section of lines as benchmark, and other lines are ensureing whole shape in corresponding ratio assignment
In the case of constant, the length value of other lines is set to also tend to real length value.Then next step, respectively to each section of line
The length value and angle of bar are modified, and the shape of sketch is also correspondingly adjusted with the modification of numerical value.Finally, total data is repaiied
Changing and can preserving the sketch after accurate turns into engineering plan use.Wherein, it is necessary to input numerical value in above-mentioned process
Place there is corresponding input frame to be easy to user to input.
In the present invention, there is a device corresponding to this method, a kind of device for drawing plan, including with lower module:
Sketch module is read, the sketch drawn by user submitted for reading user, the sketch that user draws is scarce
The imperfect sketch of few one section of closure lines;
Complete sketch module is generated, for generating one section of vertical element by the terminal of the final stage lines in imperfect sketch
Closure is connected with the starting point of first paragraph lines to form a complete sketch, the vertical element of the generation is designated as adaptive lines;
Assignment module, for reading user first to the actual (tube) length angle value that wherein one section of lines is assigned, and respectively by pair
Length ratio is answered to assign actual (tube) length angle value to other lines in the complete sketch, wherein, corresponding length ratio, which refers to, treats assignment
The display length ratio of lines and the lines of assignment first;
Assignment modified module, for being modified as user to the actual (tube) length angle value of lines, read amended actual (tube) length
Angle value simultaneously accordingly changes display length of the lines in complete sketch;When user repaiies to the angle of lines and adjacent lines
Change, read amended angle and accordingly change the lines and display angle of the adjacent lines in complete sketch;
Preserving module, the request drawn for reading the completion that user is submitted, and entered with the final state of complete sketch
Row preserves.
Further, if lines are camber line, the straight length of the length of camber line between two end points of camber line, and arc
The radian of line will not change and change with the length of camber line.
Further, in assignment modified module, when user modifies to the radian of camber line, amended radian is read
And accordingly change display radian of the camber line in complete sketch.
It will be apparent to those skilled in the art that technical scheme that can be as described above and design, make other various
Corresponding change and deformation, and all these changes and deformation should all belong to the protection domain of the claims in the present invention
Within.