CN110764674A - Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard - Google Patents
Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard Download PDFInfo
- Publication number
- CN110764674A CN110764674A CN201910865732.XA CN201910865732A CN110764674A CN 110764674 A CN110764674 A CN 110764674A CN 201910865732 A CN201910865732 A CN 201910865732A CN 110764674 A CN110764674 A CN 110764674A
- Authority
- CN
- China
- Prior art keywords
- note
- primitive
- erasing
- primitives
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000004590 computer program Methods 0.000 claims description 9
- 230000009191 jumping Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 15
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a method for erasing note primitives of an electronic whiteboard, which comprises the following steps: 1) acquiring an erasing area; 2) traversing one note primitive in all the note primitives as a current note primitive; 3) judging whether intersection exists between the current note primitive and the erasing area, if the intersection does not exist, not erasing the current note primitive, if the intersection exists, respectively storing the unconnected parts of the current note primitive outside the erasing area as new note primitives, and deleting the current note primitive in the storage area; 4) and returning to the step 2) until all the note primitives are traversed. Compared with the prior art, the invention realizes the independent movement and adjustment of all parts of the note primitive outside the erasing area, improves the use experience of the electronic whiteboard, avoids the occupation of the transparent color area processed by the existing erasing method on the storage space, and improves the utilization rate of the storage space.
Description
Technical Field
The present invention relates to an electronic whiteboard drawing method, and in particular, to a method and a system for erasing a note primitive of an electronic whiteboard, and an electronic whiteboard.
Background
The electronic whiteboard needs to write handwriting on a display screen in application, the writing handwriting can be stored as a note primitive, the note primitive comprises a plurality of drawing points, the drawing points are connected through line segments, in actual operation, partial or whole erasing is needed to be carried out on the existing written note, the existing erasing method is a direct filling erasing mode, an erasing area is firstly obtained, then 0 is filled in data in the erasing area, the erasing area is transparent, the processed note primitive is still a primitive, independent moving and adjusting cannot be carried out on all parts of the note primitive outside the erasing area, and after the note primitive is erased through the existing erasing mode, the transparent area occupies a certain storage space, and the utilization rate of the storage space is reduced.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the technical problems in the prior art, the invention provides a note primitive erasing method and system for an electronic whiteboard, which can accurately erase a note primitive, improve the utilization rate of a storage space and independently move and adjust all parts of the note primitive outside an erasing area, and the electronic whiteboard.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
a note primitive erasing method for an electronic whiteboard comprises the following steps:
1) acquiring an erasing area;
2) traversing one note primitive in all the note primitives as a current note primitive;
3) and judging whether the intersection exists between the current note primitive and the erasing area, if the intersection does not exist, not erasing the current note primitive, if the intersection exists, respectively storing the unconnected parts of the current note primitive outside the erasing area as new note primitives, and deleting the current note primitive in the storage area.
4) And returning to the step 2) until all the note primitives are traversed.
Preferably, step 4) is followed by step 5): and reading all the note primitive information in the storage area, and sequentially redrawing all the note primitives in the scene.
Preferably, the step 5) of sequentially redrawing all the note primitives is to sequentially redraw all the note primitives in the order from small to large according to the z value of the note primitives, where the z value is the hierarchical coordinate value of the primitives.
Preferably, step 3) comprises the steps of:
3.1) judging whether any drawing point of the current note graphic element is positioned in the erasing area, if so, entering the next step, otherwise, skipping to the step 4);
3.2) judging whether all drawing points of the current note graphic element are positioned in the erasing area, if so, deleting the current note graphic element in the storage area and then jumping to the step 4), otherwise, entering the next step;
3.3) respectively generating the drawing points of the parts of the current note graphic element which are not connected outside the erasing area into new note graphic elements, and deleting the current note graphic elements in the storage area.
Preferably, step 3.3) comprises the steps of:
3.3.1) calculating the intersection point of the current note graphic primitive and the boundary of the erasing area;
3.3.2) taking the intersection points as the drawing points of the unconnected parts of the current note graphic primitive outside the erasing area on the boundary of the erasing area;
3.3.3) respectively generating new note primitives aiming at the parts of the current note primitives which are not connected outside the erasing area;
3.3.4) deleting the current note primitive in the storage area.
The invention also provides a note primitive erasing system for an electronic whiteboard, comprising computer equipment programmed or configured to perform the steps of the note primitive erasing method for an electronic whiteboard.
The invention also provides a note primitive erasing system for an electronic whiteboard, comprising a computer device, wherein a storage medium of the computer device is stored with a computer program programmed or configured to execute the note primitive erasing method for the electronic whiteboard.
The present invention also provides a computer-readable storage medium having stored thereon a computer program programmed or configured to execute the above-described note primitive erasing method for an electronic whiteboard.
The invention also provides a system for erasing the note primitives of the electronic whiteboard, which comprises the following components:
an erasing area obtaining program unit for obtaining an erasing area;
the note primitive traversing program unit is used for traversing one note primitive in all the note primitives as a current note primitive until all the note primitives are traversed;
the current note primitive processing program unit is used for judging whether the intersection exists between the current note primitive and the erasing area, and if the intersection does not exist, the current note primitive is not erased; and if the intersection exists, storing the parts of the current note graphic element which are not connected outside the intersection part as new note graphic elements respectively, and deleting the current note graphic elements.
The invention also provides an electronic whiteboard, comprising an electronic whiteboard body with a microprocessor and a memory, wherein the microprocessor is programmed or configured to execute the steps of the above-mentioned note primitive erasing method for the electronic whiteboard, or the memory stores a computer program programmed or configured to execute the above-mentioned note primitive erasing method for the electronic whiteboard.
Compared with the prior art, the invention has the advantages that:
according to the invention, the primitives corresponding to all parts of the note primitive outside the erasing area one by one are newly established after the erasing area is set, the original note primitive is deleted, and all parts of the note primitive which are not connected outside the erasing area are respectively converted into different primitives, so that the independent movement and adjustment of all parts of the note primitive outside the erasing area are realized, the use experience of the electronic whiteboard is improved, the occupation of a transparent color area on a storage space after the existing erasing method is avoided, and the utilization rate of the storage space is improved.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
FIG. 2 is a schematic diagram of the method of example 1 of the present invention.
FIG. 3 is a schematic diagram of the method of example 2 of the present invention.
FIG. 4 is a schematic diagram of the method of example 3 of the present invention.
FIG. 5 is a diagram illustrating different erasing manners according to the method of embodiment 3 of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
Example 1
As shown in fig. 1 and fig. 2, the electronic whiteboard has a note primitive ABCD with a plotted point of A, B, C, D, a note primitive EFGH with a plotted point of E, F, G, H, and a note primitive IJKL with a plotted point of I, J, K, L, and the note primitive erasing method for the electronic whiteboard of this embodiment includes the following steps:
1) the method comprises the following steps that a user carries out erasing action on an electronic whiteboard, the electronic whiteboard responds to user operation, the area where a closed graph drawn by the user is located is used as an erasing area, and the erasing area is obtained and comprises a function expression of the boundary of the erasing area, coordinates of the top point of the erasing area and the like;
2) traversing a note primitive from the note primitives ABCD, EFGH and IJKL as a current note primitive, and calculating a function expression of a current note primitive drawing point coordinate and a line segment between the drawing point coordinates according to the type of the current note primitive, wherein the note primitive to be erased is processed by the erasing method of the embodiment in a traversing manner because the note primitive is not erased due to being outside an erasing area;
3) judging whether intersection exists between the current note primitive and the erasing area, wherein the intersection can be a point, a line segment or a point and line segment set of the current note primitive located in the erasing area, if the intersection does not exist, the current note primitive is out of the storage area and is not the note primitive needing to be erased, the current note primitive is not erased, if the intersection exists, the current note primitive has a part in the erasing area and is the note primitive needing to be erased, the parts, which are not connected, of the current note primitive outside the erasing area are respectively stored as new note primitives, and the current note primitive in the storage area is deleted, in the embodiment, whether intersection exists between the current note primitive and the erasing area is judged through the line segment of the note primitive located in the erasing area, and the method comprises the following steps:
3.1) judging whether any line segment of the current note primitive is positioned in the erasing area or not according to the function expression of the note primitive line segment and the function expression of the erasing area boundary, if so, indicating that the current note primitive and the line segment have intersection, entering the next step for continuous processing, and otherwise, skipping to the step 4) for next circulation;
3.2) judging whether all line segments of the current note primitive are positioned in the erasing area or not according to the function expression of the note primitive line segments and the function expression of the erasing area boundary, if so, indicating that the current note primitive is intersected with the erasing area and all the note primitives are positioned in the erasing area, namely, all the current note primitive is required to be erased, and after deleting the current note primitive in the storage area, jumping to the step 4), otherwise, indicating that the current note primitive is intersected with the erasing area and part of the current note primitive is positioned outside the erasing area, and entering the next step for continuous processing;
3.3) judging the line segment of the current note primitive outside the erasing area according to the function expression of the note primitive line segment and the function expression of the erasing area boundary, specifically the line segment of at least one end point outside the erasing area boundary, respectively generating the line segments of the parts of the current note primitive which are not connected outside the erasing area into new note primitives, and deleting the current note primitive in the storage area, namely respectively converting the parts of the current note primitive which are not connected outside the erasing area into independent note primitives for storage
As shown in fig. 1, a line segment BC of the note primitive ABCD is located in the erasing area, so that the note primitive ABCD is a note primitive to be erased, the line segment AB and the line segment CD are respectively stored as new note primitives, and the note primitive ABCD in the storage area is deleted; the line segment EF, the line segment FG and the line segment GH of the note primitive EFGH are all positioned in the erasing area, so that the note primitive EFGH is a note primitive needing to be erased, but the note primitive EFGH is not positioned outside the erasing area, and only the note primitive EFGH in the storage area is deleted; the line segment IJ, the line segment JK and the line segment KL of the note graphic elements IJKL are all located outside the erasing area, so that the note graphic elements IJKL are note graphic elements which do not need to be erased, and the note graphic elements IJKL in the storage area are reserved;
4) and returning to the step 2) until all the note primitives are traversed.
In the embodiment, the erasing area is set, and then the primitives corresponding to the parts of the note primitive outside the erasing area are respectively drawn, and the note primitive is deleted, so that the parts of the note primitive outside the erasing area are respectively converted into different primitives, thereby realizing the independent movement and adjustment of the parts of the note primitive outside the erasing area, and improving the use experience of the electronic whiteboard.
After the processing, all unconnected parts of the note primitive to be erased outside the erasing area are converted into corresponding independent note primitives and stored in the storage area, at this time, the processing of the erased note primitive in the scene can be a method of filling 0 in the prior art, namely, all data in the erasing area is filled with 0, so that the erased part of the original note primitive is a transparent display area, at this time, all discontinuous parts of the original note primitive displayed in the scene outside the erasing area are still a note primitive, when a user needs to edit and move the original note primitive outside the erasing area, the user operation is responded again, the information of the corresponding note primitive stored in the storage area by the part selected by the user is read, and the edited note primitive information is stored and updated in the scene in real time. The whole scene can be refreshed after the processing, all the note primitives stored in the storage area are redrawn in the scene again, all discontinuous parts of the original note primitives displayed in the scene outside the erasing area are respectively independent note primitives at the moment, when a user needs to edit and move the parts of the original note primitives outside the erasing area, the user responds to the operation of the user, information of the corresponding note primitives stored in the storage area by the parts selected by the user is read, and the edited note primitive information is stored and updated in the scene in real time. The two processing modes have no difference in display effect in a scene, and are different in that the second mode cancels a transparent area, so that the storage space occupied by data in the transparent area is released, the utilization rate of a storage area is improved, and meanwhile, because each part of an original note primitive in the scene outside an erasing area is an independent note primitive which directly corresponds to the information of the note primitive stored in the storage area, the method of the embodiment processed by the second mode can respond more quickly to the situation that a user subsequently selects unconnected parts of the original note primitive in the scene outside the erasing area for processing. Therefore, the second processing manner is adopted in this embodiment, and the specific steps in step 5) after step 4) are: reading all the note primitive information in the storage area, and sequentially redrawing all the note primitives in the scene according to the sequence of the z values of the note primitives from small to large, wherein the z values are the hierarchical coordinate values of the primitives. At this time, the unconnected parts of the original note primitives outside the erasing area in the scene become newly-built independent note primitives, so that the movement and adjustment of the unconnected parts outside the erasing area in the subsequent use are facilitated.
The present embodiment also provides a system for erasing a note primitive for an electronic whiteboard, including a computer device programmed or configured to perform the steps of the above-mentioned method for erasing a note primitive for an electronic whiteboard.
The present embodiment also provides a system for erasing a note primitive for an electronic whiteboard, including a computer device having a storage medium storing a computer program programmed or configured to execute the above-mentioned method for erasing a note primitive for an electronic whiteboard.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program programmed or configured to execute the above-described note primitive erasing method for an electronic whiteboard.
The embodiment also provides a system for erasing a note primitive of an electronic whiteboard, including:
an erasing area obtaining program unit for obtaining an erasing area;
the note primitive traversing program unit is used for traversing one note primitive in all the note primitives as a current note primitive until all the note primitives are traversed;
the current note primitive processing program unit is used for judging whether the intersection exists between the current note primitive and the erasing area, and if the intersection does not exist, the current note primitive is not erased; and if the intersection exists, storing the parts of the current note graphic element which are not connected outside the intersection part as new note graphic elements respectively, and deleting the current note graphic elements.
The embodiment also provides an electronic whiteboard, comprising an electronic whiteboard body with a microprocessor and a memory, wherein the microprocessor is programmed or configured to execute the steps of the above-mentioned note primitive erasing method for the electronic whiteboard, or the memory stores a computer program programmed or configured to execute the above-mentioned note primitive erasing method for the electronic whiteboard.
Example 2
As shown in FIG. 3, the electronic whiteboard has a drawing point A1、B1、C1、D1Note primitive a1B1C1D1The drawing point is E1、F1、G1、H1Note primitive E1F1G1H1And the plot point is I1、J1、K1、L1Note primitive I1J1K1L1The method for erasing a note primitive for an electronic whiteboard of this embodiment is basically the same as that in embodiment 1, except that in this embodiment, the relationship between the note primitive and the erasing area is determined according to the position relationship between the drawing point of the note primitive and the erasing area, and corresponding processing is performed, and step 3) of this embodiment includes the following steps:
3.1) judging whether any drawing point of the current note drawing element is positioned in the erasing area or not according to the coordinates of the drawing points of the note drawing element and the function expression of the boundary of the erasing area, if so, indicating that the current note drawing element and the drawing point have intersection, entering the next step for continuous processing, and otherwise, skipping to the step 4) for next circulation;
3.2) judging whether all drawing points of the current note drawing pixels are positioned in the erasing area or not according to the coordinates of the note drawing pixels and the function expression of the boundary of the erasing area, if so, indicating that the current note drawing pixels are intersected with the erasing area and all the note drawing pixels are positioned in the erasing area, namely, all the current note drawing pixels need to be erased, and skipping to the step 4 after deleting the current note drawing pixels in the storage area, otherwise, indicating that the current note drawing pixels are intersected with the erasing area and other parts of the current note drawing pixels are positioned outside the erasing area, namely, erasing the parts of the current note drawing pixels in the erasing area needs to be erased, and continuing to process in the next step;
3.3) judging the drawing points of the current note drawing elements outside the erasing area according to the coordinates of the drawing points of the note drawing elements and the function expression of the boundary of the erasing area, respectively generating the drawing points of the unconnected parts of the current note drawing elements outside the erasing area into new note drawing elements, deleting the current note drawing elements in the storage area, namely respectively converting the unconnected parts of the current note drawing elements outside the erasing area into independent note drawing elements for storage, wherein the note drawing elements A are shown in figure 21B1C1D1Drawing point B1And C1Is located in the erasing area, so note primitive A1B1C1D1For the note-primitive that needs to be erased, plot A is taken1And D1Respectively generating new note primitives and deleting a note primitive A in the storage area1B1C1D1(ii) a Note primitive E1F1G1H1Drawing point E of1、F1、G1、H1Are all located in the erasing area, so note primitive E1F1G1H1Is a note primitive that needs to be erased, but note primitive E1F1G1H1Is not atErasing the part outside the area, and only deleting the note primitive E in the storage area1F1G1H1(ii) a Note primitive I1J1K1L1Drawing point I1、J1、K1、L1Are all located outside the erasing area, therefore the note primitive I1J1K1L1Reserving a note primitive I in a storage area for a note primitive which does not need to be erased1J1K1L1. Compared with the method of the embodiment 1, the method of the embodiment adopts the coordinate of the drawing point for judgment, reduces the calculation amount and improves the working efficiency.
Example 3
As shown in fig. 4, the electronic whiteboard has a drawing point a2、B2、C2、D2Note primitive a2B2C2D2The drawing point is E2、F2、G2、H2Note primitive E2F2G2H2And the plot point is I2、J2、K2、L2Note primitive I2J2K2L2The method of this embodiment is substantially the same as embodiment 2, except that, in order to implement accurate erasing of the note primitive that needs to be erased, step 3.3) of this embodiment further calculates an intersection point of the current note primitive and the erasing area boundary according to a function expression of a segment of the note primitive and a function expression of the erasing area boundary, and then generates the intersection point of the current note primitive and a drawing point outside the erasing area as a new note primitive, thereby implementing accurate erasing of the current note primitive, including the following steps:
3.3.1) calculating the intersection point of the current note primitive and the erasing area boundary according to the function expression of the current note primitive line segment and the function expression of the erasing area boundary;
3.3.2) taking the intersection points as the drawing points of the unconnected parts of the current note graphic primitive outside the erasing area on the boundary of the erasing area;
3.3.3) generating new note primitives respectively aiming at the parts of the current note primitives which are not connected outside the erasing area, namely generating new note primitives corresponding to the parts according to the drawing points of the parts of the current note primitives which are not connected outside the erasing area;
3.3.4) deleting the current note primitive in the storage area.
As shown in FIG. 4, note primitive A2B2C2D2Drawing point B2And C2Is located in the erasing area, so note primitive A2B2C2D2Calculating the line segment A for the note graphics primitive needing to be erased2B2Line segment C2D2The intersection point of the boundary of the erasing area is obtained to obtain a line segment A2B2Intersection M with the boundary of the erasure area and line segment C2D2Marking the intersection points M and N as plot points after the intersection point N with the erasing area boundary, and then marking the plot point A2And M respectively generating a new note graphic element for storage, and drawing points N and D2Respectively generating another new note graphic element for storage, and deleting the note graphic element A in the storage area2B2C2D2(ii) a Note primitive E2F2G2H2Drawing point E of2、F2、G2、H2Are all located in the erasing area, so note primitive E2F2G2H2Is a note primitive that needs to be erased, but note primitive E2F2G2H2The part which is not outside the erasing area only deletes the note primitive E in the storage area2F2G2H2(ii) a Note primitive I2J2K2L2Drawing point I2、J2、K2、L2Are all located outside the erasing area, therefore the note primitive I2J2K2L2Reserving a note primitive I in a storage area for a note primitive which does not need to be erased2J2K2L2. Compared with the method of embodiment 1 and embodiment 2, the method of this embodiment is to locate one end of the segment of the note-primitive in the erasing areaIn addition, the other end of the segment of the note primitive can be accurately erased under the condition that the other end of the segment of the note primitive is in the erasing area, and under the condition that both ends of the segment of the note primitive are outside the erasing area, the problems that the erasing amount of the method in the embodiment 1 is small or the erasing amount of the method in the embodiment 2 is too large are avoided.
As shown in fig. 5, the whiteboard has a drawing point A, B, C, D, E, F, G note primitive ABCDEFG, the note primitive is a closed block primitive, there are multiple plots in the closed area surrounded by ABCDEFG, the plots are connected by line segments, no matter the erasing area (shown by the square box in the figure) runs through the note primitive ABCDEFG, or the erasing area is partially overlapped with the note primitive ABCDEFG, the method of this embodiment uses the intersection point of the line segments between the boundary of the erasing area and the plots inside the note primitive ABCDEFG as the plot of the unconnected part of the note primitive ABCDEFG outside the erasing area on the boundary of the erasing area, therefore, the part of the note graphic element ABCDEFG outside the erasing area is on the boundary of the erasing area and the drawing point outside the erasing area generates a new note graphic element which is also a closed block graphic element.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.
Claims (10)
1. A method for erasing note primitives of an electronic whiteboard is characterized by comprising the following steps:
1) acquiring an erasing area;
2) traversing one note primitive in all the note primitives as a current note primitive;
3) judging whether intersection exists between the current note primitive and the erasing area, if the intersection does not exist, not erasing the current note primitive, if the intersection exists, respectively storing the unconnected parts of the current note primitive outside the erasing area as new note primitives, and deleting the current note primitive in the storage area;
4) and returning to the step 2) until all the note primitives are traversed.
2. A method for erasing a note primitive of an electronic whiteboard according to claim 1, further comprising a step 5) after the step 4): and reading all the stored note primitive information, and sequentially redrawing all the note primitives in the scene.
3. The method according to claim 2, wherein the step 5) of redrawing all the note primitives in sequence is to redraw all the note primitives in sequence from small to large according to the z-value of the note primitives, where the z-value is the hierarchical coordinate value of the primitives.
4. The method for erasing note primitives of the electronic whiteboard according to claim 1, wherein the step 3) comprises the following steps:
3.1) judging whether any drawing point of the current note graphic element is positioned in the erasing area, if so, entering the next step, otherwise, skipping to the step 4);
3.2) judging whether all drawing points of the current note graphic element are positioned in the erasing area, if so, deleting the current note graphic element in the storage area and then jumping to the step 4), otherwise, entering the next step;
3.3) respectively generating the drawing points of the parts of the current note graphic element which are not connected outside the erasing area into new note graphic elements, and deleting the current note graphic elements in the storage area.
5. A note primitive erasing method for an electronic whiteboard according to claim 4, wherein the step 3.3) comprises the following steps:
3.3.1) calculating the intersection point of the current note graphic primitive and the boundary of the erasing area;
3.3.2) taking the intersection points as the drawing points of the unconnected parts of the current note graphic primitive outside the erasing area on the boundary of the erasing area;
3.3.3) respectively generating new note primitives aiming at the parts of the current note primitives which are not connected outside the erasing area;
3.3.4) deleting the current note primitive in the storage area.
6. A note primitive erasure system for an electronic whiteboard comprising a computer device, characterized in that the computer device is programmed or configured to perform the steps of the note primitive erasure method for an electronic whiteboard of any of claims 1 to 5.
7. A note primitive erasing system for an electronic whiteboard, comprising a computer device, characterized in that a storage medium of the computer device has stored thereon a computer program programmed or configured to execute the note primitive erasing method for the electronic whiteboard of any one of claims 1 to 5.
8. A computer-readable storage medium having stored thereon a computer program programmed or configured to perform the method for erasing a note-primitive of an electronic whiteboard according to any one of claims 1 to 5.
9. A note primitive erasing system for an electronic whiteboard, comprising:
an erasing area obtaining program unit for obtaining an erasing area;
the note primitive traversing program unit is used for traversing one note primitive in all the note primitives as a current note primitive until all the note primitives are traversed;
the current note primitive processing program unit is used for judging whether the intersection exists between the current note primitive and the erasing area, and if the intersection does not exist, the current note primitive is not erased; and if the intersection exists, storing the parts of the current note graphic element which are not connected outside the intersection part as new note graphic elements respectively, and deleting the current note graphic elements.
10. An electronic whiteboard comprising an electronic whiteboard body with a microprocessor and a memory, characterized in that the microprocessor is programmed or configured to perform the steps of the note primitive erasing method for the electronic whiteboard of any one of claims 1 to 5, or the memory has stored thereon a computer program programmed or configured to perform the note primitive erasing method for the electronic whiteboard of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910865732.XA CN110764674B (en) | 2019-09-12 | 2019-09-12 | Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910865732.XA CN110764674B (en) | 2019-09-12 | 2019-09-12 | Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110764674A true CN110764674A (en) | 2020-02-07 |
CN110764674B CN110764674B (en) | 2021-03-26 |
Family
ID=69329534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910865732.XA Active CN110764674B (en) | 2019-09-12 | 2019-09-12 | Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110764674B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477694A (en) * | 2008-12-02 | 2009-07-08 | 广东威创视讯科技股份有限公司 | Handwriting erasing method and apparatus |
CN101609560A (en) * | 2009-07-16 | 2009-12-23 | 广东威创视讯科技股份有限公司 | A kind of method of erasing handwriting |
CN102566862A (en) * | 2010-12-21 | 2012-07-11 | 汉王科技股份有限公司 | Method and device for erasing geometric figures in interactive electronic whiteboard |
CN103996003A (en) * | 2014-05-20 | 2014-08-20 | 金航数码科技有限责任公司 | Data wiping system in virtualization environment and method thereof |
CN106503009A (en) * | 2015-09-07 | 2017-03-15 | 阿里巴巴集团控股有限公司 | Show the transfer method and device of data in the page |
CN107390988A (en) * | 2017-07-12 | 2017-11-24 | 广州视源电子科技股份有限公司 | Erasing method and device of electronic whiteboard and area selection method of electronic whiteboard |
CN108733293A (en) * | 2018-06-11 | 2018-11-02 | 广州视源电子科技股份有限公司 | writing track processing method and device |
CN109032463A (en) * | 2018-07-19 | 2018-12-18 | 掌阅科技股份有限公司 | Take down notes method for deleting, electronic equipment and computer storage medium |
CN109062490A (en) * | 2018-07-19 | 2018-12-21 | 掌阅科技股份有限公司 | Take down notes delet method, electronic equipment and computer storage medium |
US20190259296A1 (en) * | 2018-02-21 | 2019-08-22 | Raquel B. De La Rosa | Multisensory apparatus for facilitating the learning of handwriting |
-
2019
- 2019-09-12 CN CN201910865732.XA patent/CN110764674B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477694A (en) * | 2008-12-02 | 2009-07-08 | 广东威创视讯科技股份有限公司 | Handwriting erasing method and apparatus |
CN101609560A (en) * | 2009-07-16 | 2009-12-23 | 广东威创视讯科技股份有限公司 | A kind of method of erasing handwriting |
CN102566862A (en) * | 2010-12-21 | 2012-07-11 | 汉王科技股份有限公司 | Method and device for erasing geometric figures in interactive electronic whiteboard |
CN103996003A (en) * | 2014-05-20 | 2014-08-20 | 金航数码科技有限责任公司 | Data wiping system in virtualization environment and method thereof |
CN106503009A (en) * | 2015-09-07 | 2017-03-15 | 阿里巴巴集团控股有限公司 | Show the transfer method and device of data in the page |
CN107390988A (en) * | 2017-07-12 | 2017-11-24 | 广州视源电子科技股份有限公司 | Erasing method and device of electronic whiteboard and area selection method of electronic whiteboard |
US20190259296A1 (en) * | 2018-02-21 | 2019-08-22 | Raquel B. De La Rosa | Multisensory apparatus for facilitating the learning of handwriting |
CN108733293A (en) * | 2018-06-11 | 2018-11-02 | 广州视源电子科技股份有限公司 | writing track processing method and device |
CN109032463A (en) * | 2018-07-19 | 2018-12-18 | 掌阅科技股份有限公司 | Take down notes method for deleting, electronic equipment and computer storage medium |
CN109062490A (en) * | 2018-07-19 | 2018-12-21 | 掌阅科技股份有限公司 | Take down notes delet method, electronic equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110764674B (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2865751B2 (en) | Display screen scrolling method | |
CN100550059C (en) | A kind of vector graph acceleration method and multimedia player | |
CN106991639B (en) | System, medium, and method for multi-resolution image system for recording object | |
JPH07160827A (en) | Handwritten stroke editing device and method therefor | |
CN107943365A (en) | Line handwriting presenting method and device, electronic equipment and storage medium | |
CN104238768A (en) | Handwriting input apparatus and control method | |
KR20210066727A (en) | Graphics processing systems | |
CN110428504B (en) | Text image synthesis method, apparatus, computer device and storage medium | |
CN103793178A (en) | Vector graph editing method of touch screen of mobile device | |
CN114041111A (en) | Handwriting drawing method, apparatus, electronic device, medium, and program product | |
CN107817935A (en) | Application interface display method and device, terminal and computer readable storage medium | |
CN110297585A (en) | Electronic white board realization method, device, equipment and storage medium | |
CN110727386A (en) | Method, system and storage medium for operating graphic elements of electronic whiteboard | |
US10573033B2 (en) | Selective editing of brushstrokes in a digital graphical image based on direction | |
CN112732155B (en) | Image display method, image display device, electronic apparatus, and storage medium | |
CN110764674B (en) | Method and system for erasing note primitives of electronic whiteboard and electronic whiteboard | |
CN110737372A (en) | newly-added primitive operation method and system for electronic whiteboard and electronic whiteboard | |
CN103617790A (en) | Field programmable gate array (FPGA)-based graphic controller | |
CN112685998A (en) | Automatic labeling method, device, equipment and readable storage medium | |
JPH0683923A (en) | Method for correlating cursor position and display image and computer system having correlation means | |
CN116188628B (en) | Free painting page-crossing drawing and displaying method and server | |
CN103927770A (en) | Method and system for drawing waveforms under grid background | |
CN104881119B (en) | Video input-based air gesture trail acquiring method | |
CN117472259A (en) | Handwriting increment rendering method and device of electronic whiteboard | |
JPS6315617B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park. Patentee after: New Cloud Technology Group Co.,Ltd. Country or region after: China Address before: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park. Patentee before: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd. Country or region before: China |