CN102141909A - Primitive creation method and system - Google Patents

Primitive creation method and system Download PDF

Info

Publication number
CN102141909A
CN102141909A CN201010113169XA CN201010113169A CN102141909A CN 102141909 A CN102141909 A CN 102141909A CN 201010113169X A CN201010113169X A CN 201010113169XA CN 201010113169 A CN201010113169 A CN 201010113169A CN 102141909 A CN102141909 A CN 102141909A
Authority
CN
China
Prior art keywords
frame selection
primitive
graphic element
drawing panel
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201010113169XA
Other languages
Chinese (zh)
Other versions
CN102141909B (en
Inventor
陈泓鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kingdee Tianyanyun Computing Co ltd
Original Assignee
Shenzhen Kingdee Middleware Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kingdee Middleware Co ltd filed Critical Shenzhen Kingdee Middleware Co ltd
Priority to CN201010113169.XA priority Critical patent/CN102141909B/en
Publication of CN102141909A publication Critical patent/CN102141909A/en
Application granted granted Critical
Publication of CN102141909B publication Critical patent/CN102141909B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a primitive creation method and a system. The method comprises the following steps: obtaining the box selection information of a drawing panel; and creating a corresponding primitive in a box selection area of the drawing panel according to the box selection information. Through the primitive creation method, the box selection information of the drawing panel is obtained, and the corresponding primitive in the box selection area of the drawing panel is obtained according to the box selection information. With the adoption of the method and the system, a user can create the corresponding primitive in the box selection area according to the box selection information of the user only through carrying out box selection to the drawing panel; and the repeated movement between a toolbar and the drawing panel is not required during the continuous creation. The primitive creation method and the system have simple process, are convenient and quick to operate, save a large quantity of time and energy and keep continuous drawing, thereby greatly improving the drawing efficiency and enhancing the experience effect of the user.

Description

图元创建方法及系统Graphic element creation method and system

【技术领域】【Technical field】

本发明涉及一种计算机应用领域,尤其涉及一种图元创建方法及系统。The invention relates to the field of computer applications, in particular to a method and system for creating graphic elements.

【背景技术】【Background technique】

随着计算机技术的发展,越来越多的人使用绘图工具进行各种绘图,大多数的制图都由绘图工具来完成。With the development of computer technology, more and more people use drawing tools for various drawing, most of the drawing is done by drawing tools.

传统的绘图工具,图元的创建按钮都位于工具栏上。创建图元时,首先将鼠标移动到工具栏上,找到相应的创建按钮,然后点击创建按钮不放,把新建的图元拖入绘图面板中,在合适的位置释放鼠标,图元就创建绘图面板中。同时,新建的图元以默认大小创建于绘图面板中,用户想要获得所需大小尺寸的图元,还要再通过拖拽图形边缘的拖拉点,将图形调整到所需的大小,才能最终获得所需图元,步骤较多,过程复杂,操作繁琐。尤其在连续创建多个图元时,鼠标要在工具栏和绘图面板之间频繁地大范围移动,在工具栏里不停查找所需图元,不断地对图元大小进行调整,浪费大量时间,耗费很大的精力,操作不能保持连续性,极大的降低了操作效率,影响用户的体验效果。For traditional drawing tools, the creation buttons of primitives are all located on the toolbar. When creating a primitive, first move the mouse to the toolbar, find the corresponding create button, then click the create button and hold it down, drag the newly created primitive into the drawing panel, release the mouse at a suitable position, and the primitive will create a drawing panel. At the same time, the newly created primitives are created in the drawing panel with the default size. If the user wants to obtain the primitives of the required size, he has to drag the drag point on the edge of the graph to adjust the graph to the required size. Obtaining the required graphic elements requires many steps, the process is complicated, and the operation is cumbersome. Especially when creating multiple primitives continuously, the mouse needs to move frequently and in a large range between the toolbar and the drawing panel, constantly searching for the required primitives in the toolbar, and constantly adjusting the size of the primitives, wasting a lot of time , It consumes a lot of energy, and the operation cannot maintain continuity, which greatly reduces the operation efficiency and affects the user experience.

【发明内容】【Content of invention】

有鉴于此,有必要针对上述图元创建过程繁琐的问题,提供一种快捷方便的图元创建方法。In view of this, it is necessary to provide a fast and convenient method for creating primitives for the above-mentioned cumbersome creation process of primitives.

此外,还有必要提供一种快捷的图元创建系统。In addition, it is also necessary to provide a fast primitive creation system.

一种图元创建方法,包括如下步骤:A method for creating a graphic element, comprising the steps of:

获取对绘图面板的框选信息;Obtain the frame selection information of the drawing panel;

根据所述框选信息在绘图面板的框选区域创建相对应的图元。Create corresponding primitives in the frame selection area of the drawing panel according to the frame selection information.

优选的,所述框选信息包括:框选区域的大小、框选区域的位置和框选方向中的一种或两种以上,所述框选方向包括右下、左下、左上和右上中的一种或两种以上。Preferably, the framing information includes: one or more of the size of the framing area, the position of the framing area, and the framing direction, and the framing direction includes bottom right, bottom left, top left, and top right. One or more than two.

优选的,所述根据所述框选信息在绘图面板的框选区域创建相对应的图元的步骤具体包括:Preferably, the step of creating corresponding graphic elements in the frame selection area of the drawing panel according to the frame selection information specifically includes:

根据获取的框选方向在绘图面板的框选区域创建与所述框选方向对应的图元。Create a primitive corresponding to the frame selection direction in the frame selection area of the drawing panel according to the obtained frame selection direction.

优选的,所述根据获取的框选方向在绘图面板的框选区域创建与所述框选方向对应的图元的步骤具体是:Preferably, the step of creating a graphic element corresponding to the frame selection direction in the frame selection area of the drawing panel according to the obtained frame selection direction is specifically:

建立框选方向与图元的对应关系;Establish the corresponding relationship between the frame selection direction and the primitive;

判断框选信息中的框选方向;Determine the frame selection direction in the frame selection information;

当所述框选方向为右下时,在绘图面板的框选区域创建用户创建次数最多的图元;When the frame selection direction is lower right, create the graphic element with the most user creation times in the frame selection area of the drawing panel;

当所述框选方向为左下时,在绘图面板的框选区域创建用户上一次创建的图元;When the marquee direction is lower left, create the primitive created by the user last time in the marquee area of the drawing panel;

当所述框选方向为左上时,在绘图面板的框选区域创建用户创建次数次多的图元;When the frame selection direction is upper left, create the graphic element with the most user creation times in the frame selection area of the drawing panel;

当所述框选方向为右上时,在绘图面板浮现图元工具栏供用户选择。When the frame selection direction is upper right, a graphic element tool bar appears on the drawing panel for the user to select.

优选的,在获取对绘图面板的框选信息的步骤之后还包括:Preferably, after the step of obtaining the frame selection information of the drawing panel, it also includes:

判断框选区域是否具有已创建的图元,若是,则选中所述已创建的图元,否则执行所述根据所述框选信息在绘图面板的框选区域创建相对应的图元的步骤。Judging whether the frame selection area has created primitives, if yes, selecting the created primitives, otherwise performing the step of creating corresponding primitives in the frame selection area of the drawing panel according to the frame selection information.

优选的,所述根据框选信息在绘图面板的框选区域创建相对应的图元的步骤具体是:Preferably, the step of creating corresponding graphic elements in the frame selection area of the drawing panel according to the frame selection information is specifically:

创建与所述框选信息相对应图元的图元触发块;Create a primitive trigger block of the primitive corresponding to the frame selection information;

检测对所述图元触发块的选定操作;detecting a selected operation on said primitive trigger;

当检测到对所述图元触发块的选定操作时,删除所述图元触发块,并在绘图面板的框选区域创建相应的图元;When a selected operation on the graphic entity trigger block is detected, the graphic entity trigger block is deleted, and a corresponding graphic entity is created in the marquee area of the drawing panel;

当未检测到对所述图元触发块的选定操作时,删除图元触发块。When no selected operation on the primitive trigger is detected, the primitive trigger is deleted.

优选的,所述根据框选信息在绘图面板的框选区域创建相应的图元的步骤还包括:Preferably, the step of creating corresponding graphic elements in the frame selection area of the drawing panel according to the frame selection information further includes:

当未检测到对所述图元触发块的选定操作时,在绘图面板的指定位置浮现图元工具栏,并获取用户点选的图元工具栏中的图元,删除所述图元触发块,在绘图面板的框选区域创建图元。When the selected operation on the primitive trigger block is not detected, the primitive toolbar will appear at the specified position of the drawing panel, and the primitive in the primitive toolbar selected by the user will be obtained, and the primitive trigger will be deleted Block, to create primitives in the marquee area of the drawing panel.

优选的,所述方法还包括记录图元创建的次数及创建图元的时间的步骤。Preferably, the method further includes the step of recording the number of creation times of the graphic entity and the time of creating the graphic entity.

一种图元创建系统,所述系统包括:A primitive creation system, the system comprising:

信息获取模块,获取对绘图面板的框选信息;The information acquisition module acquires frame selection information on the drawing panel;

图元创建模块,根据所述框选信息在绘图面板的框选区域创建相应的图元。The graphic entity creation module creates corresponding graphic entities in the frame selection area of the drawing panel according to the frame selection information.

优选的,所述框选信息包括:框选区域的大小、框选区域的位置和框选方向中的一种或两种以上,所述框选方向包括右下、左下、左上和右上中的一种或两种以上。Preferably, the framing information includes: one or more of the size of the framing area, the position of the framing area, and the framing direction, and the framing direction includes bottom right, bottom left, top left, and top right. One or more than two.

优选的,所述系统还包括:Preferably, the system also includes:

设置模块,用于建立和修改所述框选方向与图元的对应关系;A setting module, configured to establish and modify the corresponding relationship between the frame selection direction and the graphic elements;

所述图元创建模块用于根据获取的框选方向在绘图面板的框选区域创建与所述框选方向对应的图元。The graphic element creating module is used to create a graphic element corresponding to the frame selection direction in the frame selection area of the drawing panel according to the obtained frame selection direction.

优选的,所述图元创建模块进一步用于当所述框选方向为右下时,在绘图面板的框选区域创建用户创建次数最多的图元;当所述框选方向为左下时,在绘图面板的框选区域创建用户上一次创建的图元;当所述框选方向为左上时,在绘图面板的框选区域创建用户创建次数次多的图元;当所述框选方向为右上时,在绘图面板浮现图元工具栏供用户选择。Preferably, the graphic element creation module is further used to create the most frequently created graphic entity in the frame selection area of the drawing panel when the frame selection direction is lower right; when the frame selection direction is lower left, Create the primitive created by the user last time in the marquee area of the drawing panel; when the marquee direction is upper left, create the most frequently created primitive in the marquee area of the drawing panel; when the marquee direction is upper right When , the toolbar of primitives will appear in the drawing panel for users to choose.

优选的,所述系统还包括:Preferably, the system also includes:

判断模块,判断框选区域是否具有已创建的图元,若是,则选中所述已创建的图元,结束操作,否则,通知所述图元创建模块根据所述框选信息在绘图面板的框选区域创建相应的图元。Judging module, judging whether the frame selection area has a created graphic element, if so, then select the created graphic element, and end the operation, otherwise, notify the graphic element creation module according to the frame selection information in the frame of the drawing panel Create corresponding primitives in the selected area.

优选的,所述图元创建模块包括:Preferably, the graphic element creation module includes:

图元触发块创建模块,用于创建与所述框选信息相对应图元的图元触发块;A primitive trigger block creating module, configured to create a primitive trigger block of a primitive corresponding to the frame selection information;

检测模块,用于检测对所述图元触发块的选定操作;A detection module, configured to detect a selected operation on the primitive trigger block;

处理模块,用于当所述检测模块检测到对图元触发块的选定操作时,删除图元触发块,并在绘图面板的框选区域创建相应的图元,当所述检测模块未检测到对图元触发块的选定操作时,删除图元触发块。A processing module, configured to delete the primitive trigger block when the detection module detects a selected operation on the primitive trigger block, and create a corresponding primitive in the marquee area of the drawing panel, when the detection module does not detect When the selected operation on the entity trigger block is reached, the entity trigger block is deleted.

优选的,所述系统还包括:Preferably, the system also includes:

记录模块,用于记录图元创建的次数及创建图元的时间。The recording module is used to record the number of creation times and the creation time of the primitive.

上述图元创建方法及系统,获取对绘图面板的框选信息,根据所述框选信息在绘图面板的框选区域创建相对应的图元。采用该方法和系统,用户只需对绘图面板进行框选,即可根据用户的框选信息在框选区域创建相对应图元,连续创建时不需要反复的在工具栏和绘图面板之间移动,过程简单,操作方便快捷,节省大量时间和精力,使制图保持连续性,极大提高了制图效率,增强了用户的体验效果。The above method and system for creating graphic elements obtains frame selection information on the drawing panel, and creates corresponding graphic entities in the frame selection area of the drawing panel according to the frame selection information. With the method and system, the user only needs to frame the drawing panel, and then create corresponding primitives in the frame selection area according to the user's frame selection information, and there is no need to repeatedly move between the toolbar and the drawing panel during continuous creation , the process is simple, the operation is convenient and fast, saving a lot of time and energy, making the drawing maintain continuity, greatly improving the drawing efficiency and enhancing the user experience effect.

【附图说明】【Description of drawings】

图1是一个实施例中的图元创建方法的流程图;Fig. 1 is a flowchart of a method for creating primitives in an embodiment;

图2是一个实施例中根据框选信息在绘图面板的框选区域创建相应的图元的方法流程图;Fig. 2 is a flow chart of a method for creating a corresponding graphic element in a frame selection area of a drawing panel according to frame selection information in an embodiment;

图3是另一个实施例中根据框选信息在绘图面板的框选区域创建相应的图元的方法流程图;FIG. 3 is a flow chart of a method for creating a corresponding graphic element in a frame selection area of the drawing panel according to frame selection information in another embodiment;

图4是一个实施例中创建相对应图元的方法流程图;Fig. 4 is a flow chart of a method for creating corresponding primitives in one embodiment;

图5是一个实施例中的图元创建系统的结构图;Fig. 5 is a structural diagram of a primitive creation system in an embodiment;

图6是另一实施例中的图元创建模块的结构图;Fig. 6 is a structural diagram of a graphic element creation module in another embodiment;

图7是另一个实施例中的图元创建系统的结构图。Fig. 7 is a structural diagram of a primitive creation system in another embodiment.

【具体实施方式】【Detailed ways】

下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其他有益效果显而易见。The technical solutions and other beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention below in conjunction with the accompanying drawings.

图1示出了一个实施例中的图元创建方法的流程,该方法流程包括如下步骤:Fig. 1 shows the flow of a method for creating a graphic element in an embodiment, and the flow of the method includes the following steps:

在步骤S10中,获取对绘图面板的框选信息。In step S10, frame selection information on the drawing panel is obtained.

框选信息为用户在绘图面板上框选某一区域时的操作信息。在一个实施方式中,框选信息包括:框选区域的大小、框选区域的位置和框选方向中的一种或两种以上,其中框选方向包括右下、左下、左上和右上中的一种或两种以上。The frame selection information is the operation information when the user selects a certain area on the drawing panel. In one embodiment, the frame information includes: one or more of the size of the frame area, the position of the frame area, and the frame direction, wherein the frame direction includes bottom right, bottom left, top left, and top right. One or more than two.

在一个实施方式中,用户使用鼠标进行框选操作,得到框选区域。在绘图面板上某位置按下鼠标左键(也可以是右键,依照个人习惯设定),作为框选起始点,按住鼠标左键不放,向某个方向进行拖拽,形成一个方形框选框,方形框选框区域即为框选区域,用户将所需区域全部包含在方形框选框内后,释放鼠标左键,鼠标释放位置为框选结束点,框选起始点与框选结束点形成的矢量方向为框选区域的框选方向。In one embodiment, the user uses a mouse to perform a frame selection operation to obtain a frame selection area. Press the left mouse button (or right button, according to personal habits) at a certain position on the drawing panel as the starting point for frame selection, press and hold the left mouse button, and drag in a certain direction to form a square frame Marquee, the square marquee area is the marquee area, after the user includes all the required area in the square marquee, release the left mouse button, the mouse release position is the end point of marquee selection, the start point of marquee selection and the marquee selection The vector direction formed by the end point is the marquee direction of the marquee area.

在其他实施方式中,用户还可以使用触摸屏及其他输入设备进行框选操作。In other implementation manners, the user may also use a touch screen and other input devices to perform frame selection operations.

在步骤S20中,根据框选信息在绘图面板的框选区域创建相对应的图元。In step S20, a corresponding graphic entity is created in the frame selection area of the drawing panel according to the frame selection information.

在一个实施例中,上述方法还包括建立框选信息与图元的对应关系的步骤。根据不同的框选信息(例如框选方向)则可建立不同的图元。建立框选信息与图元的对应关系后,可保存为默认设置,在启动图形操作界面时加载该默认设置,另外,用户还可对事先建立的该对应关系根据自身需要进行修改。在优选的实施方式中,创建的图元与框选区域具有相同的大小、位置。In one embodiment, the above method further includes the step of establishing a corresponding relationship between frame selection information and graphic elements. Different primitives can be created according to different frame selection information (such as frame selection direction). After establishing the corresponding relationship between frame selection information and graphic elements, it can be saved as the default setting, and the default setting will be loaded when the graphical operation interface is started. In addition, users can also modify the previously established corresponding relationship according to their own needs. In a preferred embodiment, the created primitive has the same size and position as the marquee area.

图2示出了一个实施例中根据框选信息在绘图面板的框选区域创建相应的图元的方法流程,该方法流程包括如下步骤:FIG. 2 shows a method flow for creating corresponding graphics elements in the frame selection area of the drawing panel according to the frame selection information in one embodiment. The method flow includes the following steps:

在步骤S201中,判断框选区域是否具有已创建的图元,如有则进行步骤S202,否则进行步骤S203。In step S201, it is judged whether the frame selection area has created primitives, if yes, go to step S202, otherwise go to step S203.

在步骤S202中,选中已创建的图元,结束操作。用户在创建图元时,如果框选区域具有创建好的图元,用户框选后将其选中。In step S202, the created primitive is selected, and the operation ends. When the user creates a primitive, if there is a created primitive in the marquee area, the user will select it after marquee selection.

在步骤S203中,根据框选信息在绘图面板的框选区域创建相对应的图元。In step S203, a corresponding graphic entity is created in the frame selection area of the drawing panel according to the frame selection information.

图3示出了另一个实施例中根据框选信息在绘图面板的框选区域创建相应的图元的方法流程,本实施例中,根据获取的框选方向在绘图面板的框选区域创建与所述框选方向对应的图元,具体分为如下步骤:Fig. 3 shows the method flow of creating corresponding graphic elements in the frame selection area of the drawing panel according to the frame selection information in another embodiment. In this embodiment, the frame selection area of the drawing panel is created with The graphic element corresponding to the frame selection direction is specifically divided into the following steps:

在步骤S301中,建立框选方向与图元的对应关系。In step S301, a corresponding relationship between a frame selection direction and a graphic element is established.

框选方向与图元的对应关系根据用户的个人需求或者制图的实际需要进行设定和修改,也可以是系统默认设置的对应关系。在优选的实施方式中,所建立的框选方向与图元的对应关系具体是:当框选方向为右下时,对应用户创建次数最多的图元;当框选方向为左下时,对应用户最后一次创建的图元;当框选方向为左上时,对应用户创建次数次多的图元;当框选方向为右上时,在绘图面板浮现图元工具栏供用户进行选择。The corresponding relationship between the frame selection direction and the graphic element is set and modified according to the user's personal needs or the actual needs of the drawing, and it can also be the corresponding relationship set by the system default. In a preferred embodiment, the established corresponding relationship between the frame selection direction and the graphic element is specifically: when the frame selection direction is lower right, it corresponds to the graphic element created most times by the user; when the frame selection direction is lower left, it corresponds to the user The primitive created last time; when the frame selection direction is upper left, it corresponds to the primitive created most times by the user; when the frame selection direction is upper right, the primitive toolbar will appear on the drawing panel for users to choose.

在步骤S302中,判断框选信息中的框选方向。In step S302, determine the frame selection direction in the frame selection information.

优选的实施方式中,根据框选方向在框选区域创建相对应图元,如图3所示,具体包括如下步骤:In a preferred embodiment, a corresponding graphic element is created in the frame selection area according to the frame selection direction, as shown in Figure 3, which specifically includes the following steps:

在步骤S303中,当所述框选方向为右下时,在绘图面板的框选区域创建用户创建次数最多的图元。In step S303, when the frame selection direction is the bottom right, a graphic element created most frequently by the user is created in the frame selection area of the drawing panel.

在步骤S304中,当框选方向为左下时,在绘图面板的框选区域创建用户上一次创建的图元。In step S304, when the frame selection direction is the bottom left, the graphic element created last time by the user is created in the frame selection area of the drawing panel.

在步骤S305中,当所述框选方向为左上时,在绘图面板的框选区域创建用户创建次数次多的图元。In step S305, when the frame selection direction is the upper left, the graphics entity created by the user most times is created in the frame selection area of the drawing panel.

在步骤S306中,当所述框选方向为右上时,在绘图面板浮现图元工具栏供用户选择。In step S306, when the frame selection direction is upper right, a graphic element toolbar appears on the drawing panel for the user to select.

图4示出了一个实施例中创建相对应图元的方法流程,该方法流程包括如下步骤:Fig. 4 shows the flow of a method for creating a corresponding graphic element in an embodiment, and the flow of the method includes the following steps:

在步骤S401中,创建与框选信息相对应图元的图元触发块。In step S401, a primitive trigger block of a primitive corresponding to the frame selection information is created.

在该实施方式中,图元触发块是悬浮在绘图面板上方的阴影模块,其与所对应真实图元具有相同形状、大小。图元触发块初始不在绘图面板上显示,在获取框选信息对应图元后出现在框选区域,显示此刻与框选信息对应的图元是何种图元,便于用户判断该种图元是否为所需图元。In this embodiment, the primitive trigger block is a shadow module suspended above the drawing panel, which has the same shape and size as the corresponding real primitive. The primitive trigger block is not displayed on the drawing panel at first, but it appears in the marquee area after obtaining the primitive corresponding to the marquee information, showing what kind of primitive the primitive corresponding to the marquee information is at the moment, so that the user can judge whether the primitive is for the required graphics.

在一个实施方式中,图元触发块的创建方法具体为:在检测到鼠标左键按下未放开(或者右键)并向一个方向拖拽进行框选时,获取框选信息并根据框选信息创建所对应图元的图元触发块,框选过程中图元触发块一直浮现,在鼠标左键没有放开,不断改变框选区域大小和形状时,时刻保持与框选区域具有相同位置、相同大小,检测到鼠标左键(或者右键)释放时,结束框选。图元触发块浮现在框选区域。In one embodiment, the creation method of the primitive trigger block is as follows: when it is detected that the left button of the mouse is pressed but not released (or the right button) and dragged in one direction to perform frame selection, the frame selection information is obtained and according to the frame selection The trigger block of the corresponding primitive is created by the information. The trigger block of the primitive keeps appearing during the frame selection process. When the left button of the mouse is not released and the size and shape of the frame selection area are constantly changed, it always maintains the same position as the frame selection area. , the same size, when the left mouse button (or right button) is detected to be released, the frame selection ends. The element trigger block floats in the marquee area.

在其他实施方式中,图元触发块的创建方法还可以为:框选过程中不浮现图元触发块,在框选结束后,创建与框选信息相对应图元的图元触发块,图元触发块与框选区域具有相同位置、相同大小。In other implementation manners, the creation method of the primitive trigger block can also be: the primitive trigger block does not appear during the frame selection process, and after the frame selection is completed, the primitive trigger block of the primitive corresponding to the frame selection information is created, and the graph The element trigger block has the same position and the same size as the marquee area.

在一个实施方式中,获取用户的框选方向,创建与框选方向相对应图元的图元触发块。用户使用鼠标进行框选,按下鼠标左键开始框选,然后向一个方向进行拖拽,获取框选方向,创建与框选方向相对应图元的图元触发块。In one embodiment, the frame selection direction of the user is acquired, and a primitive trigger block of the primitive corresponding to the frame selection direction is created. The user uses the mouse to make a frame selection, presses the left button of the mouse to start the frame selection, and then drags in one direction to obtain the frame selection direction, and creates a primitive trigger block of the primitive corresponding to the frame selection direction.

在其他实施方式中,创建与框选信息相对应图元的图元触发块后,进一步在检测到鼠标滚轮转动时进行图元切换,切换到用户需要的图元,或者检测到鼠标右键的点击操作时,弹出图元选择界面,供用户选择所需图元。还可以预定义图元快捷键供用户选择图元。In other implementations, after creating a primitive trigger block corresponding to the frame selection information, the primitive is further switched when the mouse wheel is detected to switch to the primitive required by the user, or the right mouse button is detected During operation, the graphic entity selection interface will pop up for the user to select the required graphic entity. You can also predefine shortcut keys for primitives for users to select primitives.

在步骤S402中,检测用户是否对图元触发块进行选定操作。若是,则进行步骤S404,若否,则进行步骤S403。In step S402, it is detected whether the user performs a selection operation on the primitive trigger block. If yes, go to step S404, if not, go to step S403.

用户需要图元触发块所对应图元,需要对图元触发块进行选定操作。用户不需要图元触发块所对应图元,只要在预设时间内不进行选定操作或者按下取消快捷键等即可。The user needs the primitive corresponding to the primitive trigger block, and needs to select the primitive trigger block. The user does not need the graphic element corresponding to the graphic element trigger block, as long as the selected operation is not performed within the preset time or the cancel shortcut key is pressed.

在一个实施方式中,用户对图元触发块的选定操作包括鼠标单击图元触发块、双击图元触发块、对图元触发块进行拖动、或者按下回车键、快捷键等。In one embodiment, the user's selected operation on the primitive trigger block includes clicking the primitive trigger block with the mouse, double-clicking the primitive trigger block, dragging the primitive trigger block, or pressing the Enter key, a shortcut key, etc. .

在步骤S403中,删除图元触发块,结束操作。In step S403, the primitive trigger block is deleted, and the operation ends.

在一个实施例中,当未检测到对图元触发块的选定操作时,删除图元触发块,并可在绘图面板指定位置浮现图元工具栏,便于用户选择图元工具栏上的工具,根据用户的选择在框选区域创建与框选区域位置大小相一致的图元。In one embodiment, when no selected operation on the trigger block of the primitive is detected, the trigger block of the primitive is deleted, and the primitive toolbar can appear at the designated position of the drawing panel, so that the user can select the tool on the primitive toolbar , according to the user's selection, create primitives in the marquee area that are consistent with the position and size of the marquee area.

在步骤S404中,删除图元触发块,在绘图面板框选区域创建相对应图元。In step S404, the primitive trigger block is deleted, and a corresponding primitive is created in the framed area of the drawing panel.

在一个实施例中,在绘图面板框选区域创建图元后还包括记录图元创建的次数及创建图元的时间的步骤。这些记录的内容可用于更新框选信息与图元的对应关系。便于了解用户的图元创建需求和使用程度,修改框选信息对应的图元。In one embodiment, after the graphic entity is created in the framed area of the drawing panel, a step of recording the number of times the graphic entity is created and the time when the graphic entity is created is further included. The contents of these records can be used to update the corresponding relationship between frame selection information and primitives. It is convenient to understand the user's graphic element creation needs and usage level, and modify the graphic element corresponding to the frame selection information.

图5示出了一个实施例中的图元创建系统,该系统包括:信息获取模块510、图元创建模块520。其中:FIG. 5 shows a graphic element creation system in an embodiment, and the system includes: an information acquisition module 510 and a graphic element creation module 520 . in:

信息获取模块510用于获取对绘图面板的框选信息。The information obtaining module 510 is used for obtaining frame selection information on the drawing panel.

优选的,用户使用鼠标进行框选操作,框选某一区域,得到框选区域。在绘图面板上某位置按下鼠标左键(也可以是右键,依照个人习惯设定),作为框选起始点,按住鼠标左键不放,向某个方向进行拖拽,形成一个方框,方框区域即为框选区域,将该区域全部包含在方框内后,释放鼠标左键,鼠标释放位置为框选结束点,框选起始点与框选结束点形成的矢量方向为框选区域的框选方向。Preferably, the user uses a mouse to perform a frame selection operation to select a certain area to obtain a frame selection area. Press the left mouse button (or the right button, according to personal habits) at a certain position on the drawing panel as the starting point for frame selection, press and hold the left mouse button, and drag in a certain direction to form a box , the framed area is the marquee selection area. After all the area is included in the frame, release the left mouse button. The position where the mouse is released is the marquee selection end point, and the vector direction formed by the marquee selection start point and the marquee selection end point is the frame The marquee direction of the selected area.

在其他实施方式中,用户还可以使用触摸屏进行框选。In other implementation manners, the user can also use the touch screen to perform frame selection.

图元创建模块520根据框选信息在绘图面板的框选区域创建相对应的图元。The primitive creating module 520 creates corresponding primitives in the framed region of the drawing panel according to the framed information.

在一个实施方式中,该框选信息包括:框选区域的大小、框选区域的位置、框选方向中的一种或两种以上,其中框选方向包括右下、左下、左上和右上中的一种或两种以上。图元创建模块520所创建的图元与框选区域的大小和位置一致。In one embodiment, the framing information includes: one or more of the size of the framing area, the position of the framing area, and the framing direction, wherein the framing directions include lower right, lower left, upper left, and upper right. one or more of two. The primitive created by the primitive creating module 520 is consistent with the size and position of the framed area.

在一个优选的实施例中,图元创建模块520根据框选方向在绘图面板的框选区域创建相对应的图元。该实施例中,图元创建模块520进一步用于当所述框选方向为右下时,在绘图面板的框选区域创建用户创建次数最多的图元;当框选方向为左下时,在绘图面板的框选区域创建用户上一次创建的图元;当所述框选方向为左上时,在绘图面板的框选区域创建用户创建次数次多的图元;当所述框选方向为右上时,在绘图面板浮现图元工具栏供用户选择。In a preferred embodiment, the primitive creating module 520 creates corresponding primitives in the framed area of the drawing panel according to the framed direction. In this embodiment, the graphic element creation module 520 is further used to create the most frequently created graphic element in the frame selection area of the drawing panel when the frame selection direction is lower right; Create the primitive created by the user last time in the marquee area of the panel; when the marquee direction is upper left, create the most frequently created primitive in the marquee area of the drawing panel; when the marquee direction is upper right , the tool bar of primitives will appear in the drawing panel for users to choose.

在一个实施例中,如图6所示,图元创建模块520包括图元触发块创建模块521、检测模块522以及处理模块523。其中:In one embodiment, as shown in FIG. 6 , the primitive creation module 520 includes a primitive trigger block creation module 521 , a detection module 522 and a processing module 523 . in:

图元触发块创建模块521用于创建与框选信息相对应图元的图元触发块。The primitive trigger block creating module 521 is used for creating a primitive trigger block of a primitive corresponding to the frame selection information.

在该实施方式中,图元触发块是悬浮在绘图面板上方的阴影模块,其与所对应的真实图元具有相同形状、大小。图元触发块初始不在绘图面板上显示,在获取框选信息对应图元后出现在框选区域,显示此刻与框选信息对应的图元是何种图元,便于用户判断该种图元是否为所需图元。In this embodiment, the primitive trigger block is a shadow module suspended above the drawing panel, which has the same shape and size as the corresponding real primitive. The primitive trigger block is not displayed on the drawing panel at first, but it appears in the marquee area after obtaining the primitive corresponding to the marquee information, showing what kind of primitive the primitive corresponding to the marquee information is at the moment, so that the user can judge whether the primitive is for the required graphics.

在一个实施方式中,图元触发块的创建方法具体为:在检测到鼠标左键按下未放开(或者右键)并向一个方向拖拽进行框选时,获取框选信息并根据框选信息创建所对应图元的图元触发块,框选过程中图元触发块一直浮现,在鼠标左键没有放开,不断改变框选区域大小和形状时,时刻保持与框选区域具有相同位置、相同大小,检测到鼠标左键(或者右键)释放时,结束框选。图元触发块浮现在框选区域。In one embodiment, the creation method of the primitive trigger block is as follows: when it is detected that the left button of the mouse is pressed but not released (or the right button) and dragged in one direction to perform frame selection, the frame selection information is obtained and according to the frame selection The trigger block of the corresponding primitive is created by the information. The trigger block of the primitive keeps appearing during the frame selection process. When the left button of the mouse is not released and the size and shape of the frame selection area are constantly changed, it always maintains the same position as the frame selection area. , the same size, when the left mouse button (or right button) is detected to be released, the frame selection ends. The element trigger block floats in the marquee area.

在其他实施方式中,图元触发块的创建方法还可以为:框选过程中不浮现图元触发块,在框选结束后,图元触发块创建模块521创建与框选信息相对应图元的图元触发块,图元触发块与框选区域具有相同位置、相同大小。In other implementation manners, the creation method of the primitive trigger block can also be: the primitive trigger block does not appear during the frame selection process, and after the frame selection is completed, the primitive trigger block creation module 521 creates a primitive corresponding to the frame selection information The primitive trigger block, the primitive trigger block has the same position and the same size as the marquee area.

在一个实施方式中,获取用户的框选方向,创建与框选方向相对应图元的图元触发块。用户使用鼠标进行框选,按下鼠标左键开始框选,然后向一个方向进行拖拽,获取框选方向,创建与框选方向相对应图元的图元触发块。In one embodiment, the frame selection direction of the user is acquired, and a primitive trigger block of the primitive corresponding to the frame selection direction is created. The user uses the mouse to make a frame selection, presses the left button of the mouse to start the frame selection, and then drags in one direction to obtain the frame selection direction, and creates a primitive trigger block of the primitive corresponding to the frame selection direction.

检测模块522用于检测用户是否对图元触发块进行选定操作。The detection module 522 is used to detect whether the user performs a selection operation on the graphic element trigger block.

用户需要图元触发块所对应图元,需要对图元触发块进行选定操作。用户不需要图元触发块所对应图元,只要在预设时间内不进行选定操作或者按下取消快捷键等即可。The user needs the primitive corresponding to the primitive trigger block, and needs to select the primitive trigger block. The user does not need the graphic element corresponding to the graphic element trigger block, as long as the selected operation is not performed within the preset time or the cancel shortcut key is pressed.

在一个实施方式中,用户对图元触发块的选定操作包括鼠标单击图元触发块、双击图元触发块、对图元触发块进行拖动、或者按下回车键等。In one embodiment, the user's selection operation on the primitive trigger block includes clicking the primitive trigger block, double-clicking the primitive trigger block, dragging the primitive trigger block, or pressing the enter key.

处理模块523,用于在检测模块522检测到对图元触发块的选定操作时,删除图元触发块,并在绘图面板的框选区域创建相对应的图元,检测模块522未检测到对图元触发块的选定操作时,删除图元触发块。The processing module 523 is used to delete the primitive trigger block when the detection module 522 detects the selected operation of the primitive trigger block, and create a corresponding primitive in the frame selection area of the drawing panel, and the detection module 522 does not detect When the selected operation on the entity trigger block, delete the entity trigger block.

在其他实施方式中,图元创建模块520还包括图元工具栏显示模块(图中未示出)用于在检测模块522没有检测到对图元触发块的选定操作时,在绘图面板指定位置浮现图元工具栏。In other implementations, the primitive creation module 520 also includes a primitive toolbar display module (not shown in the figure) for specifying in the drawing panel when the detection module 522 does not detect the selected operation on the primitive trigger block. Position the popup primitive toolbar.

当框选信息相对应的图元不是用户需要的图元时,图元工具栏显示模块在绘图面板指定位置浮现图元工具栏,供用户选择需要的图元。在优选实施方式中,图元工具栏指定位置为鼠标光标所在位置或者绘图面板指定区域附近。用户点选图元工具栏中的图元,获取所需的图元。When the graphic entity corresponding to the frame selection information is not the graphic entity required by the user, the graphic entity toolbar display module will display the graphic entity toolbar at the specified position of the drawing panel for the user to select the required graphic entity. In a preferred embodiment, the designated position of the primitive toolbar is the position of the mouse cursor or the vicinity of the designated area of the drawing panel. The user clicks the graphic element in the graphic element toolbar to obtain the required graphic element.

在另一个实施例中,如图7所示,该系统还包括:In another embodiment, as shown in Figure 7, the system also includes:

判断模块530,用于判断框选区域是否具有已创建的图元,若是,则选中所述已创建的图元,否则,通知所述图元创建模块520根据框选信息在绘图面板的框选区域创建相对应的图元。Judgment module 530, is used for judging whether frame selection area has created graphic element, if so, then select described graphic element that has been created, otherwise, notify described graphic element creation module 520 to frame selection in drawing panel according to frame selection information Regions create corresponding primitives.

设置模块540,用于建立和修改框选信息与图元的对应关系。The setting module 540 is used for establishing and modifying the corresponding relationship between frame selection information and graphic elements.

在优选的实施方式中,设置模块540用于建立框选方向与图元的对应关系,其具体为:In a preferred embodiment, the setting module 540 is used to establish the corresponding relationship between the frame selection direction and the graphic element, which is specifically:

当框选方向为右下时,对应用户创建次数最多的图元;当框选方向为左下时,对应用户最后一次创建的图元;当框选方向为左上时,对应用户创建次数次多的图元;当框选方向为右上时,在绘图面板浮现图元工具栏供用户进行选择。When the frame selection direction is bottom right, it corresponds to the primitive created by the user most times; when the frame selection direction is bottom left, it corresponds to the primitive created last time by the user; when the frame selection direction is top left, it corresponds to the primitive created by the user most times Primitives; when the marquee selection direction is upper right, the primitive toolbar will appear in the drawing panel for users to choose.

设置模块540所设置的框选方向与图元的对应关系可以作为默认设置,在启动图形操作界面时即加载该默认设置,同时,用户还可通过设置模块540对框选方向与图元的对应关系进行修改。例如,在上述实施例中,通过设置模块540也可将框选方向为右下对应用户最后一次创建的图元。The corresponding relationship between the frame selection direction and the graphic elements set by the setting module 540 can be used as a default setting, and the default setting is loaded when the graphical operation interface is started. The relationship is modified. For example, in the above-mentioned embodiment, the setting module 540 may also set the frame selection direction to the bottom right corresponding to the graphic element created last time by the user.

进一步的,该系统还包括记录模块550,记录图元创建的次数及创建图元的时间。记录模块550记录的内容可用于更新框选信息与图元的对应关系。便于了解用户的图元创建需求和使用程度,修改框选信息对应的图元。Further, the system also includes a recording module 550, which records the number of creation times of the graphic entity and the time of creating the graphic entity. The content recorded by the recording module 550 can be used to update the correspondence between the frame selection information and the graphic elements. It is convenient to understand the user's graphic element creation needs and usage level, and modify the graphic element corresponding to the frame selection information.

上述图元创建方法及系统,获取对绘图面板的框选信息,根据所述框选信息在绘图面板的框选区域创建相对应的图元。采用该方法和系统,用户只需对绘图面板进行框选,即可根据用户的框选信息在框选区域创建相对应图元,连续创建时不需要反复的在工具栏和绘图面板之间移动,过程简单,操作方便快捷,节省大量时间和精力,使制图保持连续性,极大提高了制图效率,增强了用户的体验效果。The above method and system for creating graphic elements obtains frame selection information on the drawing panel, and creates corresponding graphic entities in the frame selection area of the drawing panel according to the frame selection information. With the method and system, the user only needs to frame the drawing panel, and then create corresponding primitives in the frame selection area according to the user's frame selection information, and there is no need to repeatedly move between the toolbar and the drawing panel during continuous creation , the process is simple, the operation is convenient and fast, saving a lot of time and energy, making the drawing maintain continuity, greatly improving the drawing efficiency and enhancing the user experience effect.

以上所述实施例仅表达了本发明的实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express the implementation manner of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.

Claims (15)

1.一种图元创建方法,包括如下步骤:1. A method for creating a graphic element, comprising the steps of: 获取对绘图面板的框选信息;Obtain the frame selection information of the drawing panel; 根据所述框选信息在绘图面板的框选区域创建相对应的图元。Create corresponding primitives in the frame selection area of the drawing panel according to the frame selection information. 2.根据权利要求1所述的图元创建方法,其特征在于,所述框选信息包括:框选区域的大小、框选区域的位置和框选方向中的一种或两种以上,所述框选方向包括右下、左下、左上和右上中的一种或两种以上。2. The graphic element creation method according to claim 1, wherein the frame selection information includes: one or more of the size of the frame selection area, the position of the frame selection area, and the frame selection direction, and The frame selection direction includes one or more of bottom right, bottom left, top left and top right. 3.根据权利要求2所述的图元创建方法,其特征在于,所述根据所述框选信息在绘图面板的框选区域创建相对应的图元的步骤具体包括:3. The graphic element creation method according to claim 2, wherein the step of creating a corresponding graphic element in the frame selection area of the drawing panel according to the frame selection information specifically comprises: 根据获取的框选方向在绘图面板的框选区域创建与所述框选方向对应的图元。Create a primitive corresponding to the frame selection direction in the frame selection area of the drawing panel according to the obtained frame selection direction. 4.根据权利要求3所述的图元创建方法,其特征在于,所述根据获取的框选方向在绘图面板的框选区域创建与所述框选方向对应的图元的步骤具体是:4. The graphic element creation method according to claim 3, wherein the step of creating a graphic element corresponding to the frame selection direction in the frame selection area of the drawing panel according to the obtained frame selection direction is specifically: 建立框选方向与图元的对应关系;Establish the corresponding relationship between the frame selection direction and the primitive; 判断框选信息中的框选方向;Determine the frame selection direction in the frame selection information; 当所述框选方向为右下时,在绘图面板的框选区域创建用户创建次数最多的图元;When the frame selection direction is lower right, create the graphic element with the most user creation times in the frame selection area of the drawing panel; 当所述框选方向为左下时,在绘图面板的框选区域创建用户上一次创建的图元;When the marquee direction is lower left, create the primitive created by the user last time in the marquee area of the drawing panel; 当所述框选方向为左上时,在绘图面板的框选区域创建用户创建次数次多的图元;When the frame selection direction is upper left, create the graphic element with the most user creation times in the frame selection area of the drawing panel; 当所述框选方向为右上时,在绘图面板浮现图元工具栏供用户选择。When the frame selection direction is upper right, a graphic element tool bar appears on the drawing panel for the user to select. 5.根据权利要求1所述的图元创建方法,其特征在于,在获取对绘图面板的框选信息的步骤之后还包括:5. The graphic element creation method according to claim 1, further comprising: 判断框选区域是否具有已创建的图元,若是,则选中所述已创建的图元,否则执行所述根据所述框选信息在绘图面板的框选区域创建相对应的图元的步骤。Judging whether the frame selection area has created primitives, if yes, selecting the created primitives, otherwise performing the step of creating corresponding primitives in the frame selection area of the drawing panel according to the frame selection information. 6.根据权利要求1至5中任意一项所述的图元创建方法,其特征在于,所述根据框选信息在绘图面板的框选区域创建相对应的图元的步骤具体是:6. The method for creating a graphic element according to any one of claims 1 to 5, wherein the step of creating a corresponding graphic element in the frame selection area of the drawing panel according to the frame selection information is specifically: 创建与所述框选信息相对应图元的图元触发块;Create a primitive trigger block of the primitive corresponding to the frame selection information; 检测对所述图元触发块的选定操作;detecting a selected operation on said primitive trigger; 当检测到对所述图元触发块的选定操作时,删除所述图元触发块,并在绘图面板的框选区域创建相应的图元;When a selected operation on the graphic entity trigger block is detected, the graphic entity trigger block is deleted, and a corresponding graphic entity is created in the marquee area of the drawing panel; 当未检测到对所述图元触发块的选定操作时,删除图元触发块。When no selected operation on the primitive trigger is detected, the primitive trigger is deleted. 7.根据权利要求6所述的图元创建方法,其特征在于,所述根据框选信息在绘图面板的框选区域创建相应的图元的步骤还包括:7. The graphic element creation method according to claim 6, wherein the step of creating a corresponding graphic element in the frame selection area of the drawing panel according to the frame selection information also includes: 当未检测到对所述图元触发块的选定操作时,在绘图面板的指定位置浮现图元工具栏,并获取用户点选的图元工具栏中的图元,删除所述图元触发块,在绘图面板的框选区域创建图元。When the selected operation on the primitive trigger block is not detected, the primitive toolbar will appear at the specified position of the drawing panel, and the primitive in the primitive toolbar selected by the user will be obtained, and the primitive trigger will be deleted Block, to create primitives in the marquee area of the drawing panel. 8.根据权利要求1所述的图元创建方法,其特征在于,所述方法还包括记录图元创建的次数及创建图元的时间的步骤。8. The method for creating a graphic entity according to claim 1, further comprising the step of recording the number of times the graphic entity is created and the time when the graphic entity is created. 9.一种图元创建系统,其特征在于,所述系统包括:9. A graphic element creation system, characterized in that the system comprises: 信息获取模块,获取对绘图面板的框选信息;The information acquisition module acquires frame selection information on the drawing panel; 图元创建模块,根据所述框选信息在绘图面板的框选区域创建相应的图元。The graphic entity creation module creates corresponding graphic entities in the frame selection area of the drawing panel according to the frame selection information. 10.根据权利要求9所述的图元创建系统,其特征在于,所述框选信息包括:框选区域的大小、框选区域的位置和框选方向中的一种或两种以上,所述框选方向包括右下、左下、左上和右上中的一种或两种以上。10. The graphic element creation system according to claim 9, wherein the frame selection information includes: one or more of the size of the frame selection area, the position of the frame selection area, and the frame selection direction, and The frame selection direction includes one or more of bottom right, bottom left, top left and top right. 11.根据权利要求10所述的图元创建系统,其特征在于,所述系统还包括:11. The graphic element creation system according to claim 10, wherein the system further comprises: 设置模块,用于建立和修改所述框选方向与图元的对应关系;A setting module, configured to establish and modify the corresponding relationship between the frame selection direction and the graphic elements; 所述图元创建模块用于根据获取的框选方向在绘图面板的框选区域创建与所述框选方向对应的图元。The graphic element creating module is used to create a graphic element corresponding to the frame selection direction in the frame selection area of the drawing panel according to the obtained frame selection direction. 12.根据权利要求11所述的图元创建系统,其特征在于,所述图元创建模块进一步用于当所述框选方向为右下时,在绘图面板的框选区域创建用户创建次数最多的图元;当所述框选方向为左下时,在绘图面板的框选区域创建用户上一次创建的图元;当所述框选方向为左上时,在绘图面板的框选区域创建用户创建次数次多的图元;当所述框选方向为右上时,在绘图面板浮现图元工具栏供用户选择。12. The graphic element creation system according to claim 11, wherein the graphic element creation module is further configured to create the user with the most creation times in the frame selection area of the drawing panel when the frame selection direction is lower right When the frame selection direction is lower left, create the graphic element created by the user last time in the frame selection area of the drawing panel; when the frame selection direction is upper left, create a user-created graphic element in the frame selection area of the drawing panel The primitive with the most number of times; when the frame selection direction is upper right, the primitive toolbar will appear on the drawing panel for the user to choose. 13.根据权利要求9所述的图元创建系统,其特征在于,所述系统还包括:13. The graphic element creation system according to claim 9, wherein the system further comprises: 判断模块,判断框选区域是否具有已创建的图元,若是,则选中所述已创建的图元,结束操作,否则,通知所述图元创建模块根据所述框选信息在绘图面板的框选区域创建相应的图元。Judging module, judging whether the frame selection area has a created graphic element, if so, then select the created graphic element, and end the operation, otherwise, notify the graphic element creation module according to the frame selection information in the frame of the drawing panel Create corresponding primitives in the selected area. 14.根据权利要求9至13中的任意一项所述的图元创建系统,其特征在于,所述图元创建模块包括:14. The graphic element creation system according to any one of claims 9 to 13, wherein the graphic element creation module comprises: 图元触发块创建模块,用于创建与所述框选信息相对应图元的图元触发块;A primitive trigger block creating module, configured to create a primitive trigger block of a primitive corresponding to the frame selection information; 检测模块,用于检测对所述图元触发块的选定操作;A detection module, configured to detect a selected operation on the primitive trigger block; 处理模块,用于当所述检测模块检测到对图元触发块的选定操作时,删除图元触发块,并在绘图面板的框选区域创建相应的图元,当所述检测模块未检测到对图元触发块的选定操作时,删除图元触发块。A processing module, configured to delete the primitive trigger block when the detection module detects a selected operation on the primitive trigger block, and create a corresponding primitive in the marquee area of the drawing panel, when the detection module does not detect When the selected operation on the entity trigger block is reached, the entity trigger block is deleted. 15.根据权利要求9所述的图元创建系统,其特征在于,所述系统还包括:15. The graphic element creation system according to claim 9, wherein the system further comprises: 记录模块,用于记录图元创建的次数及创建图元的时间。The recording module is used to record the number of creation times and the creation time of the primitive.
CN201010113169.XA 2010-02-10 2010-02-10 Primitive creation method and system Expired - Fee Related CN102141909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010113169.XA CN102141909B (en) 2010-02-10 2010-02-10 Primitive creation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010113169.XA CN102141909B (en) 2010-02-10 2010-02-10 Primitive creation method and system

Publications (2)

Publication Number Publication Date
CN102141909A true CN102141909A (en) 2011-08-03
CN102141909B CN102141909B (en) 2014-09-10

Family

ID=44409451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010113169.XA Expired - Fee Related CN102141909B (en) 2010-02-10 2010-02-10 Primitive creation method and system

Country Status (1)

Country Link
CN (1) CN102141909B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495001A (en) * 2022-11-21 2022-12-20 成都智元汇信息技术股份有限公司 Method for generating advertisement space information display component by selecting frame and advertisement space display component
CN115578130A (en) * 2022-11-21 2023-01-06 成都智元汇信息技术股份有限公司 Method for generating advertisement space information display component by scanning whole image and advertisement space display component
CN115617237A (en) * 2022-11-21 2023-01-17 成都智元汇信息技术股份有限公司 Advertisement position information display component and method for generating advertisement position information by local identification

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021950A (en) * 2007-03-19 2007-08-22 朱桂永 Convenient mouse drawing method
CN101196818A (en) * 2006-12-08 2008-06-11 上海全景数字技术有限公司 Fast graphical developing system
CN101236485A (en) * 2008-01-28 2008-08-06 国电信息中心 Method, device and system for multi-screen 3D synchronous display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196818A (en) * 2006-12-08 2008-06-11 上海全景数字技术有限公司 Fast graphical developing system
CN101021950A (en) * 2007-03-19 2007-08-22 朱桂永 Convenient mouse drawing method
CN101236485A (en) * 2008-01-28 2008-08-06 国电信息中心 Method, device and system for multi-screen 3D synchronous display

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495001A (en) * 2022-11-21 2022-12-20 成都智元汇信息技术股份有限公司 Method for generating advertisement space information display component by selecting frame and advertisement space display component
CN115578130A (en) * 2022-11-21 2023-01-06 成都智元汇信息技术股份有限公司 Method for generating advertisement space information display component by scanning whole image and advertisement space display component
CN115617237A (en) * 2022-11-21 2023-01-17 成都智元汇信息技术股份有限公司 Advertisement position information display component and method for generating advertisement position information by local identification

Also Published As

Publication number Publication date
CN102141909B (en) 2014-09-10

Similar Documents

Publication Publication Date Title
US11699031B2 (en) Natural quick function gestures
WO2022068773A1 (en) Desktop element adjustment method and apparatus, and electronic device
CN102779008B (en) A kind of screenshot method and system
TWI544347B (en) System and method for editing text
US10452229B2 (en) Techniques for selecting list items using a swiping gesture
CN105373326B (en) Data processing system and method
WO2016041425A1 (en) Method for adjusting input-method virtual keyboard and input-method device
CN102520821B (en) Content editing device and method for touch screen
CN102902480A (en) Control area for a touch screen
KR20100130671A (en) Apparatus and Method for Providing Selection Area in Touch Interface
KR20140070040A (en) Apparatus and method for managing a plurality of objects displayed on touch screen
KR20120050971A (en) Display control device, display control method, and computer program
CN101551723A (en) Electronic device and related control method
CN102455869B (en) Method and device for editing characters by using gestures
WO2018119584A1 (en) Interaction method and device for flexible display screen
CN106716493A (en) Method of styling content and touch screen device for styling content
CN106775199A (en) The touch operation method and terminal of screen interface
CN103838347A (en) Information processing method and electronic device
CN103970434B (en) Respond the method and electronic equipment of operation
CN102141909B (en) Primitive creation method and system
CN103106022A (en) Method for setting and detecting virtual key of touch panel
WO2017114194A1 (en) Mobile terminal operation bar arrangement method and apparatus
WO2023045837A1 (en) Desktop editing method and electronic device
CN103365444A (en) Terminal equipment and touch method for touch screen thereon
WO2023030306A1 (en) Method and apparatus for video editing, and electronic device

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
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: South South technology twelve road 518000 in Guangdong province Shenzhen City Guangdong streets Nanshan District high tech Industrial Park, No. 2, Kingdee Software Park building A floor 2 South Block

Patentee after: SHENZHEN JINDIE TIANYAN MIDDLEWARE Co.,Ltd.

Address before: 518000 Guangdong City, Nanshan District province high tech Zone in the middle of the industrial zone of the sparrow tower M-6 building, floor 1, area 3, second, 4

Patentee before: SHENZHEN KINGDEE MIDDLEWARE Co.,Ltd.

CP01 Change in the name or title of a patent holder

Address after: South South technology twelve road 518000 in Guangdong province Shenzhen City Guangdong streets Nanshan District high tech Industrial Park, No. 2, Kingdee Software Park building A floor 2 South Block

Patentee after: Shenzhen Kingdee tianyanyun computing Co.,Ltd.

Address before: South South technology twelve road 518000 in Guangdong province Shenzhen City Guangdong streets Nanshan District high tech Industrial Park, No. 2, Kingdee Software Park building A floor 2 South Block

Patentee before: SHENZHEN JINDIE TIANYAN MIDDLEWARE Co.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140910