CN113129650B - Operation method and terminal based on electronic triangle - Google Patents

Operation method and terminal based on electronic triangle Download PDF

Info

Publication number
CN113129650B
CN113129650B CN201911396405.0A CN201911396405A CN113129650B CN 113129650 B CN113129650 B CN 113129650B CN 201911396405 A CN201911396405 A CN 201911396405A CN 113129650 B CN113129650 B CN 113129650B
Authority
CN
China
Prior art keywords
triangle
electronic
electronic triangle
line segment
tested
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.)
Active
Application number
CN201911396405.0A
Other languages
Chinese (zh)
Other versions
CN113129650A (en
Inventor
刘德建
郭玉湖
陈宏�
徐金生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201911396405.0A priority Critical patent/CN113129650B/en
Publication of CN113129650A publication Critical patent/CN113129650A/en
Application granted granted Critical
Publication of CN113129650B publication Critical patent/CN113129650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/02Electrically-operated educational appliances with visual presentation of the material to be studied, e.g. using film strip
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention discloses an operation method and a terminal based on an electronic triangle, wherein in the process of moving the electronic triangle to a line segment to be tested, whether the distance between the vertex of the electronic triangle and the starting point of the line segment to be tested is smaller than a preset distance value is judged, if so, the vertex of the electronic triangle is automatically moved to the starting point of the line segment to be tested; in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be measured as the center so as to be close to the line segment to be measured, judging whether the included angle between one edge of the electronic triangle closest to the line segment to be measured and the line segment to be measured is smaller than a preset included angle, if so, automatically moving one edge of the electronic triangle closest to the line segment to be measured to be overlapped with the line segment to be measured; the automatic adsorption of the electronic triangle and the line segment to be tested is realized, the measurement efficiency and accuracy of the electronic triangle are improved, and the measurement experience of a user is improved.

Description

Operation method and terminal based on electronic triangle
Technical Field
The invention relates to the field of image drawing, in particular to a method and a terminal for drawing an electronic triangle.
Background
The triangle is the most common teaching tool in teaching, the length can be measured and different geometric figures can be drawn through operations such as translation, rotation and the like of the triangle, and the practical operation geometric figures are used for helping users to improve the capability of observing force, imagination, movement change and summary. The range of physical triangles is limited and must be completed with physical tools and drawing boards. With the progress of technology, electronic triangles have also been developed.
The existing electronic triangle does not support automatic adsorption of vertexes and line segments, if a user wants the triangle to be aligned with the vertexes of the line segments, the vertexes or edges of the electronic triangle can be aligned with the vertexes or edges of the line segments only through manual fine adjustment, and the user experiences poor in the measuring process.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the measuring method based on the electronic triangle is provided, the function of automatic adsorption of the electronic triangle and the line segment is realized, and the measuring efficiency and the accuracy of the electronic triangle are improved.
In order to solve the technical problems, the invention adopts a technical scheme that:
an operation method based on an electronic triangle, comprising the following steps:
s1, in the process of moving an electronic triangle to a line segment to be detected, judging whether the distance between the vertex of the electronic triangle and the starting point of the line segment to be detected is smaller than a preset distance value, if so, automatically moving the vertex of the electronic triangle to the starting point of the line segment to be detected;
s2, judging whether an included angle between one edge of the electronic triangle closest to the line segment to be tested and the line segment to be tested is smaller than a preset included angle in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be tested as the center to approach the line segment to be tested, and if yes, automatically moving one edge of the electronic triangle closest to the line segment to be tested to coincide with the line segment to be tested.
In order to solve the technical problems, the invention adopts another technical scheme that:
an electronic triangle-based operation terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
s1, in the process of moving an electronic triangle to a line segment to be detected, judging whether the distance between the vertex of the electronic triangle and the starting point of the line segment to be detected is smaller than a preset distance value, if so, automatically moving the vertex of the electronic triangle to the starting point of the line segment to be detected;
s2, judging whether an included angle between one edge of the electronic triangle closest to the line segment to be tested and the line segment to be tested is smaller than a preset included angle in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be tested as the center to approach the line segment to be tested, and if yes, automatically moving one edge of the electronic triangle closest to the line segment to be tested to coincide with the line segment to be tested.
The invention has the beneficial effects that: through judging the distance between the electronic triangle and the starting point of the line segment to be measured and whether the included angle between one nearest side of the line segment to be measured and the line segment to be measured in the electronic triangle is smaller than a preset distance value and a preset included angle, the automatic adsorption of the electronic triangle and the line segment to be measured is realized, and in the measuring process, the vertex or the edge of the electronic triangle and the line segment are aligned without manual fine adjustment, so that the geometric figure measurement is more flexible and intelligent, the measuring efficiency and the accuracy of the electronic triangle are improved, and the measuring experience of a user is improved.
Drawings
FIG. 1 is a flow chart of the steps of a method of operation based on an electronic triangle in accordance with an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an operation terminal based on an electronic triangle according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an electronic triangle for implementing automatic vertex adsorption according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an electronic triangle implementing line segment adsorption according to an embodiment of the present invention;
FIG. 5 is a schematic view showing the composition of an electronic triangle tool according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating steps for operating an electronic triangle in a smart classroom teacher-student interaction scenario in accordance with an embodiment of the present invention;
description of the reference numerals:
1. an operation terminal based on an electronic triangle; 2. a memory; 3. a processor.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, an operation method based on an electronic triangle includes the steps of:
s1, in the process of moving an electronic triangle to a line segment to be detected, judging whether the distance between the vertex of the electronic triangle and the starting point of the line segment to be detected is smaller than a preset distance value, if so, automatically moving the vertex of the electronic triangle to the starting point of the line segment to be detected;
s2, judging whether an included angle between one edge of the electronic triangle closest to the line segment to be tested and the line segment to be tested is smaller than a preset included angle in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be tested as the center to approach the line segment to be tested, and if yes, automatically moving one edge of the electronic triangle closest to the line segment to be tested to coincide with the line segment to be tested.
From the above description, the beneficial effects of the invention are as follows: through judging the distance between the electronic triangle and the starting point of the line segment to be measured and whether the included angle between one nearest side of the line segment to be measured and the line segment to be measured in the electronic triangle is smaller than a preset distance value and a preset included angle, the automatic adsorption of the electronic triangle and the line segment to be measured is realized, and in the measuring process, the vertex or the edge of the electronic triangle and the line segment are aligned without manual fine adjustment, so that the geometric figure measurement is more flexible and intelligent, the measuring efficiency and the accuracy of the electronic triangle are improved, and the measuring experience of a user is improved.
Further, the method further comprises the following steps:
receiving a movement instruction aiming at the electronic triangle, wherein the movement instruction comprises coordinates of three vertexes of the electronic triangle;
according to the coordinates of the three vertexes, the electronic triangle is moved to the corresponding positions;
or receiving a rotation instruction aiming at the electronic triangle, wherein the rotation instruction comprises a rotation direction and a rotation angle;
rotating the electronic triangle with the vertex of the electronic triangle as the center according to the rotation direction and the rotation angle;
or receiving a scaling instruction for the electronic triangle, wherein the scaling instruction comprises a scaling type and a scaling range;
and correspondingly scaling the electronic triangle according to the scaling type and the scaling range.
According to the description, the existing electronic triangle is only a model, and can only be simply measured, and through the design, the electronic triangle can be moved, rotated and scaled, and can be rotated clockwise or anticlockwise by 360 degrees based on the top point of the electronic triangle, so that the electronic triangle model size can be dynamically modified, the user variable requirements and variable application scenes can be met, the electronic triangle is enabled to continuously draw the graph in the screen, and the flexibility and convenience of using the electronic triangle are improved.
Further, the method further comprises the following steps:
creating a Btimap picture caching object in a memory, and caching a model of an electronic triangle to the Btimap picture caching object when the model of the electronic triangle is created;
and when the electronic triangle is moved or rotated, directly acquiring a model of the electronic triangle from the Btimap picture caching object to draw the electronic triangle.
As can be seen from the above description, in the process of rotating or moving the electronic triangle, the drawing of the electronic triangle is required, the coordinates of three vertices of the triangle need to be determined in the Canvas, then the three vertices are connected into the outer support of the triangle by Canvas, the scales on two sides of the triangle need to be calculated and drawn in the horizontal direction and the vertical direction based on the vertex coordinates, each scale needs to be calculated and drawn based on the vertex coordinates, and the created model of the electronic triangle is cached, when the electronic triangle is moved or rotated, only the Bitmap in the cache needs to be acquired again, the coordinates of each point of the electronic triangle model need not to be calculated again, and only the electronic triangle model in the cache needs to be rotated or moved, so that unnecessary construction of the electronic triangle model is reduced, and the drawing efficiency is improved.
Further, the method further comprises the following steps:
and receiving a drawing instruction based on the electronic triangle, and drawing a line segment according to the drawing instruction.
Further, the drawing of the line segment according to the drawing instruction includes:
acquiring a movement track within a preset range of the edge of the electronic triangle through an Android touch monitoring callback;
and caching the moving track, and drawing a corresponding line segment according to the moving track through a user-defined canvas.
The same measurement and mapping requirements.
According to the description, the existing electronic triangle is only a model, can only be simply measured, can not realize drawing, can identify a moving track by carrying out touch monitoring on a preset range of the side of the electronic triangle, and can draw line segments according to the moving track, so that drawing based on the electronic triangle is realized, a user can draw a geometric figure required by the user through the triangle, and imagination and creativity of the user can be stimulated.
Referring to fig. 2, an operation terminal based on an electronic triangle includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the following steps when executing the computer program:
s1, in the process of moving an electronic triangle to a line segment to be detected, judging whether the distance between the vertex of the electronic triangle and the starting point of the line segment to be detected is smaller than a preset distance value, if so, automatically moving the vertex of the electronic triangle to the starting point of the line segment to be detected;
s2, judging whether an included angle between one edge of the electronic triangle closest to the line segment to be tested and the line segment to be tested is smaller than a preset included angle in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be tested as the center to approach the line segment to be tested, and if yes, automatically moving one edge of the electronic triangle closest to the line segment to be tested to coincide with the line segment to be tested.
From the above description, the beneficial effects of the invention are as follows: through judging the distance between the electronic triangle and the starting point of the line segment to be measured and whether the included angle between one nearest side of the line segment to be measured and the line segment to be measured in the electronic triangle is smaller than a preset distance value and a preset included angle, the automatic adsorption of the electronic triangle and the line segment to be measured is realized, and in the measuring process, the vertex or the edge of the electronic triangle and the line segment are aligned without manual fine adjustment, so that the geometric figure measurement is more flexible and intelligent, the measuring efficiency and the accuracy of the electronic triangle are improved, and the measuring experience of a user is improved.
Further, the method further comprises the following steps:
receiving a movement instruction aiming at the electronic triangle, wherein the movement instruction comprises coordinates of three vertexes of the electronic triangle;
according to the coordinates of the three vertexes, the electronic triangle is moved to the corresponding positions;
or receiving a rotation instruction aiming at the electronic triangle, wherein the rotation instruction comprises a rotation direction and a rotation angle;
rotating the electronic triangle with the vertex of the electronic triangle as the center according to the rotation direction and the rotation angle;
or receiving a scaling instruction for the electronic triangle, wherein the scaling instruction comprises a scaling type and a scaling range;
and correspondingly scaling the electronic triangle according to the scaling type and the scaling range.
According to the description, the existing electronic triangle is only a model, and can only be simply measured, and through the design, the electronic triangle can be moved, rotated and scaled, and can be rotated clockwise or anticlockwise by 360 degrees based on the top point of the electronic triangle, so that the electronic triangle model size can be dynamically modified, the user variable requirements and variable application scenes can be met, the electronic triangle is enabled to continuously draw the graph in the screen, and the flexibility and convenience of using the electronic triangle are improved.
Further, the method further comprises the following steps:
creating a Btimap picture caching object in a memory, and caching a model of an electronic triangle to the Btimap picture caching object when the model of the electronic triangle is created;
and when the electronic triangle is moved or rotated, directly acquiring a model of the electronic triangle from the Btimap picture caching object to draw the electronic triangle.
As can be seen from the above description, in the process of rotating or moving the electronic triangle, the drawing of the electronic triangle is required, the coordinates of three vertices of the triangle need to be determined in the Canvas, then the three vertices are connected into the outer support of the triangle by Canvas, the scales on two sides of the triangle need to be calculated and drawn in the horizontal direction and the vertical direction based on the vertex coordinates, each scale needs to be calculated and drawn based on the vertex coordinates, and the created model of the electronic triangle is cached, when the electronic triangle is moved or rotated, only the Bitmap in the cache needs to be acquired again, the coordinates of each point of the electronic triangle model need not to be calculated again, and only the electronic triangle model in the cache needs to be rotated or moved, so that unnecessary construction of the electronic triangle model is reduced, and the drawing efficiency is improved.
Further, the method further comprises the following steps:
and receiving a drawing instruction based on the electronic triangle, and drawing a line segment according to the drawing instruction.
Further, the drawing of the line segment according to the drawing instruction includes:
acquiring a movement track within a preset range of the edge of the electronic triangle through an Android touch monitoring callback;
and caching the moving track, and drawing a corresponding line segment according to the moving track through a user-defined canvas.
The same measurement and mapping requirements.
According to the description, the existing electronic triangle is only a model, can only be simply measured, can not realize drawing, can identify a moving track by carrying out touch monitoring on a preset range of the side of the electronic triangle, and can draw line segments according to the moving track, so that drawing based on the electronic triangle is realized, a user can draw a geometric figure required by the user through the triangle, and imagination and creativity of the user can be stimulated.
Example 1
Referring to fig. 1, an operation method based on an electronic triangle, which is applicable to platforms such as Android mobile terminal devices, includes:
s1, in the process of moving an electronic triangle to a line segment to be detected, judging whether the distance between the vertex of the electronic triangle and the starting point of the line segment to be detected is smaller than a preset distance value, if so, automatically moving the vertex of the electronic triangle to the starting point of the line segment to be detected;
optionally, in the process of moving the electronic triangle, calculating the distance from the vertex coordinates of the electronic triangle to the line segment coordinates based on the line segment start point and end point coordinate sets, and automatically adsorbing the vertex when the distance between the two vertices is smaller than 10px, and automatically moving the vertex of the electronic triangle to the line segment vertex coordinate position to finish vertex adsorption;
as shown in FIG. 3, there is now a right-angle triangle, the vertex coordinates P (120, 160) of the right-angle triangle, there is another line segment AB, the starting point coordinates A (130, 150), during the triangle moving process, the vertex P is continuously close to the vertex A, when the PA distance is less than 10px (pixels), the right-angle triangle is wholly translated to the position of the point A, the point P covers the point A, and the adsorption of the vertex is completed;
s2, judging whether an included angle between one edge of the electronic triangle closest to the line segment to be tested and the line segment to be tested is smaller than a preset included angle in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be tested as the center to approach the line segment to be tested, and if so, automatically moving one edge of the electronic triangle closest to the line segment to be tested to coincide with the line segment to be tested;
optionally, after the vertex of the electronic triangle is adsorbed to the vertex of a certain line segment, rotating the triangle model, and when the edge clamping angle between the triangle edge and the adsorbed vertex is smaller than 10 degrees, automatically adsorbing the edge of the triangle to the edge;
as shown in fig. 4, in the conventional right-angle triangle, the vertex P of the triangle is adsorbed to the starting point a of the line segment AB, and the triangle is rotated counterclockwise, when the included angle between the triangle side PQ and the line segment AB is smaller than 10 degrees, the triangle automatically rotates counterclockwise by 10 degrees based on the vertex P, so that the side PQ of the triangle is overlapped with the line segment AP, and the line segment adsorption function is completed;
as shown in fig. 5, the electronic triangle tool is divided into three layers, from top to bottom: a tool box layer, an electronic triangle tool layer and a custom painting layer;
specifically, the tool box is located at the uppermost layer of the electronic triangle tool module, and different electronic triangle tool models can be selected through the tool box, so that two types of triangle models are provided, namely: right angle triangles and isosceles right angle triangles, wherein both electronic triangle models can appear in one view container at the same time;
electronic triangle tool layer: the layer is an integral core layer and is positioned below the toolbox layer and above the custom painting layer, the layer accommodates a tool model of an electronic triangle, and the whole electronic triangle model is drawn by Canvas custom;
the user-defined Canvas layer is positioned at the bottommost layer and is used for drawing the operation track to the layer, drawing line segments through Canvas, and finally displaying the line segments or graphics;
the electronic triangle tool model can be moved, rotated, scaled, drawn and closed through the operation icons on the electronic triangle tool model shown in fig. 3 and 4;
wherein the moving operation includes: the electronic triangle is operated in the electronic triangle model, and the electronic triangle can be moved up, down, left and right;
specifically, a movement instruction aiming at the electronic triangle is received, wherein the movement instruction comprises coordinates of three vertexes of the electronic triangle;
according to the coordinates of the three vertexes, the electronic triangle is moved to the corresponding positions;
the rotation operation includes: the vertex of the electronic triangle is taken as the center, so that clockwise or anticlockwise rotation of 0-360 degrees is realized;
specifically, a rotation instruction aiming at the electronic triangle is received, wherein the rotation instruction comprises a rotation direction and a rotation angle;
rotating the electronic triangle with the vertex of the electronic triangle as the center according to the rotation direction and the rotation angle;
the scaling operation comprises corresponding scaling according to different electronic triangle models and different scaleable size ranges based on the scale edges of the electronic triangles, and the scaling size ranges of different types of electronic triangles are listed as shown in table 1;
TABLE 1
Maximum size (cm) Minimum size (cm)
Isosceles right triangle Long side: 21 short sides: 21 Long side: 5 short sides: 5
Right-angle triangle Long side: 21 short sides: 11 Long side: 7 short sides: 4
Specifically, a scaling instruction aiming at the electronic triangle is received, wherein the scaling instruction comprises a scaling type and a scaling range;
corresponding scaling is carried out on the electronic triangle according to the scaling type and the scaling range;
preferably, a Btimap picture caching object is created in a memory, and when a model of an electronic triangle is created, the model of the electronic triangle is cached to the Btimap picture caching object;
when the electronic triangle is moved or rotated, directly acquiring a model of the electronic triangle from the Btimap picture caching object to draw the electronic triangle;
the drawing operation refers to drawing line segments based on the edges of the electronic triangle board;
specifically, a drawing instruction based on the electronic triangle is received, and line segments are drawn according to the drawing instruction;
wherein, the drawing of the line segment according to the drawing instruction includes:
acquiring a movement track within a preset range of the edge of the electronic triangle through an Android touch monitoring callback;
caching the moving track, and drawing a corresponding line segment according to the moving track through a user-defined canvas;
specifically, the user moves the finger in parallel within the range of 5px above and below the electronic triangle, acquires the track of the finger movement through the touch monitoring callback provided by Android, caches the movement track set, and notifies the user-defined canvas to draw the line segments according to the movement track, so that the drawing function is realized, and in the user-defined canvas, the starting point coordinates and the end point coordinates of all the line segments are cached, such as: {[50,120],[150,150]}.
Example two
Referring to fig. 2, an operation terminal 1 based on an electronic triangle includes a memory 2, a processor 3, and a computer program stored in the memory 2 and capable of running on the processor 3, wherein the processor 3 implements the steps in the first embodiment when executing the computer program.
Example III
As shown in fig. 6, the above operation method based on the electronic triangle is applied to the actual scenario, namely, the interaction between the teacher and the students in the smart classroom, and specifically includes:
step 1: the teacher uses the teaching tool menu to trigger a tool box opening instruction, and the tool box opening instruction informs a student end to open the tool box through a network;
step 2: the student end receives the instruction for opening the tool box and displays the tool box view on the interface;
step 3: the students open triangular plates (isosceles right angles or right angle triangular plates) through a common tool menu, corresponding triangular plate models are displayed on the interface, and custom canvas is created at the lower layer of the models;
step 4: the student operates the triangle, can move, zoom, rotate, draw the geometric figure to the triangle model up and down, left and right, move to the line segment vertex, carry on the vertex and absorb the operation; rotating the triangle based on the vertex, and performing the adsorption operation of the edge;
step 5: closing the triangle model by the student through a closing menu provided in the triangle model, and hiding the triangle model on the interface;
step 6: the teacher uses the teaching tool menu to trigger a tool box closing instruction, and the tool box closing instruction informs a student end to close the tool box through a network;
step 7: and the student end receives the instruction for closing the tool box, hides the tool box, the triangle tool model and the custom canvas on the interface, and clears the drawing graph on the canvas.
In summary, according to the operation method and the terminal based on the electronic triangle, by judging whether the distance between the electronic triangle and the starting point of the line segment to be measured and the included angle between the nearest side of the electronic triangle and the line segment to be measured are smaller than the preset distance value and the preset included angle, the automatic adsorption of the electronic triangle and the line segment to be measured is realized, and in the measurement process, the vertex or the edge of the electronic triangle and the line segment are aligned without manual fine adjustment, so that the measurement of the geometric figure is more flexible and intelligent, the drawing and the measurement of the geometric figure are convenient, the measurement efficiency and the measurement accuracy of the electronic triangle are improved, the measurement experience of a user is improved, and meanwhile, the use flexibility and the convenience of the electronic triangle are improved; and two different triangle models are supported to be opened on the same interface, so that complex geometric figures can be drawn and measured conveniently.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (2)

1. A method of operation based on an electronic triangle, comprising:
s1, in the process of moving an electronic triangle to a to-be-measured line segment, judging whether the distance between the vertex of the electronic triangle and the starting point of the to-be-measured line segment is smaller than a preset distance value, if so, automatically moving the vertex of the electronic triangle to the starting point of the to-be-measured line segment;
s2, judging whether an included angle between one edge of the electronic triangle closest to the line segment to be tested and the line segment to be tested is smaller than a preset included angle in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be tested as the center to approach the line segment to be tested, and if so, automatically moving one edge of the electronic triangle closest to the line segment to be tested to coincide with the line segment to be tested;
creating a Btimap picture caching object in a memory, and caching a model of an electronic triangle to the Btimap picture caching object when the model of the electronic triangle is created;
when the electronic triangle is moved or rotated, directly acquiring a model of the electronic triangle from the Btimap picture caching object to draw the electronic triangle;
including electronic set square instrument, electronic set square instrument includes: a tool box layer, an electronic triangle tool layer and a custom painting layer; different electronic triangle tool models can be selected through the tool box, and two different electronic triangle models can be simultaneously formed on the same interface; the electronic triangle tool layer accommodates a tool model of the electronic triangle; the user-defined canvas layer is used for drawing the operation track to the layer;
further comprises:
receiving a drawing instruction based on the electronic triangle, and drawing a line segment according to the drawing instruction;
the drawing of the line segment according to the drawing instruction comprises the following steps:
acquiring a movement track within a preset range of the edge of the electronic triangle through an Android touch monitoring callback;
caching the moving track, and drawing a corresponding line segment according to the moving track through a user-defined canvas;
further comprises:
receiving a movement instruction aiming at the electronic triangle, wherein the movement instruction comprises coordinates of three vertexes of the electronic triangle;
according to the coordinates of the three vertexes, the electronic triangle is moved to the corresponding positions;
or receiving a rotation instruction aiming at the electronic triangle, wherein the rotation instruction comprises a rotation direction and a rotation angle;
rotating the electronic triangle with the vertex of the electronic triangle as the center according to the rotation direction and the rotation angle;
or receiving a scaling instruction for the electronic triangle, wherein the scaling instruction comprises a scaling type and a scaling range;
and correspondingly scaling the electronic triangle according to the scaling type and the scaling range.
2. An electronic triangle-based operation terminal comprising a memory, a processor and a computer program stored on the memory and operable on the processor, characterized in that the processor implements the following steps when executing the computer program:
s1, in the process of moving an electronic triangle to a to-be-measured line segment, judging whether the distance between the vertex of the electronic triangle and the starting point of the to-be-measured line segment is smaller than a preset distance value, if so, automatically moving the vertex of the electronic triangle to the starting point of the to-be-measured line segment;
s2, judging whether an included angle between one edge of the electronic triangle closest to the line segment to be tested and the line segment to be tested is smaller than a preset included angle in the process of controlling the electronic triangle to rotate by taking the starting point of the line segment to be tested as the center to approach the line segment to be tested, and if so, automatically moving one edge of the electronic triangle closest to the line segment to be tested to coincide with the line segment to be tested;
creating a Btimap picture caching object in a memory, and caching a model of an electronic triangle to the Btimap picture caching object when the model of the electronic triangle is created;
when the electronic triangle is moved or rotated, directly acquiring a model of the electronic triangle from the Btimap picture caching object to draw the electronic triangle;
including electronic set square instrument, electronic set square instrument includes: a tool box layer, an electronic triangle tool layer and a custom painting layer; different electronic triangle tool models can be selected through the tool box, and two different electronic triangle models can be simultaneously formed on the same interface; the electronic triangle tool layer accommodates a tool model of the electronic triangle; the user-defined canvas layer is used for drawing the operation track to the layer;
further comprises:
receiving a drawing instruction based on the electronic triangle, and drawing a line segment according to the drawing instruction;
the drawing of the line segment according to the drawing instruction comprises the following steps:
acquiring a movement track within a preset range of the edge of the electronic triangle through an Android touch monitoring callback;
caching the moving track, and drawing a corresponding line segment according to the moving track through a user-defined canvas;
further comprises:
receiving a movement instruction aiming at the electronic triangle, wherein the movement instruction comprises coordinates of three vertexes of the electronic triangle;
according to the coordinates of the three vertexes, the electronic triangle is moved to the corresponding positions;
or receiving a rotation instruction aiming at the electronic triangle, wherein the rotation instruction comprises a rotation direction and a rotation angle;
rotating the electronic triangle with the vertex of the electronic triangle as the center according to the rotation direction and the rotation angle;
or receiving a scaling instruction for the electronic triangle, wherein the scaling instruction comprises a scaling type and a scaling range;
and correspondingly scaling the electronic triangle according to the scaling type and the scaling range.
CN201911396405.0A 2019-12-30 2019-12-30 Operation method and terminal based on electronic triangle Active CN113129650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911396405.0A CN113129650B (en) 2019-12-30 2019-12-30 Operation method and terminal based on electronic triangle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911396405.0A CN113129650B (en) 2019-12-30 2019-12-30 Operation method and terminal based on electronic triangle

Publications (2)

Publication Number Publication Date
CN113129650A CN113129650A (en) 2021-07-16
CN113129650B true CN113129650B (en) 2023-05-23

Family

ID=76767770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911396405.0A Active CN113129650B (en) 2019-12-30 2019-12-30 Operation method and terminal based on electronic triangle

Country Status (1)

Country Link
CN (1) CN113129650B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488828A (en) * 2015-12-29 2016-04-13 智慧方舟科技有限公司 Electronic set square system and working method thereof, and component part of electronic set square system
CN105807967A (en) * 2014-12-30 2016-07-27 鸿合科技有限公司 Writing method and device for electronic whiteboard
CN109191547A (en) * 2018-08-20 2019-01-11 广州视源电子科技股份有限公司 element adsorption method, device, equipment and storage medium
CN109240561A (en) * 2018-08-20 2019-01-18 广州视源电子科技股份有限公司 Rotate the absorbing elements selection method and device, Rotary adsorption method of element
CN110007847A (en) * 2019-04-02 2019-07-12 深圳市创凯智能股份有限公司 Writing method, device, equipment and readable storage medium storing program for executing based on touch screen

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170178012A1 (en) * 2015-12-17 2017-06-22 Microsoft Technology Licensing, Llc Precaching via input method trajectory prediction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807967A (en) * 2014-12-30 2016-07-27 鸿合科技有限公司 Writing method and device for electronic whiteboard
CN105488828A (en) * 2015-12-29 2016-04-13 智慧方舟科技有限公司 Electronic set square system and working method thereof, and component part of electronic set square system
CN109191547A (en) * 2018-08-20 2019-01-11 广州视源电子科技股份有限公司 element adsorption method, device, equipment and storage medium
CN109240561A (en) * 2018-08-20 2019-01-18 广州视源电子科技股份有限公司 Rotate the absorbing elements selection method and device, Rotary adsorption method of element
CN110007847A (en) * 2019-04-02 2019-07-12 深圳市创凯智能股份有限公司 Writing method, device, equipment and readable storage medium storing program for executing based on touch screen

Also Published As

Publication number Publication date
CN113129650A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US8860675B2 (en) Drawing aid system for multi-touch devices
US8896579B2 (en) Methods and apparatus for deformation of virtual brush marks via texture projection
US8997025B2 (en) Method, system and computer readable medium for document visualization with interactive folding gesture technique on a multi-touch display
CN204706206U (en) Computer teaching board of education
CN107729707B (en) Engineering construction lofting method based on mobile augmented reality technology and BIM
KR20160046150A (en) Apparatus and method for drawing and solving a figure content
AU2005202910A1 (en) A computer method controlling a display, and graphical tools for on-screen analysis
CN103488413A (en) Touch equipment and control method and device for displaying 3D (3-dimensional) interface on touch equipment
CN104679469B (en) The method of the screen resolution of car-mounted terminal and its acquisition handheld terminal
CN107230239A (en) Pattern drawing method, device and equipment
US11733861B2 (en) Interpreting inputs for three-dimensional virtual spaces from touchscreen interface gestures to improve user interface functionality
CN103164121A (en) Method and device for terminal software interface display
CN101593357B (en) Interactive volume cutting method based on three-dimensional plane control
US7773829B1 (en) Image-centric rulers
CN104385920A (en) Realization method of pointer type virtual instrument panel
CN113129650B (en) Operation method and terminal based on electronic triangle
CN107589937A (en) A kind of method that simulation function of angle gauge is realized based on virtual technology
CN205645031U (en) Finance specialty is with show board
CN103941978B (en) Displaying method for control content
CN104715452B (en) Regular prism plane display method and device
WO2016054859A1 (en) Electronic map hierarchical management method
CN103106687B (en) The computer generating method of three-dimensional ocean grid and device thereof in self-adaptation FOV (Field of View)
CN213814640U (en) Teaching board for mathematics classroom teaching
CN116740298B (en) Method for constructing scene real-time map based on three-dimensional engine
CN114397960B (en) Flight control direction visualization method based on intelligent mobile equipment

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