WO2018103419A1 - 一种用于页面的控制方法及装置 - Google Patents

一种用于页面的控制方法及装置 Download PDF

Info

Publication number
WO2018103419A1
WO2018103419A1 PCT/CN2017/103292 CN2017103292W WO2018103419A1 WO 2018103419 A1 WO2018103419 A1 WO 2018103419A1 CN 2017103292 W CN2017103292 W CN 2017103292W WO 2018103419 A1 WO2018103419 A1 WO 2018103419A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
mapping
attribute
initial value
mapped
Prior art date
Application number
PCT/CN2017/103292
Other languages
English (en)
French (fr)
Inventor
叶洪
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
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 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018103419A1 publication Critical patent/WO2018103419A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Definitions

  • the embodiments of the present invention relate to the technical field of software development, and in particular, to a method and an apparatus for controlling a page.
  • the document presentation system in order to smooth the visual experience or make the presentation document more vivid, the document presentation system generally includes various animation effects such as fade out, fly in, zoom and rotate.
  • the invention provides a method and a device for controlling a page to automatically realize an animation effect between pages, thereby improving efficiency and user experience.
  • an embodiment of the present invention provides a method for controlling a page, where the method includes:
  • an embodiment of the present invention further provides a control device for a page, where the device includes:
  • An information acquiring module configured to acquire first object information of a current page and second object information of a next page
  • mapping determining module configured to determine a mapping relationship between the first object and the second object according to attributes of the first object and the second object
  • an object display module configured to hide the first object and display the second object according to a mapping relationship between the first object and the second object.
  • the present invention determines the mapping relationship between the first object and the second object according to the first object information of the current page and the second object information of the next page; according to the first object and the second object according to the first object and the second object;
  • the mapping relationship of the object hides the first object and displays the second object. According to the mapping relationship between the objects in the page, the animation effect is automatically realized, and the user is not required to set each object separately, thereby improving the operation efficiency and the user experience.
  • FIG. 1 is a flowchart of a method for controlling a page according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of two pages in the first embodiment of the present invention.
  • FIG. 3 is a schematic diagram of entering a subsequent page from a previous page in the first embodiment of the present invention.
  • FIG. 4 is a schematic diagram of entering a previous page from a subsequent page in the first embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for controlling a page according to Embodiment 2 of the present invention.
  • FIG. 6 is a structural block diagram of a control device for a page according to Embodiment 3 of the present invention.
  • FIG. 1 is a flowchart of a method for controlling a page according to a first embodiment of the present invention.
  • the embodiment is applicable to a situation in which an animation effect is automatically generated during a document presentation, and the method may be performed by a control device for a page.
  • the device can be implemented in software and/or hardware. Referring to FIG. 1, the method provided in this embodiment specifically includes the following steps:
  • Step 110 Acquire first object information of the current page and second object information of the next page.
  • the first object information of the current page and the second object information of the next page are acquired according to an operation instruction of the user. For example, when the user controls the presentation document to enter the next page of the current page by using a keyboard, a mouse button, a pulley, or by clicking a preset position of the screen, the next page of the current page is the next page, and the first page of the current page is obtained.
  • the object information and the second object information of the next page; when the control document is controlled to enter the previous page of the current page, the previous page of the current page is the next page, and the first object information of the current page and the previous page are obtained. Second object information.
  • the user can set whether an animation between the pages is needed on each page of the presentation document.
  • the animation effect is a gradient transition effect. If the current page is set with a gradient transition effect, the first object information of the current page and the second object information of the next page are obtained according to the operation instruction of the user; if the current page is not provided with the gradient transition effect, when the presentation document is turned over The first object information of the current page and the second object information of the next page need not be acquired, and the presentation document is correspondingly demonstrated according to the setting of the presentation document by the user.
  • Step 120 Determine a mapping relationship between the first object and the second object according to the attributes of the first object and the second object.
  • any second found The object acts as the second object of the first object mapping.
  • marking the second object to filter out the marked second object to avoid a second object when searching for the second object of the other first object mapping A mapping relationship is determined with a plurality of first objects.
  • a second object of a preset number of second objects corresponding to the first object type may be selected as the first object mapping.
  • a second object such as any two second objects of the second object that are found to be corresponding to the first object type, as the second object of the first object mapping.
  • the type of each object can be marked.
  • different types are marked with different values of a variable, such as a value of 1 for a triangle, a value of 2 for a circle, a value of 3 for a rectangle, and a value of 4 Representing a text box or the like, if the first object is a triangle, the second object having the variable value of 1 may be searched for in the second object that is not marked, and any second object found is mapped as the first object.
  • the second object if the first object is a text box, can be found in the second object that is not marked The second object whose variable value is 4, and compares the contents of the text box, and the second object of the second object whose variable value is 4 and whose content is consistent with the content of the first object text box is used as the first object
  • the second object of an object map if the first object is a text box, can be found in the second object that is not marked The second object whose variable value is 4, and compares the contents of the text box, and the second object of the second object whose variable value is 4 and whose content is consistent with the content of the first object text box is used as the first object
  • the second object of an object map if the first object is a text box, can be found in the second object that is not marked
  • the mapping relationship is consistent.
  • a second object corresponding to the first object type is searched for in the second object of all the unmarked subsequent pages for each first object of the current page, and the second object is found.
  • the second object of the preset position is the second object of the first object mapping, such as the second object that is found to be the first object corresponding to the first object type as the second object of the first object mapping.
  • the second object is the second object mapped to the first first object corresponding to the second object type, and the first first object corresponding to the second object type is found Marking is performed to ensure that the mapping relationship between the first object and the second object is consistent when the page is turned back and forth.
  • Figure 2 is a schematic diagram of two pages. As shown in FIG. 2, the left page is the page P1, the right page is the page P2, the page P1 and the page P2 are the adjacent two pages, and the page P1 is the previous page of the page P2, wherein the object added in the page P1 includes Circles, triangles, and rectangles. Objects added to page P2 include squares, rectangles, and ellipses. Circles and ellipses are labeled the same type. Rectangles are labeled with the same type as squares.
  • a second object corresponding to the first object type is searched for in the page P2 for each first object in the page P1, and the first second object found is used as the second object of the first object mapping.
  • the circle in the page P1 it is sequentially determined whether the types of the square, the rectangle, and the ellipse in the page P2 are the same as the type of the circle, then it can be determined that the type of the ellipse in the page P2 is the same as the circle, and the ellipse is As a circle in page P1 Map the object and mark it; then, for the triangle in page P1, to find out whether the type of unmarked square and rectangle in page P2 is consistent with the type of triangle, it can be determined that there is no type with triangle in page P2.
  • the corresponding object, the triangle in the page P1 has no mapping object in the page P2; for the rectangle in the page P1, and sequentially finds whether the type of the unmarked square and rectangle in the page P2 is consistent with the type of the rectangle, the page P2 can be determined.
  • the squares and rectangles and rectangles are of the same type as the rectangle, and the first found square is the mapping object of the rectangle in page P1.
  • the objects corresponding to the circles, triangles, and rectangles are sequentially searched for the circles, triangles, and rectangles in the page P1, and the circles in the page P1 are rounded.
  • the rectangle in the page P1 is used as the mapping object of the square in the page P2, and the rectangle in the page P2 has no mapping object in the page P1, that is, in the page P1, the page P2 is entered and When the page P2 returns to the page P1, the mapping relationship between the pages P1 and the objects in the page P2 remains the same.
  • Step 130 Hide the first object and display the second object according to the mapping relationship between the first object and the second object.
  • the first object in all current pages is hidden according to the mapping relationship between the first object and the second object, and the second object in all the next pages is displayed.
  • the second object of the first object mapping may be displayed according to the preset rule, for example, the second object that is configured to map the first object is linearly moved to the first position by the initial position corresponding to the first object at a preset speed.
  • the initial position of the object where the initial position refers to the location that the user added when the presentation was made.
  • Figure 3 is a schematic diagram of entering the next page from the previous page. As shown in FIG.
  • FIG. 3 after entering the page P2 from the page P1, the circles, triangles, and rectangles in the page P1 are hidden, and the squares, rectangles, and ellipses in the page P2 are displayed, and the ovals and squares in the page P2 are Show the location of the initial moment It is the same as the initial position of the circle and the rectangle in the page P1, and then linearly moves to the initial positions of the ellipse and the square at a preset speed, thereby automatically forming a gradual transition effect, and the rectangle in the page P2 is at its initial position. Display until the end of page P2 is displayed.
  • Figure 4 is a schematic diagram of entering the previous page from the next page. As shown in FIG.
  • the size, the rotation angle, and the color corresponding to the second object mapped by the first object may be set in real time to enrich the animation content, so that each attribute of the second object has a gradual transition.
  • the effect is to improve the user experience.
  • the setting of the second object may be correspondingly displayed according to the user when the presentation document is created.
  • the first object information of the current page and the second object information of the next page are obtained; and the mapping relationship between the first object and the second object is determined according to the attributes of the first object and the second object;
  • the mapping relationship between an object and the second object hides the first object and displays the second object, and implements an animation effect automatically according to the mapping relationship between the objects in the page, without requiring the user to separately set each object, thereby improving operation efficiency and user experience.
  • FIG. 5 is a flowchart of a method for controlling a page according to an embodiment of the present invention. Further optimization is performed on the basis of the above embodiments. Referring to FIG. 5, the method provided in this embodiment specifically includes the following steps:
  • Step 210 Acquire first object information of the current page and second object information of the next page.
  • Step 220 Search for the second object of the first object mapping according to the type of the first object and the order of the second object.
  • the order of the records according to the order of the second object Finding a second object corresponding to the type of the first object, and finding the second object corresponding to the first type of the first object as the second object of the first object mapping, to reduce traversing the second object Time, quickly determine the mapping relationship between the first object and the second object.
  • each of the previous pages may be sequentially a second object, in the first object of all current pages, according to the obtained order of the first object of the current page, and searching for the first object corresponding to the type of the second object according to the order of the first object's sequential stamp records
  • the second object is used as the first object of the first object mapped corresponding to the type of the second object, so as to ensure that the mapping relationship is consistent when the page is turned back and forth.
  • Step 230 Mark the second object of the first object mapping.
  • the object After determining the second object of the first object mapping, marking the second object to determine that the second object has determined the mapping relationship, so as to filter out the marked second object and avoid multiple seconds in the next search
  • the object determines the mapping relationship with the plurality of first objects, and reduces the number of the second objects when the search is performed, thereby improving the search speed.
  • the search will be performed.
  • the first object to be tagged corresponding to the type of the second object is marked.
  • Step 240 Acquire an initial value of each attribute of the second object that is mapped by the first object and the first object.
  • attributes include: location, size, rotation angle, and color.
  • Step 250 Calculate an intermediate value of each attribute of the second object mapped by the first object at different time instants according to each attribute initial value of the second object mapped by the first object and the first object at a preset time interval.
  • each attribute value of the second object of the first object is modified according to the intermediate value, so that the second object is displayed correspondingly according to the modified attribute value during display, thereby achieving an over-gradation effect.
  • the formula for calculating the intermediate value of each attribute of the second object mapped by the first object at different times is:
  • V(p,t) V(p,P 1 i)+[V(p,P 2 j)-V(p,P 1 i)]*t/T(0 ⁇ t ⁇ T)
  • V(p, P 1 i) is the initial value of the attribute p of the first object P 1 i
  • V(p, P 2 j) is the attribute p of the second object P 2 j mapped by the first object P 1 i
  • the initial value, t is the current display duration of the second object P 2 j
  • T is the preset duration.
  • the preset time interval is 20 milliseconds, and the preset duration is 500 milliseconds.
  • the intermediate value of each attribute is calculated every 20 milliseconds and the attributes of the second object are modified according to the calculated intermediate value. Value, that is, when t is 0, 20, ..., 480, 500, the corresponding attribute values are calculated and modified once.
  • each attribute value is the same as the initial value of each attribute of the second object.
  • Step 260 Hide all the first objects, and display all the second objects according to the attribute values of the second object.
  • the second object of the first object mapping has the same initial value of each attribute of the first object at the initial moment of display Calculated and modified every preset time interval until the preset time length reaches the preset value, and each attribute value is the same as the initial value of each attribute of the second object. Therefore, when the page is turned, the mapping relationship between the two pages is automatically formed.
  • the gradient transition effect between an object and the second object makes the switching between pages more natural and coherent.
  • the user may display the corresponding object according to the setting of the object when the presentation document is created.
  • the second object is displayed with the initial value of each attribute of the second object until the end of the display.
  • the mapping relationship between the first object and the second object may be quickly determined; by marking the first object
  • the mapping the second object may prevent the plurality of second objects from determining the mapping relationship with the plurality of first objects, and improve the speed of determining the mapping relationship; and obtaining the initial values of the attributes of the second object mapped by the first object and the first object And calculating, according to the initial value of each attribute of the second object that is mapped by the first object and the first object, a preset time interval to calculate an intermediate value of each attribute of the second object mapped by the first object at different times, and hiding all the first objects, And displaying all the second objects according to the attribute values of the second object, so as to automatically form a gradient transition effect between the first object and the second object between the two pages when the page is turned, so that the switching between the pages is more Naturally coherent.
  • FIG. 6 is a structural block diagram of a device for controlling a page according to Embodiment 3 of the present invention, where the device may be implemented by software and/or hardware.
  • the apparatus includes: an information acquisition module 310, a mapping determination module 320, and an object display module 330.
  • the information obtaining module 310 is configured to acquire first object information of the current page and second object information of the next page.
  • a mapping determining module 320 configured to determine, according to attributes of the first object and the second object, a mapping relationship between the first object and the second object;
  • the object display module 330 is configured to hide the first object and display the second object according to a mapping relationship between the first object and the second object.
  • mapping determining module includes:
  • mapping search unit configured to search for the mapped second object according to the type of the first object and the order of the second object.
  • the object display module includes:
  • An initial value obtaining unit configured to acquire an initial value of each attribute of the second object mapped by the first object and the first object;
  • the intermediate value calculation unit is configured to calculate, according to the initial value of each attribute of the second object mapped by the first object and the first object, the attributes of the second object of the first object mapping at a preset time interval. Intermediate values at different times;
  • An object display unit configured to hide all of the first objects, and display all of the second objects according to respective attribute values of the second object.
  • the attributes of the second object mapped by the first object are different at different times.
  • the formula for calculating the intermediate value is:
  • V(p,t) V(p,P 1 i)+[V(p,P 2 j)-V(p,P 1 i)]*t/T(0 ⁇ t ⁇ T)
  • V(p, P 1 i) is the initial value of the attribute p of the first object P 1 i
  • V(p, P 2 j) is the attribute p of the second object P 2 j mapped by the first object P 1 i
  • the initial value, t is the current display duration of the second object P 2 j
  • T is the preset duration.
  • mapping determining module further includes:
  • An object marking unit configured to mark the second object of the first object mapping.
  • the foregoing apparatus can perform the methods provided in Embodiment 1 and Embodiment 2 of the present invention, and has the corresponding functional modules and beneficial effects of performing the foregoing methods.
  • the foregoing apparatus can perform the methods provided in Embodiment 1 and Embodiment 2 of the present invention, and has the corresponding functional modules and beneficial effects of performing the foregoing methods.

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)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种用于页面的控制方法及装置。该方法包括:获取当前页面的第一对象信息和下一页面的第二对象信息(110);根据所述第一对象和所述第二对象的属性确定所述第一对象和第二对象的映射关系(120);根据所述第一对象和第二对象的映射关系隐藏所述第一对象和显示所述第二对象(130)。上述方法提供的技术方案可自动实现页面间的动画效果,提高操作效率与用户体验。

