[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2019218622A1 - Element control method, apparatus, and device, and storage medium - Google Patents

Element control method, apparatus, and device, and storage medium Download PDF

Info

Publication number
WO2019218622A1
WO2019218622A1 PCT/CN2018/115962 CN2018115962W WO2019218622A1 WO 2019218622 A1 WO2019218622 A1 WO 2019218622A1 CN 2018115962 W CN2018115962 W CN 2018115962W WO 2019218622 A1 WO2019218622 A1 WO 2019218622A1
Authority
WO
WIPO (PCT)
Prior art keywords
control instruction
elements
instruction
receiving
display
Prior art date
Application number
PCT/CN2018/115962
Other languages
French (fr)
Chinese (zh)
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 WO2019218622A1 publication Critical patent/WO2019218622A1/en

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present disclosure relates to the field of intelligent interactive tablet technologies, for example, to an element control method, apparatus, device, and storage medium.
  • An intelligent device refers to any device, device, or machine with computational processing capabilities.
  • the smart device is widely used in many fields and is closely related to people's work and life.
  • smart devices have writing and drawing capabilities.
  • the user inputs at least two elements using the writing or drawing function of the smart device, at least two elements displayed by the smart device are in independent relationship.
  • the related art has the following drawbacks: if the user wants to control at least two elements at the same time, such as moving, scaling, etc., all the elements to be controlled are selected in advance, and then the control operation is performed, or the control to be controlled is selected in advance. After all the elements, and establish their combination relationship, then control operations. This makes the implementation of the user's simultaneous control of at least two elements too cumbersome.
  • the embodiments of the present disclosure provide an element control method, apparatus, device, and storage medium to solve the problem that the implementation process of synchronously controlling at least two elements in a writing and drawing scenario in the related art is too cumbersome.
  • an embodiment of the present disclosure provides an element control method, including:
  • an embodiment of the present disclosure further provides an element control apparatus, including:
  • a first receiving module configured to receive the first input signal
  • a first display module configured to display a first element, the first element being determined according to the first input signal
  • a second receiving module configured to receive a first control instruction, the first control instruction acting on a second element that has been displayed before the first element is displayed, at least one coordinate of the second element and the first At least one coordinate of the elements coincides;
  • a first adjustment module configured to adjust the first element to a first position according to the first control instruction, and synchronously adjust the second element to a second position;
  • a third receiving module configured to receive a second control instruction, where the second control instruction acts on the first element
  • the second adjustment module is configured to adjust the first element to the third position according to the second control instruction.
  • an element control device including:
  • a memory a touch screen display, and one or more processors
  • the memory is configured to store one or more programs
  • the one or more programs are executed by the one or more processors such that the one or more processors implement the element control methods described above.
  • an embodiment of the present disclosure further provides a storage medium containing computer executable instructions for performing the element control method described above when executed by a computer processor.
  • FIG. 1 is a flowchart of an element control method according to Embodiment 1 of the present disclosure
  • FIG. 2 is a schematic diagram of a first display interface of a smart interaction tablet
  • FIG. 3 is a flowchart of an element control method according to Embodiment 2 of the present disclosure.
  • FIG. 4 is a schematic diagram of a second display interface of the smart interaction tablet
  • FIG. 5 is a schematic diagram of a third display interface of the smart interaction tablet
  • FIG. 6 is a schematic diagram of a fourth display interface of the smart interaction tablet
  • FIG. 7 is a schematic diagram of a fifth display interface of the smart interaction tablet.
  • FIG. 8 is a schematic diagram of a sixth display interface of the smart interaction tablet
  • FIG. 9 is a schematic structural diagram of an element control apparatus according to Embodiment 3 of the present disclosure.
  • FIG. 10 is a schematic structural diagram of an element control device according to Embodiment 4 of the present disclosure.
  • FIG. 1 is a flowchart of an element control method according to Embodiment 1 of the present disclosure.
  • the element control method provided by the embodiment may be implemented by an element control device, which may be implemented by software and/or hardware.
  • the element control device may be composed of two or more physical entities, or may be a physical entity. Composition.
  • the element control device can be a computer, a mobile phone, a tablet, a projector, or a smart interactive tablet.
  • the smart interaction tablet is used as an element control device, and the smart interaction tablet may be an integrated device that controls content displayed on the display tablet and implements human-computer interaction operation through touch technology.
  • the smart interactive tablet integrates one or more functions such as a projector, an electronic whiteboard, a screen, an audio, a television, and a video conferencing terminal.
  • the display screen of the smart interaction tablet may be a capacitive screen, an electromagnetic screen or an infrared screen.
  • the user can perform a touch operation on the display screen by a finger, or perform a touch operation on the display screen through an external device associated with the smart interaction tablet, wherein the external device can be a capacitive pen, an electromagnetic pen or an infrared pen .
  • the smart interaction tablet can determine the touch position according to the parameter change of the corresponding component, and then determine the instruction content corresponding to the touch operation according to the touch position, and execute the instruction content.
  • the electronic whiteboard software is installed in the smart interaction tablet, so that the smart interaction tablet implements the electronic whiteboard function.
  • the electronic whiteboard software can realize functions such as writing, drawing, and inserting pictures.
  • the electronic whiteboard software is widely used in meetings, education, and the like.
  • the smart interactive tablet is exemplarily described in the electronic whiteboard software scenario.
  • the element control method provided in this embodiment includes:
  • Step 110 Receive a first input signal.
  • the smart interaction tablet after receiving the touch operation, the smart interaction tablet generates a corresponding electrical signal according to the parameter change of the component in the smart interaction tablet, and the electrical position can be used to determine the touch position, and the touch position and the current display are combined.
  • the content determines an instruction corresponding to the electrical signal, and then executes the instruction to implement a response to the touch operation.
  • the first input signal is an electrical signal generated when the user performs an input operation.
  • Input operations include writing touch operations and drawing touch operations.
  • a drawing touch operation is a touch operation that instructs a computer to draw standard elements. For example, after the selected computer draws the standard element pattern, draw a rectangle, which is a standard rectangle, which is different from the user's hand-drawn rectangle.
  • the writing touch operation is a touch operation of the user's handwriting input.
  • the computer draws the standard element mode and the handwriting mode in advance, so that the smart interactive tablet can quickly determine whether the input operation is a writing touch operation or a drawing touch operation.
  • the receiving mode embodiment of the first input signal is not limited.
  • the writing mode after detecting that the writing area receives the touch operation, it is determined that the first input signal is received.
  • the drawing model after detecting that the drawing area receives the touch operation, it is determined that the first input signal is received.
  • the first input signal may be a signal generated by one touch operation, or may be a signal generated by a plurality of touch operations satisfying the condition.
  • One touch operation refers to an operation from when the user touches the screen to when the screen is left.
  • the multiple touch operation that satisfies the condition is a scene in which the user inputs the content for multiple touch operations.
  • the signals generated by the multiple touch operations can be regarded as the first input signal.
  • the triggering condition may be set, for example, setting a trigger button. When the trigger button is clicked, the signals generated by the touch operation received by the smart interactive tablet are all the first input signals, and when the trigger button is again After clicking, be sure to end this input.
  • Step 120 Display the first element.
  • the first element is determined based on the first input signal.
  • the first element is an element that the user desires to display in the smart interaction tablet.
  • an element refers to an element that can be displayed after a certain operation by a user input in a smart interaction tablet, and the element has a space and is editable.
  • the first element may be a user written trajectory or a computer rendered standard element.
  • the first element generated by the writing touch operation belongs to the user write track
  • the first element generated corresponding to the drawing touch operation belongs to the computer drawing standard element.
  • the computer drawing standard elements include, but are not limited to, at least one of a geometric figure, an image, a flowchart, an organization chart, and a spreadsheet.
  • FIG. 2 is a schematic diagram of a first display interface of a smart interaction tablet. Among them, element 11 and element 12 belong to a computer drawing standard element, and element 13 and element 14 write a track for the user.
  • the computer drawing standard element can be understood as a printed standard element drawn by the smart interaction flat panel, and the user writes the trajectory as a handwritten trajectory displayed in the smart interactive tablet.
  • the dotted boxes of the elements 13 and 14 are only for ease of understanding, and may not exist in practical applications.
  • the dotted frame corresponding to the user write track is also used for understanding, and may not exist in practical applications.
  • the first input signal includes touch position information
  • the smart interaction tablet can draw the touch track of the first element according to the touch position information and determine the display position of the first element, and further display at the display position.
  • the touch track that is, the display of the first element, wherein the display position is the pixel position in the display screen.
  • the touch track is displayed according to the display parameter.
  • the display parameters include but are not limited to: track color and/or track thickness.
  • the smart interaction tablet draws in a plurality of pixel points according to the display parameters according to the writing order of each pixel point position to realize displaying the first element.
  • the computer drawing standard element as an example to describe the display process of the first element: determining that the element selected by the user is a rectangle, determining the starting position and the ending position of the touch operation according to the touch position information in the first input signal, and starting the position
  • the position of the two pixel points corresponding to the end position is used as a diagonal point of the rectangle, and then the rectangle is drawn according to the display parameter.
  • the display parameter may further include a fill color, etc.; or, the smart interactive tablet receives the touch according to the first input signal.
  • the position information is used to draw a touch track, and the computer graphic closest to the touch track is determined to be a rectangle, and further, the rectangle is displayed at a display position corresponding to the touch position information.
  • Step 130 Receive a first control instruction.
  • the first control instruction acts on the second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element.
  • the second element is displayed in the smart interaction tablet before the first element is displayed. At least one coordinate of the second element coincides with at least one coordinate of the first element, ie, from a user perspective, the first element and the second element may be partially overlapping or all overlapping.
  • the smart interaction tablet sets a display level for each element when displaying elements, and the display levels are different between different elements. In general, the display level is determined according to the order in which the elements are input, and the newly input element has the highest display level and is at the top level. In practice, users can also manually adjust the display level of each element.
  • the display level of the first element is higher than the display level of the second element, that is, when at least one coordinate of the first element is the second When at least one coordinate of an element coincides, the pixel of the coincident position preferentially displays the content of the first element.
  • the second element may also be a user written trajectory or a computer drawn standard element.
  • the first element when the first element is a user writing a trajectory, the second element draws a standard element for the computer.
  • an exemplary application scenario may be: writing text inside a graphic or a picture.
  • the first element is a computer drawing standard element
  • the second element is a user input trajectory.
  • an exemplary application scenario may be: adding an unfilled border to the written content.
  • the first element draws a standard element for a computer
  • the second element draws a standard element for the computer.
  • an exemplary application scenario is to display two fully or partially coincident graphics or to add graphics to the table.
  • the above application scenarios are for illustrative purposes only and are not intended to be limiting.
  • the first element is a user write track
  • the second element is a computer drawing standard element
  • the first element is a computer drawing standard element
  • the second element is a user write a track
  • the first element and the second element are computer-drawn standard elements.
  • the first control instruction is an instruction generated by the smart interaction tablet after receiving the touch operation that meets the set trigger condition.
  • the first control instruction comprises at least one of a first movement instruction, a first scaling instruction, and a first rotation instruction.
  • the first move instruction is an instruction for moving an element
  • the first zoom instruction is an instruction for scaling an element size
  • the first rotation instruction is an instruction for rotating an element.
  • the first control command is applied to the second element, and the content of the trigger condition of the first control command may be set according to an actual situation.
  • the trigger condition is set: the touch operation is the display position of the second element. After the operation of clicking and moving, the corresponding first control instruction is the first movement instruction.
  • the triggering condition is: the touch operation is a two-point moving touch operation on the display position of the second element, and the two touch directions are opposite, and the corresponding first control instruction is the first zoom instruction.
  • the triggering condition is: the touch operation is a two-touch operation on the display position of the second element, and the two touch directions are clockwise or counterclockwise, and the corresponding first control command is the first Rotate the command.
  • the above example is only a trigger condition for explaining the first control command, and is not limited at all.
  • an element selection instruction may be received prior to receiving the first control instruction, the element selection instruction being used to select the target element.
  • the trigger condition of the element selection instruction can be set according to the actual situation. For example, when a long press, click, or double click operation is received at the display position of the second element, it is determined that the element selection instruction is received, and the target element is the second element. Then, when the touch operation that satisfies the trigger condition of the first control instruction is received at the display position where the second element is located, it can be considered that the first control instruction acting on the second element is received.
  • the number of second elements may be one or more.
  • the second element for which the first control instruction is directed is directly determined.
  • the first control instruction may be determined for all the second elements, and the second element with the highest display level in the second element may be selected as the second target for the first control instruction. element.
  • the user may adjust the display hierarchy order of the plurality of second elements to adjust the display level of the second element for the first control instruction to the highest display level of the plurality of second elements.
  • the first control instruction is for the second element having the highest display level.
  • Step 140 Adjust the first element to the first position according to the first control instruction, and synchronously adjust the second element to the second position.
  • first location and the second location are determined according to the first control instruction.
  • the correspondence between the first element and the second element is established when the first control instruction is received.
  • the default first control instruction is an instruction to control the first element and the second element. It can also be understood that the combination relationship between the first element and the second element is established, and therefore, the first element and the second element simultaneously respond to the first control instruction.
  • the smart interaction tablet may determine an operation performed on the first element and the second element according to the first control instruction, and further may calculate a first position and a second element execution after the first element executes the first control instruction.
  • the second position after the first control command.
  • the first location and the second location are display locations, which may be determined according to a starting location and an ending location of the first control command.
  • the touch operation for generating the first control instruction is an operation of first clicking and then moving. At this time, determining the pixels of the moving track path in the horizontal direction and the vertical direction according to the movement start position and the end position.
  • the number determines the first position and the second position according to the moving distance, after which the first element is moved to the first position and the second element is moved to the second position.
  • the above process may also be: synchronously moving the first element and the second element during the moving process, that is, the first element and the second element move synchronously following the touch operation.
  • the determining process of the first position and the second position during zooming and rotating is similar to the determining process of the first position and the second position when moving, and is not described herein.
  • Step 150 Receive a second control instruction.
  • the second control instruction acts on the first element.
  • the second control instruction is similar to the first control instruction except that the second control instruction is an instruction that acts on the first element. That is, the first control command is an instruction generated corresponding to the touch operation triggered on the display position of the second element, and the second control command is an instruction generated corresponding to the touch operation triggered on the display position of the first element.
  • the second control instruction includes at least one of a second movement instruction, a second scaling instruction, and a second rotation instruction.
  • the triggering condition of the second control instruction is not limited.
  • the triggering and receiving rules of the second control instruction are similar to the triggering and receiving rules of the first control instruction, and are not described herein.
  • Step 160 Adjust the first element to the third position according to the second control instruction.
  • the third position is determined according to the second control instruction.
  • the correspondence between the first element and the second element is cancelled when the second control instruction is received, that is, the default second control instruction is only the instruction to control the first element.
  • the second element remains in the second position.
  • the third position is determined in a manner similar to the first position and the second position, and is not described herein.
  • the first element and the second element may be automatically established.
  • the combination relationship, and the priority of the combination relationship is higher than the control operation for the second element, and lower than the control operation for the first element. That is, when the smart interactive tablet receives the control instruction for the second element, the default is the control instruction for the first element and the second element at the same time. When the smart interaction tablet receives the control instruction for the first element, the default is only The control instruction for the first element, that is, the combination relationship of the first element and the second element is canceled by default. It can also be understood that when there are two elements with coordinate coincidence, when the user controls the element with high display level, the control is only for the element by default, and when the user controls the element with low display level, the control is defaulted to two. Elements.
  • the technical solution provided by the embodiment by displaying the first element determined according to the first input signal, and receiving the first control instruction, the first control instruction acts on the second element that coincides with at least one coordinate of the first element And synchronously adjusting the first element and the second element according to the first control instruction, and when receiving the second control instruction acting on the first element, adjusting the first element according to the second control instruction, while maintaining the second element position unchanged
  • the technical means solves the problem that the implementation process of synchronously controlling at least two elements is too cumbersome in the writing and drawing scene, and the user can simultaneously realize the first element and the second at the same time without the user manually establishing a combination relationship between the two elements.
  • the control of the elements, at the same time can also control the elements separately, making the way of controlling the elements more concise and flexible, and improving the user experience.
  • FIG. 3 is a flowchart of an element control method according to Embodiment 2 of the present disclosure.
  • the first element is set to be written by the user and the second element is a computer-drawn standard element.
  • the user write track includes at least two sub-tracks; the write duration interval between any two adjacent write sub-tracks is within a set time interval, and/or any two write orders The trajectory distance between adjacent sub-tracks is within the set distance.
  • the user write-once process refers to the process by which the user writes the input of the plan. For example, if a user plans to enter a word, then the user's write process is the process of writing the word. Another example is that the user plans to input a sentence, then the user write process is the process of writing the sentence. For another example, if the user plans to input an English word, then the user writes the English word one time. In an embodiment, during a write process, the user performs multiple write touch operations, and at this time, multiple touch tracks are generated. That is, the user write track is composed of at least two sub-tracks, wherein the touch track generated by the user once writing the touch operation is recorded as a sub-track.
  • the user writes continuously and at a close distance during a write process.
  • the write duration between adjacent sub-tracks of any two write orders in the user write track is within a set time interval, and/or a track between adjacent sub-tracks of any two write orders The distance is within the set distance.
  • the write duration interval between the adjacent sub-tracks in any two write order in the user write track is set within the set time interval and the track distance is within the set distance range.
  • the sub-tracks adjacent to any two write orders are sub-tracks generated by two touch operations adjacent to each other in time.
  • the write duration interval is the length of time between the end time of the previous touch operation and the start time of the touch operation.
  • the track distance refers to the distance between the center points of the two sub-tracks, or the distance between the start points of the two sub-tracks, and the distance between the end points of the two sub-tracks.
  • the setting duration interval and setting distance range can be set according to actual conditions.
  • the smart interactive tablet determines in real time whether the currently generated touch track is a sub-track in the user write track, that is, whether the write process ends in real time.
  • it may be determined that the write duration interval between the touch track generated by the current writing touch operation and the sub-track generated by the previous writing touch operation is within a set time interval, and/or the track distance
  • the touch track is determined to be a sub-track during the writing process.
  • the sub-track generated by the previous writing touch operation has been determined as a sub-track in the writing process.
  • the write duration between the touch track generated by the current writing touch operation and the sub-track generated by the previous writing touch operation is within the set time interval and the track distance is within the set distance range. That is, when the touch track is generated based on the current writing touch operation, the writing duration interval between the touch track and the previous sub track is determined. If the write duration is within the set time interval, the distance between the touch track and the previous sub track is continuously determined. If the track distance is within the set distance, the touch track is the current writing process. A subtrack in the middle. If the track distance is not within the set distance, the touch track is not the sub track during the writing process, that is, the writing process has ended. It may also be that after determining a sub-track in the writing process, if no other writing touch operation is received within the set time interval, it is determined that the writing process has ended.
  • the element control method provided in this embodiment includes:
  • Step 210 Receive a second input signal.
  • the second input signal is for displaying the second element. Since the second element in the embodiment is a computer drawing standard element, the second input signal in the embodiment is generated according to the drawing touch operation, that is, in the mode in which the computer draws the standard element, the touch area is detected to receive the touch. After the operation, the electrical signal generated by the touch operation is regarded as the received second input signal.
  • Step 220 Display a second element.
  • the second element is determined according to the second input signal.
  • the second input signal includes touch position information
  • the smart interaction tablet can determine a computer drawing standard element and a display position according to the touch position information, and display a corresponding computer-drawn standard element in the display position.
  • the determining and displaying manner of the second element is the same as the determining and displaying manner of the first element in the first embodiment when the first element is a computer drawing standard element, and details are not described herein.
  • the selected computer draws the standard element mode
  • it is determined that the element selected by the user is a rectangle
  • the start position and the end position of the touch operation are determined according to the touch position information in the first input signal, and the start position and the end position are corresponding.
  • the two pixel positions are used as the diagonal points of the rectangle, which in turn displays the standard rectangle drawn by the computer.
  • Step 230 Receive a third input signal.
  • the third input signal is for displaying the third element.
  • the third element is set as a computer standard drawing element.
  • the receiving rule of the third input signal is similar to the receiving rule of the second input signal, and is not described herein.
  • Step 240 Display a third element.
  • the third element is determined based on the third input signal.
  • the determination and display manner of the third element are similar to the determination and display manner of the second element, and are not described herein.
  • the second element and the third element are set to be completely non-coincident, that is, the coordinate set of the second element and the coordinate set of the third element are empty.
  • the input timing of the second element and the third element is not limited in the embodiment.
  • the display level of the second element is higher than the display level of the third element
  • the third element is input before the second element
  • Step 250 Receive a first input signal.
  • Step 260 Display the first element.
  • the first element is determined according to the first input signal, and the first element is a write trajectory for the user.
  • Step 270 Establish a combination relationship between the first element and the second element.
  • the smart interaction tablet may automatically establish a combination relationship of the first element and the second element. That is, the combination relationship can be automatically established according to the coordinate coincidence relationship.
  • establishing a combination relationship means: determining the first element and the second element as a whole element. The advantage of establishing the combination relationship is that, when the first position and the second position are subsequently calculated, the position calculation can be performed according to the coordinate area after the combination of the first element and the second element, without separately calculating the first position and the second position.
  • the second element may be at least two. In this case, if each second element and the first element can establish a combined relationship, there may be multiple combinations between the second element and the first element. At this time, it is not conducive to the operation of the subsequent first control instruction. Therefore, in the embodiment, when the second element is at least two, establishing a combination relationship between the first element and the second element includes: identifying, in the at least two second elements, the second element of the highest display level; establishing The combination of the first element and the second element of the highest display level.
  • the higher the display level the closer the second element is to the first element display level, which is the higher the probability that the user wants to establish a combination. Therefore, in the embodiment, the at least two second elements are set to establish a combination relationship between the second element having the highest display level and the first element.
  • the second element with the highest display level is for at least two second elements, and even if the second element with the highest level is displayed, the display level is still lower than the first element.
  • the user can adjust the display level of the second element that is expected to establish the combination relationship to at least by adjusting the display level of the second element.
  • the highest display level of the two second elements thereby achieving the desired combination of relationships.
  • the coordinates of the starting position of the user's written trajectory are within the coordinate range of the computer-drawn standard elements. That is, when the first element is written, the combination of the first element and the second element is established when the coordinates of the starting position of the first element are within the coordinate range of the second element.
  • a combination relationship between the first element and the second element is established.
  • the second element selection operation is used to select the second element, and the specific implementation manner is not limited in this embodiment. In practical applications, this method is applicable to any element that has been displayed before the first element is displayed.
  • after receiving the element selection operation searching for other elements higher than the element display level, and among other elements, selecting a target element that coincides with the position of the element, and establishing a combination between the two elements. relationship.
  • the rule can be set to select one element among the target elements. For example, set the target element with the highest display level selected.
  • the combination relationship between the second element and the other elements may be canceled, and a combination relationship between the first element and the second element may be established.
  • the combination relationship between the second element and the other elements is retained, and a combination relationship between the first element and the second element is established, and at this time, the combination relationship includes at least three elements.
  • Step 280 Display a combined element frame.
  • the combination element box is used to indicate a coverage area after the combination of the first element and the second element.
  • determining a coordinate position of the first element and a coordinate position of the second element selecting a minimum rectangular area including the first element coordinate position and the second element coordinate position, the rectangular area being determined as the first element and the second
  • the merged position area of the element, and the composite element box is displayed in the location area.
  • the display parameter embodiment of the combined element frame is not limited.
  • the advantage of setting the combined element frame is that the user can be made clear that the combined relationship has been established, and the combined position area is determined.
  • Step 290 Receive a first control instruction.
  • the first control instruction acts on the second element that has been displayed.
  • the combination relationship between the first element and the second element may also be established synchronously upon receiving the first control instruction.
  • Step 2100 Adjust the first element to the first position, and synchronously adjust the second element to the second position.
  • first location and the second location are determined according to the first control instruction.
  • the combined position area may be calculated once, the target position after the position area adjustment is obtained, and the combined figure is adjusted to the target position.
  • the first element is necessarily displayed in the first position
  • the second element is necessarily displayed in the second position, and at the same time, the number of calculations is reduced.
  • Step 2110 Receive a second control instruction, and cancel a combination relationship between the first element and the second element.
  • the second control instruction acts on the first element.
  • the second control instruction is only a control instruction for the first element, and therefore, when receiving the second control instruction, the smart interaction tablet automatically cancels the combination relationship between the first element and the second element, ie There is no correlation between the first element and the second element. At the same time, the display of the combined element box is canceled.
  • Step 2120 Adjust the first element to the third position.
  • the third position is determined according to the second control instruction.
  • Step 2130 establishing a set of elements.
  • all elements currently displayed are traversed, all other elements whose display level is lower than the first element are found, and a set of elements is established.
  • all of the computer-drawn standard elements that are currently displayed are traversed.
  • the set of elements includes all of the displayed elements having a display hierarchy that is smaller than the first element, or the set of elements includes all of the elements that were displayed prior to the display of the first element.
  • Step 2140 searching for the third element.
  • coordinate information of each element in the set of elements is determined, and an element that coincides with at least one coordinate of the first element is selected and recorded as a third element.
  • the coincidence of the first element and the third element is similar to the coincidence of the first element and the second element, and is not described herein.
  • a combination relationship between the first element and the third element is established.
  • the combination relationship between the first element and the third element is established in the same manner as the combination relationship between the first element and the second element, and is not described herein.
  • a combination element box is optionally displayed, and the combination element box includes a first element and a third element, which are used to prompt the user to establish a combination relationship between the first element and the third element.
  • the method further comprises: selecting the third element with the highest display level.
  • the third element having the highest display level may be selected among the third elements as the third element to be used later. At this time, when the combination relationship between the first element and the third element is established, a combination relationship between the first element and the third element having the highest display level is established. The advantage of choosing the third element with the highest display level is to ensure that the combination relationship is clear and clear and easy for the user to determine.
  • the user can adjust the third element of the user requirement to the highest display level by adjusting the third element display level.
  • the user selects the third element by selecting the element to instruct the smart interaction tablet to establish a combined relationship between the selected third element and the first element.
  • the combination of the elements after the movement is explained by taking the first element as an example.
  • multiple elements can also be moved at the same time.
  • all elements that have not been moved can be traversed, and elements in the moving element that are higher in display level than at least one unmoved element are searched for, and a set of moving elements is determined, and the moving elements are determined.
  • At least one element in the set has at least one unmoved element whose coordinates coincide, and establishes a combined relationship of the moving element and the unmoved element having at least one coordinate coincidence.
  • the unmoved element with the highest level is selected.
  • the subsequent combination of the third element and the first element is not established.
  • Step 2150 Receive a third control instruction.
  • At least one coordinate of the first element coincides with at least one coordinate of the displayed third element, and a display level of the first element is higher than a display level of the third element.
  • the combination of the third element and the first element is synchronously established.
  • the third control command acts on the third element that has been displayed.
  • the third control command is similar to the first control command and the second control command, and the receiving manner is the same, and is not described herein.
  • Step 2160 Adjust the first element to the fourth position, and synchronously adjust the third element to the fifth position.
  • the determining manners of the fourth position and the fifth position may refer to the determining manners of the first position and the second position, which are not limited in this embodiment.
  • FIG. 4 is a schematic diagram of a second display interface of the smart interaction tablet.
  • the smart interaction tablet currently displays the second element 22 and the third element 23, and the second element 22 and the third element 23 are computer-drawn standard elements.
  • FIG. 5 is a schematic diagram of a third display interface of the smart interaction tablet.
  • the user write track that is, the first element 21 is displayed in the smart interaction tablet.
  • the display level of the first element 21 is higher than the display levels of the second element 22 and the third element 23.
  • at least one coordinate of the first element 21 coincides with at least one coordinate of the second element 22.
  • the combination relationship of the first element 21 and the second element 22 is automatically established, and the combined element frame 24 is displayed.
  • the first control instruction is received, wherein the first control instruction acts on the second element, and the first control instruction is the first movement instruction.
  • the touch mode is: dragging the second The non-boundary position of the element.
  • the second element and the first element are synchronously moved according to the first control instruction.
  • FIG. 6 is a schematic diagram of a fourth display interface of the smart interaction tablet. Referring to FIG. 6, the second element 22 and the first element 21 are moved to the first position and the second position in accordance with the first control instruction.
  • the second control instruction is received, wherein the second control instruction acts on the first element, and the second control instruction is a movement instruction.
  • the touch mode is: dragging the first element Non-boundary position. At this time, the combination relationship of the first element and the second element is canceled according to the second control instruction, and the first element is moved.
  • 7 is a schematic diagram of a fifth display interface of the smart interaction tablet. Referring to FIG. 7, the combination element frame 24 is deleted, and the first element 21 is moved to the third position according to the second control instruction. At this time, at least one coordinate of the first element 21 coincides with at least one coordinate of the third element 23.
  • the smart interaction tablet automatically establishes a combination relationship between the first element 21 and the third element 23, or, after determining that the user clicks on the third element 23, the search has at least one coordinate coincidence relationship with the third element 23.
  • the combined element frame 25 is displayed in the smart interactive tablet, and the combined element frame 25 includes the first element 21 and the third element 23.
  • the third control instruction is received, wherein the third control instruction acts on the third element, and the third control instruction is zooming execution.
  • the touch mode is: dragging the element control box 25 The location of the border.
  • the fourth position of the first element and the fifth position of the third element are determined according to the third control instruction, and the first element and the third element are respectively adjusted to the fourth position and the fifth position.
  • FIG. 8 is a schematic diagram of a sixth display interface of the smart interaction tablet.
  • FIG. 8 is a schematic diagram showing a display interface after the first element 21 and the third element 23 are adjusted according to the third control command.
  • the technical solution provided by the embodiment by displaying the second element according to the second input signal, displaying the third element according to the third input signal, and displaying the first element according to the first input signal, wherein the first element and the second element Between the elements, there is at least one coordinate that coincides with the position. At this time, a combination relationship between the first element and the second element is established, and when the first control instruction for the second element is received, the first element and the second element are synchronously adjusted.
  • the first element and the third element are established.
  • the combination relationship, and the third method of adjusting the third element and the first element when receiving the third control instruction for the third element solves the realization process of synchronously controlling at least two elements in the writing and drawing scene Too cumbersome problem, automatically establish a combination relationship between two elements, without the user to manually select elements and select combination options, simplifying user operations Meanwhile, according to user control command elements, automatic ungroup the relationship between the elements, without the user performs an operation to cancel a combination of such elements controlled more simple, flexible, and enhance the user experience.
  • the method before receiving the first control instruction, the method further includes: receiving an element selection instruction, the element selection instruction is used to select the displayed fourth element, and the display level of the fourth element is lower than the first The display level of the two elements, at least one coordinate of the fourth element coincides with at least one coordinate of the first element.
  • adjusting the first element to the first position and synchronously adjusting the second element to the second position further comprises: adjusting the fourth element to the sixth position, the sixth position being determined according to the first control instruction .
  • the element selection instruction is an instruction for selecting a displayed element, the selected element of which is defined as a display level lower than a display level of the second element, and at least one coordinate and at least one of the first element Coordinates coincide. In an embodiment, the intersection of the coordinates of the selected element and the second element may be empty.
  • the element selected by the element selection instruction is recorded as the fourth element, ie, the element selection instruction is used to select the fourth element that has been displayed. In practical applications, the display level of the fourth element may also be higher than the first element.
  • the receiving mode embodiment of the element selection instruction is not limited. For example, after determining that the display position where the fourth element is located receives the click operation, it is determined that the element selection instruction is received. For another example, after determining that the display position where the fourth element is located receives the long press operation, it is determined that the element selection instruction is received.
  • the smart interaction tablet after receiving the element selection instruction, establishes a combination relationship between the fourth element and the first element and the second element.
  • a combined element frame is displayed, and the combined element frame is a minimum rectangular frame including the fourth element, the first element, and the second element.
  • determining that the first control instruction simultaneously controls the first element, the second element, and the fourth element that is, when determining the first position and the second position, synchronously determining that the fourth element is adjusted
  • the sixth position is calculated in the same manner as the first position and the second position, and is not described herein.
  • the first element, the second element, and the fourth element are synchronously adjusted to adjust the first element to the first position, the second element to the second position, and the fourth element Adjust to the sixth position.
  • the first control instruction may also be received by default, that is, the first control instruction may be for the second element, or may be The fourth element.
  • FIG. 9 is a schematic structural diagram of an element control apparatus according to Embodiment 3 of the present disclosure.
  • the element control device includes: a first receiving module 310 , a first display module 320 , a second receiving module 330 , a first adjusting module 340 , a third receiving module 350 , and a second adjusting module 360 .
  • the first receiving module 310 is configured to receive the first input signal
  • the first display module 320 is configured to display the first element
  • the first element is determined according to the first input signal
  • the second receiving module 330 is configured to receive the first a control instruction, the first control instruction acts on the second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element
  • the first adjustment module 340 is configured to be according to the first
  • the control instruction adjusts the first element to the first position, and synchronously adjusts the second element to the second position
  • the third receiving module 350 is configured to receive the second control instruction, the second control instruction acts on the first element
  • the module 360 is configured to adjust the first element to the third position according to the second control instruction.
  • the technical solution provided by the embodiment by displaying the first element determined according to the first input signal, and receiving the first control instruction, the first control instruction acts on the second element that coincides with at least one coordinate of the first element And synchronously adjusting the first element and the second element according to the first control instruction, and when receiving the second control instruction acting on the first element, adjusting the first element according to the second control instruction, while maintaining the second element position unchanged
  • the technical means solves the problem that the implementation process of synchronously controlling at least two elements is too cumbersome in the writing and drawing scene, and the user can simultaneously realize the first element and the second at the same time without the user manually establishing a combination relationship between the two elements.
  • the control of the elements, at the same time can also control the elements separately, making the way of controlling the elements more concise and flexible, and improving the user experience.
  • the apparatus further includes: a fourth receiving module configured to receive the second input signal before receiving the first input signal; and the second display module configured to display the second element, the second element according to the The two input signals are determined.
  • the display level of the first element is higher than the display level of the second element.
  • the apparatus further includes: a fifth receiving module, configured to receive the third control instruction after adjusting the first element to the third position, the third control instruction acting before the first element is displayed The displayed third element, at least one coordinate of the third element coincides with at least one coordinate of the first element; and the third adjustment module is configured to adjust the first element to the fourth position according to the third control instruction.
  • the apparatus further includes: a sixth receiving module, configured to receive a third input signal before receiving the first input signal; and a third display module configured to display the third element, the third element is configured according to The third input signal is determined.
  • the apparatus further includes: an element set establishing module, configured to: before receiving the third control instruction, establish a set of elements, wherein the set of elements includes all displayed elements whose display level is smaller than the first element; An element lookup module, set to look for a third element in a collection of elements. In an embodiment, at least one coordinate of the third element coincides with at least one coordinate of the first element.
  • the device further includes: an element selection module, configured to select the third display element, select at least two of the third elements to display the highest level The third element.
  • the apparatus further includes: a seventh receiving module configured to receive an element selection instruction before the first control instruction is received, and the element selection instruction is used to select the display that is displayed before the first element is displayed.
  • a fourth element the display level of the fourth element is lower than the display level of the second element, and at least one coordinate of the fourth element coincides with at least one coordinate of the first element;
  • the first adjustment module 340 is configured to: Adjusting to the first position, while adjusting the second element to the second position, the fourth element is adjusted to the sixth position according to the first control instruction.
  • the sixth position is determined in accordance with the first control command.
  • the first element is a user write track
  • the second element is a computer drawing standard element
  • the first element is a computer drawing standard element
  • the second element is a user writing track
  • the first Both the element and the second element are standard elements drawn by the computer.
  • the user write track includes at least two sub-tracks; the write duration interval between any two adjacent write sub-tracks is within a set time interval, and/or any two writes The track distance between the adjacent sub-tracks in the order is within the set distance.
  • the coordinates of the starting position of the user's written track are within the coordinate range of the computer drawing standard elements.
  • the computer drawing standard elements include at least one of a geometry, an image, a flowchart, an organization chart, and a spreadsheet.
  • the apparatus further includes: a combination establishing module configured to establish a combination relationship between the first element and the second element before receiving the first control instruction.
  • the device further includes: a combo box display module, configured to establish a combination relationship between the first element and the second element, and display a combined element frame, the combination element box is used to indicate the first element and the second element The coverage area after the elements are combined.
  • a combo box display module configured to establish a combination relationship between the first element and the second element, and display a combined element frame, the combination element box is used to indicate the first element and the second element The coverage area after the elements are combined.
  • the second element is at least two;
  • the combination establishing module includes: an element determining unit, configured to confirm the second element of the highest display level among the at least two second elements; the relationship establishing unit, setting To establish a combination of the first element and the second element of the highest display level.
  • the third receiving module 350 is configured to: receive the second control instruction, and cancel the combination relationship between the first element and the second element.
  • the first control instruction includes: at least one of a first movement instruction, a first scaling instruction, and a first rotation instruction; and the second control instruction includes: a second movement instruction, a second scaling instruction, and At least one of the second rotation instructions.
  • the element control device provided in this embodiment is integrated in the element control device, and can be used to execute the element control method provided by any of the above embodiments, and has corresponding functions and effects.
  • FIG. 10 is a schematic structural diagram of an element control device according to Embodiment 4 of the present disclosure.
  • the element control device includes a processor 40, a memory 41, a display screen 42 having a touch function, an input device 43, an output device 44, and a communication device 45.
  • the number of processors 40 in the annotation display device may be one or more, and one processor 40 is taken as an example in FIG.
  • the number of memories 41 in the element control device may be one or more, and one memory 41 is taken as an example in FIG.
  • the processor 40, the memory 41, the display screen 42, the input device 43, the output device 44, and the communication device 45 of the element control device may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the element control device may be a computer, a mobile phone, a tablet, a projector, or an interactive smart tablet. In the embodiment, the description is made by taking an element control device as an interactive smart tablet as an example.
  • the memory 41 is a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a program instruction/module corresponding to the element control method according to any embodiment of the present disclosure (for example, in an element control device)
  • the memory 41 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the device, and the like.
  • the memory 41 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device.
  • memory 41 may further include memory remotely located relative to processor 40, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the display screen 42 is a display screen 42 having a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen.
  • display screen 42 is configured to display data in accordance with instructions from processor 40, and is also configured to receive touch operations on display screen 42 and to transmit corresponding signals to processor 40 or other device.
  • the display screen 42 when the display screen 42 is an infrared screen, it further includes an infrared touch frame disposed around the display screen 42 , which can also be used to receive an infrared signal and send the infrared signal to Processor 40 or other device.
  • the communication device 45 is arranged to establish a communication connection with other devices, which may be a wired communication device and/or a wireless communication device.
  • the input device 43 may be configured to receive input digital or character information, and to generate key signal input related to user settings and function control of the element control device, and may also be a camera set to acquire an image and a sound pickup device that acquires audio data.
  • Output device 44 may include an audio device such as a speaker. The composition of the input device 43 and the output device 44 can be set according to actual conditions.
  • the processor 40 executes one or more of the functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory 41, that is, implementing the element control method described above.
  • the one or more processors 40 when executed by the one or more processors 40, the one or more processors 40 implement the following operations:
  • the first control instruction acts on a second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element;
  • the indication display screen 42 adjusts the first element to the first position according to the first control instruction, and synchronously adjusts the second element to the second position;
  • the display screen 42 adjusts the first element to the third position in accordance with the second control command.
  • the display screen 42 displays a second element that is determined based on the second input signal.
  • the display level of the first element is higher than the display level of the second element.
  • the third control instruction acts on a third element that has been displayed before the first element is displayed, and at least one coordinate of the third element coincides with at least one coordinate of the first element;
  • the indication display screen 42 adjusts the first element to the fourth position according to the third control command, and synchronously adjusts the third element to the fifth position.
  • the display screen 42 displays a third element, which is determined based on the third input signal.
  • a third element is found, in which the at least one coordinate of the third element coincides with at least one coordinate of the first element.
  • the number of third elements is at least two, and when one or more programs are executed by one or more processors 40, such that one or more processors 40 implement the lookup for the third element, Also used to achieve:
  • the element selection instruction is used to select a fourth element that is displayed before the first element is displayed, the display level of the fourth element is lower than the display level of the second element, and at least one coordinate of the fourth element is At least one coordinate of the first element coincides;
  • the processor 40 when the processor 40 is configured to instruct the display screen 42 to adjust the first element to the first position and synchronously adjust the second element to the second position, the synchronization is implemented:
  • the fourth element is adjusted to a sixth position according to the first control instruction, and the sixth position is determined according to the first control instruction.
  • the first element is a user write track
  • the second element is a computer drawing standard element
  • the first element draws a standard element for the computer, and the second element writes the track for the user; or,
  • the first element and the second element are both computer-drawn standard elements.
  • the user write track includes at least two sub-tracks; the write duration interval between any two adjacent write sub-tracks is within a set time interval, and/or any two writes The track distance between the adjacent sub-tracks in the order is within the set distance.
  • the coordinates of the starting position of the user's written trajectory are within the coordinate range of the computer-drawn standard elements.
  • the computer-drawn standard elements include at least one of a geometry, an image, a flowchart, an organization chart, and a spreadsheet.
  • the method when one or more programs are executed by one or more processors such that one or more processors implement a combination of the first element and the second element, the method is further implemented to:
  • the indication display screen 42 displays a combined element frame for indicating the coverage area after the combination of the first element and the second element.
  • the second element is at least two; when one or more programs are executed by one or more processors 40, causing one or more processors 40 to implement a combination of the first element and the second element Time to achieve:
  • the first control instruction includes: at least one of a first movement instruction, a first scaling instruction, and a first rotation instruction; and the second control instruction includes: a second movement instruction, a second scaling instruction, and a second At least one of the rotation instructions.
  • the element control device provided above can be used to perform the element control method provided by any of the above embodiments, and has corresponding functions and effects.
  • Embodiment 5 of the present disclosure also provides a storage medium including computer executable instructions for executing an element control method when executed by a computer processor, including:
  • the first control instruction acts on a second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element;
  • the first element is adjusted to the third position according to the second control instruction.
  • a storage medium containing computer executable instructions are not limited to the element control method operations as described above, and may also be executed in the element control method provided by any embodiment of the present disclosure. Related operations, and have the corresponding functions and effects.
  • the present disclosure can be implemented by software and necessary general hardware, and of course, can also be implemented by hardware.
  • the technical solution of the present disclosure may be embodied in the form of a software product in essence or in a form of a software product, which may be stored in a computer readable storage medium such as a floppy disk of a computer, a read only memory (Read -Only Memory, ROM), Random Access Memory (RAM), Flash (FLASH), hard disk or CD, etc., including multiple instructions to make a computer device (can be a robot, a personal computer, a server, Or a network device or the like) performs the element control method described in any of the embodiments of the present disclosure.
  • the plurality of units and modules included are only divided according to functional logic, but are not limited to the above-described division, as long as the corresponding functions can be implemented; in addition, the name of each functional unit is only In order to facilitate mutual differentiation, it is not intended to limit the scope of the disclosure.
  • the present disclosure can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • PGA Programmable Gate Array
  • FPGA Field-Programmable Gate Array

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed is an element control method, comprising: displaying a first element, the first element being determined according to a first input signal; receiving a first control instruction, the first control instruction being used for a second element displayed before the first element is displayed, and at least one coordinate of the second element coinciding with at least one coordinate of the first element; adjusting the first element to a first position according to the first control instruction, and synchronously adjusting the second element to a second position; receiving a second control instruction, the second control instruction being used for the first element; and adjusting the first element to a third position according to the second control instruction. Also disclosed are an element control apparatus and device, and a storage medium.

Description

元素控制方法、装置、设备及存储介质Element control method, device, device and storage medium
本申请要求在2018年5月15日提交中国专利局、申请号为201810462173.3的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本公开涉及智能交互平板技术领域,例如涉及一种元素控制方法、装置、设备及存储介质。The present disclosure relates to the field of intelligent interactive tablet technologies, for example, to an element control method, apparatus, device, and storage medium.
背景技术Background technique
智能设备(intelligent device)是指任何一种具有计算处理能力的设备、器械或者机器,智能设备被广泛的应用于多个领域,与人们的工作和生活息息相关。An intelligent device refers to any device, device, or machine with computational processing capabilities. The smart device is widely used in many fields and is closely related to people's work and life.
通常,智能设备具有书写及绘图功能。当用户利用智能设备的书写或绘图功能输入至少两个元素时,智能设备显示的至少两个元素为相互独立的关系。相关技术存在如下缺陷:如果用户想要同时对上述至少两个元素进行控制,如进行移动、缩放等操作,要预先选中待控制的全部元素,再进行控制操作,或者是,预先选中待控制的全部元素,并建立其组合关系后,再进行控制操作。这样使得用户同步控制至少两个元素的实现过程过于繁琐。Typically, smart devices have writing and drawing capabilities. When the user inputs at least two elements using the writing or drawing function of the smart device, at least two elements displayed by the smart device are in independent relationship. The related art has the following drawbacks: if the user wants to control at least two elements at the same time, such as moving, scaling, etc., all the elements to be controlled are selected in advance, and then the control operation is performed, or the control to be controlled is selected in advance. After all the elements, and establish their combination relationship, then control operations. This makes the implementation of the user's simultaneous control of at least two elements too cumbersome.
发明内容Summary of the invention
本公开实施例提供一种元素控制方法、装置、设备及存储介质,以解决相关技术中在书写及绘图场景下,同步控制至少两个元素的实现过程过于繁琐的问题。The embodiments of the present disclosure provide an element control method, apparatus, device, and storage medium to solve the problem that the implementation process of synchronously controlling at least two elements in a writing and drawing scenario in the related art is too cumbersome.
在一实施例中,本公开实施例提供了一种元素控制方法,包括:In an embodiment, an embodiment of the present disclosure provides an element control method, including:
接收第一输入信号;Receiving a first input signal;
显示第一元素,所述第一元素根据所述第一输入信号确定;Displaying a first element, the first element being determined according to the first input signal;
接收第一控制指令,所述第一控制指令作用于在所述第一元素显示之前已显示的第二元素,所述第二元素的至少一个坐标与所述第一元素的至少一个坐标重合;Receiving a first control instruction, the first control instruction acting on a second element that has been displayed before the first element is displayed, at least one coordinate of the second element being coincident with at least one coordinate of the first element;
根据所述第一控制指令将所述第一元素调整至第一位置,同步将所述第二元素调整至第二位置;Adjusting the first element to a first position according to the first control instruction, and synchronously adjusting the second element to a second position;
接收第二控制指令,所述第二控制指令作用于所述第一元素;Receiving a second control instruction, the second control instruction acting on the first element;
根据所述第二控制指令将所述第一元素调整至第三位置。Adjusting the first element to a third position according to the second control instruction.
在一实施例中,本公开实施例还提供了一种元素控制装置,包括:In an embodiment, an embodiment of the present disclosure further provides an element control apparatus, including:
第一接收模块,设置为接收第一输入信号;a first receiving module, configured to receive the first input signal;
第一显示模块,设置为显示第一元素,所述第一元素根据所述第一输入信号确定;a first display module, configured to display a first element, the first element being determined according to the first input signal;
第二接收模块,设置为接收第一控制指令,所述第一控制指令作用于在所述第一元素显 示之前已显示的第二元素,所述第二元素的至少一个坐标与所述第一元素的至少一个坐标重合;a second receiving module, configured to receive a first control instruction, the first control instruction acting on a second element that has been displayed before the first element is displayed, at least one coordinate of the second element and the first At least one coordinate of the elements coincides;
第一调整模块,设置为根据所述第一控制指令将所述第一元素调整至第一位置,同步将所述第二元素调整至第二位置;a first adjustment module, configured to adjust the first element to a first position according to the first control instruction, and synchronously adjust the second element to a second position;
第三接收模块,设置为接收第二控制指令,所述第二控制指令作用于所述第一元素;a third receiving module, configured to receive a second control instruction, where the second control instruction acts on the first element;
第二调整模块,设置为根据所述第二控制指令将所述第一元素调整至第三位置。The second adjustment module is configured to adjust the first element to the third position according to the second control instruction.
在一实施例中,本公开实施例还提供了一种元素控制设备,包括:In an embodiment, an embodiment of the present disclosure further provides an element control device, including:
存储器、具有触摸功能的显示屏以及一个或多个处理器;a memory, a touch screen display, and one or more processors;
所述存储器,设置为存储一个或多个程序;The memory is configured to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现上述的元素控制方法。The one or more programs are executed by the one or more processors such that the one or more processors implement the element control methods described above.
在一实施例中,本公开实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行上述的元素控制方法。In an embodiment, an embodiment of the present disclosure further provides a storage medium containing computer executable instructions for performing the element control method described above when executed by a computer processor.
附图说明DRAWINGS
图l为本公开实施例一提供的一种元素控制方法的流程图;FIG. 1 is a flowchart of an element control method according to Embodiment 1 of the present disclosure;
图2为智能交互平板的第一显示界面示意图;2 is a schematic diagram of a first display interface of a smart interaction tablet;
图3为本公开实施例二提供的一种元素控制方法的流程图;3 is a flowchart of an element control method according to Embodiment 2 of the present disclosure;
图4为智能交互平板的第二显示界面示意图;4 is a schematic diagram of a second display interface of the smart interaction tablet;
图5为智能交互平板的第三显示界面示意图;5 is a schematic diagram of a third display interface of the smart interaction tablet;
图6为智能交互平板的第四显示界面示意图;6 is a schematic diagram of a fourth display interface of the smart interaction tablet;
图7为智能交互平板的第五显示界面示意图;7 is a schematic diagram of a fifth display interface of the smart interaction tablet;
图8为智能交互平板的第六显示界面示意图;8 is a schematic diagram of a sixth display interface of the smart interaction tablet;
图9为本公开实施例三提供的一种元素控制装置的结构示意图;FIG. 9 is a schematic structural diagram of an element control apparatus according to Embodiment 3 of the present disclosure;
图10为本公开实施例四提供的一种元素控制设备的结构示意图。FIG. 10 is a schematic structural diagram of an element control device according to Embodiment 4 of the present disclosure.
具体实施方式Detailed ways
下面结合附图和实施例对本公开进行说明。此处所描述的实施例仅仅用于解释本公开,而非对本公开的限定。为了便于描述,附图中仅示出了与本公开相关的部分而非全部内容。The present disclosure will be described below in conjunction with the accompanying drawings and embodiments. The embodiments described herein are merely illustrative of the disclosure and are not intended to limit the invention. For the convenience of description, only some but not all of the contents related to the present disclosure are shown in the drawings.
实施例一Embodiment 1
图1为本公开实施例一提供的一种元素控制方法的流程图。实施例提供的元素控制方法可以由元素控制设备执行,该元素控制设备可以通过软件和/或硬件的方式实现,该元素控制 设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。该元素控制设备可以是电脑、手机、平板、投影仪或智能交互平板等。在一实施例中,以智能交互平板为元素控制设备为例进行描述,其中,智能交互平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,智能交互平板集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。FIG. 1 is a flowchart of an element control method according to Embodiment 1 of the present disclosure. The element control method provided by the embodiment may be implemented by an element control device, which may be implemented by software and/or hardware. The element control device may be composed of two or more physical entities, or may be a physical entity. Composition. The element control device can be a computer, a mobile phone, a tablet, a projector, or a smart interactive tablet. In an embodiment, the smart interaction tablet is used as an element control device, and the smart interaction tablet may be an integrated device that controls content displayed on the display tablet and implements human-computer interaction operation through touch technology. The smart interactive tablet integrates one or more functions such as a projector, an electronic whiteboard, a screen, an audio, a television, and a video conferencing terminal.
在一实施例中,智能交互平板的显示屏可以是电容屏、电磁屏或者是红外屏。用户可以通过手指在显示屏上执行触控操作,或者是通过与智能交互平板关联的外置装置在显示屏上执行触控操作,其中,外置装置可以是电容笔、电磁笔或者是红外笔。当用户在智能交互平板中执行触控操作时,智能交互平板可以根据相应元件的参数变化情况确定触控位置,进而根据触控位置确定触控操作对应的指令内容,并执行该指令内容。In an embodiment, the display screen of the smart interaction tablet may be a capacitive screen, an electromagnetic screen or an infrared screen. The user can perform a touch operation on the display screen by a finger, or perform a touch operation on the display screen through an external device associated with the smart interaction tablet, wherein the external device can be a capacitive pen, an electromagnetic pen or an infrared pen . When the user performs a touch operation in the smart interaction tablet, the smart interaction tablet can determine the touch position according to the parameter change of the corresponding component, and then determine the instruction content corresponding to the touch operation according to the touch position, and execute the instruction content.
在一实施例中,智能交互平板中安装有电子白板软件,使智能交互平板实现电子白板功能。其中,电子白板软件可以实现书写、绘画以及插入图片等功能,电子白板软件在会议、教育等场景下被广泛使用。在一实施例中,以智能交互平板在电子白板软件场景下进行示例性描述。In an embodiment, the electronic whiteboard software is installed in the smart interaction tablet, so that the smart interaction tablet implements the electronic whiteboard function. Among them, the electronic whiteboard software can realize functions such as writing, drawing, and inserting pictures. The electronic whiteboard software is widely used in meetings, education, and the like. In an embodiment, the smart interactive tablet is exemplarily described in the electronic whiteboard software scenario.
参考图1,本实施例提供的元素控制方法包括:Referring to FIG. 1, the element control method provided in this embodiment includes:
步骤110、接收第一输入信号。Step 110: Receive a first input signal.
在一实施例中,智能交互平板接收到触控操作后,根据智能交互平板内元件的参数变化会生成相应的电信号,通过该电信号可以明确触控位置,并结合触控位置和当前显示内容确定电信号对应的指令,进而执行该指令,以实现对触控操作的响应。In an embodiment, after receiving the touch operation, the smart interaction tablet generates a corresponding electrical signal according to the parameter change of the component in the smart interaction tablet, and the electrical position can be used to determine the touch position, and the touch position and the current display are combined. The content determines an instruction corresponding to the electrical signal, and then executes the instruction to implement a response to the touch operation.
其中,第一输入信号是用户执行输入操作时生成的电信号。输入操作包括书写触控操作和绘图触控操作。绘图触控操作是指示计算机绘制标准元素的触控操作。例如,选定计算机绘制标准元素模式后,绘制矩形,该矩形为标准矩形,区别于用户手画矩形。书写触控操作是用户手写输入的触控操作。在一实施例中,预先设定计算机绘制标准元素模式和手写模式,以便于智能交互平板快速确定输入操作为书写触控操作还是绘图触控操作。The first input signal is an electrical signal generated when the user performs an input operation. Input operations include writing touch operations and drawing touch operations. A drawing touch operation is a touch operation that instructs a computer to draw standard elements. For example, after the selected computer draws the standard element pattern, draw a rectangle, which is a standard rectangle, which is different from the user's hand-drawn rectangle. The writing touch operation is a touch operation of the user's handwriting input. In an embodiment, the computer draws the standard element mode and the handwriting mode in advance, so that the smart interactive tablet can quickly determine whether the input operation is a writing touch operation or a drawing touch operation.
在一实施例中,第一输入信号的接收方式实施例不作限定。例如,书写模式下,检测到书写区域接收到触控操作后,确定接收到第一输入信号。绘图模型下,检测到绘图区域接收到触控操作后,确定接收到第一输入信号。在一实施例中,第一输入信号可以是一次触控操作生成的信号,也可以是满足条件的多次触控操作生成的信号。其中,一次触控操作是指从用户接触屏幕开始到离开屏幕为止的一次操作。满足条件的多次触控操作是针对用户多次触控操作才完成内容输入的场景,例如,当用户进行文字书写时,某个文字的多个笔画之间是 间断的,即当用户写入该文字时,要执行多次触控操作,此时,可以将多次触控操作生成的信号均认为是第一输入信号。又如,还可以是设定触发条件,例如设定触发按钮,当触发按钮被点击后,设定智能交互平板接收到的触控操作生成的信号均为第一输入信号,当触发按钮再次被点击后,确定结束本次输入。In an embodiment, the receiving mode embodiment of the first input signal is not limited. For example, in the writing mode, after detecting that the writing area receives the touch operation, it is determined that the first input signal is received. In the drawing model, after detecting that the drawing area receives the touch operation, it is determined that the first input signal is received. In an embodiment, the first input signal may be a signal generated by one touch operation, or may be a signal generated by a plurality of touch operations satisfying the condition. One touch operation refers to an operation from when the user touches the screen to when the screen is left. The multiple touch operation that satisfies the condition is a scene in which the user inputs the content for multiple touch operations. For example, when the user writes the text, multiple strokes of a certain text are intermittent, that is, when the user writes In the text, multiple touch operations are performed. At this time, the signals generated by the multiple touch operations can be regarded as the first input signal. For example, the triggering condition may be set, for example, setting a trigger button. When the trigger button is clicked, the signals generated by the touch operation received by the smart interactive tablet are all the first input signals, and when the trigger button is again After clicking, be sure to end this input.
步骤120、显示第一元素。Step 120: Display the first element.
示例性的,第一元素根据第一输入信号确定。其中,第一元素为用户期望显示在智能交互平板中的元素。在一实施例中,元素是指智能交互平板中通过用户输入一定操作后可以显示的要素,元素具有占位空间且具有可编辑性。Illustratively, the first element is determined based on the first input signal. The first element is an element that the user desires to display in the smart interaction tablet. In an embodiment, an element refers to an element that can be displayed after a certain operation by a user input in a smart interaction tablet, and the element has a space and is editable.
在一实施例中,第一元素可以是用户写入轨迹或计算机绘制标准元素。一般而言,书写触控操作对应生成的第一元素属于用户写入轨迹,绘图触控操作对应生成的第一元素属于计算机绘制标准元素。其中,计算机绘制标准元素包括但不限于:几何图形、图像、流程图、组织架构图以及电子表格中的至少一个。举例而言,图2为智能交互平板的第一显示界面示意图。其中,元素11和元素12属于计算机绘制标准元素,元素13和元素14为用户写入轨迹。即计算机绘制标准元素可以理解为由智能交互平板绘制的印刷体标准元素,用户写入轨迹为在智能交互平板中显示的手写轨迹。其中,元素13和元素14的虚线框仅是为了便于理解,实际应用中可以不存在。同样的,实施例中其他显示界面示意图中,用户写入轨迹对应的虚线框同样用于理解,实际应用中可以不存在。In an embodiment, the first element may be a user written trajectory or a computer rendered standard element. Generally, the first element generated by the writing touch operation belongs to the user write track, and the first element generated corresponding to the drawing touch operation belongs to the computer drawing standard element. The computer drawing standard elements include, but are not limited to, at least one of a geometric figure, an image, a flowchart, an organization chart, and a spreadsheet. For example, FIG. 2 is a schematic diagram of a first display interface of a smart interaction tablet. Among them, element 11 and element 12 belong to a computer drawing standard element, and element 13 and element 14 write a track for the user. That is, the computer drawing standard element can be understood as a printed standard element drawn by the smart interaction flat panel, and the user writes the trajectory as a handwritten trajectory displayed in the smart interactive tablet. The dotted boxes of the elements 13 and 14 are only for ease of understanding, and may not exist in practical applications. Similarly, in other display interface diagrams in the embodiment, the dotted frame corresponding to the user write track is also used for understanding, and may not exist in practical applications.
在一实施例中,第一输入信号中包含触控位置信息,智能交互平板根据触控位置信息可以绘制第一元素的触控轨迹并确定第一元素的显示位置,进而,在显示位置处显示触控轨迹,即实现显示第一元素,其中,显示位置为显示屏中的像素点位置。在一实施例中,在显示触控轨迹时,依据显示参数显示触控轨迹。其中,显示参数包括但不限定于:轨迹颜色和/或轨迹粗细。以用户写入轨迹为例描述第一元素的显示过程:智能交互平板根据第一输入信号中触控位置信息确定第一元素的显示位置。之后,智能交互平板根据每个像素点位置的写入顺序,按照显示参数在多个像素点中进行绘制,以实现显示第一元素。以计算机绘制标准元素为例描述第一元素的显示过程:确定用户选定的元素为矩形,根据第一输入信号中触控位置信息确定触控操作的起始位置和结束位置,将起始位置和结束位置对应的两个像素点位置作为矩形的对角点,进而按照显示参数绘制矩形,此时,显示参数还可以包含填充颜色等;或者是,智能交互平板根据第一输入信号中触控位置信息绘制触控轨迹,确定与触控轨迹最接近的计算机图形为矩形,进而,在于触控位置信息对应的显示位置处显示该矩形。In an embodiment, the first input signal includes touch position information, and the smart interaction tablet can draw the touch track of the first element according to the touch position information and determine the display position of the first element, and further display at the display position. The touch track, that is, the display of the first element, wherein the display position is the pixel position in the display screen. In an embodiment, when the touch track is displayed, the touch track is displayed according to the display parameter. Wherein, the display parameters include but are not limited to: track color and/or track thickness. The display process of the first element is described by taking the user write track as an example: the smart interaction tablet determines the display position of the first element according to the touch position information in the first input signal. Afterwards, the smart interaction tablet draws in a plurality of pixel points according to the display parameters according to the writing order of each pixel point position to realize displaying the first element. Taking the computer drawing standard element as an example to describe the display process of the first element: determining that the element selected by the user is a rectangle, determining the starting position and the ending position of the touch operation according to the touch position information in the first input signal, and starting the position The position of the two pixel points corresponding to the end position is used as a diagonal point of the rectangle, and then the rectangle is drawn according to the display parameter. At this time, the display parameter may further include a fill color, etc.; or, the smart interactive tablet receives the touch according to the first input signal. The position information is used to draw a touch track, and the computer graphic closest to the touch track is determined to be a rectangle, and further, the rectangle is displayed at a display position corresponding to the touch position information.
步骤130、接收第一控制指令。Step 130: Receive a first control instruction.
其中,第一控制指令作用于在所述第一元素显示之前已显示的第二元素,第二元素的至少一个坐标与第一元素的至少一个坐标重合。Wherein the first control instruction acts on the second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element.
在一实施例中,在显示第一元素前,智能交互平板中显示有第二元素。第二元素的至少一个坐标与第一元素的至少一个坐标重合,即从用户视角,第一元素和第二元素可以是部分重叠或者全部重叠。在一实施例中,智能交互平板在显示元素时为每个元素设定显示层级,不同元素间显示层级不同。一般而言,根据元素输入顺序确定显示层级,最新输入的元素对应的显示层级最高,位于最顶层。在实际应用中,用户也可以手动调整每个元素的显示层级。据此,本实施例中,由于先显示第二元素,而后显示第一元素,所以,第一元素的显示层级高于第二元素的显示层级,即当第一元素的至少一个坐标与第二元素的至少一个坐标重合时,重合位置的像素点优先显示第一元素的内容。In an embodiment, the second element is displayed in the smart interaction tablet before the first element is displayed. At least one coordinate of the second element coincides with at least one coordinate of the first element, ie, from a user perspective, the first element and the second element may be partially overlapping or all overlapping. In an embodiment, the smart interaction tablet sets a display level for each element when displaying elements, and the display levels are different between different elements. In general, the display level is determined according to the order in which the elements are input, and the newly input element has the highest display level and is at the top level. In practice, users can also manually adjust the display level of each element. Accordingly, in this embodiment, since the second element is displayed first and then the first element is displayed, the display level of the first element is higher than the display level of the second element, that is, when at least one coordinate of the first element is the second When at least one coordinate of an element coincides, the pixel of the coincident position preferentially displays the content of the first element.
在一实施例中,第二元素同样可以是用户写入轨迹或计算机绘制标准元素。一般而言,当第一元素是用户写入轨迹时,第二元素为计算机绘制标准元素。此时,示例性的应用场景可以为:在图形或图片的内部写入文字。当第一元素是计算机绘制标准元素时,第二元素为用户输入轨迹。此时,示例性的应用场景可以为:为写入的内容添加无填充的边框。当第一元素为计算机绘制标准元素时,第二元素为计算机绘制标准元素。此时,示例性的应用场景为:显示两个完全或部分重合的图形,或者在表格中添加图形。上述应用场景仅用于解释说明,并未有任何的限定作用。In an embodiment, the second element may also be a user written trajectory or a computer drawn standard element. In general, when the first element is a user writing a trajectory, the second element draws a standard element for the computer. At this time, an exemplary application scenario may be: writing text inside a graphic or a picture. When the first element is a computer drawing standard element, the second element is a user input trajectory. At this point, an exemplary application scenario may be: adding an unfilled border to the written content. When the first element draws a standard element for a computer, the second element draws a standard element for the computer. At this point, an exemplary application scenario is to display two fully or partially coincident graphics or to add graphics to the table. The above application scenarios are for illustrative purposes only and are not intended to be limiting.
在一实施例中,所述第一元素为用户写入轨迹,所述第二元素为计算机绘制标准元素;或,所述第一元素为计算机绘制标准元素,所述第二元素为用户写入轨迹;或,所述第一元素和所述第二元素均为计算机绘制标准元素。In an embodiment, the first element is a user write track, the second element is a computer drawing standard element; or the first element is a computer drawing standard element, and the second element is a user write a track; or, the first element and the second element are computer-drawn standard elements.
在一实施例中,第一控制指令是智能交互平板接收到满足设定触发条件的触控操作后生成的指令。在一实施例中,第一控制指令包括:第一移动指令、第一缩放指令以及第一旋转指令中的至少一种。第一移动指令是用于移动元素的指令,第一缩放指令是用于缩放元素大小的指令,第一旋转指令是用于旋转元素的指令。其中,设定第一控制指令作用于第二元素,第一控制指令的触发条件的内容可以根据实际情况设定,例如,设定触发条件为:触控操作是第二元素的显示位置上先点击后移动的操作,对应的第一控制指令为第一移动指令。又如,设定触发条件为:触控操作是第二元素的显示位置上的两点移动触控操作,且两点触控方向相反,对应的第一控制指令为第一缩放指令。再如,设定触发条件为:触控操作是第二元素的显示位置上的两点触控操作,且两点触控方向均为顺时针或逆时针,对应的第一控制指令为第一旋转指令。上述示例仅是用于说明第一控制指令的触发条件,并非进行任何限定。In an embodiment, the first control instruction is an instruction generated by the smart interaction tablet after receiving the touch operation that meets the set trigger condition. In an embodiment, the first control instruction comprises at least one of a first movement instruction, a first scaling instruction, and a first rotation instruction. The first move instruction is an instruction for moving an element, the first zoom instruction is an instruction for scaling an element size, and the first rotation instruction is an instruction for rotating an element. The first control command is applied to the second element, and the content of the trigger condition of the first control command may be set according to an actual situation. For example, the trigger condition is set: the touch operation is the display position of the second element. After the operation of clicking and moving, the corresponding first control instruction is the first movement instruction. For example, the triggering condition is: the touch operation is a two-point moving touch operation on the display position of the second element, and the two touch directions are opposite, and the corresponding first control instruction is the first zoom instruction. For example, the triggering condition is: the touch operation is a two-touch operation on the display position of the second element, and the two touch directions are clockwise or counterclockwise, and the corresponding first control command is the first Rotate the command. The above example is only a trigger condition for explaining the first control command, and is not limited at all.
在一实施例中,如果第一元素完全覆盖在第二元素上,那么在接收第一控制指令前,可以先接收元素选定指令,该元素选定指令用于选定目标元素。其中,元素选定指令的触发条件可以根据实际情况设定。例如,在第二元素的显示位置接收到长按、单击或双击操作时,则确定接收到元素选定指令,且目标元素为第二元素。之后,在第二元素所在的显示位置,接收到满足第一控制指令触发条件的触控操作,便可以认为是接收到作用于第二元素的第一控制指令。In an embodiment, if the first element is completely overlaid on the second element, an element selection instruction may be received prior to receiving the first control instruction, the element selection instruction being used to select the target element. The trigger condition of the element selection instruction can be set according to the actual situation. For example, when a long press, click, or double click operation is received at the display position of the second element, it is determined that the element selection instruction is received, and the target element is the second element. Then, when the touch operation that satisfies the trigger condition of the first control instruction is received at the display position where the second element is located, it can be considered that the first control instruction acting on the second element is received.
第二元素的数量可以是一个或者多个。当第二元素是一个时,直接确定第一控制指令针对的第二元素。当第二元素是至少两个时,可以是确定第一控制指令针对全部的第二元素,还可以是,选择第二元素中显示层级最高的第二元素,作为第一控制指令针对的第二元素。其中,用户可以调整多个第二元素的显示层级顺序,以将第一控制指令针对的第二元素的显示层级调整至多个第二元素中最高的显示层级。在一实施例中,第一控制指令针对显示层级最高的第二元素。The number of second elements may be one or more. When the second element is one, the second element for which the first control instruction is directed is directly determined. When the second element is at least two, the first control instruction may be determined for all the second elements, and the second element with the highest display level in the second element may be selected as the second target for the first control instruction. element. The user may adjust the display hierarchy order of the plurality of second elements to adjust the display level of the second element for the first control instruction to the highest display level of the plurality of second elements. In an embodiment, the first control instruction is for the second element having the highest display level.
步骤140、根据第一控制指令将第一元素调整至第一位置,同步将第二元素调整至第二位置。Step 140: Adjust the first element to the first position according to the first control instruction, and synchronously adjust the second element to the second position.
其中,第一位置和第二位置根据第一控制指令确定。Wherein the first location and the second location are determined according to the first control instruction.
在一实施例中,设定当接收到第一控制指令时,建立第一元素和第二元素的对应关系,此时,默认第一控制指令是控制第一元素和第二元素的指令。也可以理解为,建立了第一元素和第二元素的组合关系,因此,第一元素和第二元素同时响应第一控制指令。In an embodiment, the correspondence between the first element and the second element is established when the first control instruction is received. At this time, the default first control instruction is an instruction to control the first element and the second element. It can also be understood that the combination relationship between the first element and the second element is established, and therefore, the first element and the second element simultaneously respond to the first control instruction.
在一实施例中,智能交互平板可以根据第一控制指令确定对第一元素和第二元素执行的操作,进而可以计算出第一元素执行第一控制指令后的第一位置以及第二元素执行第一控制指令后的第二位置。其中,第一位置和第二位置均为显示位置,其可以根据第一控制指令的起始位置和结束位置确定。举例而言,生成第一控制指令的触控操作为先点击后移动的操作,此时,根据移动起始位置和结束位置确定移动轨迹途径的像素点在水平方向上和竖直方向上的个数,即移动距离,进而根据移动距离确定第一位置和第二位置,之后,将第一元素移动至第一位置,并将第二元素移动至第二位置。在一实施例中,上述过程也可以是在移动过程中,同步移动第一元素和第二元素,即第一元素和第二元素跟随触控操作同步移动。在一实施例中,缩放和旋转时第一位置和第二位置的确定过程,与移动时第一位置和第二位置的确定过程类似,在此不作赘述。In an embodiment, the smart interaction tablet may determine an operation performed on the first element and the second element according to the first control instruction, and further may calculate a first position and a second element execution after the first element executes the first control instruction. The second position after the first control command. Wherein, the first location and the second location are display locations, which may be determined according to a starting location and an ending location of the first control command. For example, the touch operation for generating the first control instruction is an operation of first clicking and then moving. At this time, determining the pixels of the moving track path in the horizontal direction and the vertical direction according to the movement start position and the end position. The number, that is, the moving distance, determines the first position and the second position according to the moving distance, after which the first element is moved to the first position and the second element is moved to the second position. In an embodiment, the above process may also be: synchronously moving the first element and the second element during the moving process, that is, the first element and the second element move synchronously following the touch operation. In an embodiment, the determining process of the first position and the second position during zooming and rotating is similar to the determining process of the first position and the second position when moving, and is not described herein.
步骤150、接收第二控制指令。Step 150: Receive a second control instruction.
其中,第二控制指令作用于第一元素。Wherein, the second control instruction acts on the first element.
在一实施例中,第二控制指令与第一控制指令的类似,其区别在于第二控制指令为作用于第一元素的指令。即,第一控制指令是在第二元素的显示位置上触发的触控操作对应生成的指令,第二控制指令是在第一元素的显示位置上触发的触控操作对应生成的指令。第二控制指令包括:第二移动指令、第二缩放指令以及第二旋转指令中的至少一种。在一实施例中,第二控制指令的触发条件实施例不作限定,第二控制指令的触发及接收规则与第一控制指令的触发及接收规则类似,在此不作赘述。In an embodiment, the second control instruction is similar to the first control instruction except that the second control instruction is an instruction that acts on the first element. That is, the first control command is an instruction generated corresponding to the touch operation triggered on the display position of the second element, and the second control command is an instruction generated corresponding to the touch operation triggered on the display position of the first element. The second control instruction includes at least one of a second movement instruction, a second scaling instruction, and a second rotation instruction. In an embodiment, the triggering condition of the second control instruction is not limited. The triggering and receiving rules of the second control instruction are similar to the triggering and receiving rules of the first control instruction, and are not described herein.
步骤160、根据第二控制指令将第一元素调整至第三位置。Step 160: Adjust the first element to the third position according to the second control instruction.
其中,第三位置根据第二控制指令确定。Wherein the third position is determined according to the second control instruction.
在一实施例中,设定当接收到第二控制指令时,取消第一元素和第二元素的对应关系,即默认第二控制指令仅是控制第一元素的指令。此时,第二元素保持在第二位置不变。在一实施例中,第三位置的确定方式与第一位置和第二位置类似,在此不作赘述。In an embodiment, the correspondence between the first element and the second element is cancelled when the second control instruction is received, that is, the default second control instruction is only the instruction to control the first element. At this point, the second element remains in the second position. In an embodiment, the third position is determined in a manner similar to the first position and the second position, and is not described herein.
本实施例中,对于用户输入的第一元素,如果第一元素和在第一元素显示之前已显示的第二元素存在至少一个坐标重合,此时,可以自动建立第一元素和第二元素的组合关系,且该组合关系的优先级高于对第二元素的控制操作,低于对第一元素的控制操作。即,当智能交互平板接收到针对第二元素的控制指令时,默认是同时针对第一元素和第二元素的控制指令,当智能交互平板接收到针对第一元素的控制指令时,默认仅是针对第一元素的控制指令,即第一元素和第二元素的组合关系默认取消。也可以理解为,当存在坐标重合的两个元素时,用户针对显示层级高的元素进行控制时,默认该控制仅针对该元素,用户针对显示层级低的元素进行控制时,默认该控制针对两个元素。In this embodiment, for the first element input by the user, if at least one coordinate overlaps between the first element and the second element that has been displayed before the first element is displayed, at this time, the first element and the second element may be automatically established. The combination relationship, and the priority of the combination relationship is higher than the control operation for the second element, and lower than the control operation for the first element. That is, when the smart interactive tablet receives the control instruction for the second element, the default is the control instruction for the first element and the second element at the same time. When the smart interaction tablet receives the control instruction for the first element, the default is only The control instruction for the first element, that is, the combination relationship of the first element and the second element is canceled by default. It can also be understood that when there are two elements with coordinate coincidence, when the user controls the element with high display level, the control is only for the element by default, and when the user controls the element with low display level, the control is defaulted to two. Elements.
本实施例提供的技术方案,通过显示根据第一输入信号确定的第一元素,并在接收到第一控制指令,该第一控制指令作用于与第一元素的至少一个坐标重合的第二元素时,根据第一控制指令同步调整第一元素和第二元素,在接收到作用于第一元素的第二控制指令时,根据第二控制指令调整第一元素,而保持第二元素位置不变的技术手段,解决了在书写及绘图场景下,同步控制至少两个元素的实现过程过于繁琐的问题,无需用户手动建立两个元素间的组合关系,便可以实现同时对第一元素和第二元素的控制,同时,还可以单独控制元素,使得控制元素的方式更加简洁、灵活,提升了用户的使用体验。The technical solution provided by the embodiment, by displaying the first element determined according to the first input signal, and receiving the first control instruction, the first control instruction acts on the second element that coincides with at least one coordinate of the first element And synchronously adjusting the first element and the second element according to the first control instruction, and when receiving the second control instruction acting on the first element, adjusting the first element according to the second control instruction, while maintaining the second element position unchanged The technical means solves the problem that the implementation process of synchronously controlling at least two elements is too cumbersome in the writing and drawing scene, and the user can simultaneously realize the first element and the second at the same time without the user manually establishing a combination relationship between the two elements. The control of the elements, at the same time, can also control the elements separately, making the way of controlling the elements more concise and flexible, and improving the user experience.
实施例二Embodiment 2
图3为本公开实施例二提供的一种元素控制方法的流程图。在一实施例中,设定第一元素是用户写入轨迹,第二元素是计算机绘制标准元素。FIG. 3 is a flowchart of an element control method according to Embodiment 2 of the present disclosure. In an embodiment, the first element is set to be written by the user and the second element is a computer-drawn standard element.
在一实施例中,用户写入轨迹包括至少两条子轨迹;任意两条写入顺序相邻的子轨迹间 的写入时长间隔在设定时长间隔内,和/或,任意两条写入顺序相邻的子轨迹间的轨迹距离在设定距离范围内。In an embodiment, the user write track includes at least two sub-tracks; the write duration interval between any two adjacent write sub-tracks is within a set time interval, and/or any two write orders The trajectory distance between adjacent sub-tracks is within the set distance.
在一实施例中,用户一次写入过程是指用户写入本次计划输入内容的过程。例如,用户计划输入某个字,那么用户一次写入过程便是书写该字的过程。又如,用户计划输入某句话,那么用户一次写入过程便是书写该句话的过程。再如,用户计划输入某个英文单词,那么用户一次写入过程便是书写该英文单词的过程。在一实施例中,一次写入过程中,用户会执行多次书写触控操作,此时,会生成多条触控轨迹。即,用户写入轨迹由至少两条子轨迹组成,其中,用户一次书写触控操作生成的触控轨迹记为一条子轨迹。In one embodiment, the user write-once process refers to the process by which the user writes the input of the plan. For example, if a user plans to enter a word, then the user's write process is the process of writing the word. Another example is that the user plans to input a sentence, then the user write process is the process of writing the sentence. For another example, if the user plans to input an English word, then the user writes the English word one time. In an embodiment, during a write process, the user performs multiple write touch operations, and at this time, multiple touch tracks are generated. That is, the user write track is composed of at least two sub-tracks, wherein the touch track generated by the user once writing the touch operation is recorded as a sub-track.
示例性的,在实际应用中,一次写入过程中,用户会连续的、近距离的书写。例如,用户输入某句话时,会连续写入这句话中的文字,相邻文字间的距离是接近。因此,用户写入轨迹中的任意两条写入顺序相邻的子轨迹间的写入时长间隔在设定时长间隔内,和/或,任意两条写入顺序相邻的子轨迹间的轨迹距离在设定距离范围内。实施例中,设定用户写入轨迹中的任意两条写入顺序相邻的子轨迹间的写入时长间隔在设定时长间隔内且轨迹距离在设定距离范围内。其中,任意两条写入顺序相邻的子轨迹是指时间相邻的两次触控操作生成的子轨迹。写入时长间隔是指前一触控操作结束时间与本次触控操作起始时间之间的时间长度。轨迹距离是指两条子轨迹中心点间的距离,或者是,两条子轨迹的起始点间的距离,还可以是,两条子轨迹的结束点间的距离等。设定时长间隔和设定距离范围可以根据实际情况设定。Exemplarily, in practical applications, the user writes continuously and at a close distance during a write process. For example, when a user enters a sentence, the text in the sentence is continuously written, and the distance between adjacent characters is close. Therefore, the write duration between adjacent sub-tracks of any two write orders in the user write track is within a set time interval, and/or a track between adjacent sub-tracks of any two write orders The distance is within the set distance. In the embodiment, the write duration interval between the adjacent sub-tracks in any two write order in the user write track is set within the set time interval and the track distance is within the set distance range. The sub-tracks adjacent to any two write orders are sub-tracks generated by two touch operations adjacent to each other in time. The write duration interval is the length of time between the end time of the previous touch operation and the start time of the touch operation. The track distance refers to the distance between the center points of the two sub-tracks, or the distance between the start points of the two sub-tracks, and the distance between the end points of the two sub-tracks. The setting duration interval and setting distance range can be set according to actual conditions.
据此,在用户书写过程中,智能交互平板实时判断当前生成的触控轨迹是否为用户写入轨迹中的一条子轨迹,即实时判断一次写入过程是否结束。在一实施例中可以是:在确定当前书写触控操作生成的触控轨迹与前一书写触控操作生成的子轨迹间的写入时长间隔在设定时长间隔内,和/或,轨迹距离在设定距离范围内时,确定触控轨迹为本次写入过程中的一条子轨迹。其中,前一书写触控操作生成的子轨迹已经确定为本次写入过程中的一条子轨迹。本实施例中,在确定当前书写触控操作生成的触控轨迹与前一书写触控操作生成的子轨迹间的写入时长间隔在设定时长间隔内且轨迹距离在设定距离范围内时,确定触控轨迹为本次写入过程中的一条子轨迹。即:基于当前的书写触控操作生成触控轨迹时,确定该触控轨迹与前一子轨迹间的写入时长间隔。如果写入时长间隔在设定时长间隔内,则继续判断该触控轨迹与前一子轨迹间的轨迹距离,如果轨迹距离在设定距离范围内,则说明触控轨迹为本次写入过程中的一条子轨迹。如果轨迹距离不在设定距离范围内,,则说明触控轨迹不是本次写入过程中的子轨迹,即本次写入过程已经结束。还可以是:确定本次写入过程中的一条子轨迹后,如果在设定时长间隔内,没有接收到其他的书写触控操作,则确定本次写入过程已经 结束。According to this, during the writing process of the user, the smart interactive tablet determines in real time whether the currently generated touch track is a sub-track in the user write track, that is, whether the write process ends in real time. In an embodiment, it may be determined that the write duration interval between the touch track generated by the current writing touch operation and the sub-track generated by the previous writing touch operation is within a set time interval, and/or the track distance When the distance is within the set distance, the touch track is determined to be a sub-track during the writing process. The sub-track generated by the previous writing touch operation has been determined as a sub-track in the writing process. In this embodiment, when it is determined that the write duration between the touch track generated by the current writing touch operation and the sub-track generated by the previous writing touch operation is within the set time interval and the track distance is within the set distance range Determine the touch track as a sub-track during the writing process. That is, when the touch track is generated based on the current writing touch operation, the writing duration interval between the touch track and the previous sub track is determined. If the write duration is within the set time interval, the distance between the touch track and the previous sub track is continuously determined. If the track distance is within the set distance, the touch track is the current writing process. A subtrack in the middle. If the track distance is not within the set distance, the touch track is not the sub track during the writing process, that is, the writing process has ended. It may also be that after determining a sub-track in the writing process, if no other writing touch operation is received within the set time interval, it is determined that the writing process has ended.
在一实施例中,参考图3,本实施例提供的元素控制方法包括:In an embodiment, referring to FIG. 3, the element control method provided in this embodiment includes:
步骤210、接收第二输入信号。Step 210: Receive a second input signal.
在一实施例中,第二输入信号用于显示第二元素。由于实施例中第二元素为计算机绘制标准元素,所以,实施例中的第二输入信号是根据绘图触控操作生成的,即在计算机绘制标准元素的模式下,检测到书写区域接收到触控操作后,将该触控操作生成的电信号认为是接收的第二输入信号。In an embodiment, the second input signal is for displaying the second element. Since the second element in the embodiment is a computer drawing standard element, the second input signal in the embodiment is generated according to the drawing touch operation, that is, in the mode in which the computer draws the standard element, the touch area is detected to receive the touch. After the operation, the electrical signal generated by the touch operation is regarded as the received second input signal.
步骤220、显示第二元素。Step 220: Display a second element.
其中,第二元素根据第二输入信号确定。Wherein the second element is determined according to the second input signal.
示例性的,第二输入信号中包含触控位置信息,智能交互平板根据触控位置信息可以确定计算机绘制标准元素以及显示位置,并在上述显示位置显示对应的计算机绘制的标准元素。其中,第二元素的确定及显示方式与实施例一中第一元素为计算机绘制标准元素时,对应的确定及显示方式相同,在此不作赘述。例如,选定计算机绘制标准元素模式后,确定用户选定的元素为矩形,根据第一输入信号中触控位置信息确定触控操作的起始位置和结束位置,将起始位置和结束位置对应的两个像素点位置作为矩形的对角点,进而显示计算机绘制的标准矩形。Exemplarily, the second input signal includes touch position information, and the smart interaction tablet can determine a computer drawing standard element and a display position according to the touch position information, and display a corresponding computer-drawn standard element in the display position. Wherein, the determining and displaying manner of the second element is the same as the determining and displaying manner of the first element in the first embodiment when the first element is a computer drawing standard element, and details are not described herein. For example, after the selected computer draws the standard element mode, it is determined that the element selected by the user is a rectangle, and the start position and the end position of the touch operation are determined according to the touch position information in the first input signal, and the start position and the end position are corresponding. The two pixel positions are used as the diagonal points of the rectangle, which in turn displays the standard rectangle drawn by the computer.
步骤230、接收第三输入信号。Step 230: Receive a third input signal.
在一实施例中,第三输入信号用于显示第三元素。其中,设定第三元素为计算机标准绘制元素。此时,第三输入信号的接收规则与第二输入信号的接收规则类似,在此不作赘述。In an embodiment, the third input signal is for displaying the third element. Among them, the third element is set as a computer standard drawing element. At this time, the receiving rule of the third input signal is similar to the receiving rule of the second input signal, and is not described herein.
步骤240、显示第三元素。Step 240: Display a third element.
在一实施例中,第三元素根据第三输入信号确定。其中,第三元素的确定及显示方式与第二元素的确定及显示方式类似,在此不作赘述。In an embodiment, the third element is determined based on the third input signal. The determination and display manner of the third element are similar to the determination and display manner of the second element, and are not described herein.
在一实施例中,设定第二元素和第三元素完全不重合,即第二元素的坐标集合和第三元素的坐标集合为空。In an embodiment, the second element and the third element are set to be completely non-coincident, that is, the coordinate set of the second element and the coordinate set of the third element are empty.
在一实施例中,实施例中不限定第二元素和第三元素的输入时序。在用户未调整显示层级时,当第二元素先于第三元素输入时,第二元素的显示层级高于第三元素的显示层级,当第三元素先于第二元素输入时,第三元素的显示层级高于第二元素的显示层级。In an embodiment, the input timing of the second element and the third element is not limited in the embodiment. When the user does not adjust the display level, when the second element is input before the third element, the display level of the second element is higher than the display level of the third element, and when the third element is input before the second element, the third element The display level is higher than the display level of the second element.
步骤250、接收第一输入信号。Step 250: Receive a first input signal.
步骤260、显示第一元素。Step 260: Display the first element.
其中,第一元素根据第一输入信号确定,第一元素为用户写入轨迹。The first element is determined according to the first input signal, and the first element is a write trajectory for the user.
步骤270、建立第一元素与第二元素的组合关系。Step 270: Establish a combination relationship between the first element and the second element.
在一实施例中,由于第一元素和第二元素存在重合的至少一个坐标,因此,智能交互平板可以自动建立第一元素和第二元素的组合关系。即组合关系可以根据坐标重合关系自动建立。其中,建立组合关系是指:将第一元素和第二元素确定为一个整体的元素。建立组合关系的好处是,在后续计算第一位置和第二位置时,可以根据第一元素和第二元素组合后的坐标区域进行一次位置计算,无需分别计算第一位置和第二位置。In an embodiment, since the first element and the second element have at least one coordinate that coincides, the smart interaction tablet may automatically establish a combination relationship of the first element and the second element. That is, the combination relationship can be automatically established according to the coordinate coincidence relationship. Wherein, establishing a combination relationship means: determining the first element and the second element as a whole element. The advantage of establishing the combination relationship is that, when the first position and the second position are subsequently calculated, the position calculation can be performed according to the coordinate area after the combination of the first element and the second element, without separately calculating the first position and the second position.
在一实施例中,第二元素可能为至少两个,此时,如果每个第二元素与第一元素均可以建立组合关系,那么第二元素和第一元素间可能存在多个组合关系,此时,不利于后续第一控制指令的操作。因此,实施例中设定,当第二元素为至少两个时,建立第一元素和第二元素的组合关系包括:在至少两个第二元素中,确认最高显示层级的第二元素;建立第一元素与最高显示层级的第二元素的组合关系。In an embodiment, the second element may be at least two. In this case, if each second element and the first element can establish a combined relationship, there may be multiple combinations between the second element and the first element. At this time, it is not conducive to the operation of the subsequent first control instruction. Therefore, in the embodiment, when the second element is at least two, establishing a combination relationship between the first element and the second element includes: identifying, in the at least two second elements, the second element of the highest display level; establishing The combination of the first element and the second element of the highest display level.
在一实施例中,显示层级越高,说明第二元素与第一元素显示层级越接近,其为用户想要建立组合的概率越高。因此,实施例中设定在至少两个第二元素中,建立显示层级最高的第二元素与第一元素的组合关系。其中,显示层级最高的第二元素是针对至少两个第二元素而言的,即使显示层级最高的第二元素,其显示层级仍低于第一元素。实际应用中,如果显示层级最高的第二元素不是用户期望建立组合关系的元素,那么用户可以通过调整第二元素的显示层级的方式,将期望建立组合关系的第二元素的显示层级调整至至少两个第二元素中的最高显示层级,进而实现期望建立的组合关系。In an embodiment, the higher the display level, the closer the second element is to the first element display level, which is the higher the probability that the user wants to establish a combination. Therefore, in the embodiment, the at least two second elements are set to establish a combination relationship between the second element having the highest display level and the first element. The second element with the highest display level is for at least two second elements, and even if the second element with the highest level is displayed, the display level is still lower than the first element. In an actual application, if the second element with the highest display level is not the element that the user desires to establish a combination relationship, the user can adjust the display level of the second element that is expected to establish the combination relationship to at least by adjusting the display level of the second element. The highest display level of the two second elements, thereby achieving the desired combination of relationships.
在一实施例中,用户写入轨迹的起始位置坐标在计算机绘制标准元素的坐标范围内。即写入第一元素时,第一元素的起始位置坐标在第二元素的坐标范围内时,才会建立第一元素和第二元素的组合关系。这样做的好处是,当由于误操作,使得用户写入轨迹与计算机绘制标准元素存在坐标重合时,可以避免针对计算机标准元素进行控制操作时,同步控制用户写入轨迹。In an embodiment, the coordinates of the starting position of the user's written trajectory are within the coordinate range of the computer-drawn standard elements. That is, when the first element is written, the combination of the first element and the second element is established when the coordinates of the starting position of the first element are within the coordinate range of the second element. The advantage of this is that when the user writes the track and the computer drawing standard elements have coordinates coincident due to the erroneous operation, it is possible to avoid synchronously controlling the user to write the track when the control operation is performed on the computer standard element.
在一实施例中,接收到第二元素选定操作后,建立第一元素和第二元素的组合关系。其中,第二元素选定操作用于选定第二元素,其具体的实现方式本实施例不作限定。在实际应用中,该方式适用于任意在第一元素显示之前已显示的元素。在一实施例中,接收到元素选定操作后,查找高于该元素显示层级的其他元素,并在其他元素中,选择与该元素存在位置重合的目标元素,并建立两个元素间的组合关系。其中,当存在多个目标元素时,可以设定规则在目标元素中选定一个元素。如设定选定显示层级最高的目标元素。In an embodiment, after receiving the second element selection operation, a combination relationship between the first element and the second element is established. The second element selection operation is used to select the second element, and the specific implementation manner is not limited in this embodiment. In practical applications, this method is applicable to any element that has been displayed before the first element is displayed. In an embodiment, after receiving the element selection operation, searching for other elements higher than the element display level, and among other elements, selecting a target element that coincides with the position of the element, and establishing a combination between the two elements. relationship. Wherein, when there are multiple target elements, the rule can be set to select one element among the target elements. For example, set the target element with the highest display level selected.
在一实施例中,如果第二元素已经与其他元素建立了组合关系,那么可以取消第二元素 与其他元素间的组合关系,并建立第一元素和第二元素的组合关系。或者是,保留第二元素和其他元素间的组合关系,并建立第一元素和第二元素的组合关系,此时,该组合关系包括至少三个元素。In an embodiment, if the second element has been combined with other elements, the combination relationship between the second element and the other elements may be canceled, and a combination relationship between the first element and the second element may be established. Alternatively, the combination relationship between the second element and the other elements is retained, and a combination relationship between the first element and the second element is established, and at this time, the combination relationship includes at least three elements.
步骤280、显示组合元素框。Step 280: Display a combined element frame.
其中,组合元素框用于指示第一元素和第二元素组合后的覆盖区域。The combination element box is used to indicate a coverage area after the combination of the first element and the second element.
示例性的,确定第一元素的坐标位置和第二元素的坐标位置,选择同时包含第一元素坐标位置和第二元素坐标位置的最小矩形区域,将该矩形区域确定为第一元素和第二元素合并后的位置区域,并在该位置区域显示组合元素框。其中,组合元素框的显示参数实施例不作限定。本实施例中,设定组合元素框的好处是,可以使用户明确已经建立组合关系,同时确定组合后的位置区域。Illustratively, determining a coordinate position of the first element and a coordinate position of the second element, selecting a minimum rectangular area including the first element coordinate position and the second element coordinate position, the rectangular area being determined as the first element and the second The merged position area of the element, and the composite element box is displayed in the location area. The display parameter embodiment of the combined element frame is not limited. In this embodiment, the advantage of setting the combined element frame is that the user can be made clear that the combined relationship has been established, and the combined position area is determined.
步骤290、接收第一控制指令。Step 290: Receive a first control instruction.
其中,第一控制指令作用于已显示的第二元素。Wherein, the first control instruction acts on the second element that has been displayed.
在实际应用中,也可以在接收到第一控制指令时,同步建立第一元素和第二元素的组合关系。In practical applications, the combination relationship between the first element and the second element may also be established synchronously upon receiving the first control instruction.
步骤2100、将第一元素调整至第一位置,同步将第二元素调整至第二位置。Step 2100: Adjust the first element to the first position, and synchronously adjust the second element to the second position.
其中,第一位置和第二位置根据第一控制指令确定。Wherein the first location and the second location are determined according to the first control instruction.
示例性的,根据第一控制指令确定第一位置和第二位置时,可以是对组合后的位置区域进行一次计算,得到位置区域调整后的目标位置,并将组合图形调整至目标位置,此时,第一元素必然显示在第一位置,第二元素必然显示在第二位置,同时,减少了计算次数。Exemplarily, when the first position and the second position are determined according to the first control instruction, the combined position area may be calculated once, the target position after the position area adjustment is obtained, and the combined figure is adjusted to the target position. When the first element is necessarily displayed in the first position, the second element is necessarily displayed in the second position, and at the same time, the number of calculations is reduced.
步骤2110、接收第二控制指令,取消第一元素和第二元素的组合关系。Step 2110: Receive a second control instruction, and cancel a combination relationship between the first element and the second element.
其中,第二控制指令作用于第一元素。Wherein, the second control instruction acts on the first element.
在一实施例中,设定第二控制指令仅是针对第一元素的控制指令,因此,在接收到第二控制指令时,智能交互平板自动取消第一元素和第二元素的组合关系,即第一元素和第二元素间不存在任何关联性。同时,取消显示组合元素框。In an embodiment, the second control instruction is only a control instruction for the first element, and therefore, when receiving the second control instruction, the smart interaction tablet automatically cancels the combination relationship between the first element and the second element, ie There is no correlation between the first element and the second element. At the same time, the display of the combined element box is canceled.
步骤2120、将第一元素调整至第三位置。Step 2120: Adjust the first element to the third position.
其中,第三位置根据第二控制指令确定。Wherein the third position is determined according to the second control instruction.
步骤2130、建立元素集合。 Step 2130, establishing a set of elements.
在一实施例中,遍历当前已显示的全部元素,查找到显示层级低于第一元素的全部其他元素,建立元素集合。在一实施例中,遍历当前已显示的全部计算机绘制标准元素。在一实施例中,元素集合包含显示层级小于第一元素的全部已显示元素,或者说,元素集合包含全 部在第一元素显示之前已显示的元素。In an embodiment, all elements currently displayed are traversed, all other elements whose display level is lower than the first element are found, and a set of elements is established. In an embodiment, all of the computer-drawn standard elements that are currently displayed are traversed. In an embodiment, the set of elements includes all of the displayed elements having a display hierarchy that is smaller than the first element, or the set of elements includes all of the elements that were displayed prior to the display of the first element.
步骤2140、查找第三元素。 Step 2140, searching for the third element.
在一实施例中,确定元素集合中每个元素的坐标信息,选择与第一元素的至少一个坐标重合的元素,记为第三元素。其中,第一元素与第三元素的重合与第一元素与第二元素的重合类似,在此不作赘述。In an embodiment, coordinate information of each element in the set of elements is determined, and an element that coincides with at least one coordinate of the first element is selected and recorded as a third element. The coincidence of the first element and the third element is similar to the coincidence of the first element and the second element, and is not described herein.
在一实施例中,查找第三元素后,建立第一元素和第三元素的组合关系。其中,第一元素和第三元素的组合关系建立方式与第一元素和第二元素的组合关系的建立方式相同,在此不作赘述。在建立组合关系后,可选显示组合元素框,该组合元素框中包含第一元素和第三元素,其用于提示用户已建立第一元素和第三元素的组合关系。In an embodiment, after finding the third element, a combination relationship between the first element and the third element is established. The combination relationship between the first element and the third element is established in the same manner as the combination relationship between the first element and the second element, and is not described herein. After the combination relationship is established, a combination element box is optionally displayed, and the combination element box includes a first element and a third element, which are used to prompt the user to establish a combination relationship between the first element and the third element.
在一实施例中,如果查找第三元素的结果为查找到至少两个第三元素,那么,查找第三元素之后,还包括:选择显示层级最高的第三元素。在一实施例中,可以在第三元素中选择显示层级最高的第三元素作为后续使用的第三元素。此时,建立第一元素和第三元素的组合关系时,是建立第一元素和显示层级最高的第三元素的组合关系。选择显示层级最高的第三元素的好处是,保证组合关系清晰、明确,便于用户确定。In an embodiment, if the result of finding the third element is to find at least two third elements, after searching for the third element, the method further comprises: selecting the third element with the highest display level. In an embodiment, the third element having the highest display level may be selected among the third elements as the third element to be used later. At this time, when the combination relationship between the first element and the third element is established, a combination relationship between the first element and the third element having the highest display level is established. The advantage of choosing the third element with the highest display level is to ensure that the combination relationship is clear and clear and easy for the user to determine.
在一实施例中,如果用户需求的第三元素并不是显示层级最高的第三元素,那么用户可以通过调整第三元素显示层级的方式,将用户需求的第三元素调整为显示层级最高的第三元素。或者是,用户通过选定元素的方式选择第三元素,以指示智能交互平板建立选定的第三元素与第一元素的组合关系。In an embodiment, if the third element required by the user is not the third element with the highest display level, the user can adjust the third element of the user requirement to the highest display level by adjusting the third element display level. Three elements. Alternatively, the user selects the third element by selecting the element to instruct the smart interaction tablet to establish a combined relationship between the selected third element and the first element.
本实施例中,仅以移动第一元素为例,说明了针对移动后元素的组合建立方式。实际应用中,还可以同时移动多个元素,此时,可以遍历未移动的全部元素,在移动元素中查找显示层级高于至少一个未移动元素的元素,并组成移动元素集合,确定与移动元素集合中至少一个元素存在至少一个坐标重合的未移动元素,并建立移动元素与存在至少一个坐标重合的未移动元素的组合关系。同样的,当同一移动元素存在多个对应的未移动元素时,选择层级最高的未移动元素。In this embodiment, the combination of the elements after the movement is explained by taking the first element as an example. In practical applications, multiple elements can also be moved at the same time. In this case, all elements that have not been moved can be traversed, and elements in the moving element that are higher in display level than at least one unmoved element are searched for, and a set of moving elements is determined, and the moving elements are determined. At least one element in the set has at least one unmoved element whose coordinates coincide, and establishes a combined relationship of the moving element and the unmoved element having at least one coordinate coincidence. Similarly, when there are multiple corresponding unmoved elements in the same moving element, the unmoved element with the highest level is selected.
在一实施例中,如果不存在第三元素,那么,后续便不会建立第三元素和第一元素的组合关系。In an embodiment, if the third element does not exist, then the subsequent combination of the third element and the first element is not established.
步骤2150、接收第三控制指令。Step 2150: Receive a third control instruction.
示例性的,第一元素调整至第三位置后,第一元素的至少一个坐标与已显示的第三元素的至少一个坐标重合,且第一元素的显示层级高于第三元素的显示层级。Exemplarily, after the first element is adjusted to the third position, at least one coordinate of the first element coincides with at least one coordinate of the displayed third element, and a display level of the first element is higher than a display level of the third element.
在一实施例中,还可以是在接收到第三控制指令时,同步建立第三元素和第一元素的组 合关系。In an embodiment, when the third control instruction is received, the combination of the third element and the first element is synchronously established.
在一实施例中,第三控制指令作用于已显示的第三元素。其中,第三控制指令与第一控制指令及第二控制指令类似,其接收方式相同,在此不作赘述。In an embodiment, the third control command acts on the third element that has been displayed. The third control command is similar to the first control command and the second control command, and the receiving manner is the same, and is not described herein.
步骤2160、将第一元素调整至第四位置,同步将第三元素调整至第五位置。Step 2160: Adjust the first element to the fourth position, and synchronously adjust the third element to the fifth position.
其中,第四位置和第五位置根据第三控制指令确定。Wherein the fourth position and the fifth position are determined according to the third control instruction.
在一实施例中,第四位置和第五位置的确定方式可以参考第一位置和第二位置的确定方式,本实施例不作限定。In an embodiment, the determining manners of the fourth position and the fifth position may refer to the determining manners of the first position and the second position, which are not limited in this embodiment.
下面对实施例的技术方案进行示例描述:The following describes an example of the technical solution of the embodiment:
图4为智能交互平板的第二显示界面示意图。参考图4,智能交互平板当前显示第二元素22和第三元素23,且第二元素22和第三元素23均为计算机绘制标准元素。4 is a schematic diagram of a second display interface of the smart interaction tablet. Referring to FIG. 4, the smart interaction tablet currently displays the second element 22 and the third element 23, and the second element 22 and the third element 23 are computer-drawn standard elements.
智能交互平板当前处于手写模式。在书写区域检测到触控操作时,生成第一输入信号,并根据第一输入信号实时确定本次写入过程是否结束。图5为智能交互平板的第三显示界面示意图。参考图5,接收第一输入信号后,在智能交互平板中显示用户写入轨迹,即第一元素21。此时,可以确定第一元素21的显示层级高于第二元素22和第三元素23的显示层级。同时,第一元素21的至少一个坐标与第二元素22的至少一个坐标重合。此时,自动建立第一元素21和第二元素22的组合关系,并显示组合元素框24。The smart interactive tablet is currently in handwriting mode. When the touch operation is detected in the writing area, the first input signal is generated, and the current input process is determined to be completed according to the first input signal. FIG. 5 is a schematic diagram of a third display interface of the smart interaction tablet. Referring to FIG. 5, after receiving the first input signal, the user write track, that is, the first element 21 is displayed in the smart interaction tablet. At this time, it may be determined that the display level of the first element 21 is higher than the display levels of the second element 22 and the third element 23. At the same time, at least one coordinate of the first element 21 coincides with at least one coordinate of the second element 22. At this time, the combination relationship of the first element 21 and the second element 22 is automatically established, and the combined element frame 24 is displayed.
在一实施例中,接收第一控制指令,其中,第一控制指令作用于第二元素,且第一控制指令为第一移动指令,在一实施例中,触控方式为:拖拽第二元素的非边界位置。此时,根据第一控制指令同步移动第二元素和第一元素。图6为智能交互平板的第四显示界面示意图。参考图6,第二元素22和第一元素21根据第一控制指令移动到了第一位置和第二位置。In an embodiment, the first control instruction is received, wherein the first control instruction acts on the second element, and the first control instruction is the first movement instruction. In an embodiment, the touch mode is: dragging the second The non-boundary position of the element. At this time, the second element and the first element are synchronously moved according to the first control instruction. FIG. 6 is a schematic diagram of a fourth display interface of the smart interaction tablet. Referring to FIG. 6, the second element 22 and the first element 21 are moved to the first position and the second position in accordance with the first control instruction.
在一实施例中,接收第二控制指令,其中,第二控制指令作用于第一元素,且第二控制指令为移动指令,在一实施例中,触控方式为:拖拽第一元素的非边界位置。此时,根据第二控制指令取消第一元素和第二元素的组合关系,并移动第一元素。图7为智能交互平板的第五显示界面示意图,参考图7,删除组合元素框24,并将第一元素21根据第二控制指令移动至第三位置。此时,第一元素21的至少一个坐标与第三元素23的至少一个坐标重合。在一实施例中,智能交互平板自动建立第一元素21和第三元素23的组合关系,或者是,当确定用户点击第三元素23后,查找与第三元素23具有至少一个坐标重合关系的第一元素21,并建立第一元素21和第三元素23的组合关系。此时,在智能交互平板中显示组合元素框25,该组合元素框25包含第一元素21和第三元素23。In an embodiment, the second control instruction is received, wherein the second control instruction acts on the first element, and the second control instruction is a movement instruction. In an embodiment, the touch mode is: dragging the first element Non-boundary position. At this time, the combination relationship of the first element and the second element is canceled according to the second control instruction, and the first element is moved. 7 is a schematic diagram of a fifth display interface of the smart interaction tablet. Referring to FIG. 7, the combination element frame 24 is deleted, and the first element 21 is moved to the third position according to the second control instruction. At this time, at least one coordinate of the first element 21 coincides with at least one coordinate of the third element 23. In an embodiment, the smart interaction tablet automatically establishes a combination relationship between the first element 21 and the third element 23, or, after determining that the user clicks on the third element 23, the search has at least one coordinate coincidence relationship with the third element 23. The first element 21, and establishes a combination relationship of the first element 21 and the third element 23. At this time, the combined element frame 25 is displayed in the smart interactive tablet, and the combined element frame 25 includes the first element 21 and the third element 23.
在一实施例中,接收第三控制指令,其中,第三控制指令作用于第三元素,且第三控制 指令为缩放执行,在一实施例中,触控方式为:拖拽元素控制框25的边界位置。此时,根据第三控制指令确定第一元素的第四位置和第三元素的第五位置,并将第一元素和第三元素分别调整至第四位置和第五位置。图8为智能交互平板的第六显示界面示意图。图8示出了第一元素21和第三元素23根据第三控制指令调整位置后的显示界面示意图。In an embodiment, the third control instruction is received, wherein the third control instruction acts on the third element, and the third control instruction is zooming execution. In an embodiment, the touch mode is: dragging the element control box 25 The location of the border. At this time, the fourth position of the first element and the fifth position of the third element are determined according to the third control instruction, and the first element and the third element are respectively adjusted to the fourth position and the fifth position. FIG. 8 is a schematic diagram of a sixth display interface of the smart interaction tablet. FIG. 8 is a schematic diagram showing a display interface after the first element 21 and the third element 23 are adjusted according to the third control command.
本实施例提供的技术方案,通过根据第二输入信号,显示第二元素,根据第三输入信号,显示第三元素,根据第一输入信号,显示第一元素,其中,第一元素与第二元素间存在位置重合的至少一个坐标,此时,建立第一元素和第二元素的组合关系,并在接收到针对第二元素的第一控制指令时,同步调整第一元素和第二元素,在接收到针对第一元素的第二控制指令时,仅调整第一元素,如果调整后第一元素与第三元素间存在位置重合的至少一个坐标,此时,建立第一元素和第三元素的组合关系,并在接收到针对第三元素的第三控制指令时,同步调整第三元素和第一元素的技术手段,解决了在书写及绘图场景下,同步控制至少两个元素的实现过程过于繁琐的问题,自动建立两个元素间的组合关系,无需用户手动选择元素并选定组合选项,简化了用户操作,同时,可以根据用户对元素的控制指令,自动取消元素间的组合关系,无需用户执行取消组合的操作,使得控制元素的方式更加简洁、灵活,提升了用户的使用体验。The technical solution provided by the embodiment, by displaying the second element according to the second input signal, displaying the third element according to the third input signal, and displaying the first element according to the first input signal, wherein the first element and the second element Between the elements, there is at least one coordinate that coincides with the position. At this time, a combination relationship between the first element and the second element is established, and when the first control instruction for the second element is received, the first element and the second element are synchronously adjusted. When receiving the second control instruction for the first element, only the first element is adjusted, and if at least one coordinate of the position between the first element and the third element is adjusted after the adjustment, at this time, the first element and the third element are established. The combination relationship, and the third method of adjusting the third element and the first element when receiving the third control instruction for the third element, solves the realization process of synchronously controlling at least two elements in the writing and drawing scene Too cumbersome problem, automatically establish a combination relationship between two elements, without the user to manually select elements and select combination options, simplifying user operations Meanwhile, according to user control command elements, automatic ungroup the relationship between the elements, without the user performs an operation to cancel a combination of such elements controlled more simple, flexible, and enhance the user experience.
在上述实施例的基础上,考虑到智能交互平板默认建立第二元素与第一元素的组合关系,如果存在其他的元素,且该元素的至少一个坐标与第一元素的至少一个坐标重合,那么,可能存在用户期望建立该元素与第一元素和第二元素的组合关系,即建立多个元素间的组合关系。有鉴于此,实施例中设定,接收第一控制指令之前,还包括:接收元素选定指令,元素选定指令用于选定已显示的第四元素,第四元素的显示层级低于第二元素的显示层级,第四元素的至少一个坐标与第一元素的至少一个坐标重合。在一实施例中,将第一元素调整至第一位置,同步将第二元素调整至第二位置时,还包括:将第四元素调整至第六位置,第六位置根据第一控制指令确定。On the basis of the foregoing embodiment, considering that the smart interaction panel establishes a combination relationship between the second element and the first element by default, if there are other elements, and at least one coordinate of the element coincides with at least one coordinate of the first element, then There may be a combination relationship between the first element and the second element that the user desires to establish, that is, a combination relationship between the multiple elements. In view of this, in the embodiment, before receiving the first control instruction, the method further includes: receiving an element selection instruction, the element selection instruction is used to select the displayed fourth element, and the display level of the fourth element is lower than the first The display level of the two elements, at least one coordinate of the fourth element coincides with at least one coordinate of the first element. In an embodiment, adjusting the first element to the first position and synchronously adjusting the second element to the second position further comprises: adjusting the fourth element to the sixth position, the sixth position being determined according to the first control instruction .
在一实施例中,元素选定指令是用于选定已显示元素的指令,其选定的元素限定为显示层级低于第二元素的显示层级,且至少一个坐标与第一元素的至少一个坐标重合。在一实施例中,选定的元素与第二元素的坐标交集可以为空。在一实施例中,将元素选定指令选定的元素记为第四元素,即元素选定指令用于选定已显示的第四元素。在实际应用中,第四元素的显示层级也可以高于第一元素。在一实施例中,元素选定指令的接收方式实施例不作限定,例如,确定第四元素所在的显示位置接收到点击操作后,确定接收到元素选定指令。又如,确定第四元素所在的显示位置接收到长按操作后,确定接收到元素选定指令。In an embodiment, the element selection instruction is an instruction for selecting a displayed element, the selected element of which is defined as a display level lower than a display level of the second element, and at least one coordinate and at least one of the first element Coordinates coincide. In an embodiment, the intersection of the coordinates of the selected element and the second element may be empty. In one embodiment, the element selected by the element selection instruction is recorded as the fourth element, ie, the element selection instruction is used to select the fourth element that has been displayed. In practical applications, the display level of the fourth element may also be higher than the first element. In an embodiment, the receiving mode embodiment of the element selection instruction is not limited. For example, after determining that the display position where the fourth element is located receives the click operation, it is determined that the element selection instruction is received. For another example, after determining that the display position where the fourth element is located receives the long press operation, it is determined that the element selection instruction is received.
示例性的,智能交互平板在接收到元素选定指令后,建立第四元素和第一元素及第二元素的组合关系。在一实施例中,建立组合关系后,显示组合元素框,该组合元素框为包含第四元素、第一元素及第二元素的最小矩形框。此时,当接收到第一控制指令时,确定第一控制指令同时控制第一元素、第二元素以及第四元素,即在确定第一位置和第二位置时,同步确定第四元素调整后的第六位置。其中,第六位置的计算方式与第一位置和第二位置的计算方式相同,在此不作赘述。在一实施例中,在确定第六位置后,同步调整第一元素、第二元素和第四元素,以将第一元素调整至第一位置、第二元素调整至第二位置、第四元素调整至第六位置。在实际应用中,当第四元素的显示位置接收到与第一控制指令相同的触控操作时,也可以默认接收到第一控制指令,即第一控制指令可以针对第二元素,也可以针对第四元素。Exemplarily, after receiving the element selection instruction, the smart interaction tablet establishes a combination relationship between the fourth element and the first element and the second element. In an embodiment, after the combination relationship is established, a combined element frame is displayed, and the combined element frame is a minimum rectangular frame including the fourth element, the first element, and the second element. At this time, when receiving the first control instruction, determining that the first control instruction simultaneously controls the first element, the second element, and the fourth element, that is, when determining the first position and the second position, synchronously determining that the fourth element is adjusted The sixth position. The sixth position is calculated in the same manner as the first position and the second position, and is not described herein. In an embodiment, after determining the sixth position, the first element, the second element, and the fourth element are synchronously adjusted to adjust the first element to the first position, the second element to the second position, and the fourth element Adjust to the sixth position. In a practical application, when the display position of the fourth element receives the same touch operation as the first control instruction, the first control instruction may also be received by default, that is, the first control instruction may be for the second element, or may be The fourth element.
在实际应用中,还可以设定接收到元素选定指令后,自动取消第一元素及第二元素的组合关系,并建立第一元素与第四元素的组合关系。这样做的好处是,无需调整第四元素的显示层级顺序,便可以建立第四元素和第一元素的组合关系。In an actual application, it is also possible to automatically cancel the combination relationship between the first element and the second element after receiving the element selection instruction, and establish a combination relationship between the first element and the fourth element. The advantage of this is that the combination of the fourth element and the first element can be established without adjusting the display hierarchy order of the fourth element.
实施例三Embodiment 3
图9为本公开实施例三提供的一种元素控制装置的结构示意图。参考图9,该元素控制装置包括:第一接收模块310、第一显示模块320、第二接收模块330、第一调整模块340、第三接收模块350、第二调整模块360。FIG. 9 is a schematic structural diagram of an element control apparatus according to Embodiment 3 of the present disclosure. Referring to FIG. 9 , the element control device includes: a first receiving module 310 , a first display module 320 , a second receiving module 330 , a first adjusting module 340 , a third receiving module 350 , and a second adjusting module 360 .
其中,第一接收模块310,设置为接收第一输入信号;第一显示模块320,设置为显示第一元素,第一元素根据第一输入信号确定;第二接收模块330,设置为接收第一控制指令,第一控制指令作用于在第一元素显示之前已显示的第二元素,第二元素的至少一个坐标与第一元素的至少一个坐标重合;第一调整模块340,设置为根据第一控制指令将第一元素调整至第一位置,同步将第二元素调整至第二位置;第三接收模块350,设置为接收第二控制指令,第二控制指令作用于第一元素;第二调整模块360,设置为根据第二控制指令将第一元素调整至第三位置。The first receiving module 310 is configured to receive the first input signal, the first display module 320 is configured to display the first element, the first element is determined according to the first input signal, and the second receiving module 330 is configured to receive the first a control instruction, the first control instruction acts on the second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element; the first adjustment module 340 is configured to be according to the first The control instruction adjusts the first element to the first position, and synchronously adjusts the second element to the second position; the third receiving module 350 is configured to receive the second control instruction, the second control instruction acts on the first element; The module 360 is configured to adjust the first element to the third position according to the second control instruction.
本实施例提供的技术方案,通过显示根据第一输入信号确定的第一元素,并在接收到第一控制指令,该第一控制指令作用于与第一元素的至少一个坐标重合的第二元素时,根据第一控制指令同步调整第一元素和第二元素,在接收到作用于第一元素的第二控制指令时,根据第二控制指令调整第一元素,而保持第二元素位置不变的技术手段,解决了在书写及绘图场景下,同步控制至少两个元素的实现过程过于繁琐的问题,无需用户手动建立两个元素间的组合关系,便可以实现同时对第一元素和第二元素的控制,同时,还可以单独控制元素,使得控制元素的方式更加简洁、灵活,提升了用户的使用体验。The technical solution provided by the embodiment, by displaying the first element determined according to the first input signal, and receiving the first control instruction, the first control instruction acts on the second element that coincides with at least one coordinate of the first element And synchronously adjusting the first element and the second element according to the first control instruction, and when receiving the second control instruction acting on the first element, adjusting the first element according to the second control instruction, while maintaining the second element position unchanged The technical means solves the problem that the implementation process of synchronously controlling at least two elements is too cumbersome in the writing and drawing scene, and the user can simultaneously realize the first element and the second at the same time without the user manually establishing a combination relationship between the two elements. The control of the elements, at the same time, can also control the elements separately, making the way of controlling the elements more concise and flexible, and improving the user experience.
在上述实施例的基础上,该装置还包括:第四接收模块,设置为接收第一输入信号之前,接收第二输入信号;第二显示模块,设置为显示第二元素,第二元素根据第二输入信号确定。Based on the above embodiment, the apparatus further includes: a fourth receiving module configured to receive the second input signal before receiving the first input signal; and the second display module configured to display the second element, the second element according to the The two input signals are determined.
在上述实施例的基础上,第一元素的显示层级高于第二元素的显示层级。On the basis of the above embodiments, the display level of the first element is higher than the display level of the second element.
在上述实施例的基础上,该装置还包括:第五接收模块,设置为将第一元素调整至第三位置之后,接收第三控制指令,第三控制指令作用于在第一元素显示之前已显示的第三元素,第三元素的至少一个坐标与第一元素的至少一个坐标重合;第三调整模块,设置为根据第三控制指令将第一元素调整至第四位置。On the basis of the above embodiment, the apparatus further includes: a fifth receiving module, configured to receive the third control instruction after adjusting the first element to the third position, the third control instruction acting before the first element is displayed The displayed third element, at least one coordinate of the third element coincides with at least one coordinate of the first element; and the third adjustment module is configured to adjust the first element to the fourth position according to the third control instruction.
在上述实施例的基础上,该装置还包括:第六接收模块,设置为在接收第一输入信号之前,接收第三输入信号;第三显示模块,设置为显示第三元素,第三元素根据第三输入信号确定。Based on the above embodiment, the apparatus further includes: a sixth receiving module, configured to receive a third input signal before receiving the first input signal; and a third display module configured to display the third element, the third element is configured according to The third input signal is determined.
在上述实施例的基础上,该装置还包括:元素集合建立模块,设置为在接收第三控制指令之前,建立元素集合,元素集合包含显示层级小于所述第一元素的全部已显示的元素;元素查找模块,设置为在元素集合中查找第三元素。在一实施例中,第三元素的至少一个坐标与第一元素的至少一个坐标重合。On the basis of the foregoing embodiment, the apparatus further includes: an element set establishing module, configured to: before receiving the third control instruction, establish a set of elements, wherein the set of elements includes all displayed elements whose display level is smaller than the first element; An element lookup module, set to look for a third element in a collection of elements. In an embodiment, at least one coordinate of the third element coincides with at least one coordinate of the first element.
在上述实施例的基础上,第三元素的个数为至少两个,所述装置还包括:元素选择模块,设置为查找第三元素之后,选择至少两个所述第三元素中显示层级最高的第三元素。On the basis of the foregoing embodiment, the number of the third elements is at least two, and the device further includes: an element selection module, configured to select the third display element, select at least two of the third elements to display the highest level The third element.
在上述实施例的基础上,该装置还包括:第七接收模块,设置为接收第一控制指令之前,接收元素选定指令,元素选定指令用于选定在第一元素显示之前已显示的第四元素,第四元素的显示层级低于第二元素的显示层级,第四元素的至少一个坐标与第一元素的至少一个坐标重合;第一调整模块340是设置为:在将第一元素调整至第一位置,同步将第二元素调整至第二位置的同时,根据第一控制指令将第四元素调整至第六位置。在一实施例中,第六位置根据第一控制指令确定。Based on the above embodiment, the apparatus further includes: a seventh receiving module configured to receive an element selection instruction before the first control instruction is received, and the element selection instruction is used to select the display that is displayed before the first element is displayed. a fourth element, the display level of the fourth element is lower than the display level of the second element, and at least one coordinate of the fourth element coincides with at least one coordinate of the first element; the first adjustment module 340 is configured to: Adjusting to the first position, while adjusting the second element to the second position, the fourth element is adjusted to the sixth position according to the first control instruction. In an embodiment, the sixth position is determined in accordance with the first control command.
在上述实施例的基础上,第一元素为用户写入轨迹,第二元素为计算机绘制标准元素;或,第一元素为计算机绘制标准元素,第二元素为用户写入轨迹;或,第一元素和第二元素均为计算机绘制标准元素。On the basis of the above embodiment, the first element is a user write track, the second element is a computer drawing standard element; or the first element is a computer drawing standard element, and the second element is a user writing track; or, the first Both the element and the second element are standard elements drawn by the computer.
在上述实施例的基础上,用户写入轨迹包括至少两条子轨迹;任意两条写入顺序相邻的子轨迹间的写入时长间隔在设定时长间隔内,和/或,任意两条写入顺序相邻的子轨迹间的轨迹距离在设定距离范围内。On the basis of the above embodiment, the user write track includes at least two sub-tracks; the write duration interval between any two adjacent write sub-tracks is within a set time interval, and/or any two writes The track distance between the adjacent sub-tracks in the order is within the set distance.
在上述实施例的基础上,用户写入轨迹的起始位置坐标在计算机绘制标准元素的坐标范围内。On the basis of the above embodiment, the coordinates of the starting position of the user's written track are within the coordinate range of the computer drawing standard elements.
在上述实施例的基础上,计算机绘制标准元素包括:几何图形、图像、流程图、组织架构图以及电子表格中的至少一个。Based on the above embodiments, the computer drawing standard elements include at least one of a geometry, an image, a flowchart, an organization chart, and a spreadsheet.
在上述实施例的基础上,该装置还包括:组合建立模块,设置为接收第一控制指令之前,建立第一元素与第二元素的组合关系。Based on the above embodiment, the apparatus further includes: a combination establishing module configured to establish a combination relationship between the first element and the second element before receiving the first control instruction.
在上述实施例的基础上,该装置还包括:组合框显示模块,设置为建立第一元素与第二元素的组合关系之后,显示组合元素框,组合元素框用于指示第一元素和第二元素组合后的覆盖区域。On the basis of the above embodiment, the device further includes: a combo box display module, configured to establish a combination relationship between the first element and the second element, and display a combined element frame, the combination element box is used to indicate the first element and the second element The coverage area after the elements are combined.
在上述实施例的基础上,第二元素为至少两个;组合建立模块包括:元素确定单元,设置为在至少两个第二元素中,确认最高显示层级的第二元素;关系建立单元,设置为建立第一元素与最高显示层级的第二元素的组合关系。On the basis of the foregoing embodiment, the second element is at least two; the combination establishing module includes: an element determining unit, configured to confirm the second element of the highest display level among the at least two second elements; the relationship establishing unit, setting To establish a combination of the first element and the second element of the highest display level.
在上述实施例的基础上,第三接收模块350是设置为:接收第二控制指令,取消第一元素和第二元素的组合关系。Based on the foregoing embodiment, the third receiving module 350 is configured to: receive the second control instruction, and cancel the combination relationship between the first element and the second element.
在上述实施例的基础上,第一控制指令包括:第一移动指令、第一缩放指令以及第一旋转指令中的至少一种;第二控制指令包括:第二移动指令、第二缩放指令以及第二旋转指令中的至少一种。On the basis of the foregoing embodiment, the first control instruction includes: at least one of a first movement instruction, a first scaling instruction, and a first rotation instruction; and the second control instruction includes: a second movement instruction, a second scaling instruction, and At least one of the second rotation instructions.
本实施例提供的元素控制装置集成在元素控制设备中,且可以用于执行上述任意实施例提供的元素控制方法,具备相应的功能和效果。The element control device provided in this embodiment is integrated in the element control device, and can be used to execute the element control method provided by any of the above embodiments, and has corresponding functions and effects.
实施例四Embodiment 4
图10为本公开实施例四提供的一种元素控制设备的结构示意图。该元素控制设备包括:处理器40、存储器41、具有触摸功能的显示屏42、输入装置43、输出装置44以及通信装置45。该批注显示设备中处理器40的数量可以是一个或者多个,图10中以一个处理器40为例。该元素控制设备中存储器41的数量可以是一个或者多个,图10中以一个存储器41为例。该元素控制设备的处理器40、存储器41、显示屏42、输入装置43、输出装置44以及通信装置45可以通过总线或者其他方式连接,图10中以通过总线连接为例。实施例中,元素控制设备可以是电脑,手机,平板,投影仪或交互智能平板等。实施例中,以元素控制设备为交互智能平板为例,进行描述。FIG. 10 is a schematic structural diagram of an element control device according to Embodiment 4 of the present disclosure. The element control device includes a processor 40, a memory 41, a display screen 42 having a touch function, an input device 43, an output device 44, and a communication device 45. The number of processors 40 in the annotation display device may be one or more, and one processor 40 is taken as an example in FIG. The number of memories 41 in the element control device may be one or more, and one memory 41 is taken as an example in FIG. The processor 40, the memory 41, the display screen 42, the input device 43, the output device 44, and the communication device 45 of the element control device may be connected by a bus or other means, as exemplified by a bus connection in FIG. In an embodiment, the element control device may be a computer, a mobile phone, a tablet, a projector, or an interactive smart tablet. In the embodiment, the description is made by taking an element control device as an interactive smart tablet as an example.
存储器41作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本公开任意实施例所述的元素控制方法对应的程序指令/模块(例如,元素控制装置中的第一接收模块310、第一显示模块320、第二接收模块330、第一调整模块340、第三接收模块350以及第二调整模块360)。存储器41可包括存储程序区和存储数据区,其中,存 储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器41可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器41可还包括相对于处理器40远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 41 is a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a program instruction/module corresponding to the element control method according to any embodiment of the present disclosure (for example, in an element control device) The first receiving module 310, the first display module 320, the second receiving module 330, the first adjusting module 340, the third receiving module 350, and the second adjusting module 360). The memory 41 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the device, and the like. Further, the memory 41 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some examples, memory 41 may further include memory remotely located relative to processor 40, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
显示屏42为具有触摸功能的显示屏42,其可以是电容屏、电磁屏或者红外屏。一般而言,显示屏42设置为根据处理器40的指示显示数据,还设置为接收作用于显示屏42的触摸操作,并将相应的信号发送至处理器40或其他装置。在一实施例中,当显示屏42为红外屏时,其还包括红外触摸框,该红外触摸框设置在显示屏42的四周,其还可以用于接收红外信号,并将该红外信号发送至处理器40或者其他设备。The display screen 42 is a display screen 42 having a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen. In general, display screen 42 is configured to display data in accordance with instructions from processor 40, and is also configured to receive touch operations on display screen 42 and to transmit corresponding signals to processor 40 or other device. In an embodiment, when the display screen 42 is an infrared screen, it further includes an infrared touch frame disposed around the display screen 42 , which can also be used to receive an infrared signal and send the infrared signal to Processor 40 or other device.
通信装置45,设置为与其他设备建立通信连接,其可以是有线通信装置和/或无线通信装置。The communication device 45 is arranged to establish a communication connection with other devices, which may be a wired communication device and/or a wireless communication device.
输入装置43可设置为接收输入的数字或者字符信息,以及产生与元素控制设备的用户设置以及功能控制有关的键信号输入,还可以是设置为获取图像的摄像头以及获取音频数据的拾音设备。输出装置44可以包括扬声器等音频设备。输入装置43和输出装置44的组成可以根据实际情况设定。The input device 43 may be configured to receive input digital or character information, and to generate key signal input related to user settings and function control of the element control device, and may also be a camera set to acquire an image and a sound pickup device that acquires audio data. Output device 44 may include an audio device such as a speaker. The composition of the input device 43 and the output device 44 can be set according to actual conditions.
处理器40通过运行存储在存储器41中的软件程序、指令以及模块,从而执行设备的一种或多种功能应用以及数据处理,即实现上述的元素控制方法。The processor 40 executes one or more of the functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory 41, that is, implementing the element control method described above.
在一实施例中,当所述一个或多个程序被所述一个或多个处理器40执行,使得所述一个或多个处理器40实现如下操作:In an embodiment, when the one or more programs are executed by the one or more processors 40, the one or more processors 40 implement the following operations:
接收第一输入信号;Receiving a first input signal;
指示显示屏42显示第一元素,第一元素根据第一输入信号确定;Instructing display screen 42 to display a first element, the first element being determined according to the first input signal;
接收第一控制指令,第一控制指令作用于在第一元素显示之前已显示的第二元素,第二元素的至少一个坐标与第一元素的至少一个坐标重合;Receiving a first control instruction, the first control instruction acts on a second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element;
指示显示屏42根据第一控制指令将所述第一元素调整至第一位置,同步将第二元素调整至第二位置;The indication display screen 42 adjusts the first element to the first position according to the first control instruction, and synchronously adjusts the second element to the second position;
接收第二控制指令,第二控制指令作用于第一元素;Receiving a second control instruction, the second control instruction acting on the first element;
指示显示屏42根据第二控制指令将第一元素调整至第三位置。The display screen 42 adjusts the first element to the third position in accordance with the second control command.
在上述实施例的基础上,当一个或多个程序被一个或多个处理器40执行,使得一个或多 个处理器40实现接收第一输入信号之前,还用于实现:Based on the above-described embodiments, when one or more programs are executed by one or more processors 40, such that one or more processors 40 are implemented to receive the first input signal, they are also used to:
接收第二输入信号;Receiving a second input signal;
指示显示屏42显示第二元素,第二元素根据第二输入信号确定。The display screen 42 displays a second element that is determined based on the second input signal.
在上述实施例的基础上,第一元素的显示层级高于第二元素的显示层级。On the basis of the above embodiments, the display level of the first element is higher than the display level of the second element.
在上述实施例的基础上,当一个或多个程序被一个或多个处理器40执行,使得一个或多个处理器40实现将第一元素调整至第三位置之后,还用于实现:On the basis of the above-described embodiments, when one or more programs are executed by one or more processors 40, such that one or more processors 40 implement the adjustment of the first element to the third position, it is also used to implement:
接收第三控制指令,第三控制指令作用于在第一元素显示之前已显示的第三元素,第三元素的至少一个坐标与第一元素的至少一个坐标重合;Receiving a third control instruction, the third control instruction acts on a third element that has been displayed before the first element is displayed, and at least one coordinate of the third element coincides with at least one coordinate of the first element;
指示显示屏42根据第三控制指令将第一元素调整至第四位置,同步将第三元素调整至第五位置。The indication display screen 42 adjusts the first element to the fourth position according to the third control command, and synchronously adjusts the third element to the fifth position.
在上述实施例的基础上,当一个或多个程序被一个或多个处理器40执行,使得一个或多个处理器40实现接收第一输入信号之前,还用于实现:On the basis of the above-described embodiments, when one or more programs are executed by one or more processors 40, such that one or more processors 40 implement the reception of the first input signal, they are also used to:
接收第三输入信号;Receiving a third input signal;
指示显示屏42显示第三元素,第三元素根据第三输入信号确定。The display screen 42 displays a third element, which is determined based on the third input signal.
在上述实施例的基础上,当一个或多个程序被一个或多个处理器40执行,使得一个或多个处理器40实现接收第三控制指令之前,还用于实现:Based on the above-described embodiments, when one or more programs are executed by one or more processors 40, such that one or more processors 40 are implemented to receive the third control instructions, they are also used to:
建立元素集合,元素集合包含全部在第一元素显示之前已显示元素;Establishing a collection of elements that contain all of the elements that were displayed before the first element was displayed;
查找第三元素,第三元素在所述元素集合中,第三元素的至少一个坐标与第一元素的至少一个坐标重合。A third element is found, in which the at least one coordinate of the third element coincides with at least one coordinate of the first element.
在上述实施例的基础上,第三元素的个数为至少两个,当一个或多个程序被一个或多个处理器40执行,使得一个或多个处理器40实现查找第三元素之后,还用于实现:On the basis of the above embodiments, the number of third elements is at least two, and when one or more programs are executed by one or more processors 40, such that one or more processors 40 implement the lookup for the third element, Also used to achieve:
选择显示层级最高的第三元素。Select the third element with the highest display level.
在上述实施例的基础上,当一个或多个程序被一个或多个处理器40执行,使得一个或多个处理器实现接收第一控制指令之前,还用于实现:Based on the above-described embodiments, when one or more programs are executed by one or more processors 40, such that one or more processors are implemented to receive the first control instructions, they are also used to:
接收元素选定指令,元素选定指令用于选定在第一元素显示之前已显示的第四元素,第四元素的显示层级低于第二元素的显示层级,第四元素的至少一个坐标与第一元素的至少一个坐标重合;Receiving an element selection instruction, the element selection instruction is used to select a fourth element that is displayed before the first element is displayed, the display level of the fourth element is lower than the display level of the second element, and at least one coordinate of the fourth element is At least one coordinate of the first element coincides;
在一实施例中,处理器40在实现指示显示屏42将第一元素调整至第一位置,同步将第二元素调整至第二位置时,同步实现:In an embodiment, when the processor 40 is configured to instruct the display screen 42 to adjust the first element to the first position and synchronously adjust the second element to the second position, the synchronization is implemented:
根据第一控制指令将第四元素调整至第六位置,第六位置根据第一控制指令确定。The fourth element is adjusted to a sixth position according to the first control instruction, and the sixth position is determined according to the first control instruction.
在上述实施例的基础上,第一元素为用户写入轨迹,第二元素为计算机绘制标准元素;或,On the basis of the above embodiments, the first element is a user write track, and the second element is a computer drawing standard element; or
第一元素为计算机绘制标准元素,第二元素为用户写入轨迹;或,The first element draws a standard element for the computer, and the second element writes the track for the user; or,
第一元素和所述第二元素均为计算机绘制标准元素。The first element and the second element are both computer-drawn standard elements.
在上述实施例的基础上,用户写入轨迹包括至少两条子轨迹;任意两条写入顺序相邻的子轨迹间的写入时长间隔在设定时长间隔内,和/或,任意两条写入顺序相邻的子轨迹间的轨迹距离在设定距离范围内。On the basis of the above embodiment, the user write track includes at least two sub-tracks; the write duration interval between any two adjacent write sub-tracks is within a set time interval, and/or any two writes The track distance between the adjacent sub-tracks in the order is within the set distance.
在一实施例中,用户写入轨迹的起始位置坐标在计算机绘制标准元素的坐标范围内。In an embodiment, the coordinates of the starting position of the user's written trajectory are within the coordinate range of the computer-drawn standard elements.
在上述实施例的基础上,计算机绘制的标准元素包括:几何图形、图像、流程图、组织架构图以及电子表格中的至少一个。Based on the above embodiments, the computer-drawn standard elements include at least one of a geometry, an image, a flowchart, an organization chart, and a spreadsheet.
在上述实施例的基础上,当一个或多个程序被一个或多个处理器40执行,使得一个或多个处理器40实现接收第一控制指令之前,还用于实现:On the basis of the above-described embodiments, when one or more programs are executed by one or more processors 40, such that one or more processors 40 are implemented to receive the first control instructions, they are also used to implement:
建立所述第一元素与第二元素的组合关系。Establishing a combination relationship between the first element and the second element.
在一实施例中,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现建立第一元素与第二元素的组合关系之后,还用于实现:In an embodiment, when one or more programs are executed by one or more processors such that one or more processors implement a combination of the first element and the second element, the method is further implemented to:
指示显示屏42显示组合元素框,组合元素框用于指示第一元素和第二元素组合后的覆盖区域。The indication display screen 42 displays a combined element frame for indicating the coverage area after the combination of the first element and the second element.
在一实施例中,第二元素为至少两个;当一个或多个程序被一个或多个处理器40执行,使得一个或多个处理器40实现建立第一元素和第二元素的组合关系时实现:In an embodiment, the second element is at least two; when one or more programs are executed by one or more processors 40, causing one or more processors 40 to implement a combination of the first element and the second element Time to achieve:
在至少两个第二元素中,确认最高显示层级的第二元素;Identifying a second element of the highest display level among the at least two second elements;
建立第一元素与最高显示层级的第二元素的组合关系。Establish a combination of the first element and the second element of the highest display level.
在上述实施例的基础上,当一个或多个程序被所述一个或多个处理器执行,使得一个或多个处理器实现接收第二控制指令时,同步实现:On the basis of the above embodiments, when one or more programs are executed by the one or more processors such that one or more processors implement receiving the second control instructions, the synchronization is implemented:
取消第一元素和第二元素的组合关系。Cancel the combination of the first element and the second element.
在一实施例中,第一控制指令包括:第一移动指令、第一缩放指令以及第一旋转指令中的至少一种;第二控制指令包括:第二移动指令、第二缩放指令以及第二旋转指令中的至少一种。In an embodiment, the first control instruction includes: at least one of a first movement instruction, a first scaling instruction, and a first rotation instruction; and the second control instruction includes: a second movement instruction, a second scaling instruction, and a second At least one of the rotation instructions.
上述提供的元素控制设备可用于执行上述任意实施例提供的元素控制方法,具备相应的功能和效果。The element control device provided above can be used to perform the element control method provided by any of the above embodiments, and has corresponding functions and effects.
实施例五Embodiment 5
本公开实施例五还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种元素控制方法,包括:Embodiment 5 of the present disclosure also provides a storage medium including computer executable instructions for executing an element control method when executed by a computer processor, including:
接收第一输入信号;Receiving a first input signal;
显示第一元素,第一元素根据第一输入信号确定;Displaying a first element, the first element being determined according to the first input signal;
接收第一控制指令,第一控制指令作用于在第一元素显示之前已显示的第二元素,第二元素的至少一个坐标与第一元素的至少一个坐标重合;Receiving a first control instruction, the first control instruction acts on a second element that has been displayed before the first element is displayed, and at least one coordinate of the second element coincides with at least one coordinate of the first element;
根据第一控制指令将第一元素调整至第一位置,同步将第二元素调整至第二位置;Adjusting the first element to the first position according to the first control instruction, and synchronously adjusting the second element to the second position;
接收第二控制指令,第二控制指令作用于第一元素;Receiving a second control instruction, the second control instruction acting on the first element;
根据第二控制指令将第一元素调整至第三位置。The first element is adjusted to the third position according to the second control instruction.
本公开实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的元素控制方法操作,还可以执行本公开任意实施例所提供的元素控制方法中的相关操作,且具备相应的功能和效果。A storage medium containing computer executable instructions, the computer executable instructions are not limited to the element control method operations as described above, and may also be executed in the element control method provided by any embodiment of the present disclosure. Related operations, and have the corresponding functions and effects.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本公开可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现。本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括多个指令用以使得一台计算机设备(可以是机器人,个人计算机,服务器,或者网络设备等)执行本公开任意实施例所述的元素控制方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the present disclosure can be implemented by software and necessary general hardware, and of course, can also be implemented by hardware. The technical solution of the present disclosure may be embodied in the form of a software product in essence or in a form of a software product, which may be stored in a computer readable storage medium such as a floppy disk of a computer, a read only memory (Read -Only Memory, ROM), Random Access Memory (RAM), Flash (FLASH), hard disk or CD, etc., including multiple instructions to make a computer device (can be a robot, a personal computer, a server, Or a network device or the like) performs the element control method described in any of the embodiments of the present disclosure.
上述元素控制装置中,所包括的多个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,每个功能单元的名称也只是为了便于相互区分,并不用于限制本公开的保护范围。本公开可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,可用下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(Programmable Gate Array,PGA),现场可编程门阵列(Field-Programmable Gate Array,FPGA)等。In the above element control device, the plurality of units and modules included are only divided according to functional logic, but are not limited to the above-described division, as long as the corresponding functions can be implemented; in addition, the name of each functional unit is only In order to facilitate mutual differentiation, it is not intended to limit the scope of the disclosure. The present disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, it can be implemented by any one of the following techniques or a combination thereof: discrete logic circuits with logic gates for implementing logic functions on data signals, dedicated to appropriate combinational logic gates Integrated circuits, Programmable Gate Array (PGA), Field-Programmable Gate Array (FPGA), etc.

