WO2017107475A1 - 元素组合及拆分的方法和系统 - Google Patents
元素组合及拆分的方法和系统 Download PDFInfo
- Publication number
- WO2017107475A1 WO2017107475A1 PCT/CN2016/090744 CN2016090744W WO2017107475A1 WO 2017107475 A1 WO2017107475 A1 WO 2017107475A1 CN 2016090744 W CN2016090744 W CN 2016090744W WO 2017107475 A1 WO2017107475 A1 WO 2017107475A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- boundary rectangle
- length
- elements
- distance
- rectangle
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04808—Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
Definitions
- the present invention relates to the field of computer software technology, and in particular to a method and system for element combination and splitting. Background technique
- an embodiment of the technical solution of the present invention is:
- a method of element combination and splitting including the following steps:
- the bounding rectangle is the smallest circumscribed rectangle enclosing the element at the current position of the element; if it falls, the coordinate is dropped The top-level element at the top of the element;
- the boundary rectangle of the top element is obtained in real time; and it is determined whether the boundary rectangle of the top element intersects, overlaps, or contains each other with the boundary rectangle of each element;
- the top element is split from the combination.
- a system for combining and splitting elements including:
- a monitoring unit configured to monitor a screen touch event, and acquire coordinates of the current touch point
- a first calculation determining unit configured to determine whether the coordinate falls within a boundary rectangle of each element; the boundary rectangle is an enclosing element at the current position of the element Minimum circumscribed rectangle;
- An element unit configured to: when the judgment result of the first calculation judgment unit is YES, obtain a top element located at the top of the elements in which the coordinates fall;
- a boundary rectangle unit configured to acquire a boundary rectangle of the top element in real time when the top element moves
- a second calculation determining unit configured to determine whether a boundary rectangle of the top element intersects, overlaps, or contains each other with a boundary rectangle of each element
- a combination unit configured to, when the judgment result of the second calculation judgment unit is YES, combine the top element with the elements that intersect, overlap, or contain each other;
- the splitting unit is configured to split the top element from the combination when the judgment result of the second calculation judgment unit is No, and when the top element is an object in the combination.
- the method and system for combining and splitting elements of the present invention because by judging whether the boundary rectangles between the elements intersect, overlap or mutually contain each other, the selected elements are combined and split accordingly, thereby making full use of the interactive intelligence.
- the multi-touch property of the tablet moving multiple elements at the same time, as long as the intersection is automatically combined, as long as the removal is automatically split, which can greatly improve the usability and efficiency.
- Embodiment 1 is a schematic flow chart of Embodiment 1 of a method for combining and disassembling elements according to the present invention
- Embodiment 1 is a schematic structural view of Embodiment 1 of a system for combining and disassembling elements according to the present invention
- Fig. 3 is a schematic diagram showing the structure of a second calculation and judgment unit in the system embodiment 1 of the element combination and split of the present invention. detailed description
- FIG. 1 is a method for implementing the element combination and splitting of the present invention.
- Step S110 Listening to a screen touch event, and acquiring coordinates of the current touch point;
- Step S120 determining whether the coordinates fall within the boundary rectangle of each element; the boundary rectangle is a minimum circumscribed rectangle enclosing the element at the current position of the element;
- Step S130 If it is determined to fall, obtain the top element located in the top layer of the element in which the coordinate falls; Step S140: When the top element moves, obtain the boundary rectangle of the top element in real time; Step S150: Determine whether the boundary rectangle of the top element is Intersect with the boundary rectangle of each element, heavy If they are judged to be intersecting, coincident or mutually inclusive, proceed to step S160; if it is determined that there is no intersection, coincidence or mutual inclusion, proceed to step S170;
- Step S160 Combine the top-level elements with the elements that intersect, coincide, or contain each other;
- Step S170 When the top-level element is an object in the combination, the top-level element is split from the combination.
- the step S150 of determining whether the boundary rectangle of the top element intersects the boundary rectangle of each element may include:
- the condition for judging whether the two boundary rectangles intersect is as follows: It is necessary to compare the distance between the center of gravity of the two minimum circumscribed rectangles in the X-axis direction and the y-axis direction and the half of the length or width of the two minimum circumscribed rectangles. size. If the distance between the center of gravity on the X-axis and the y-axis is smaller than half of their side length, the condition of the intersection is met.
- the actual XY coordinate axis is exemplified:
- the coordinates of the four vertices of the boundary rectangle of the obtained top-level element are (X u , Y u ), (X 21 , Y u ), (X u , Y 21 ), ( X 21 , Y 21 ), the coordinates of the center of gravity of the boundary rectangle of the top element are ( ⁇ , ⁇ ), and the shell ⁇ ⁇ , ⁇ 11 ? ⁇ ) to v , v
- the first distance in the first direction of the coordinate axis is the second distance to the second direction of the coordinate axis (Y-axis direction) is ⁇
- the boundary rectangle of the top element is perpendicular to the first direction of the coordinate axis
- the first length of the side (in the X-axis direction) is Y 21 - ⁇ 11 ;
- the second length perpendicular to the second direction of the coordinate axis (the x-axis direction) is ⁇ 21 - ⁇ 11 ;
- the coordinates of the four vertices of the boundary rectangle of the other elements obtained are ( ⁇ 33 , ⁇ 33 ), ( ⁇ 43 ,
- the third length of the side of the boundary rectangle perpendicular to the first direction (X-axis direction) of the coordinate axis is Y 43 - Y 33 ; and the fourth length of the side perpendicular to the second direction (axis direction of the coordinate axis) is ⁇ 43 - ⁇ 33 ;
- the first distance difference between the first distance and the third distance is ii? ⁇ - ⁇ 1 ⁇
- the second distance difference between the second distance and the fourth distance is 2 2
- the first distance difference is less than the first length sum value and the second distance difference is less than the second length sum value, it can be determined that the top element intersects the element.
- the step S150 of determining whether the boundary rectangle of the top element overlaps the boundary rectangle of each element may include:
- step S150 determines whether the boundary rectangle of the top element is associated with each element. Determine whether the boundary rectangle of the top element can simultaneously contain the coordinates of the four vertices of the boundary rectangle of other elements at the same time or determine whether the coordinates of the four vertices of the boundary rectangle of the top element are all included in the movement at the same time. Within the bounding rectangle of the element;
- step S110 further includes the steps of: acquiring a boundary rectangle of each element before the step of monitoring the touch event and acquiring the coordinates of the current touch point.
- an interactive smart tablet supporting touch is taken as an example, and an implementation flow of the combined operation of the elements in the element combination and split method of the present invention is introduced.
- the invention does not need to limit the shape of the elements, in a specific embodiment, the elements are square
- the computer software system of the interactive smart tablet acquires the square elements Cubel and Cube2 in the interface.
- the upper coordinate position and the size of each element that is, the minimum circumscribed rectangle Rect of the boundary of the surrounding element can be obtained, and the corresponding square elements Cubel and Cube2 are respectively recorded as Recti and Rect2.
- the minimum bounding rectangle is the smallest bounding rectangle, the smallest containing rectangle, or the smallest outer bounding rectangle.
- the minimum circumscribed rectangle refers to the maximum range of several two-dimensional shapes (such as points, lines, and polygons) expressed in two-dimensional coordinates, that is, the largest abscissa, the smallest abscissa, and the largest ordinate in each vertex of a given two-dimensional shape. , the minimum ordinate defines the rectangle of the boundary. Such a rectangle contains a given two-dimensional shape with the sides parallel to the coordinate axes.
- the minimum bounding rectangle is a two-dimensional form of the minimum bounding box.
- the Rect consists of three attributes: position coordinates, length and width, which is convenient for the next calculation. Listen to the touch event on the interactive smart tablet interface (press or click), record the coordinate position of the touch as P, and the system determines whether there is any element under the touch position P. First, calculate whether the coordinate P is included in the Recti rectangle. If it is included, then it represents Rectl is selected. If it is not included, continue to calculate the remaining Rect2, until all the elements have been calculated. If the minimum circumscribed rectangle of the element is found to contain the coordinate P, then the corresponding element is selected. If multiple simultaneous touch points are input, the flow is the same, and the system calculates the coordinates of each touch to find the elements under the touch coordinates.
- the square element Cubel is selected as an example. Drag the selected square element Cubel.
- the system first obtains the minimum bounding rectangle Rect of the Cubel at the current position, and then calculates whether the Rect intersects with other or contains other elements. The minimum circumscribed rectangle. If the Cubel is found to intersect or contain other elements, then the Cubel is combined with the intersecting or contained elements, then the Cubel is combined with this element.
- the process is the same under multi-touch.
- the system continuously calculates whether the elements being operated have intersected or included with other elements. If there are, the elements that are being operated are intersected or included. The elements are combined.
- determining whether two elements are included in each other if the four vertices of the minimum circumscribed rectangle of one of the elements are included in the minimum circumscribed rectangle of the other element, it is determined that the two elements are Contains relationships.
- the method of combining and splitting the elements of the present invention is the first embodiment, because by judging whether the boundary rectangles between the elements intersect, overlap or mutually contain each other, the selected elements are combined and split accordingly, so that the interaction can be fully utilized.
- the multi-touch property of the smart tablet moving multiple elements at the same time, as long as the intersection is automatically combined, as long as the removal is automatically split, which can greatly improve the usability and efficiency.
- System embodiment 1 of the combination and splitting of the elements of the present invention :
- FIG. 2 is a system for combining and disassembling the elements of the present invention.
- a schematic structural diagram of Embodiment 1; as shown in FIG. 2, may include:
- the monitoring unit 210 is configured to monitor a screen touch event and acquire coordinates of the current touch point.
- the first calculation determining unit 220 is configured to determine whether the coordinate falls within a boundary rectangle of each element; the boundary rectangle is at the current position of the element. The minimum bounding rectangle of the enclosing element;
- the element unit 230 is configured to: when the determination result of the first calculation and determination unit is YES, obtain a top element located at the top of the elements in which the coordinate falls;
- a boundary rectangle unit 240 configured to acquire a boundary rectangle of the top element in real time when the top element moves;
- the second calculation determining unit 250 is configured to determine whether the boundary rectangle of the top element intersects, overlaps, or contains each other with the boundary rectangle of each element;
- the combining unit 260 is configured to combine the top element with the intersecting, overlapping or mutually contained elements when the determining result of the second calculating determining unit is YES;
- the splitting unit 270 is configured to split the top element from the combination when the judgment result of the second calculation judgment unit is no, and when the top element is an object in the combination.
- FIG. 3 is a schematic structural diagram of a second calculation and determination unit in the system embodiment 1 of the combination and splitting of the present invention.
- the second calculation determination unit 250 may include:
- the coordinate module 10 is configured to acquire the coordinates of the center of gravity of the boundary rectangle of the top element in real time, and determine the coordinates of the center of gravity; and obtain the coordinates of the center of gravity of the boundary rectangle of other elements in real time, and determine the second coordinate;
- the distance module 20 is configured to acquire a first distance and a coordinate of the first coordinate to the first direction of the coordinate axis a second distance in the second direction of the axis; and obtaining a third distance from the second coordinate to the first direction of the coordinate axis and a fourth distance in the second direction of the coordinate axis;
- a length module 30 configured to acquire a first rectangle of a top-level element with a first length of a side perpendicular to the first direction of the coordinate axis and a second length of a second direction of the coordinate axis; and obtain a boundary rectangle of the other element perpendicular to the coordinate axis a third length of the side of the one direction and a fourth length of the side of the second direction of the coordinate axis; the distance and value module 40, configured to obtain a first distance difference between the first distance and the third distance, and obtain the second distance and a second distance difference of the fourth distance;
- a length and value module 50 configured to obtain a first length and a value of a half of a sum of the first length and the third length, and obtain a second length and a value of a half of the sum of the second length and the fourth length;
- the intersecting module 60 is configured to determine that the top element intersects the element when the first distance difference is less than the first length and the value and the second distance difference is less than the second length and value.
- the second calculation determining unit 250 may include: a first determining module 70, configured to determine whether coordinates of four vertices of a boundary rectangle of the top element can be simultaneously in the moving process Coordinate with the coordinates of the four vertices of the boundary rectangle of other elements;
- the coincidence module 80 is configured to determine that the top element overlaps with the element when the judgment result of the first judgment module is YES.
- the second calculation determining unit 250 may include: a second determining module 90, configured to determine whether the boundary rectangle of the top element can simultaneously include the boundaries of other elements during the moving process. The coordinates of the four vertices of the rectangle or the coordinates of the four vertices of the boundary rectangle of the top element are determined to be all contained in the boundary rectangle of other elements at the same time during the movement;
- the inclusion module 100 is configured to determine that the top element and the element are included in each other when the determination result of the second determination module is YES.
- boundary rectangle unit 240 is also used to obtain the boundary rectangle of each element.
- the system workflow of the combined operation of the elements in the system embodiment 1 of the present invention is described by taking the touch-enabled interactive smart tablet as an example.
- the touch-enabled interactive smart tablet There are two square elements Cubel and Cube2 on the interactive smart tablet interface (the invention does not need to limit the shape of the element, in a specific embodiment, the element is a square), and the boundary rectangle unit 240 obtains the coordinates of the square element Cubel and Cube2 on the interface.
- the position, and the size of each element, to obtain the minimum circumscribed rectangle Rect surrounding the boundary of the element, and the corresponding square elements Cubel and Cube2 are denoted as Recti and Rect2, respectively.
- the minimum bounding rectangle is the smallest bounding rectangle, the smallest containing rectangle, or the smallest outer bounding rectangle.
- the minimum circumscribed rectangle refers to the maximum range of several two-dimensional shapes (such as points, lines, and polygons) expressed in two-dimensional coordinates, that is, the largest abscissa, the smallest abscissa, and the largest ordinate in each vertex of a given two-dimensional shape. , the minimum ordinate defines the rectangle of the boundary. Such a rectangle contains a given two-dimensional shape with edges parallel to the coordinate axes.
- the minimum circumscribed rectangle is a two-dimensional open type of the minimum bounding box.
- Rect consists of three attributes: position coordinates, length, and width, which is convenient for the next calculation.
- the monitoring unit 210 monitors a touch event (press or click) on the interactive smart tablet interface, and the monitoring unit 210 records the touched coordinate position as P.
- the first calculation determining unit 220 determines whether there is an element under the touch position P, and first calculates whether the coordinate P is Included within the Recti rectangle, if included, element unit 230 selects Recti. If not included, the calculation of the remaining Rect2 is continued, until all the elements are calculated once. If the first calculation judging unit 220 finds that the minimum circumscribed rectangle of the element contains the coordinate P, the indicating element unit 230 selects the corresponding element. .
- the flow is the same, and the system calculates the coordinates of each touch to find the elements in the touch coordinates.
- the element unit 230 selects one element of the uppermost layer, and here the element unit 230 selects the square element Cubel as an example.
- the boundary rectangle unit 240 acquires the minimum circumscribed rectangle Rect of the Cubel at the current position, and then the second calculation judging unit 250 judges the Rect by calculation. Is there a minimum circumscribing rectangle that intersects with other elements or contains other elements. If the Cubel is found to intersect or contain other elements, then the combining unit 260 combines the Cubel with the intersecting or contained elements, then the Cubel is combined with this element. .
- the process is the same under multi-touch, in the process of moving multiple elements at the same time, the second calculation judging unit 250 continuously calculates whether the element being operated has intersected or contains other elements, and if so, the element to be operated. Combine with intersecting or contained elements.
- the multi-touch operation is first performed, and the first calculation judging unit 220 judges whether there are any elements under the plurality of touch positions, and if so, the element unit 230 selects these elements.
- Cubel and Cube2 are selected as an example in element unit 230.
- Embodiment 1 of the system of the present invention is the same for any multi-point operation.
- the second determining module 90 may determine that the four vertices of the minimum circumscribed rectangle of one of the elements are included in the other. Within the minimum bounding rectangle of the element, the inclusion of module 100 determines that the two elements are inclusive.
- the correlation module compares the sum of the distances of the center of gravity of the two minimum circumscribed rectangles in the X-axis direction and the y-axis direction with the half of the length or width of the two minimum circumscribed rectangles, respectively. the size of. If the center of gravity is smaller than the half length and half of their sides, then the intersection condition is met.
- the system embodiment 1 of the present invention combines and splits the elements, because by judging whether the boundary rectangles between the elements intersect, overlap or mutually contain each other, the selected elements are combined and split accordingly, so that the interaction can be fully utilized.
- the multi-touch property of the smart tablet moving multiple elements at the same time, as long as the intersection is automatically combined, as long as the removal is automatically split, which can greatly improve the usability and efficiency.
- activities are performed on an interactive smart tablet that supports multi-touch, it is convenient to combine or split multiple elements.
- the boundaries of two elements intersect, the elements are automatically combined.
- the automatic splitting is performed, which reduces the operational complexity and improves the operating efficiency.
- the technical features of the above embodiments may be arbitrarily combined. For the sake of brevity, the technologies in the above embodiments are not used. All possible combinations of features are described, however, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope of the description.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Image Analysis (AREA)
Abstract
一种元素组合及拆分的方法和系统,其中,元素组合及拆分的方法,包括以下步骤:监听屏幕触摸事件,获取当前触摸点的坐标(S110);判断坐标是否落入各元素的边界矩形内(S120);边界矩形为在元素的当前位置下包围元素的最小外接矩形;若落入,获取坐标落入的元素中位于顶层的顶层元素(S130);在顶层元素进行移动时,实时获取顶层元素的边界矩形(S140);并判断顶层元素的边界矩形是否与各元素的边界矩形相交、重合或相互包含(S150);若判断相交、重合或相互包含,将顶层元素与相交、重合或相互包含的元素进行组合(S160);若判断没有相交、重合或相互包含,且在顶层元素为组合中的对象时,将顶层元素从组合中拆分(S170)。能够在降低操作复杂度的同时提高操作效率。
Description
元素组合及拆分的方法和系统
技术领域
本发明涉及计算机软件技术领域, 特别是涉及一种元素组合及拆分的方 法和系统。 背景技术
在支持多点触摸的交互智能平板 ΠΡ (interactive intelligent panel) 上进行 相关活动时, 需要将两个或多个元素组合在一起, 或者将已存在的组合拆分 成几个独立元素, 便于操作。 但在实现过程中, 发明人发现传统技术至少存 在如下问题:
传统技术中, 若要将元素相交或组合在一起, 那么需要先将这些元素选 中, 然后再进行组合操作。 而当多个元素已经是组合的情况下, 若要将其中 一个元素拆离组合后, 保持剩下的元素仍然是组合的状态的操作, 需要通过 多一步的确认操作, 及多次拆分组合来实现多个元素的组合及拆分, 操作繁 琐, 非常不方便, 并且增加了操作难度。 发明内容
基于此, 有必要针对传统技术中元素组合及拆分操作复杂、 难度大的问 题, 提供一种元素组合及拆分的方法和系统。
为了实现上述目的, 本发明技术方案的实施例为:
一方面, 提供了一种元素组合及拆分的方法, 包括以下步骤:
监听屏幕触摸事件, 获取当前触摸点的坐标, 并判断坐标是否落入各元 素的边界矩形内; 边界矩形为在元素的当前位置下包围元素的最小外接矩形; 若落入, 获取坐标落入的元素中位于顶层的顶层元素;
在顶层元素进行移动时, 实时获取顶层元素的边界矩形; 并判断顶层元 素的边界矩形是否与各元素的边界矩形相交、 重合或相互包含;
若判断为相交、 重合或相互包含, 将顶层元素与相交、 重合或相互包含
的元素进行组合;
若判断为没有相交、重合或相互包含,且在顶层元素为组合中的对象时, 将顶层元素从组合中拆分。
另一方面, 提供了一种元素组合及拆分的系统, 包括:
监听单元, 用于监听屏幕触摸事件, 并获取当前触摸点的坐标; 第一计算判断单元, 用于判断坐标是否落入各元素的边界矩形内; 边界 矩形为在元素的当前位置下包围元素的最小外接矩形;
元素单元, 用于在第一计算判断单元的判断结果为是时, 获取坐标落入 的元素中位于顶层的顶层元素;
边界矩形单元, 用于在顶层元素进行移动时, 实时获取顶层元素的边界 矩形;
第二计算判断单元, 用于判断顶层元素的边界矩形是否与各元素的边界 矩形相交、 重合或相互包含;
组合单元, 用于当第二计算判断单元的判断结果为是时, 将顶层元素与 相交、 重合或相互包含的元素进行组合;
拆分单元, 用于当第二计算判断单元的判断结果为否时, 且在顶层元素 为组合中的对象时, 将顶层元素从该组合中拆分。
上述技术方案具有如下有益效果:
本发明元素组合及拆分的方法和系统, 因为通过判断元素之间的边界矩 形是否相交、重合或相互包含的关系,相应的将选取的元素进行组合及拆分, 从而能够充分的利用交互智能平板的多点触摸属性, 同时移动多个元素, 只 要相交就自动的组合,只要移开就自动的拆分,能极大的提高易用性及效率。 在支持多点触摸的交互智能平板上进行活动时, 可以方便的对多个元素进行 组合或者拆分组合, 当两个元素的边界相交的时候自动组合, 操作元素使其 边界没有相交的时候自动拆分, 降低了操作复杂度的同时提高了操作效率。 附图说明
通过附图中所示的本发明的优选实施例的更具体说明, 本发明的上述及
其它目的、 特征和优势将变得更加清晰。 在全部附图中相同的附图标记指示 相同的部分, 且并未刻意按实际尺寸等比例缩放绘制附图, 重点在于示出本 发明的主旨。
图 1为本发明元素组合及拆分的方法实施例 1的流程示意图;
图 2为本发明元素组合及拆分的系统实施例 1的结构示意图;
图 3为本发明元素组合及拆分的系统实施例 1 中第二计算判断单元的结 构示意图。 具体实施方式
为了便于理解本发明, 下面将参照相关附图对本发明进行更全面的描述。 附图中给出了本发明的首选实施例。 但是, 本发明可以以许多不同的形式来 实现, 并不限于本文所描述的实施例。 相反地, 提供这些实施例的目的是使 对本发明的公开内容更加透彻全面。
除非另有定义, 本文所使用的所有的技术和科学术语与属于本发明的技 术领域的技术人员通常理解的含义相同。 本文中在本发明的说明书中所使用 的术语只是为了描述具体的实施例的目的, 不是旨在于限制本发明。 本文所 使用的术语"及 I或"包括一个或多个相关的所列项目的任意的和所有的组合。 本发明元素组合及拆分的方法实施例 1 :
为了应对传统技术中元素组合及拆分操作复杂、 难度大的问题, 本发明 提供了一种本发明元素组合及拆分的方法实施例 1,图 1为本发明元素组合及 拆分的方法实施例 1的流程示意图; 如图 1所示, 可以包括步骤:
步骤 S110: 监听屏幕触摸事件, 获取当前触摸点的坐标;
步骤 S120: 判断坐标是否落入各元素的边界矩形内; 边界矩形为在元素 的当前位置下包围元素的最小外接矩形;
步骤 S130:若判断落入,获取该坐标落入的元素中位于顶层的顶层元素; 步骤 S140: 在顶层元素进行移动时, 实时获取顶层元素的边界矩形; 步骤 S150: 判断顶层元素的边界矩形是否与各元素的边界矩形相交、 重
合或相互包含; 若判断为相交、 重合或相互包含, 进入步骤 S160; 若判断为 没有相交、 重合或相互包含, 进入步骤 S170;
步骤 S160: 将顶层元素与相交、 重合或相互包含的元素进行组合; 步骤 S170:且在顶层元素为组合中的对象时,将顶层元素从组合中拆分。 在一个具体的实施例中, 步骤 S150判断顶层元素的边界矩形是否与各元 素的边界矩形相交的步骤具体可以包括:
实时获取顶层元素的边界矩形的重心点坐标, 确定为第一坐标;
获取第一坐标到坐标轴第一方向上的第一距离和坐标轴第二方向上的第 二距离; 获取顶层元素的边界矩形垂直于坐标轴第一方向的边的第一长度和 坐标轴第二方向的边的第二长度;
实时获取其他元素的边界矩形的重心点坐标, 确定为第二坐标;
获取第二坐标到坐标轴第一方向上的第三距离和坐标轴第二方向上的第 四距离; 获取其他元素的边界矩形垂直于坐标轴第一方向的边的第三长度和 坐标轴第二方向的边的第四长度;
获取第一距离与第三距离的第一距离差值, 获取第二距离与第四距离的 第二距离差值;
获取第一长度与第三长度的和的一半的第一长度和值, 获取第二长度与 第四长度的和的一半的第二长度和值;
在第一距离差值小于第一长度和值且第二距离差值小于第二长度和值时, 确定顶层元素与元素相交。
其中, 判断两个边界矩形是否相交的条件具体为: 需要比较两个最小外 接矩形的重心在 X轴方向上和 y轴方向上的距离与两个最小外接矩形的长或 者宽的一半的和的大小。 如果重心的在 X轴和 y轴上的距离都比他们边长和 的一半要小就符合相交的条件。
此处以实际 XY坐标轴举例说明: 例如获取到的顶层元素的边界矩形的 四个顶点坐标分别为 (Xu、 Yu )、 (X21、 Yu )、 (Xu、 Y21 )、 (X21、 Y21 ), 则 顶层元素的边界矩形的重心点坐标为(^^、^^^),贝^^ ^、^11?^)到
v , v
坐标轴第一方向 (X轴方向) 上的第一距离为 到坐标轴第二方向 (Y 轴方向)上的第二距离为^ 顶层元素的边界矩形垂直于坐标轴第一方向
(X轴方向)的边的第一长度为 Y21 - Υ11 ;垂直于坐标轴第二方向( Υ轴方向) 的边的第二长度为 χ21 - χ11 ;
获取到的其他元素的边界矩形的四个顶点坐标分别为(χ33、 Υ33)、(χ43、
Υ33)、(Χ33、 Υ43)、(Χ43、 Υ43)其他元素的边界矩形的重心点坐标为(i^ii、
素的边界矩形垂直于坐标轴第一方向(X轴方向)的边的第三长度为 Y43 - Y33 ; 垂直于坐标轴第二方向 (Υ轴方向) 的边的第四长度为 χ43 - χ33 ;
因此,第一距离与第三距离的第一距离差值为 ii?^ - ^1^获取第二 距离与第四距离的第二距离差值为 2 2
获取第一长度与第三长度的和的一半的第一长度和值为
(γ71— γ" ) + (Υ^— Υ„)
2 取第二长度与第四长度的和的一半的第二长度和值
( 一 Χι ι ) + ( ^一 Χ·3 )
为. 2
在上述第一距离差值小于第一长度和值且第二距离差值小于第二长度和 值时, 能够确定顶层元素与元素相交。
在一个具体的实施例中, 步骤 S150判断顶层元素的边界矩形是否与各元 素的边界矩形重合的步骤具体可以包括:
判断顶层元素的边界矩形的四个顶点的坐标在移动过程中是否能够同时 与其他元素的边界矩形的四个顶点的坐标重合;
若判断重合, 确定顶层元素与元素重合。
在一个具体的实施例中, 步骤 S150判断顶层元素的边界矩形是否与各元
判断顶层元素的边界矩形在移动过程中是否能够同时全部包含其他元素 的边界矩形的四个顶点的坐标或判断顶层元素的边界矩形的四个顶点的坐标 在移动过程中是否能够同时全部包含在其他元素的边界矩形内;
若判断全部包含, 确定顶层元素与元素相互包含。
在一个具体的实施例中, 步骤 S110在监听触摸事件, 获取当前触摸点的 坐标的步骤之前还包括步骤: 获取各元素的边界矩形。
为了更清楚的阐释本发明的技术方案, 以支持触摸的交互智能平板为例, 介绍本发明元素组合及拆分的方法实施例 1中元素的组合操作的实现流程。
交互智能平板界面上有两个正方形元素 Cubel与 Cube2 (本发明无需限 制元素的形状, 在一个具体的实施例中, 元素为正方形), 交互智能平板的计 算机软件系统获取正方形元素 Cubel与 Cube2在界面上的坐标位置及各元素 的大小, 即可以得到包围元素的边界的最小外接矩形 Rect, 对应正方形元素 Cubel与 Cube2分别记为 Recti与 Rect2。 在一个具体的实施例中, 最小外接 矩形 (minimum bounding rectangle, MBR)即为最小边界矩形, 最小包含矩形, 或最小外包矩形。 最小外接矩形是指以二维坐标表示的若干二维形状 (例如 点、 直线、 多边形) 的最大范围, 即以给定的二维形状各顶点中的最大横坐 标、 最小横坐标、 最大纵坐标、 最小纵坐标定下边界的矩形。 这样的一个矩 形包含给定的二维形状, 且边与坐标轴平行。 最小外接矩形是最小外接框 (minimum bounding box)的二维形式。
其中 Rect由位置坐标、长度、宽度这三个属性组成,便于接下来的计算。 监听交互智能平板界面上的触摸事件 (按或者点击), 将触摸的坐标位置 记为 P,系统判断触摸位置 P下有没有元素,首先计算坐标 P是否包含在 Recti 矩形内, 如果包含, 那么代表选中了 Rectl。 如果没有包含则继续对剩下的 Rect2进行计算, 一直到全部元素都计算过一遍, 如果发现有元素的最小外接 矩形包含坐标 P,那么表示选中了对应元素。如果进行多个触摸点的同时输入, 那么流程是一样的, 系统对每个触摸的坐标点进行计算, 找出触摸坐标下的 元素。 选中触摸坐标下的元素后, 如果该位置下有多个元素, 则选中最上层 的一个元素, 此处以选中了正方形元素 Cubel为例。
拖动选中的正方形元素 Cubel , 在拖动的过程中, 因为 Cubel 的坐标已 经更改, 所以系统先获取 Cubel在当前位置下的最小外接矩形 Rect, 然后计 算 Rect有没有与其他相交或者包含其他元素的最小外接矩形,如果发现 Cubel 与其他元素有相交或包含, 那么就将 Cubel 与相交或包含的元素进行组合操 作, 那么 Cubel与此元素就组合在一起。
在多点触摸下流程是一样的, 在多个元素同时移动的过程中, 系统不断 的计算正在操作的元素有没有与其他元素相交或者包含, 如果有则将正在操 作的元素与相交或者包含的元素组合在一起。
下面以元素的拆分操作为例:
假设界面上有两个正方形元素 Cubel与 Cube2, 首先进行多点触摸的操 作, 系统判断多个触摸位置下有没有元素, 如果有, 则选中这些元素。 此处 以同时触摸选中了 Cubel与 Cube2为例。
同时拖动选中的元素 Cubel与 Cube2, 如果同时将 Cubel与 Cube2拖动 靠近, 此时如果系统计算到这两个元素的最小外接矩形有相交或者包含, 则 将这两个元素组合在一起 。如果同时将 Cubel与 Cube2拖动移开使这两个元 素的最小外接矩形没有相交或者包含, 此时系统将这两个元素进行拆分, 这 样就实现了两个元素的分离。 在一个具体的实施例中, 系统对于任意多点操 作的情况下处理是一样的。
其中, 在一个具体的实施例中, 判断两个元素是否相互包含, 若其中一 个元素的最小外接矩形的四个顶点都包含在另一个元素的最小外接矩形内, 即判断为这两个元素为包含关系。 判断是否相交时, 需要比较两个最小外接 矩形的重心在 X轴方向上和 y轴方向上的距离与两个最小外接矩形的长或者 宽的一半的和的大小。 如果重心的在 X轴和 y轴上的距离都比他们边长和的 一半要小就符合相交的条件。
本发明元素组合及拆分的方法实施例 1,因为通过判断元素之间的边界矩 形是否相交、重合或相互包含的关系,相应的将选取的元素进行组合及拆分, 从而能够充分的利用交互智能平板的多点触摸属性, 同时移动多个元素, 只 要相交就自动的组合,只要移开就自动的拆分,能极大的提高易用性及效率。
在支持多点触摸的交互智能平板上进行活动时, 可以方便的对多个元素进行 组合或者拆分组合, 当两个元素的边界相交的时候自动组合, 操作元素使其 边界没有相交的时候自动拆分, 降低了操作复杂度的同时提高了操作效率。 本发明元素组合及拆分的系统实施例 1 :
为了应对传统技术中元素组合及拆分操作复杂、 难度大的问题, 本发明 还提供了一种本发明元素组合及拆分的系统实施例 1,图 2为本发明元素组合 及拆分的系统实施例 1的结构示意图; 如图 2所示, 可以包括:
监听单元 210, 用于监听屏幕触摸事件, 并获取当前触摸点的坐标; 第一计算判断单元 220, 用于判断该坐标是否落入各元素的边界矩形内; 边界矩形为在元素的当前位置下包围元素的最小外接矩形;
元素单元 230, 用于在第一计算判断单元的判断结果为是时, 获取该坐标 落入的元素中位于顶层的顶层元素;
边界矩形单元 240, 用于在顶层元素进行移动时, 实时获取顶层元素的边 界矩形;
第二计算判断单元 250,用于判断顶层元素的边界矩形是否与各元素的边 界矩形相交、 重合或相互包含;
组合单元 260, 用于当第二计算判断单元的判断结果为是时, 将顶层元素 与相交、 重合或相互包含的元素进行组合;
拆分单元 270, 用于当第二计算判断单元的判断结果为否时, 且在顶层元 素为组合中的对象时, 将顶层元素从该组合中拆分。
在一个具体的实施例中, 图 3 为本发明元素组合及拆分的系统实施例 1 中第二计算判断单元的结构示意图, 如图 3所示, 第二计算判断单元 250可 以包括:
获取坐标模块 10, 用于实时获取顶层元素的边界矩形的重心点坐标, 确 定为第一坐标; 以及实时获取其他元素的边界矩形的重心点坐标, 确定为第 二坐标;
距离模块 20, 用于获取第一坐标到坐标轴第一方向上的第一距离和坐标
轴第二方向上的第二距离; 以及获取第二坐标到坐标轴第一方向上的第三距 离和坐标轴第二方向上的第四距离;
长度模块 30, 用于获取顶层元素的边界矩形垂直于坐标轴第一方向的边 的第一长度和坐标轴第二方向的边的第二长度; 以及获取其他元素的边界矩 形垂直于坐标轴第一方向的边的第三长度和坐标轴第二方向的边的第四长度; 距离和值模块 40, 用于获取第一距离与第三距离的第一距离差值, 以及 获取第二距离与第四距离的第二距离差值;
长度和值模块 50, 用于获取第一长度与第三长度的和的一半的第一长度 和值, 获取第二长度与第四长度的和的一半的第二长度和值;
相交模块 60, 用于在第一距离差值小于第一长度和值且第二距离差值小 于第二长度和值时, 确定顶层元素与元素相交。
在一个具体的实施例中,如图 3所示,第二计算判断单元 250可以包括: 第一判断模块 70, 用于判断顶层元素的边界矩形的四个顶点的坐标在移 动过程中是否能够同时与其他元素的边界矩形的四个顶点的坐标重合;
重合模块 80, 用于在第一判断模块的判断结果为是时, 确定顶层元素与 元素重合。
在一个具体的实施例中,如图 3所示,第二计算判断单元 250可以包括: 第二判断模块 90, 用于判断顶层元素的边界矩形在移动过程中是否能够 同时全部包含其他元素的边界矩形的四个顶点的坐标或判断顶层元素的边界 矩形的四个顶点的坐标在移动过程中是否能够同时全部包含在其他元素的边 界矩形内;
包含模块 100, 用于在第二判断模块的判断结果为是时, 确定顶层元素与 元素相互包含。
在一个具体的实施例中, 边界矩形单元 240还用于获取各元素的边界矩 形。
为了更清楚的阐释本发明的技术方案, 以支持触摸的交互智能平板为例, 介绍本发明元素组合及拆分的系统实施例 1 中元素的组合操作的系统工作流 程。
交互智能平板界面上有两个正方形元素 Cubel与 Cube2 (本发明无需限 制元素的形状, 在一个具体的实施例中, 元素为正方形), 边界矩形单元 240 获取正方形元素 Cubel与 Cube2在界面上的坐标位置, 以及各元素的大小, 从而得到包围元素的边界的最小外接矩形 Rect, 并对应正方形元素 Cubel与 Cube2 分别记为 Recti 与 Rect2。 在一个具体的实施例中, 最小外接矩形 (minimum bounding rectangle, MB R)即为最小边界矩形, 最小包含矩形, 或最 小外包矩形。 最小外接矩形是指以二维坐标表示的若干二维形状 (例如点、 直线、 多边形) 的最大范围, 即以给定的二维形状各顶点中的最大横坐标、 最小横坐标、 最大纵坐标、 最小纵坐标定下边界的矩形。 这样的一个矩形包 含给定的二维形状,且边与坐标轴平行。最小外接矩形是最小外接框 (minimum bounding box)的二维开式。
其中 Rect由位置坐标、长度、宽度这三个属性组成,便于接下来的计算。 监听单元 210监听交互智能平板界面上的触摸事件 (按或者点击), 监听 单元 210将触摸的坐标位置记为 P, 第一计算判断单元 220判断触摸位置 P 下有没有元素, 首先计算坐标 P是否包含在 Recti矩形内, 如果包含, 那么元 素单元 230选中 Recti。 如果没有包含则继续对剩下的 Rect2进行计算, 一直 到全部元素都计算过一遍, 如果第一计算判断单元 220发现有元素的最小外 接矩形包含坐标 P,那么表示元素单元 230选中了该对应元素。如果进行多个 触摸点的同时输入,那么流程是一样的,系统对每个触摸的坐标点进行计算, 找出触摸坐标下的元素。 选中触摸坐标下的元素后, 如果该位置下有多个元 素, 元素单元 230则选中最上层的一个元素, 此处以元素单元 230选中了正 方形元素 Cubel为例。
拖动选中的正方形元素 Cubel , 在拖动的过程中, 因为 Cubel 的坐标已 经更改,所以边界矩形单元 240获取 Cubel在当前位置下的最小外接矩形 Rect, 然后第二计算判断单元 250通过计算判断 Rect有没有与其他相交或者包含其 他元素的最小外接矩形, 如果发现 Cubel与其他元素有相交或包含, 那么组 合单元 260将 Cubel与相交或包含的元素进行组合操作, 那么 Cubel与此元 素就组合在一起。
在多点触摸下流程是一样的, 在多个元素同时移动的过程中, 第二计算 判断单元 250不断的计算正在操作的元素有没有与其他元素相交或者包含, 如果有则将正在操作的元素与相交或者包含的元素组合在一起。
下面以元素的拆分操作为例:
假设界面上有两个正方形元素 Cubel与 Cube2, 首先进行多点触摸的操 作, 第一计算判断单元 220判断多个触摸位置下有没有元素, 如果有, 元素 单元 230选中这些元素。 此处以元素单元 230同时选中了 Cubel与 Cube2为 例。
同时拖动选中的元素 Cubel与 Cube2, 如果同时将 Cubel与 Cube2拖动 靠近, 此时如果第二计算判断单元 250计算到这两个元素的最小外接矩形有 相交或者包含,则组合单元 260将这两个元素组合在一起。如果同时将 Cubel 与 Cube2拖动移开使第二计算判断单元 250判断这两个元素的最小外接矩形 没有相交或者包含, 此时拆分单元 270将这两个元素进行拆分, 这样就实现 了两个元素的分离。 在一个具体的实施例中, 本发明系统的实施例 1 对于任 意多点操作的情况下处理是一样的。
其中, 在一个具体的实施例中, 第二计算判断单元 250判断两个元素是 否相互包含时, 可以由第二判断模块 90若判断其中一个元素的最小外接矩形 的四个顶点都包含在另一个元素的最小外接矩形内, 包含模块 100 即确定这 两个元素为包含关系。 第二计算判断单元 250判断是否相交时, 则由相关模 块分别比较两个最小外接矩形的重心在 X轴方向上和 y轴方向上的距离与两 个最小外接矩形的长或者宽的一半的和的大小。 如果重心的在 X轴和 y轴上 的距离都比他们边长和的一半要小就符合相交的条件。
本发明元素组合及拆分的系统实施例 1,因为通过判断元素之间的边界矩 形是否相交、重合或相互包含的关系,相应的将选取的元素进行组合及拆分, 从而能够充分的利用交互智能平板的多点触摸属性, 同时移动多个元素, 只 要相交就自动的组合,只要移开就自动的拆分,能极大的提高易用性及效率。 在支持多点触摸的交互智能平板上进行活动时, 可以方便的对多个元素进行 组合或者拆分组合, 当两个元素的边界相交的时候自动组合, 操作元素使其
边界没有相交的时候自动拆分, 降低了操作复杂度的同时提高了操作效率, 以上所述实施例的各技术特征可以进行任意的组合, 为使描述简洁, 未 对上述实施例中的各个技术特征所有可能的组合都进行描述, 然而, 只要这 些技术特征的组合不存在矛盾, 都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式, 其描述较为具体和详 细, 但并不能因此而理解为对发明专利范围的限制。 应当指出的是, 对于本 领域的普通技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若干 变形和改进, 这些都属于本发明的保护范围。 因此, 本发明专利的保护范围 应以所附权利要求为准。
Claims
1、 一种元素组合及拆分的方法, 其特征在于, 包括以下步骤:
监听屏幕触摸事件, 获取当前触摸点的坐标, 并判断所述坐标是否落入 各元素的边界矩形内; 所述边界矩形为在元素的当前位置下包围元素的最小 外接矩形;
若落入, 获取所述坐标落入的元素中位于顶层的顶层元素;
在所述顶层元素进行移动时, 实时获取所述顶层元素的边界矩形; 并判 断所述顶层元素的边界矩形是否与各元素的边界矩形相交、 重合或相互包含; 若判断为相交、 重合或相互包含, 将所述顶层元素与所述相交、 重合或 相互包含的元素进行组合;
若判断为没有相交、 重合或相互包含, 且在所述顶层元素为组合中的对 象时, 将所述顶层元素从所述组合中拆分。
2、 根据权利要求 1所述的元素组合及拆分的方法, 其特征在于, 判断所 述顶层元素的边界矩形是否与各元素的边界矩形相交的步骤具体包括:
实时获取所述顶层元素的边界矩形的重心点坐标, 确定为第一坐标; 获取所述第一坐标到坐标轴第一方向上的第一距离和所述坐标轴第二方 向上的第二距离; 获取所述顶层元素的边界矩形垂直于所述坐标轴第一方向 的边的第一长度和所述坐标轴第二方向的边的第二长度;
实时获取其他元素的边界矩形的重心点坐标, 确定为第二坐标; 获取所述第二坐标到所述坐标轴第一方向上的第三距离和所述坐标轴第 二方向上的第四距离; 获取其他元素的边界矩形垂直于所述坐标轴第一方向 的边的第三长度和所述坐标轴第二方向的边的第四长度;
获取所述第一距离与所述第三距离的第一距离差值, 获取所述第二距离 与所述第四距离的第二距离差值;
获取所述第一长度与所述第三长度的和的一半的第一长度和值, 获取所 述第二长度与所述第四长度的和的一半的第二长度和值;
在所述第一距离差值小于所述第一长度和值且所述第二距离差值小于所 述第二长度和值时, 确定所述顶层元素与元素相交。
3、 根据权利要求 1所述的元素组合及拆分的方法, 其特征在于, 判断所 述顶层元素的边界矩形是否与各元素的边界矩形重合的步骤具体包括:
判断所述顶层元素的边界矩形的四个顶点的坐标在移动过程中是否能够 同时与其他元素的边界矩形的四个顶点的坐标重合;
若判断重合, 确定所述顶层元素与元素重合。
4、 根据权利要求 1所述的元素组合及拆分的方法, 其特征在于, 判断所 述顶层元素的边界矩形是否与各元素的边界矩形相互包含的步骤具体包括: 判断所述顶层元素的边界矩形在移动过程中是否能够同时全部包含其他 元素的边界矩形的四个顶点的坐标或判断所述顶层元素的边界矩形的四个顶 点的坐标在移动过程中是否能够同时全部包含在其他元素的边界矩形内; 若判断全部包含, 确定所述顶层元素与元素相互包含。
5、 根据权利要求 1至 4任意一项所述的元素组合及拆分的方法, 其特征 在于, 在监听触摸事件, 获取当前触摸点的坐标的步骤之前还包括步骤: 获取各元素的边界矩形。
6、 一种元素组合及拆分的系统, 其特征在于, 包括:
监听单元, 用于监听屏幕触摸事件, 并获取当前触摸点的坐标; 第一计算判断单元, 用于判断所述坐标是否落入各元素的边界矩形内; 所述边界矩形为在元素的当前位置下包围元素的最小外接矩形;
元素单元, 用于在所述第一计算判断单元的判断结果为是时, 获取所述 坐标落入的元素中位于顶层的顶层元素;
边界矩形单元, 用于在所述顶层元素进行移动时, 实时获取所述顶层元 素的边界矩形;
第二计算判断单元, 用于判断所述顶层元素的边界矩形是否与各元素的 边界矩形相交、 重合或相互包含;
组合单元, 用于当所述第二计算判断单元的判断结果为是时, 将所述顶 层元素与所述相交、 重合或相互包含的元素进行组合;
拆分单元, 用于当所述第二计算判断单元的判断结果为否时, 且在所述 顶层元素为组合中的对象时, 将所述顶层元素从所述组合中拆分。
7、 根据权利要求 6所述的元素组合及拆分的系统, 其特征在于, 所述第 二计算判断单元包括:
获取坐标模块, 用于实时获取所述顶层元素的边界矩形的重心点坐标, 确定为第一坐标; 以及实时获取其他元素的边界矩形的重心点坐标, 确定为 第二坐标;
距离模块, 用于获取所述第一坐标到坐标轴第一方向上的第一距离和所 述坐标轴第二方向上的第二距离; 以及获取所述第二坐标到所述坐标轴第一 方向上的第三距离和所述坐标轴第二方向上的第四距离;
长度模块, 用于获取所述顶层元素的边界矩形垂直于所述坐标轴第一方 向的边的第一长度和所述坐标轴第二方向的边的第二长度; 以及获取其他元 素的边界矩形垂直于所述坐标轴第一方向的边的第三长度和所述坐标轴第二 方向的边的第四长度;
距离和值模块, 用于获取所述第一距离与所述第三距离的第一距离差值, 以及获取所述第二距离与所述第四距离的第二距离差值;
长度和值模块, 用于获取所述第一长度与所述第三长度的和的一半的第 一长度和值, 获取所述第二长度与所述第四长度的和的一半的第二长度和值; 相交模块, 用于在所述第一距离差值小于所述第一长度和值且所述第二 距离差值小于所述第二长度和值时, 确定所述顶层元素与元素相交。
8、 根据权利要求 6所述的元素组合及拆分的系统, 其特征在于, 所述第 二计算判断单元包括:
第一判断模块, 用于判断所述顶层元素的边界矩形的四个顶点的坐标在 移动过程中是否能够同时与其他元素的边界矩形的四个顶点的坐标重合; 重合模块, 用于在所述第一判断模块的判断结果为是时, 确定所述顶层 元素与元素重合。
9、 根据权利要求 6所述的元素组合及拆分的系统, 其特征在于, 所述第 二计算判断单元包括:
第二判断模块, 用于判断所述顶层元素的边界矩形在移动过程中是否能 够同时全部包含其他元素的边界矩形的四个顶点的坐标或判断所述顶层元素
的边界矩形的四个顶点的坐标在移动过程中是否能够同时全部包含在其他元 素的边界矩形内;
包含模块, 用于在所述第二判断模块的判断结果为是时, 确定所述顶层 元素与元素相互包含。
10、 根据权利要求 6至 9任意一项所述的元素组合及拆分的系统, 其特 征在于, 所述边界矩形单元还用于获取各元素的边界矩形。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510976018.XA CN105630380B (zh) | 2015-12-21 | 2015-12-21 | 元素组合及拆分的方法和系统 |
| CN201510976018.X | 2015-12-21 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017107475A1 true WO2017107475A1 (zh) | 2017-06-29 |
Family
ID=56045380
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/090744 Ceased WO2017107475A1 (zh) | 2015-12-21 | 2016-07-20 | 元素组合及拆分的方法和系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105630380B (zh) |
| WO (1) | WO2017107475A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105630380B (zh) * | 2015-12-21 | 2018-12-28 | 广州视睿电子科技有限公司 | 元素组合及拆分的方法和系统 |
| CN108804406A (zh) * | 2018-06-15 | 2018-11-13 | 广州视源电子科技股份有限公司 | 组合框的处理方法和装置 |
| CN109814787B (zh) * | 2019-01-29 | 2021-04-06 | 广州视源电子科技股份有限公司 | 关键信息确定方法、装置、设备及存储介质 |
| CN116862939B (zh) * | 2023-07-28 | 2025-04-18 | 北京城建设计发展集团股份有限公司 | 一种用于建筑图纸的矩形拆分方法与系统 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101989171A (zh) * | 2009-07-30 | 2011-03-23 | 联想(新加坡)私人有限公司 | 控制计算机功能的触摸优化的用户界面元件的行为和外观 |
| EP2372516A2 (en) * | 2010-04-05 | 2011-10-05 | Sony Ericsson Mobile Communications AB | Methods, systems and computer program products for arranging a plurality of icons on a touch sensitive display |
| CN103218116A (zh) * | 2013-03-12 | 2013-07-24 | 广东欧珀移动通信有限公司 | 一种同时编辑桌面多个元素的实现方法和系统 |
| CN103616982A (zh) * | 2013-11-22 | 2014-03-05 | 华为终端有限公司 | 一种在触摸屏设备上新建文件夹的方法及触摸屏设备 |
| CN103853346A (zh) * | 2012-11-30 | 2014-06-11 | 三星电子株式会社 | 管理显示在触摸屏上的多个对象的设备和方法 |
| CN105630380A (zh) * | 2015-12-21 | 2016-06-01 | 广州视睿电子科技有限公司 | 元素组合及拆分的方法和系统 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8656314B2 (en) * | 2009-07-30 | 2014-02-18 | Lenovo (Singapore) Pte. Ltd. | Finger touch gesture for joining and unjoining discrete touch objects |
-
2015
- 2015-12-21 CN CN201510976018.XA patent/CN105630380B/zh active Active
-
2016
- 2016-07-20 WO PCT/CN2016/090744 patent/WO2017107475A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101989171A (zh) * | 2009-07-30 | 2011-03-23 | 联想(新加坡)私人有限公司 | 控制计算机功能的触摸优化的用户界面元件的行为和外观 |
| EP2372516A2 (en) * | 2010-04-05 | 2011-10-05 | Sony Ericsson Mobile Communications AB | Methods, systems and computer program products for arranging a plurality of icons on a touch sensitive display |
| CN103853346A (zh) * | 2012-11-30 | 2014-06-11 | 三星电子株式会社 | 管理显示在触摸屏上的多个对象的设备和方法 |
| CN103218116A (zh) * | 2013-03-12 | 2013-07-24 | 广东欧珀移动通信有限公司 | 一种同时编辑桌面多个元素的实现方法和系统 |
| CN103616982A (zh) * | 2013-11-22 | 2014-03-05 | 华为终端有限公司 | 一种在触摸屏设备上新建文件夹的方法及触摸屏设备 |
| CN105630380A (zh) * | 2015-12-21 | 2016-06-01 | 广州视睿电子科技有限公司 | 元素组合及拆分的方法和系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105630380B (zh) | 2018-12-28 |
| CN105630380A (zh) | 2016-06-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10379733B2 (en) | Causing display of a three dimensional graphical user interface with dynamic selectability of items | |
| US11079895B2 (en) | Method and apparatus for providing user interface | |
| US9250791B2 (en) | Display control device, display control method, and computer program | |
| US10359905B2 (en) | Collaboration with 3D data visualizations | |
| US8587543B2 (en) | Display control device and display control method | |
| CN105190644B (zh) | 用于使用触摸控制的基于图像的搜索的技术 | |
| US10969949B2 (en) | Information display device, information display method and information display program | |
| US10324613B2 (en) | Method and electronic device for moving icon to page | |
| CN105389111A (zh) | 一种分屏显示的操作方法及电子设备 | |
| US20150026618A1 (en) | Snapping of object features via dragging | |
| CN110070556A (zh) | 使用深度传感器的结构建模 | |
| CN107797722A (zh) | 触控屏图标选择方法及装置 | |
| CN102662586A (zh) | 一种基于用户界面的操作触发方法、装置及终端设备 | |
| WO2017107475A1 (zh) | 元素组合及拆分的方法和系统 | |
| EP2778880B1 (en) | Method for controlling display function and an electronic device thereof | |
| EP2605119A2 (en) | Touch input method and apparatus of portable terminal | |
| US8963867B2 (en) | Display device and display method | |
| KR20150094967A (ko) | 적어도 하나의 어플리케이션을 실행하는 전자 장치 및 그 제어 방법 | |
| CN105824520A (zh) | 一种桌面图标批量处理的方法和一种移动终端 | |
| WO2017096932A1 (zh) | 智能显示的方法及装置 | |
| CN104035623A (zh) | 触控屏防误触的响应方法和装置 | |
| US20130241828A1 (en) | Touchscreen virtual track control | |
| WO2017080312A1 (zh) | 一种桌面图标调整方法和装置 | |
| JPWO2012026322A1 (ja) | オブジェクトのレイアウト編集方法及び装置 | |
| TWI543068B (zh) | 以單指操作行動裝置螢幕介面方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16877287 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16877287 Country of ref document: EP Kind code of ref document: A1 |