Description

一种用于页面的控制方法及装置 技术领域
本发明实施例涉及软件开发技术领域,尤其涉及一种用于页面的控制方法及装置。
背景技术
随着智能终端的不断发展,智能终端的应用在各个领域得到普及,应用软件也得到快速发展。例如,在会议或教学中,常使用文档演示软件,如PPT(Powerpoint)或电子白板软件等来进行文档的演示。
目前,在页面切换时,为了平滑的视觉体验或使得演示文档更加形象生动,文档演示系统中一般包括各种动画的效果,如淡出、飞入、缩放和旋转等动画效果。
然而,在用户使用这些动画效果时,需要分别对每个对象进行的相应的设置,操作效率低,影响用户体验。
发明内容
本发明提供一种用于页面的控制方法及装置,以自动实现页面间的动画效果,提高效率和用户体验。
第一方面,本发明实施例提供了一种用于页面的控制方法,该方法包括:
获取当前页面的第一对象信息和下一页面的第二对象信息;
根据所述第一对象和所述第二对象的属性确定所述第一对象和第二对象的 映射关系;
根据所述第一对象和第二对象的映射关系隐藏所述第一对象和显示所述第二对象。
第二方面,本发明实施例还提供了一种用于页面的控制装置,该装置包括:
信息获取模块,用于获取当前页面的第一对象信息和下一页面的第二对象信息;
映射确定模块,用于根据所述第一对象和所述第二对象的属性确定所述第一对象和第二对象的映射关系;
对象显示模块,用于根据所述第一对象和第二对象的映射关系隐藏所述第一对象和显示所述第二对象。
本发明通过获取当前页面的第一对象信息和下一页面的第二对象信息;根据第一对象和第二对象的属性确定第一对象和第二对象的映射关系;根据第一对象和第二对象的映射关系隐藏第一对象和显示第二对象。实现根据页面中对象间的映射关系,自动实现动画效果,无需用户对每个对象分别进行设置,提高操作效率与用户体验。
附图说明
图1是本发明实施例一中的一种用于页面的控制方法的流程图;
图2是本发明实施例一中的两个页面的示意图;
图3是本发明实施例一中的由前一页面进入后一页面的示意图;
图4是本发明实施例一中的由后一页面进入前一页面的示意图;
图5是本发明实施例二中的一种用于页面的控制方法的流程图;
图6是本发明实施例三中的一种用于页面的控制装置的结构框图。
具体实施方式
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
实施例一
图1为本发明实施例一提供的一种用于页面的控制方法的流程图,本实施例可适用于文档演示时需自动产生动画效果情况,该方法可以由用于页面的控制装置来执行,该装置可以采用软件和/或硬件的方式实现。参加图1,本实施例提供的方法具体包括如下步骤:
步骤110、获取当前页面的第一对象信息和下一页面的第二对象信息。
在用户使用文档演示软件制作演示文档时,所有的操作均会被记录,如添加的对象、添加对象的顺序戳、添加对象的尺寸及位置等,因此,可通过读取操作记录,获得当前页面的第一对象信息和下一页面的第二对象信息。
优选的,可根据用户的操作指令来获取当前页面的第一对象信息和下一页面的第二对象信息。如当用户通过键盘、鼠标的按键、滑轮或通过点击屏幕预设位置等方式控制演示文档进入当前页面的后一页面时,则当前页面的后一页面为下一页面,获取当前页面的第一对象信息和后一页面的第二对象信息;当控制演示文档进入当前页面的前一页面时,则当前页面的前一页面为下一页面,获取当前页面的第一对象信息和前一页面的第二对象信息。
优选的,用户可在演示文档的每一页上设置是否需要页面间的动画效果,示例性的,该动画效果为渐变过渡效果。若当前页面设置有渐变过渡效果,则根据用户的操作指令获取当前页面的第一对象信息和下一页面的第二对象信息;若当前页面未设置有渐变过渡效果,则在演示文档翻页时,无需获取当前页面的第一对象信息和下一页面的第二对象信息,根据用户对演示文档的设置,相应演示该演示文档。
步骤120、根据第一对象和第二对象的属性确定第一对象和第二对象的映射关系。
示例性的,可根据获取的当前页面的第一对象信息,针对每一第一对象在所有第二对象中查找与该第一对象的类型相应的第二对象,将查找到的任一第二对象作为该第一对象映射的第二对象。优选的,在确定第一对象映射的第二对象后对该第二对象进行标记,以在下次查找其他第一对象映射的第二对象时,滤除标记的第二对象,避免一个第二对象与多个第一对象确定映射关系。
需要说明的是,本领域技术人员可以理解,在其他实施例中也可选将查找到的与第一对象类型相应的第二对象中预设个数的第二对象作为该第一对象映射的第二对象,如将查找到的与第一对象类型相应的第二对象中任意2个第二对象作为该第一对象映射的第二对象。
优选的,可对每个对象的类型进行标记,示例性的,以某一变量的不同的数值来标记不同的类型,如数值1代表三角形,数值2代表圆形,数值3代表长方形,数值4代表文本框等,则若第一对象为三角形,可在未被标记的第二对象中查找该变量值为1的第二对象,将查找到的任一第二对象作为该第一对象映射的第二对象,若第一对象为文本框,则可在未被标记的第二对象中查找 该变量值为4的第二对象,并对文本框中的内容进行比对,将变量值为4且内容与第一对象文本框的内容一致的第二对象中任一第二对象作为该第一对象映射的第二对象。
优选的,为了保证当前页面在进入后一页面后,再次返回前一页面时映射关系一致。可在当前页面进入后一页面时,针对当前页面的每一第一对象在所有未被标记的后一页面的第二对象中查找与该第一对象类型相应的第二对象,并将查找到的预设位置的第二对象作为该第一对象映射的第二对象,如将查找到的第一个与该第一对象类型相应的第二个对象作为该第一对象映射的第二对象。在进入后一页面后,当再次返回前一页面时,针对前一页面的每一第二对象,在所有未被标记的当前页面的第一对象中查找与该第二对象类型相应的第一对象,将该第二对象作为查找到的第一个与该第二对象类型相应的第一对象映射的第二对象,并将查找到的第一个与该第二对象类型相应的第一对象进行标记,保证前后翻页时第一对象与第二对象的映射关系一致。
图2为两个页面的示意图。如图2所示,左边页面为页面P1,右边页面为页面P2,页面P1和页面P2为相邻的两个页面,页面P1为页面P2的前一页面,其中,页面P1中添加的对象包括圆形、三角形和长方形,页面P2中添加的对象包括正方形、长方形和椭圆形,圆形和椭圆形标记为相同类型,长方形与正方形标记为同一类型,则当从页面P1进入页面P2时,分别针对页面P1中的每一第一对象在页面P2中查找与该第一对象类型相应的第二对象,并将查找到的第一个第二对象作为该第一对象映射的第二对象。则对于页面P1中的圆形,依次确定页面P2中的正方形、长方形和椭圆形的类型是否与圆形的类型相同,则可确定页面P2中的椭圆形的类型与圆形相同,将椭圆形作为页面P1中圆形的 映射对象,并将其进行标记;则对于页面P1中的三角形,依次查找页面P2中未被标记的正方形和长方形的类型是否与三角型的类型一致,则可确定页面P2中没有与三角形的类型相应的对象,页面P1中的三角形在页面P2中没有映射对象;对于页面P1中的长方形,依次查找页面P2中未被标记的正方形和长方形的类型是否与长方形的类型一致,则可确定页面P2中的正方形和长方形与长方形的类型均与长方形类型相同,将第一个查找到的正方形作为页面P1中长方形的映射对象。当从页面P2返回页面P1时,则仍然依次针对页面P1中的圆形、三角形和长方形,依次在页面P2中查找与圆形、三角形和长方形类型相应的对象,则将页面P1中的圆形作为页面P2中的椭圆形的映射对象,将页面P1中的长方形作为页面P2中的正方形的映射对象,页面P2中的长方形在页面P1中没有映射对象,即在由页面P1进入页面P2以及由页面P2返回页面P1时,页面P1与页面P2中各对象的映射关系保持一致。
步骤130、根据第一对象和第二对象的映射关系隐藏第一对象和显示第二对象。
确定第一对象与第二对象的映射关系后,则根据第一对象和第二对象的映射关系,隐藏所有当前页面中的第一对象,显示所有下一页面中的第二对象。在显示第二对象时,可依据预设规则显示第一对象映射的第二对象,如设定第一对象映射的第二对象由第一对象对应的初始位置以预设速度直线运动至该第二对象的初始位置,其中,初始位置指用户在制作演示文档时该对象所添加的位置。图3为由前一页面进入后一页面的示意图。如图3所示,在由页面P1进入页面P2后,隐藏页面P1中的圆形、三角形和长方形,并显示页面P2中的正方形、长方形和椭圆形,且页面P2中的椭圆形和正方形在显示初始时刻的位置 分别与页面P1中的圆形和长方形所在的初始位置相同,然后分别以预设速度直线运动至椭圆形和正方形的初始位置,从而自动形成渐变过渡效果,页面P2中的长方形则以其初始位置显示,直至页面P2显示结束。图4为由后一页面进入前一页面的示意图。如图4所示,在由页面P2返回页面P1后,隐藏页面P2中的正方形、长方形和椭圆形,并显示页面P1中的圆形、三角形和长方形,且页面P1中的圆形和长方形在显示初始时刻的位置分别与页面P2中的椭圆形和正方形所在的初始位置相同,然后分别以预设速度直线运动至圆形和长方形的初始位置,从而自动形成渐变过渡效果,页面P1中的三角形则以其初始位置显示,直至页面P2显示结束。
示例性的,在运动过程中,还可实时设置第一对象映射的第二对象所对应的尺寸大小、旋转角度及颜色等属性以丰富动画内容,使得该第二对象的各个属性均有渐变过渡的效果,提高用户体验。示例性的,对于下一页面中未被确定与第一对象有映射关系的第二对象,可根据用户在制作演示文档时对该第二对象的设置进行相应显示。
本实施例的技术方案,通过获取当前页面的第一对象信息和下一页面的第二对象信息;根据第一对象和第二对象的属性确定第一对象和第二对象的映射关系;根据第一对象和第二对象的映射关系隐藏第一对象和显示第二对象,实现根据页面中对象间的映射关系,自动实现动画效果,无需用户对每个对象分别进行设置,提高操作效率与用户体验。
实施例二
图5为本发明实施例提供的一种用于页面的控制方法的流程图,本实施例 为在上述实施例的基础上进行进一步优化。参加图5,本实施例提供的方法具体包括如下步骤:
步骤210、获取当前页面的第一对象信息和下一页面的第二对象信息。
步骤220、根据第一对象的类型和第二对象的顺序戳查找第一对象映射的第二对象。
示例性的,依次针对当前页面的每一第一对象,在所有下一页面的第二对象中根据获取的下一页面的第二对象的顺序戳,按照第二对象的顺序戳记录的先后顺序查找与该第一对象的类型相应的第二对象,并将查找到的第一个该第一对象的类型相应的第二对象作为第一对象映射的第二对象,以减少遍历第二对象的时间,快速确定第一对象与第二对象的映射关系。
优选的,为了保证前后翻页时,第一对象与第二对象的映射关系保持一致,在进入后一页面后,当再次由当前页面返回前一页面时,可依次针对前一页面的每一第二对象,在所有当前页面的第一对象中根据获取的当前页面的第一对象的顺序戳,按照第一对象的顺序戳记录的先后顺序查找与该第二对象的类型相应的第一对象,并将该第二对象作为查找到的第一个与该第二对象的类型相应的第一对象映射的第二对象,从而保证在前后翻页时映射关系一致。
步骤230、标记第一对象映射的第二对象。
在确定第一对象映射的第二对象后,对该第二对象进行标记,以确定该第二对象已经确定映射关系,从而在下次查找时,滤除标记的第二对象,避免多个第二对象与多个第一对象确定映射关系,同时减少查找时,遍历第二对象的个数,提高查找速度。
优选的,在进入后一页面后,当再次由当前页面返回前一页面时,将查找 到的第一个与第二对象的类型相应的第一对象进行标记。
步骤240、获取第一对象与第一对象映射的第二对象的各属性初值。
确定第一对象与第二对象的映射关系后,则获取第一对象与第一对象映射的第二对象的各属性初值,其中属性初值指用户制作演示文档时,添加每个对象时所设置的该属性的值。示例性的,属性包括:位置、尺寸大小、旋转角度及颜色等属性。
步骤250、根据第一对象与第一对象映射的第二对象的各属性初值以预设时间间隔定时计算第一对象映射的第二对象的各属性在不同时刻的中间值。
根据获取的第一对象与第一对象映射的第二对象的各属性初值以预设时间间隔定时计算第一对象映射的第二对象的各属性在不同时刻的中间值以实现在预设时间间隔内根据中间值定时修改该第二对象的各属性值,从而该第二对象在显示时根据修改的属性值进行相应显示,实现渐变过度效果。
优选的,第一对象映射的第二对象的各属性在不同时刻的中间值的计算公式为:
V(p,t)=V(p,P1i)+[V(p,P2j)-V(p,P1i)]*t/T(0≤t≤T)
其中,V(p,P1i)为第一对象P1i的属性p的初值,V(p,P2j)为第一对象P1i映射的第二对象P2j的属性p的初值,t为第二对象P2j当前显示时长,T为预设时长。
示例性的,预设时间间隔为20毫秒,预设时长为500毫秒,则根据上述公式,每隔20毫秒计算一次各属性的中间值并根据计算得到的中间值修改该第二对象的各属性值,即在t依次为0、20、…、480、500时刻计算并修改一次对应的各属性值,t=0时,V(p,t)=V(p,P1i),即第一对象映射的第二元素在显示的初始时刻各属性值与第一对象的各属性初值相同,在t=500时,V(p,t)= V(p,P2j),即第一对象映射的第二对象在达到预设时长时各属性值与该第二对象各属性初值相同。
步骤260、隐藏所有第一对象,并根据第二对象的各属性值显示所有第二对象。
隐藏所有第一对象,并根据第二对象的各属性值显示所有第二对象,则第一对象映射的第二对象在显示的初始时刻各属性值与所述第一对象的各属性初值相同,每隔预设时间间隔计算并修改一次,直至达到预设时长时各属性值与该第二对象的各属性初值相同,因此,在翻页时自动形成两个页面间确定映射关系的第一对象与第二对象的渐变过渡效果,使得页面间的切换更为自然连贯。
对于未被确定与第一对象有映射关系的第二对象,可根据用户在制作演示文档时对该对象的设置,进行相应显示。如对于某一未被确定与第一对象有映射关系的第二对象,未设置有其他任何动画效果,则以该第二对象的各属性初值显示该第二对象直至显示结束。
本实施例的技术方案,通过根据第一对象的类型和第二对象的顺序戳查找第一对象映射的第二对象,可快速确定第一对象与第二对象的映射关系;通过标记第一对象映射的第二对象,可避免多个第二对象与多个第一对象确定映射关系,同时提高确定映射关系的速度;通过获取第一对象与第一对象映射的第二对象的各属性初值,根据第一对象与第一对象映射的第二对象的各属性初值以预设时间间隔定时计算第一对象映射的第二对象的各属性在不同时刻的中间值,隐藏所有第一对象,并根据第二对象的各属性值显示所有第二对象,实现在翻页时,自动形成两个页面间确定映射关系的第一对象与第二对象的渐变过渡效果,使得页面间的切换更为自然连贯。
实施例三
图6为本发明实施例三提供的一种用于页面的控制装置的结构框图,其中该装置可由软件和/或硬件实现。如图6所示,该装置包括:信息获取模块310、映射确定模块320和对象显示模块330。
其中,信息获取模块310,用于获取当前页面的第一对象信息和下一页面的第二对象信息;
映射确定模块320,用于根据所述第一对象和所述第二对象的属性确定所述第一对象和第二对象的映射关系;
对象显示模块330,用于根据所述第一对象和第二对象的映射关系隐藏所述第一对象和显示所述第二对象。
上述方案中,可选的是,所述映射确定模块包括:
映射查找单元,用于根据所述第一对象的类型和所述第二对象的顺序戳查找映射的第二对象。
上述方案中,可选的是,所述对象显示模块,包括:
初值获取单元,用于获取所述第一对象与所述第一对象映射的第二对象的各属性初值;
中间值计算单元,用于根据所述第一对象与所述第一对象映射的第二对象的各属性初值以预设时间间隔定时计算所述第一对象映射的第二对象的各属性在不同时刻的中间值;
对象显示单元,用于隐藏所有所述第一对象,并根据所述第二对象的各属性值显示所有所述第二对象。
上述方案中,可选的是,所述第一对象映射的第二对象的各属性在不同时 刻的中间值的计算公式为:
V(p,t)=V(p,P1i)+[V(p,P2j)-V(p,P1i)]*t/T(0≤t≤T)
其中,V(p,P1i)为第一对象P1i的属性p的初值,V(p,P2j)为第一对象P1i映射的第二对象P2j的属性p的初值,t为第二对象P2j当前显示时长,T为预设时长。
上述方案中,可选的是,所述映射确定模块还包括:
对象标记单元,用于标记所述第一对象映射的第二对象。
上述装置可执行本发明实施例一和实施例二所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例一和实施例二所提供的方法。
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。

