CN101727675B - System and method for dynamically previewing insertion positions of graphic elements - Google Patents
System and method for dynamically previewing insertion positions of graphic elements Download PDFInfo
- Publication number
- CN101727675B CN101727675B CN200810305291XA CN200810305291A CN101727675B CN 101727675 B CN101727675 B CN 101727675B CN 200810305291X A CN200810305291X A CN 200810305291XA CN 200810305291 A CN200810305291 A CN 200810305291A CN 101727675 B CN101727675 B CN 101727675B
- Authority
- CN
- China
- Prior art keywords
- outline
- new
- collection
- graphic element
- coordinate points
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention relates to a method for dynamically previewing an insertion position of a graphic element, which comprises the following steps of: selecting a graph needing to be inserted with graphic elements; calculating an enclosing set of the selected graph; inputting the quantity N of the graphic elements to be inserted; carrying out offset processing on an outline of the enclosing set of the selected graph to obtain an outline of the new graphic enclosing set; selecting N coordinate points in different combinations from the outline of the new graphic enclosing set; drawing a circle by sequentially adopting the N coordinate points in different combinations as circle centers to be used as the insertion positions of the graphic elements to be inserted; and drawing the graphic elements to be inserted on the insertion positions confirmed by a user. The invention also provides a system for dynamically previewing the insertion positions of the graphic elements. By the invention, different combinations of the positions needing to be inserted by the graphic element to be inserted can be obtained to provide for the user to carry out selection.
Description
Technical field
The present invention relates to a kind of graphic element insertion system and method, relate in particular to a kind of system and method for dynamically previewing insertion positions of graphic elements.
Background technology
In mould development; Often utilize graphic design software (like AutoCAD) to carry out the design of mould X-Y scheme; Generally speaking; A mould X-Y scheme is made up of one or more graphic elements, if need on the diverse location of a mould X-Y scheme to draw a plurality of identical graphic elements, the designer often inserts all graphic elements in this mould X-Y scheme through the mode of duplicating.But this mode causes the omission of graphic element insertion and the mistake of position easily.
Summary of the invention
In view of above content; Be necessary to provide a kind of system of dynamically previewing insertion positions of graphic elements; It can be according to the number N that is inserted into graphic element of user input, obtains the various combination of the position that this N graphic element need insert automatically, offers the user and selects.
In addition, also be necessary to provide a kind of method of dynamically previewing insertion positions of graphic elements, it can be according to the number N that is inserted into graphic element of user input, obtains the various combination of the position that this N graphic element need insert automatically, offers the user and selects.
A kind of system of dynamically previewing insertion positions of graphic elements; Comprise main frame, said main frame comprises the mould design cell, is used to generate the X-Y scheme of various workpiece; Said main frame also includes GPU; This GPU comprises: computing module is used for after the graphic element that user's selection is inserted into inserts the figure of graphic element with needs, calculating encirclement collection, length and the width of selected figure; Offset module is used for after user input is inserted into the number N of graphic element, and the outline of the encirclement collection of selected figure is carried out migration processing, obtains the outline that a new figure surrounds collection; Get point module, be used to select for use non-equalization process and equalization process method, choose N coordinate points of various combination according to non-all equidistant and all equidistant outline from new figure encirclement collection; Drafting module is used for successively N coordinate points with various combination and is that draw in the center of circle is circular, as the insertion position of the graphic element that is inserted into, offers the user and carries out preview and selection; Said drafting module also is used for after the user confirms the insertion position, on the insertion position that the user confirms, draws the graphic element that is inserted into.
A kind of method of dynamically previewing insertion positions of graphic elements comprises the steps: to select graphic element that is inserted into and the figure that needs to insert graphic element; Calculate encirclement collection, length and the width of selected figure; Input is inserted into the number N of graphic element; Outline to the encirclement collection of selected figure carries out migration processing, obtains the outline that a new figure surrounds collection; Select non-equalization process and equalization process method for use, choose N coordinate points of various combination according to non-all equidistant and all equidistant outline from new figure encirclement collection; N coordinate points with various combination is that circle is drawn in the center of circle successively, as the insertion position of the graphic element that is inserted into, offers the user and carries out preview and selection; After the user confirms the insertion position, on the insertion position that the user confirms, draw the graphic element that is inserted into.
Compared to prior art; The system and method for said dynamically previewing insertion positions of graphic elements; Can be according to the number N that is inserted into graphic element of user's input; Automatically obtain the various combination of the position that this N graphic element need insert, offer the user and select, improved quality and efficient that graphic element is drawn.
Description of drawings
Fig. 1 is the system architecture diagram of preferred embodiment of the system of dynamically previewing insertion positions of graphic elements of the present invention.
Fig. 2 is the functional block diagram of GPU shown in Fig. 1.
Fig. 3 is the synoptic diagram that obtains the various combination that is inserted into the position that graphic element need insert.
Fig. 4 is the process flow diagram of the method preferred embodiment of dynamically previewing insertion positions of graphic elements of the present invention.
Embodiment
As shown in Figure 1, be the system architecture diagram of preferred embodiment of the system of dynamically previewing insertion positions of graphic elements of the present invention.This system mainly comprises display 1, main frame 2, keyboard 3 and mouse 4, and said main frame 2 includes mould design cell 20 and GPU 21.Wherein, mould design cell 20 is automatic design softwares of a kind of mould (like AutoCAD), is used for generating in the mould design X-Y scheme of various workpiece.Said mould design cell 20 comprises a graphic data base 30, and said graphic data base 30 is used to store the attribute of X-Y scheme of X-Y scheme and each workpiece of the workpiece that mould design cell 20 generates.The attribute of the X-Y scheme of said workpiece comprises: the summit that limit, every the limit that the X-Y scheme of workpiece comprised comprised and the coordinate figure on each summit etc.Said GPU 21 is used for the number N that is inserted into graphic element according to user's input; Automatically obtain the various combination of the position that this N graphic element need insert; Offer the user and select to confirm, and on the position that the user confirms, draw the graphic element that is inserted into.
Said main frame 2 is connected with display 1, is used to show the figure of mould design cell 20 generations and the graphic element of GPU 21 draftings etc.Said keyboard 3 is used as input equipment with mouse 4, input data in the time of can and carrying out the affirmation of graphic element insertion position at the generation figure.
As shown in Figure 2, be the functional block diagram of GPU shown in Fig. 1 21.Said GPU 21 comprises computing module 210, offset module 211, gets point module 212 and drafting module 213.The alleged module of the present invention is to accomplish the computer program code segments of a specific function, be more suitable in describing the implementation of software in computing machine than program, therefore below the present invention to all describing in the software description with module.
Below will combine Fig. 3 to carry out to the description of each functional module.Said computing module 210 is used for after the graphic element that user's selection is inserted into inserts the figure of graphic element with needs, calculating encirclement collection, length and the width of selected figure according to the apex coordinate value of selected figure.Wherein, selected figure is the figure of sealing rule, and the user can select one, also can select a plurality of.
Said offset module 211 is used for after user input is inserted into the number N of graphic element, and the outline of the encirclement collection of selected figure is carried out migration processing, obtains the outline that a new figure surrounds collection.Wherein, N >=1, if user input be inserted into graphic element number N less than 1, then point out the user to re-enter.Said migration processing is meant specifies numerical value (like 20mm) with the outline of the encirclement collection of selected figure to bias internal one.As shown in Figure 3, K1 is the outline of the encirclement collection of selected figure, and K2 is that the new figure that K1 obtains after bias internal one is specified numerical value surrounds the outline that collects, and the initial point of coordinate system is the central point E of K1.
The said point module 212 of getting is used to select for use non-equalization process and equalization process method, chooses N coordinate points of various combination according to non-all equidistant and all equidistant outline from new figure encirclement collection.
The rule that non-equalization process method is obtained N coordinate points of various combination is: get point module 212 and calculate the intersection point that coordinate axis (X axle and Y axle) and new figure surround the outline of collection; According to the length of selected figure and the product size of width; Said intersection point is obtained different translation points along the coordinate axis translation; Then,, all summits, coordinate axis that new figure surrounds the outline of collection and new figure choose a various combination N coordinate points from surrounding intersection point and the said translation point of the outline that collects.Wherein, Said intersection point is meant along the coordinate axis translation: the intersection point that X axle and new figure surround the outline that collects is along Y axle positive dirction or negative direction translation distance to a declared goal; The intersection point that Y axle and new figure surround the outline that collects is along X axle positive dirction or negative direction translation distance to a declared goal; The length of selected figure and the product of width are big more, need the number of times of translation many more, and the translation point of acquisition is also just many more.Particularly; The user can be divided into different big minizones with the area of width with the length of selected figure, and is set in and needs the number of times of translation and the distance of each translation in each interval, wherein; Along with the increase of translation number of times, the also corresponding increase of translation distance.
As shown in Figure 3; E is the initial point (being the central point of K1 and K2) of coordinate system; A, B, C and D are the summit that new figure surrounds the outline K2 of collection; F, G, H and I are the intersection point of coordinate axis and K2, I1 and the G1 translation point that to be intersection I and G obtain behind X axle negative direction translation one segment distance, F1 and the H1 translation point that to be intersection point F and H obtain behind Y axle positive dirction translation one segment distance.
The rule that the equalization process method is obtained N coordinate points is: get point module 212 outline that new figure surrounds collection is divided into N part, the coordinate points of obtaining N Along ent gets final product.Wherein, five equilibrium operation will begin from the starting point that new figure surrounds the outline of collection.
If all summits, coordinate axis that new figure surrounds the outline of collection and new figure surround the outline that collects intersection point and said translation point quantity and less than the number N that is inserted into graphic element, then only choose N the coordinate points that the equalization process method is obtained.
Said drafting module 213 is used for successively N coordinate points with various combination, and to be that the center of circle is drawn circular, as the insertion position of the graphic element that is inserted into, is presented on the display 1, offers the user and carry out preview and selection.Wherein, the radius of said circle is less than or equal to the appointment numerical value of said skew.
Said drafting module 213 also is used for after the user confirms the insertion position, on the insertion position that the user confirms, draws the graphic element that is inserted into.As shown in Figure 3, suppose that the insertion position that the user confirms is A, B, C, D, F, G, H and I, then drafting module 213 is drawn the graphic element that is inserted at A, B, C, D, F, G, H and I.
In the present embodiment, get point module 212 and select non-equalization process and equalization process method simultaneously for use, choose N coordinate points of various combination according to non-all equidistant and all equidistant outline from new figure encirclement collection.In other embodiments, get point module 212 and also can only select non-equalization process method or equalization process method for use, choose N coordinate points of various combination according to non-all equidistant or all equidistant outline from new figure encirclement collection.
As shown in Figure 4, be the process flow diagram of the method preferred embodiment of dynamically previewing insertion positions of graphic elements of the present invention.Step S41 selects graphic element that is inserted into and the figure that needs to insert graphic element.
Step S42, computing module 210 calculate encirclement collection, length and the width of selected figure according to the apex coordinate value of selected figure.Wherein, selected figure is the figure of sealing rule, and the user can select one, also can select a plurality of.
Step S43, input is inserted into the number N of graphic element.Wherein, N >=1, if user input be inserted into graphic element number N less than 1, then point out the user to re-enter.
Step S44, the outline of the encirclement collection of 211 pairs of selected figures of offset module carries out migration processing, obtains the outline that a new figure surrounds collection.Said migration processing is meant specifies numerical value with the outline of the encirclement collection of selected figure to bias internal one.
Step S45 gets point module 212 and selects non-equalization process and equalization process method for use, chooses N coordinate points of various combination according to non-all equidistant and all equidistant outline from new figure encirclement collection.
Wherein, The rule that non-equalization process method is obtained N coordinate points of various combination is: get point module 212 and calculate the intersection point that coordinate axis (X axle and Y axle) and new figure surround the outline of collection; According to the length of selected figure and the product size of width; Said intersection point is obtained different translation points along the coordinate axis translation; Then,, all summits, coordinate axis that new figure surrounds the outline of collection and new figure choose a various combination N coordinate points from surrounding intersection point and the said translation point of the outline that collects.Wherein, Said intersection point is meant along the coordinate axis translation: the intersection point that X axle and new figure surround the outline that collects is along Y axle positive dirction or negative direction translation distance to a declared goal; The intersection point that Y axle and new figure surround the outline that collects is along X axle positive dirction or negative direction translation distance to a declared goal; The length of selected figure and the product of width are big more, need the number of times of translation many more, and the translation point of acquisition is also just many more.Particularly; The user can be divided into different big minizones with the area of width with the length of selected figure, and is set in and needs the number of times of translation and the distance of each translation in each interval, wherein; Along with the increase of translation number of times, the also corresponding increase of translation distance.
The rule that the equalization process method is obtained N coordinate points is: get point module 212 outline that new figure surrounds collection is divided into N part, the coordinate points of obtaining N Along ent gets final product.Wherein, five equilibrium operation will begin from the starting point that new figure surrounds the outline of collection.
If all summits, coordinate axis that new figure surrounds the outline of collection and new figure surround the outline that collects intersection point and said translation point quantity and less than the number N that is inserted into graphic element, then only choose N the coordinate points that the equalization process method is obtained.
Step S46, drafting module 213 are that circle is drawn in the center of circle with N coordinate points of various combination successively, as the insertion position of the graphic element that is inserted into, are presented on the display 1, offer the user and carry out preview and selection.Wherein, the radius of said circle is less than or equal to the appointment numerical value of said skew.
Step S47, after the user confirmed the insertion position, drafting module 213 was drawn the graphic element that is inserted on the insertion position that the user confirms.
What should explain at last is; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.
Claims (8)
1. the method for a dynamically previewing insertion positions of graphic elements is characterized in that, this method comprises the steps:
Graphic element that selection is inserted into and the figure that needs to insert graphic element;
Calculate encirclement collection, length and the width of selected figure;
Input is inserted into the number N of graphic element;
Outline to the encirclement collection of selected figure carries out migration processing, obtains the outline that a new figure surrounds collection;
Select non-equalization process and equalization process method for use, choose N coordinate points of various combination, comprising according to the non-all equidistant and all equidistant outline that surrounds collection from new figure:
Utilize non-equalization process method to obtain N coordinate points of various combination: coordinates computed axle and new figure surround the intersection point of the outline of collection; According to the length of selected figure and the product size of width; Said intersection point is obtained different translation points along the coordinate axis translation; Then,, all summits, coordinate axis that new figure surrounds the outline of collection and new figure choose a various combination N coordinate points from surrounding intersection point and the said translation point of the outline that collects;
Utilize the equalization process method to obtain N coordinate points: the outline that new figure is surrounded collection is divided into N part, obtains the coordinate points of N Along ent;
If all summits, coordinate axis that new figure surrounds the outline of collection and new figure surround the outline that collects intersection point and said translation point quantity and less than the number N that is inserted into graphic element, then only choose N the coordinate points that the equalization process method is obtained;
N coordinate points with various combination is that circle is drawn in the center of circle successively, as the insertion position of the graphic element that is inserted into, offers the user and carries out preview and selection; And
After the user confirms the insertion position, on the insertion position that the user confirms, draw the graphic element that is inserted into.
2. the method for dynamically previewing insertion positions of graphic elements as claimed in claim 1 is characterized in that, said migration processing is meant specifies numerical value with the outline of the encirclement collection of selected figure to bias internal one.
3. the method for dynamically previewing insertion positions of graphic elements as claimed in claim 1; It is characterized in that; Wherein, Said intersection point is meant along the coordinate axis translation: the intersection point that X axle and new figure surround the outline that collects is along Y axle positive dirction or negative direction translation distance to a declared goal, and the intersection point that Y axle and new figure surround the outline that collects is along X axle positive dirction or negative direction translation distance to a declared goal.
4. the method for dynamically previewing insertion positions of graphic elements as claimed in claim 1 is characterized in that, the radius of said circle is less than or equal to the appointment numerical value of said skew.
5. the system of a dynamically previewing insertion positions of graphic elements comprises main frame, and said main frame comprises the mould design cell, is used to generate the X-Y scheme of various workpiece, it is characterized in that, said main frame also includes GPU, and this GPU comprises:
Computing module is used for after the graphic element that user's selection is inserted into inserts the figure of graphic element with needs, calculating encirclement collection, length and the width of selected figure;
Offset module is used for after user input is inserted into the number N of graphic element, and the outline of the encirclement collection of selected figure is carried out migration processing, obtains the outline that a new figure surrounds collection;
Get point module, be used to select for use non-equalization process and equalization process method, choose N coordinate points of various combination, comprising according to the non-all equidistant and all equidistant outline that surrounds collection from new figure:
Utilize non-equalization process method to obtain N coordinate points of various combination: to get the intersection point that point module coordinates computed axle and new figure surround the outline of collection; According to the length of selected figure and the product size of width; Said intersection point is obtained different translation points along the coordinate axis translation; Then,, all summits, coordinate axis that new figure surrounds the outline of collection and new figure choose a various combination N coordinate points from surrounding intersection point and the said translation point of the outline that collects;
Utilize the equalization process method to obtain N coordinate points: to get point module the outline that new figure surrounds collection is divided into N part, obtain the coordinate points of N Along ent;
If all summits, coordinate axis that new figure surrounds the outline of collection and new figure surround the outline that collects intersection point and said translation point quantity and less than the number N that is inserted into graphic element, then only choose N the coordinate points that the equalization process method is obtained;
Drafting module is used for successively N coordinate points with various combination and is that draw in the center of circle is circular, as the insertion position of the graphic element that is inserted into, offers the user and carries out preview and selection; And
Said drafting module also is used for after the user confirms the insertion position, on the insertion position that the user confirms, draws the graphic element that is inserted into.
6. the system of dynamically previewing insertion positions of graphic elements as claimed in claim 5 is characterized in that, said migration processing is meant specifies numerical value with the outline of the encirclement collection of selected figure to bias internal one.
7. the system of dynamically previewing insertion positions of graphic elements as claimed in claim 5; It is characterized in that; Wherein, Said intersection point is meant along the coordinate axis translation: the intersection point that X axle and new figure surround the outline that collects is along Y axle positive dirction or negative direction translation distance to a declared goal, and the intersection point that Y axle and new figure surround the outline that collects is along X axle positive dirction or negative direction translation distance to a declared goal.
8. the system of dynamically previewing insertion positions of graphic elements as claimed in claim 5 is characterized in that, the radius of said circle is less than or equal to the appointment numerical value of said skew.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810305291XA CN101727675B (en) | 2008-10-30 | 2008-10-30 | System and method for dynamically previewing insertion positions of graphic elements |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810305291XA CN101727675B (en) | 2008-10-30 | 2008-10-30 | System and method for dynamically previewing insertion positions of graphic elements |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101727675A CN101727675A (en) | 2010-06-09 |
CN101727675B true CN101727675B (en) | 2012-03-14 |
Family
ID=42448526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810305291XA Expired - Fee Related CN101727675B (en) | 2008-10-30 | 2008-10-30 | System and method for dynamically previewing insertion positions of graphic elements |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101727675B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI532007B (en) * | 2014-07-18 | 2016-05-01 | 三緯國際立體列印科技股份有限公司 | Searching method for plane area of 3D module |
CN106033409B (en) * | 2015-03-20 | 2019-07-26 | 广州金山移动科技有限公司 | A kind of vertex edit method and device |
CN114840203B (en) * | 2022-07-04 | 2022-09-16 | 金现代信息产业股份有限公司 | Dynamic creation method and system of page elements |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5528743A (en) * | 1993-05-27 | 1996-06-18 | Apple Computer, Inc. | Method and apparatus for inserting text on a pen-based computer system |
JP3259981B2 (en) * | 1992-05-13 | 2002-02-25 | 東京瓦斯株式会社 | Partial correction system for graphic data and method for partial correction of graphic data |
CN101050956A (en) * | 2006-04-07 | 2007-10-10 | 鸿富锦精密工业(深圳)有限公司 | Detecting system and method for rationality of screw plug-in position |
CN101055601A (en) * | 2006-04-12 | 2007-10-17 | 鸿富锦精密工业(深圳)有限公司 | Quick inserting pattern frame system and method |
-
2008
- 2008-10-30 CN CN200810305291XA patent/CN101727675B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3259981B2 (en) * | 1992-05-13 | 2002-02-25 | 東京瓦斯株式会社 | Partial correction system for graphic data and method for partial correction of graphic data |
US5528743A (en) * | 1993-05-27 | 1996-06-18 | Apple Computer, Inc. | Method and apparatus for inserting text on a pen-based computer system |
CN101050956A (en) * | 2006-04-07 | 2007-10-10 | 鸿富锦精密工业(深圳)有限公司 | Detecting system and method for rationality of screw plug-in position |
CN101055601A (en) * | 2006-04-12 | 2007-10-17 | 鸿富锦精密工业(深圳)有限公司 | Quick inserting pattern frame system and method |
Non-Patent Citations (1)
Title |
---|
JP特许第3259981号B2 2001.12.14 |
Also Published As
Publication number | Publication date |
---|---|
CN101727675A (en) | 2010-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5913221A (en) | Automated recognition of and distinction among graphics input, text input, and editing commands in a pen based computer | |
CN102929473B (en) | Document data entry suggestions | |
US11226996B2 (en) | Identifying and graphically representing multiple parent nodes of a child node | |
US20030158846A1 (en) | Graphics image generation method, program and statistical data drawing apparatus | |
US20120054653A1 (en) | Visualizing user interfaces | |
CN1085866C (en) | Character string outputting method and apparatus capable of varying sizes of characters | |
CN101727675B (en) | System and method for dynamically previewing insertion positions of graphic elements | |
US5469539A (en) | Method for abstracting/detailing structuring elements of system specification information | |
CN103218141B (en) | Based on vital sign information input method and the mobile terminal of mobile terminal | |
CN101971244A (en) | Display data output device | |
JP2008015929A (en) | Handwriting input processor, handwriting input processing method and handwriting input processing program | |
CN101436304B (en) | Method and apparatus for generating three-dimensional interactive interface | |
Chik et al. | Intelligent mind-mapping | |
Li et al. | A human-computer interactive dynamic description method for Jiaguwen Characters | |
JP3898485B2 (en) | Drawing drawing display device, drawing drawing display method, and recording medium | |
CN103838903A (en) | Method for creating Label through user-defined font object library | |
CN113687752A (en) | Information display method and device, electronic equipment and storage medium | |
JP5290138B2 (en) | Mesh changing device, mesh changing method, and program | |
CN110032718B (en) | Table conversion method, system and storage medium | |
TWI428777B (en) | System and method for previewing insert positions of graphic elements | |
CN108460826A (en) | A kind of processing method and terminal of 3D models | |
JP6992795B2 (en) | Chart creation program and information processing device with chart creation function | |
CN101571882A (en) | System and method for generating minimum outline of characters | |
JP2959513B2 (en) | Integrated circuit design flow generation system | |
JP2001188922A (en) | System and method for three-dimensional shape processing and storage medium stored with program for implementing the method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120314 Termination date: 20151030 |
|
EXPY | Termination of patent right or utility model |