Claims (36)

  1. 一种元素控制方法,包括:An element control method, including:
    接收第一输入信号;Receiving a first input signal;
    显示第一元素,所述第一元素根据所述第一输入信号确定;Displaying a first element, the first element being determined according to the first input signal;
    接收第一控制指令,所述第一控制指令作用于在所述第一元素显示之前已显示的第二元素,所述第二元素的至少一个坐标与所述第一元素的至少一个坐标重合;Receiving a first control instruction, the first control instruction acting on a second element that has been displayed before the first element is displayed, at least one coordinate of the second element being coincident with at least one coordinate of the first element;
    根据所述第一控制指令将所述第一元素调整至第一位置,同步将所述第二元素调整至第二位置;Adjusting the first element to a first position according to the first control instruction, and synchronously adjusting the second element to a second position;
    接收第二控制指令,所述第二控制指令作用于所述第一元素;Receiving a second control instruction, the second control instruction acting on the first element;
    根据所述第二控制指令将所述第一元素调整至第三位置。Adjusting the first element to a third position according to the second control instruction.
  2. 根据权利要求1所述的方法,在所述接收第一输入信号之前,包括:The method of claim 1, before the receiving the first input signal, comprising:
    接收第二输入信号;Receiving a second input signal;
    显示第二元素,所述第二元素根据所述第二输入信号确定。A second element is displayed, the second element being determined based on the second input signal.
  3. 根据权利要求1所述的方法,其中,所述第一元素的显示层级高于所述第二元素的显示层级。The method of claim 1 wherein the display level of the first element is higher than the display level of the second element.
  4. 根据权利要求1所述的方法,在所述将所述第一元素调整至第三位置之后,包括:The method according to claim 1, after the adjusting the first element to the third position, comprising:
    接收第三控制指令,所述第三控制指令作用于在所述第一元素显示之前已显示的第三元素,所述第三元素的至少一个坐标与所述第一元素的至少一个坐标重合;Receiving a third control instruction, the third control instruction acting on a third element that has been displayed before the first element is displayed, at least one coordinate of the third element being coincident with at least one coordinate of the first element;
    根据所述第三控制指令将所述第一元素调整至第四位置,同步将所述第三元素调整至第五位置。Adjusting the first element to a fourth position according to the third control instruction, and synchronously adjusting the third element to a fifth position.
  5. 根据权利要求4所述的方法,在所述接收第一输入信号之前,还包括:The method of claim 4, before the receiving the first input signal, further comprising:
    接收第三输入信号;Receiving a third input signal;
    显示所述第三元素,所述第三元素根据所述第三输入信号确定。The third element is displayed, the third element being determined according to the third input signal.
  6. 根据权利要求4所述的方法,在所述接收第三控制指令之前,包括:The method according to claim 4, before the receiving the third control instruction, comprising:
    建立元素集合,所述元素集合包含显示层级小于所述第一元素的全部已显示的元素;Establishing a collection of elements, the set of elements comprising all of the displayed elements having a display hierarchy that is smaller than the first element;
    在所述元素集合中查找所述第三元素。Finding the third element in the set of elements.
  7. 根据权利要求6所述的方法,其中,所述第三元素的个数为至少两个;The method according to claim 6, wherein the number of the third elements is at least two;
    在查找所述第三元素之后,还包括:After looking up the third element, it also includes:
    选择至少两个所述第三元素中显示层级最高的第三元素。A third element having the highest display level among at least two of the third elements is selected.
  8. 根据权利要求3所述的方法,在所述接收第一控制指令之前,还包括:The method according to claim 3, before the receiving the first control instruction, further comprising:
    接收元素选定指令,所述元素选定指令用于选定在所述第一元素显示之前已显示的第四 元素,所述第四元素的显示层级低于所述第二元素的显示层级,所述第四元素的至少一个坐标与所述第一元素的至少一个坐标重合;Receiving an element selection instruction for selecting a fourth element that has been displayed before the first element is displayed, the fourth element having a display level lower than a display level of the second element, At least one coordinate of the fourth element coincides with at least one coordinate of the first element;
    所述根据所述第一控制指令将所述第一元素调整至第一位置,同步将所述第二元素调整至第二位置时,包括:The adjusting the first element to the first position according to the first control instruction, and when the second element is synchronously adjusted to the second position, includes:
    根据所述第一控制指令将所述第四元素调整至第六位置。The fourth element is adjusted to a sixth position according to the first control instruction.
  9. 根据权利要求1所述的方法,其中,所述第一元素和所述第二元素分别包括下述之一:The method of claim 1 wherein said first element and said second element each comprise one of:
    所述第一元素为用户写入轨迹,所述第二元素为计算机绘制标准元素;The first element is a user write track, and the second element is a computer drawing standard element;
    所述第一元素为计算机绘制标准元素,所述第二元素为用户写入轨迹;The first element is a computer drawing standard element, and the second element is a user writing track;
    所述第一元素和所述第二元素均为计算机绘制标准元素。The first element and the second element are both computer-drawn standard elements.
  10. 根据权利要求9所述的方法,其中,所述用户写入轨迹包括至少两条子轨迹;The method of claim 9, wherein the user write track comprises at least two sub-tracks;
    其中,所述至少两条子轨迹满足下述至少一项:Wherein the at least two sub-tracks satisfy at least one of the following:
    任意两条写入顺序相邻的子轨迹间的写入时长间隔在设定时长间隔内;The write duration interval between adjacent sub-tracks of any two write sequences is within a set time interval;
    任意两条写入顺序相邻的子轨迹间的轨迹距离在设定距离范围内。The track distance between the sub-tracks adjacent to any two write sequences is within the set distance.
  11. 根据权利要求10所述的方法,其中,所述用户写入轨迹的起始位置坐标在所述计算机绘制标准元素的坐标范围内。The method of claim 10, wherein the starting position coordinates of the user-written trajectory are within a coordinate range of the computer-drawn standard element.
  12. 根据权利要求9所述的方法,其中,所述计算机绘制标准元素包括以下至少之一:几何图形、图像、流程图、组织架构图以及电子表格。The method of claim 9, wherein the computer-drawn standard elements comprise at least one of: a geometry, an image, a flowchart, an organizational chart, and a spreadsheet.
  13. 根据权利要求1所述的方法,在所述接收第一控制指令之前,还包括:The method of claim 1, before the receiving the first control instruction, further comprising:
    建立所述第一元素与所述第二元素的组合关系。Establishing a combined relationship between the first element and the second element.
  14. 根据权利要求13所述的方法,在所述建立所述第一元素与第二元素的组合关系之后,还包括:The method of claim 13, after the establishing the combination relationship between the first element and the second element, further comprising:
    显示组合元素框,所述组合元素框用于指示所述第一元素和所述第二元素组合后的覆盖区域。A combined element frame is displayed, the combined element box is used to indicate a coverage area after the combination of the first element and the second element.
  15. 根据权利要求13所述的方法,其中,所述第二元素为至少两个;The method of claim 13 wherein said second element is at least two;
    所述建立所述第一元素和所述第二元素的组合关系包括:The establishing a combination relationship between the first element and the second element includes:
    在至少两个所述第二元素中,确认最高显示层级的第二元素;Identifying, in at least two of the second elements, a second element of a highest display level;
    建立所述第一元素与所述最高显示层级的第二元素的组合关系。Establishing a combined relationship between the first element and the second element of the highest display level.
  16. 根据权利要求13所述的方法,其中,所述接收第二控制指令,包括:The method of claim 13 wherein said receiving said second control instruction comprises:
    取消所述第一元素和所述第二元素的组合关系。The combination relationship of the first element and the second element is cancelled.
  17. 根据权利要求1-16中任一项所述的方法,其中,所述第一控制指令包括下述至少一 项:第一移动指令、第一缩放指令以及第一旋转指令中;所述第二控制指令包括下述至少一项:第二移动指令、第二缩放指令以及第二旋转指令。The method according to any one of claims 1 to 16, wherein the first control instruction comprises at least one of: a first movement instruction, a first scaling instruction, and a first rotation instruction; The control instruction includes at least one of the following: a second movement instruction, a second scaling instruction, and a second rotation instruction.
  18. 一种元素控制装置,包括:An element control device comprising:
    第一接收模块,设置为接收第一输入信号;a first receiving module, configured to receive the first input signal;
    第一显示模块,设置为显示第一元素,所述第一元素根据所述第一输入信号确定;a first display module, configured to display a first element, the first element being determined according to the first input signal;
    第二接收模块,设置为接收第一控制指令,所述第一控制指令作用于在所述第一元素显示之前已显示的第二元素,所述第二元素的至少一个坐标与所述第一元素的至少一个坐标重合;a second receiving module, configured to receive a first control instruction, the first control instruction acting on a second element that has been displayed before the first element is displayed, at least one coordinate of the second element and the first At least one coordinate of the elements coincides;
    第一调整模块,设置为根据所述第一控制指令将所述第一元素调整至第一位置,同步将所述第二元素调整至第二位置;a first adjustment module, configured to adjust the first element to a first position according to the first control instruction, and synchronously adjust the second element to a second position;
    第三接收模块,设置为接收第二控制指令,所述第二控制指令作用于所述第一元素;a third receiving module, configured to receive a second control instruction, where the second control instruction acts on the first element;
    第二调整模块,设置为根据所述第二控制指令将所述第一元素调整至第三位置。The second adjustment module is configured to adjust the first element to the third position according to the second control instruction.
  19. 根据权利要求18所述的装置,还包括:The apparatus of claim 18, further comprising:
    第四接收模块,设置为在接收第一输入信号之前,接收第二输入信号;a fourth receiving module, configured to receive the second input signal before receiving the first input signal;
    第二显示模块,设置为显示第二元素,所述第二元素根据所述第二输入信号确定。a second display module configured to display a second element, the second element being determined based on the second input signal.
  20. 根据权利要求18所述的装置,其中,所述第一元素的显示层级高于所述第二元素的显示层级。The apparatus of claim 18, wherein the display level of the first element is higher than the display level of the second element.
  21. 根据权利要求18所述的装置,还包括:The apparatus of claim 18, further comprising:
    第五接收模块,设置为将所述第一元素调整至第三位置之后,接收第三控制指令,所述第三控制指令作用于在所述第一元素显示之前已显示的第三元素,所述第三元素的至少一个坐标与所述第一元素的至少一个坐标重合;a fifth receiving module, configured to: after adjusting the first element to the third position, receive a third control instruction, the third control instruction acting on a third element that has been displayed before the first element is displayed, At least one coordinate of the third element coincides with at least one coordinate of the first element;
    第三调整模块,设置为根据所述第三控制指令将所述第一元素调整至第四位置,同步将所述第三元素调整至第五位置。The third adjustment module is configured to adjust the first element to the fourth position according to the third control instruction, and synchronously adjust the third element to the fifth position.
  22. 根据权利要求21所述的装置,还包括:The apparatus of claim 21 further comprising:
    第六接收模块,设置为在接收第一输入信号之前,接收第三输入信号;a sixth receiving module, configured to receive the third input signal before receiving the first input signal;
    第三显示模块,设置为显示所述第三元素,所述第三元素根据所述第三输入信号确定。a third display module configured to display the third element, the third element being determined according to the third input signal.
  23. 根据权利要求21所述的装置,还包括:The apparatus of claim 21 further comprising:
    元素集合建立模块,设置为在接收第三控制指令之前,建立元素集合,所述元素集合包含显示层级小于所述第一元素的全部已显示的元素;An element collection establishing module, configured to establish a set of elements before receiving the third control instruction, the set of elements comprising all displayed elements whose display level is smaller than the first element;
    元素查找模块,设置为在所述元素集合中查找所述第三元素。An element lookup module configured to look up the third element in the set of elements.
  24. 根据权利要求23所述的装置,其中,所述第三元素的个数为至少两个;The apparatus according to claim 23, wherein the number of the third elements is at least two;
    所述装置还包括:The device also includes:
    元素选择模块,设置为查找所述第三元素之后,选择至少两个所述第三元素中显示层级最高的第三元素。And an element selection module, configured to select the third element having the highest display level among the at least two of the third elements after the third element is searched for.
  25. 根据权利要求20所述的装置,还包括:The apparatus of claim 20 further comprising:
    第七接收模块,设置为接收第一控制指令之前,接收元素选定指令,所述元素选定指令用于选定在所述第一元素显示之前已显示的第四元素,所述第四元素的显示层级低于第二元素的显示层级,所述第四元素的至少一个坐标与所述第一元素的至少一个坐标重合;a seventh receiving module, configured to receive an element selection instruction for selecting a fourth element that has been displayed before the first element is displayed, before receiving the first control instruction, the fourth element The display level is lower than the display level of the second element, and at least one coordinate of the fourth element coincides with at least one coordinate of the first element;
    第一调整模块是设置为:在将所述第一元素调整至所述第一位置,同步将所述第二元素调整至所述第二位置的同时,根据所述第一控制指令将所述第四元素调整至第六位置。The first adjustment module is configured to: when the first element is adjusted to the first position, and the second element is synchronously adjusted to the second position, according to the first control instruction The fourth element is adjusted to the sixth position.
  26. 根据权利要求18所述的装置,其中,所述第一元素和所述第二元素分别包括下述之一:The apparatus of claim 18, wherein the first element and the second element respectively comprise one of:
    所述第一元素为用户写入轨迹,所述第二元素为计算机绘制标准元素;The first element is a user write track, and the second element is a computer drawing standard element;
    所述第一元素为计算机绘制标准元素,所述第二元素为用户写入轨迹;The first element is a computer drawing standard element, and the second element is a user writing track;
    所述第一元素和所述第二元素均为计算机绘制标准元素。The first element and the second element are both computer-drawn standard elements.
  27. 根据权利要求26所述的装置,其中,所述用户写入轨迹包括至少两条子轨迹;The apparatus of claim 26 wherein said user write track comprises at least two sub-tracks;
    其中,所述至少两条子轨迹满足下述至少一项:Wherein the at least two sub-tracks satisfy at least one of the following:
    任意两条写入顺序相邻的子轨迹间的写入时长间隔在设定时长间隔内;The write duration interval between adjacent sub-tracks of any two write sequences is within a set time interval;
    任意两条写入顺序相邻的子轨迹间的轨迹距离在设定距离范围内。The track distance between the sub-tracks adjacent to any two write sequences is within the set distance.
  28. 根据权利要求27所述的装置,其中,所述用户写入轨迹的起始位置坐标在所述计算机绘制标准元素的坐标范围内。The apparatus of claim 27, wherein the starting position coordinates of the user-written trajectory are within a coordinate range of the computer-drawn standard element.
  29. 根据权利要求26所述的装置,其中,所述计算机绘制标准元素包括以下至少之一:几何图形、图像、流程图、组织架构图以及电子表格。The apparatus of claim 26, wherein the computer-drawn standard elements comprise at least one of: a geometry, an image, a flowchart, an organizational chart, and a spreadsheet.
  30. 根据权利要求18所述的装置,还包括:组合建立模块,设置为在接收第一控制指令之前,建立所述第一元素与所述第二元素的组合关系。The apparatus of claim 18, further comprising: a combination establishing module configured to establish a combined relationship of the first element and the second element prior to receiving the first control instruction.
  31. 根据权利要求30所述的装置,还包括:The apparatus of claim 30, further comprising:
    组合框显示模块,设置为在所述建立所述第一元素与所述第二元素的组合关系之后,显示组合元素框,所述组合元素框用于指示所述第一元素和所述第二元素组合后的覆盖区域。a combo box display module, configured to display a combined element frame after the establishing a combination relationship between the first element and the second element, the combined element box being used to indicate the first element and the second The coverage area after the elements are combined.
  32. 根据权利要求30所述的装置,其中,所述第二元素为至少两个;The apparatus according to claim 30, wherein said second element is at least two;
    所述组合建立模块包括:The combination establishing module includes:
    元素确定单元,设置为在至少两个所述第二元素中,确认最高显示层级的第二元素;An element determining unit, configured to confirm, in at least two of the second elements, a second element of a highest display level;
    关系建立单元,设置为建立所述第一元素与所述最高显示层级的第二元素的组合关系。A relationship establishing unit is configured to establish a combined relationship between the first element and the second element of the highest display level.
  33. 根据权利要求30所述的装置,其中,所述第三接收模块是设置为:The apparatus of claim 30, wherein the third receiving module is configured to:
    当接收所述第二控制指令时,取消所述第一元素和所述第二元素的组合关系。When the second control instruction is received, the combination relationship of the first element and the second element is cancelled.
  34. 根据权利要求18-33中任一项所述的装置,其中,所述第一控制指令包括下述至少一项:第一移动指令、第一缩放指令以及第一旋转指令;所述第二控制指令包括下述至少一项:第二移动指令、第二缩放指令以及第二旋转指令。The apparatus of any one of claims 18-33, wherein the first control instruction comprises at least one of: a first movement instruction, a first scaling instruction, and a first rotation instruction; the second control The instructions include at least one of the following: a second move instruction, a second zoom instruction, and a second rotation instruction.
  35. 一种元素控制设备,包括:An element control device comprising:
    存储器、具有触摸功能的显示屏以及一个或多个处理器;a memory, a touch screen display, and one or more processors;
    所述存储器,设置为存储一个或多个程序;The memory is configured to store one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-17任一项所述的方法。The one or more programs are executed by the one or more processors such that the one or more processors implement the method of any of claims 1-17.
  36. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-17中任一项所述的方法。A storage medium comprising computer executable instructions for performing the method of any of claims 1-17 when executed by a computer processor.