Claims (10)

  1. 一种用于页面的控制方法,其特征在于,包括:
    获取当前页面的第一对象信息和下一页面的第二对象信息;
    根据所述第一对象和所述第二对象的属性确定所述第一对象和第二对象的映射关系;
    根据所述第一对象和第二对象的映射关系隐藏所述第一对象和显示所述第二对象。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一对象和所述第二对象的属性确定所述第一对象和第二对象的映射关系,包括:
    根据所述第一对象的类型和所述第二对象的顺序戳查找所述第一对象映射的第二对象。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第一对象和第二对象的映射关系隐藏所述第一对象和显示所述第二对象,包括:
    获取所述第一对象与所述第一对象映射的第二对象的各属性初值;
    根据所述第一对象与所述第一对象映射的第二对象的各属性初值以预设时间间隔定时计算所述第一对象映射的第二对象的各属性在不同时刻的中间值;
    隐藏所有所述第一对象,并根据所述第二对象的各属性值显示所有所述第二对象。
  4. 根据权利要求3所述的方法,其特征在于,所述第一对象映射的第二对象的各属性在不同时刻的中间值的计算公式为:
    V(p,t)=V(p,P1i)+[V(p,P2j)-V(p,P1i)]*t/T(0≤t≤T)
    其中,V(p,P1i)为第一对象P1i的属性p的初值,V(p,P2j)为第一对象P1i映射的第二对象P2j的属性p的初值,t为第二对象P2j当前显示时长,T为预设时长。
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述第一对象的类型和所述第二对象的顺序戳查找所述第一对象映射的第二对象之后,还包括:
    标记所述第一对象映射的第二对象。
  6. 一种用于页面的控制装置,其特征在于,包括:
    信息获取模块,用于获取当前页面的第一对象信息和下一页面的第二对象信息;
    映射确定模块,用于根据所述第一对象和所述第二对象的属性确定所述第一对象和第二对象的映射关系;
    对象显示模块,用于根据所述第一对象和第二对象的映射关系隐藏所述第一对象和显示所述第二对象。
  7. 根据权利要求6所述的装置,其特征在于,所述映射确定模块包括:
    映射查找单元,用于根据所述第一对象的类型和所述第二对象的顺序戳查找映射的第二对象。
  8. 根据权利要求7所述的装置,其特征在于,所述对象显示模块,包括:
    初值获取单元,用于获取所述第一对象与所述第一对象映射的第二对象的各属性初值;
    中间值计算单元,用于根据所述第一对象与所述第一对象映射的第二对象的各属性初值以预设时间间隔定时计算所述第一对象映射的第二对象的各属性在不同时刻的中间值;
    对象显示单元,用于隐藏所有所述第一对象,并根据所述第二对象的各属性值显示所有所述第二对象。
  9. 根据权利要求8所述的装置,其特征在于,所述第一对象映射的第二对 象的各属性在不同时刻的中间值的计算公式为:
    V(p,t)=V(p,P1i)+[V(p,P2j)-V(p,P1i)]*t/T(0≤t≤T)
    其中,V(p,P1i)为第一对象P1i的属性p的初值,V(p,P2j)为第一对象P1i映射的第二对象P2j的属性p的初值,t为第二对象P2j当前显示时长,T为预设时长。
  10. 根据权利要求7所述的装置,其特征在于,所述映射确定模块还包括:
    对象标记单元,用于标记所述第一对象映射的第二对象。
PCT/CN2017/103292 2016-12-05 2017-09-25 一种用于页面的控制方法及装置 WO2018103419A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611103055.0A CN106708386A (zh) 2016-12-05 2016-12-05 一种用于页面的控制方法及装置
CN201611103055.0 2016-12-05

Publications (1)

Publication Number Publication Date
WO2018103419A1 true WO2018103419A1 (zh) 2018-06-14

Family

ID=58934601

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103292 WO2018103419A1 (zh) 2016-12-05 2017-09-25 一种用于页面的控制方法及装置

Country Status (2)

Country Link
CN (1) CN106708386A (zh)
WO (1) WO2018103419A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708386A (zh) * 2016-12-05 2017-05-24 广州视源电子科技股份有限公司 一种用于页面的控制方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101802876A (zh) * 2007-09-21 2010-08-11 微软公司 使用声明性动画化方案来动画化对象
CN101833457A (zh) * 2010-05-28 2010-09-15 惠州Tcl移动通信有限公司 通过预定义图片事件映射表表达界面流程设计的方法
CN103020025A (zh) * 2011-11-16 2013-04-03 微软公司 用于文档内容的自动动画化的技术
CN105528332A (zh) * 2014-10-23 2016-04-27 珠海金山办公软件有限公司 一种演示文稿的处理方法及装置
CN106708386A (zh) * 2016-12-05 2017-05-24 广州视源电子科技股份有限公司 一种用于页面的控制方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8314801B2 (en) * 2008-02-29 2012-11-20 Microsoft Corporation Visual state manager for control skinning
CN103543922B (zh) * 2013-07-01 2018-03-20 Tcl集团股份有限公司 一种焦点移动方法、系统及智能设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101802876A (zh) * 2007-09-21 2010-08-11 微软公司 使用声明性动画化方案来动画化对象
CN101833457A (zh) * 2010-05-28 2010-09-15 惠州Tcl移动通信有限公司 通过预定义图片事件映射表表达界面流程设计的方法
CN103020025A (zh) * 2011-11-16 2013-04-03 微软公司 用于文档内容的自动动画化的技术
CN105528332A (zh) * 2014-10-23 2016-04-27 珠海金山办公软件有限公司 一种演示文稿的处理方法及装置
CN106708386A (zh) * 2016-12-05 2017-05-24 广州视源电子科技股份有限公司 一种用于页面的控制方法及装置