PCT/CN2018/115962 2018-05-15 2018-11-16 Element control method, apparatus, and device, and storage medium WO2019218622A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810462173.3A CN108710460B (en) 2018-05-15 2018-05-15 Element control method, device, equipment and storage medium
CN201810462173.3 2018-05-15

Publications (1)

Publication Number Publication Date
WO2019218622A1 true WO2019218622A1 (en) 2019-11-21

Family

ID=63867960

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/115962 WO2019218622A1 (en) 2018-05-15 2018-11-16 Element control method, apparatus, and device, and storage medium

Country Status (2)

Country Link
CN (1) CN108710460B (en)
WO (1) WO2019218622A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710460B (en) * 2018-05-15 2019-06-25 广州视源电子科技股份有限公司 Element control method, device, equipment and storage medium
CN110399077A (en) * 2019-07-25 2019-11-01 北京明略软件系统有限公司 Element processing method and processing device, storage medium, electronic device
CN110968227B (en) * 2019-10-09 2022-03-08 广州视源电子科技股份有限公司 Control method and device of intelligent interactive panel

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713817A (en) * 2012-10-04 2014-04-09 富士施乐株式会社 Information processing apparatus and method
CN107967115A (en) * 2011-12-31 2018-04-27 诺基亚技术有限公司 It is shown element
CN108710460A (en) * 2018-05-15 2018-10-26 广州视源电子科技股份有限公司 element control method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419679B (en) * 2010-09-27 2014-10-01 联想(北京)有限公司 Display processing method and portable mobile terminal
US8907903B2 (en) * 2011-01-13 2014-12-09 Sony Computer Entertainment America Llc Handing control of an object from one touch input to another touch input
CN103488407A (en) * 2012-06-11 2014-01-01 联想(北京)有限公司 Method and equipment for controlling display position of operation object icon
US10359920B2 (en) * 2014-09-05 2019-07-23 Nec Solution Innovators, Ltd. Object management device, thinking assistance device, object management method, and computer-readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967115A (en) * 2011-12-31 2018-04-27 诺基亚技术有限公司 It is shown element
CN103713817A (en) * 2012-10-04 2014-04-09 富士施乐株式会社 Information processing apparatus and method
CN108710460A (en) * 2018-05-15 2018-10-26 广州视源电子科技股份有限公司 element control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108710460A (en) 2018-10-26
CN108710460B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
US11301200B2 (en) Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium
CN110069204B (en) Graph processing method, device and equipment based on writing track and storage medium
CN110941383B (en) Double-screen display method, device, equipment and storage medium
CN110928468B (en) Page display method, device, equipment and storage medium of intelligent interactive tablet
WO2021068367A1 (en) Control method and apparatus for intelligent interactive panel
CN108932144B (en) Display interface control method, device, equipment and storage medium
JP7320634B2 (en) Intelligent interaction tablet operation method, device, terminal device and storage medium
US9324305B2 (en) Method of synthesizing images photographed by portable terminal, machine-readable storage medium, and portable terminal
CN110045909B (en) Ellipse processing method, device and equipment based on writing track and storage medium
CN108334486B (en) Table control method, device, equipment and storage medium
CN110928459B (en) Writing operation method, device, equipment and storage medium of intelligent interactive tablet
US11372540B2 (en) Table processing method, device, interactive white board and storage medium
CN110045840B (en) Writing track association method, device, terminal equipment and storage medium
US9547370B2 (en) Systems and methods for enabling fine-grained user interactions for projector-camera or display-camera systems
CN108733296B (en) Method, device and equipment for erasing handwriting
WO2019105191A1 (en) Multi-element interaction method, apparatus and device, and storage medium
WO2019218622A1 (en) Element control method, apparatus, and device, and storage medium
WO2020192175A1 (en) Three-dimensional graph labeling method and apparatus, device, and medium
EP2840517A2 (en) Method and apparatus for managing images in electronic device
CN106371755B (en) Multi-screen interaction method and system
CN114115637B (en) Display equipment and electronic drawing board optimization method
CN116795273A (en) Interactive screen display method, device, medium and electronic equipment
CN112860157B (en) Display element adjusting method, device, equipment and storage medium
WO2021068405A1 (en) Element transfer method, apparatus and device, and storage medium
US11557065B2 (en) Automatic segmentation for screen-based tutorials using AR image anchors

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

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

Country of ref document: EP

Kind code of ref document: A1