Also Published As

Publication number Publication date
CN106708386A (zh) 2017-05-24

Similar Documents

Publication Publication Date Title
Shatte et al. Mobile augmented reality based context-aware library management system
US20220044459A1 (en) System and method for intelligently generating digital composites from user-provided graphics
US9201561B2 (en) Rotatable object system for visual communication and analysis
Taketa et al. Virtual pop-up book based on augmented reality
US20150121232A1 (en) Systems and Methods for Creating and Displaying Multi-Slide Presentations
US9430954B1 (en) System for presenting visual items
US20150121189A1 (en) Systems and Methods for Creating and Displaying Multi-Slide Presentations
CN112154438A (zh) 多个用户在三维沉浸式环境中动态地编辑场景
CN108449631A (zh) 使用人脸检测来连接视频序列的系统和方法
Ribeiro et al. 3D annotation in contemporary dance: Enhancing the creation-tool video annotator
WO2018103419A1 (zh) 一种用于页面的控制方法及装置
DE202017104855U1 (de) Animieren eines Bildes zum Anzeigen, dass das Bild verschiebbar ist
CN109999500A (zh) 一种基于编程语言流畅加载游戏地图的方法以及电子设备
Ribeiro et al. Virtual reality annotator: A tool to annotate dancers in a virtual environment
Chen et al. Research on augmented reality system for childhood education reading
Alshi et al. Interactive augmented reality-based system for traditional educational media using marker-derived contextual overlays
Landay Designing photography guidance for rapid in-camera iteration
Chen et al. Research on the augmented reality system without identification markers for home exhibition
Hwang et al. Painting alive: Handheld augmented reality system for large targets
Hölling et al. Material encounters
CN114721562B (zh) 用于数字对象的处理方法、装置、设备、介质及产品
Schmidt et al. Gestalt aspects for differentiating the representation of landmarks in virtual navigation
CN109684606B (zh) 一种在pdf页面上呈现艺术效果的方法和装置
Jagannathan et al. A Canvas-Based Presentation Tool Using Scalable Vector Graphics
Jane Artistic Vision: Providing Contextual Guidance for Capture-Time Decisions

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: 17879370

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 171019)

122 Ep: pct application non-entry in european phase

Ref document number: 17879370

Country of ref document: EP

Kind code of ref document: A1