CN110865711A - Position switching method, system, device and storage medium for Android equipment three-dimensional model roaming - Google Patents
Position switching method, system, device and storage medium for Android equipment three-dimensional model roaming Download PDFInfo
- Publication number
- CN110865711A CN110865711A CN201911152190.8A CN201911152190A CN110865711A CN 110865711 A CN110865711 A CN 110865711A CN 201911152190 A CN201911152190 A CN 201911152190A CN 110865711 A CN110865711 A CN 110865711A
- Authority
- CN
- China
- Prior art keywords
- dimensional model
- gyroscope
- android
- roaming
- physical action
- 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.)
- Pending
Links
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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention belongs to the technical field of engineering design, and particularly relates to a position switching method, a system, a device and a storage medium for Android equipment three-dimensional model roaming. The method comprises the steps that the relation between the preset physical action of the Android equipment and position switching operation when the three-dimensional model roams is established in advance; calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment; and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams. The user is not required to conduct extra operation to appoint to switch to a specific plane, operation convenience is high, time consumption for completing position switching in the vertical direction is short, and three-dimensional model roaming experience of a mobile terminal, particularly on Android equipment, is improved.
Description
Technical Field
The invention belongs to the technical field of three-dimensional model roaming, and particularly relates to a position switching method, a system, a device and a storage medium for Android equipment three-dimensional model roaming.
Background
In the roaming of the three-dimensional model, when the method is executed on a device such as a notebook having a keyboard, the shortcut key WASD is usually used to realize the forward, backward, left and right movements of the same plane, and the up and down movements of the three-dimensional space are executed by the shortcut key QE. However, in some scenes, when the mobile terminal roams the three-dimensional model, the position switching needs to be realized without the assistance of a keyboard, the front, the back, the left and the right in the horizontal direction can be realized by depending on a direction wheel disc at the left lower corner of the mobile terminal, and the design can basically solve the roaming of most of the current three-dimensional space.
However, the roaming experience of a part of three-dimensional space is not good, especially in the building model field, the roaming needs to be switched among different floors besides the front, back, left and right directions of the same floor. Because the mobile terminal is not assisted by a keyboard, the switching of floors in the vertical direction usually needs to return to a main interface, switch to a designated floor by selecting the floor, or design a control of a floor option in an original roaming interface.
Both the above two modes require the user to perform extra operation to designate the switching to a specific certain plane, so that the operation convenience is poor, and the time consumption for completing the position switching in the vertical direction is long, thereby causing poor roaming experience.
Disclosure of Invention
The technical problem to be solved by the invention is that the switching of the vertical position during the model roaming needs to be realized by the user through additional operation, and the operation is poor in convenience and long in time consumption, so that the roaming experience of the mobile terminal, especially the Android device, is poor.
Therefore, according to a first aspect, the embodiment of the invention discloses a position switching method for Android device three-dimensional model roaming, which includes: the method comprises the steps of pre-establishing a relation between a preset physical action and a position switching operation of the Android device when the three-dimensional model roams; calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment; and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
Further, calling an API of the Android device to create a gyroscope object, and monitoring real-time physical actions of the Android device specifically include: detecting the rotation of the gyroscope, and creating a gyroscope object of the Android device; and creating a monitor of the gyroscope object, and monitoring and calculating direction data of the gyroscope through the monitor so as to confirm the real-time physical action.
Further, the monitor controls the sampling frequency by using a sensor sampling delay constant when detecting.
Further, the direction data is spatial position information of the gyroscope.
Further, the spatial position information of the gyroscope is the angular speed of the Android device along the X axis, the Y axis and the Z axis.
Further, the preset physical action is left-right rotation or up-down tilting.
In a second aspect, an embodiment of the present invention provides a location switching system for roaming of a three-dimensional model of an Android device, including: the relationship definition module: the method comprises the steps of pre-establishing a relation between a preset physical action and a position switching operation of the Android device when the three-dimensional model roams; a real-time detection module: calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment; a position switching module: and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
Further, the real-time detection module further comprises: a data conversion unit: detecting the rotation of the gyroscope, and creating a gyroscope object of the Android device; an operation confirmation unit: and creating a monitor of the gyroscope object, and monitoring and calculating direction data of the gyroscope through the monitor so as to confirm the real-time physical action.
According to a third aspect, the present invention provides a computer apparatus, which includes a processor, and the processor is configured to execute a computer program stored in a memory to implement the method for switching a location for roaming in a three-dimensional model of an Android device according to any one of the first aspect.
According to a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where a processor is configured to execute the computer program stored in the storage medium to implement the method for switching a location of roaming in a three-dimensional model of an Android device according to any one of the first aspects.
The invention has the beneficial effects that:
the embodiment of the invention discloses a position switching method for Android equipment three-dimensional model roaming, which is characterized in that the relation between the preset physical action of Android equipment and position switching operation during the three-dimensional model roaming is pre-established; calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment; and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams. The user is not required to conduct extra operation to appoint to switch to a specific plane, operation convenience is high, time consumption for completing position switching in the vertical direction is short, and three-dimensional model roaming experience of a mobile terminal, particularly on Android equipment, is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a first flowchart of a location switching method for Android device three-dimensional model roaming according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a position switching system for Android device three-dimensional model roaming according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a first flowchart of a location switching method for Android device three-dimensional model roaming disclosed in this embodiment is shown, where the location switching method for Android device three-dimensional model roaming includes:
and S100, pre-establishing a relation between a preset physical action of the Android device and position switching operation during three-dimensional model roaming.
In this embodiment, a relationship between a specific preset physical action and a position switch of the user for operating the Android device needs to be set first, and a common preset physical action may be left-right rotation or up-down inclination, where the up-down inclination is a certain angle of downward swing of the top of the mobile phone, and the down-down inclination is a certain angle of downward swing of the top of the mobile phone. Then, the specific position switching operations are bound, for example, a preset physical action of rotating leftward (clockwise rotation) may be defined as an operation of vertically roaming upward, and a preset physical action of rotating rightward (counterclockwise rotation) may be defined as an operation of vertically roaming downward, so that a selection of various operation combinations may be provided, so that the user may switch according to habits.
And S200, calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment.
In this embodiment, when the user roams in the model of the Android device, the user needs to roam the model in the vertical direction, and may wake up a corresponding operation by rotating the mobile phone. The method includes the steps that an Android device gyroscope detects occurrence of a rotation event, after a response event is detected, an Android device API is called to create a gyroscope object, in the embodiment, the gyroscope object is a gyroscope SENSOR, a monitor is created according to the gyroscope SENSOR, direction data of the gyroscope is calculated through detection of the monitor, and when the SENSOR is registered and monitored, a SENSOR sampling DELAY constant SENSOR _ DELAY _ NORMAL is used for ensuring sampling frequency of the gyroscope object, so that accuracy of direction data acquisition is improved.
The direction data is spatial position information of the gyroscope, specifically angular velocities of the Android device along an X axis, a Y axis and a Z axis. The three values are raw data of the gyro sensor, and in the case of counterclockwise rotation along any axis, the value associated with the axis is a positive value. In the case of clockwise rotation, negative; and judging the preset physical action to which the real-time physical action belongs according to whether the rotation along a certain axis belongs to a positive value or a negative value.
And step S300, forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
And mapping the specific real-time physical action and the preset physical action according to the judgment of the step S200, and triggering position switching operation with the association relationship through the mapped preset physical action so as to realize the movement in the vertical direction when the three-dimensional model roams.
The scheme of the invention is based on the law of conservation of angular momentum, and the rotation rate is measured along a certain coordinate axis. In use, the rotor of the gyroscope always points to a fixed direction when rotating, and the gyroscope can sense when the moving direction of the moving object deviates from a preset direction. The working principle of the mobile phone gyroscope is that a silicon gyroscope in a mobile phone can enable a mechanical structure in the mobile phone to be driven by electrostatic force, and if the mobile phone gyroscope rotates, displacement is generated in the orthogonal direction due to Coriolis force, and then capacitance change is generated. The displacement is in direct proportion to the rotation angular speed, and the change of the capacitance of the detector is converted into a Digital Signal Processing, and then the Digital Signal Processing can be delivered to an application processor for Processing.
The embodiment of the invention discloses a position switching method for Android equipment three-dimensional model roaming, which is characterized in that the relation between the preset physical action of Android equipment and position switching operation during the three-dimensional model roaming is pre-established; calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment; and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams. The user is not required to conduct extra operation to appoint to switch to a specific plane, operation convenience is high, time consumption for completing position switching in the vertical direction is short, and three-dimensional model roaming experience of a mobile terminal, particularly on Android equipment, is improved.
The present embodiment also discloses a position switching system for Android device three-dimensional model roaming, please refer to fig. 2, which is a schematic structural diagram of the position switching system for Android device three-dimensional model roaming, and the position switching system for Android device three-dimensional model roaming includes:
the relationship definition module 10: the method comprises the steps of pre-establishing a relation between a preset physical action and a position switching operation of the Android device when the three-dimensional model roams;
the real-time detection module 20: calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment;
position switching module 30: and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
Further, the identification module includes: the version establishing unit is used for establishing an initial version when the query result is empty; when the query result has a historical version, adding the version to establish a new version; and the identifier generating unit is used for generating the query identifier according to the established file name and version number of the initial version or the new version.
Further, the real-time detection module further comprises: a data conversion unit: detecting the rotation of the gyroscope, and creating a gyroscope object of the Android device; an operation confirmation unit: and creating a monitor of the gyroscope object, and monitoring and calculating direction data of the gyroscope through the monitor so as to confirm the real-time physical action.
In addition, an embodiment of the present invention further provides a computer apparatus, where a processor executes the computer instructions, so as to implement the following method:
the method comprises the steps of pre-establishing a relation between a preset physical action and a position switching operation of the Android device when the three-dimensional model roams; calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment; and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. The computer processor is used to execute a computer program stored in a storage medium to implement the following method:
the method comprises the steps of pre-establishing a relation between a preset physical action and a position switching operation of the Android device when the three-dimensional model roams; calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment; and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
The foregoing is merely an example of the present invention and common general knowledge of known specific structures and features of the embodiments is not described herein in any greater detail. It should be noted that variations and modifications can be made by those skilled in the art without departing from the structure of the present invention. These should also be construed as the scope of the present invention, and they should not be construed as affecting the effectiveness of the practice of the present invention or the applicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.
Claims (10)
1. A position switching method for Android equipment three-dimensional model roaming is characterized by comprising the following steps:
the method comprises the steps of pre-establishing a relation between a preset physical action and a position switching operation of the Android device when the three-dimensional model roams;
calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment;
and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
2. The method for switching the roaming position of the three-dimensional model of the Android device according to claim 1, wherein: calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment specifically comprises the following steps:
detecting the rotation of the gyroscope, and creating a gyroscope object of the Android device;
and creating a monitor of the gyroscope object, and monitoring and calculating direction data of the gyroscope through the monitor so as to confirm the real-time physical action.
3. The position switching method for Android device three-dimensional model roaming of claim 2, wherein the listener controls a sampling frequency using a sensor sampling delay constant during detection.
4. The method of claim 3, wherein the direction data is spatial position information of the gyroscope.
5. The method for switching the roaming position of the three-dimensional model of the Android device according to claim 4, wherein the spatial position information of the gyroscope is angular velocities of the Android device along an X axis, a Y axis and a Z axis.
6. The position switch for roaming of the Android device three-dimensional model as claimed in any one of claims 1 to 5, wherein the preset physical action is a left-right rotation or an up-down tilt.
7. A position switching system for Android device three-dimensional model roaming, comprising:
the relationship definition module: the method comprises the steps of pre-establishing a relation between a preset physical action and a position switching operation of the Android device when the three-dimensional model roams;
a real-time detection module: calling an API of the Android equipment to create a gyroscope object, and monitoring real-time physical actions of the Android equipment;
a position switching module: and forming a mapping relation between the real-time physical action and the preset physical action to trigger corresponding position switching operation, so that the movement in the vertical direction is realized when the three-dimensional model roams.
8. The system of claim 7, wherein the real-time detection module further comprises:
a data conversion unit: detecting the rotation of the gyroscope, and creating a gyroscope object of the Android device;
an operation confirmation unit: and creating a monitor of the gyroscope object, and monitoring and calculating direction data of the gyroscope through the monitor so as to confirm the real-time physical action.
9. A computer arrangement comprising a processor for executing a computer program stored in a memory to implement the method for location switching for roaming in three-dimensional models of Android devices as claimed in any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, wherein a processor is configured to execute the computer program stored in the storage medium to implement the method for location switching for roaming on the three-dimensional model of the Android device according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911152190.8A CN110865711A (en) | 2019-11-22 | 2019-11-22 | Position switching method, system, device and storage medium for Android equipment three-dimensional model roaming |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911152190.8A CN110865711A (en) | 2019-11-22 | 2019-11-22 | Position switching method, system, device and storage medium for Android equipment three-dimensional model roaming |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110865711A true CN110865711A (en) | 2020-03-06 |
Family
ID=69655140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911152190.8A Pending CN110865711A (en) | 2019-11-22 | 2019-11-22 | Position switching method, system, device and storage medium for Android equipment three-dimensional model roaming |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110865711A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190004618A1 (en) * | 2017-06-29 | 2019-01-03 | Trimble Inc. | Navigation methods for three dimensional (3d) models in mixed reality (mr) environments |
CN109550246A (en) * | 2017-09-25 | 2019-04-02 | 腾讯科技(深圳)有限公司 | Control method, device, storage medium and the electronic device of game client |
CN109903380A (en) * | 2019-03-14 | 2019-06-18 | 广州世峰数字科技有限公司 | A kind of three-dimensional building model and information show interface layout system |
CN110465073A (en) * | 2019-08-08 | 2019-11-19 | 腾讯科技(深圳)有限公司 | Method, apparatus, equipment and the readable storage medium storing program for executing that visual angle adjusts in virtual environment |
-
2019
- 2019-11-22 CN CN201911152190.8A patent/CN110865711A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190004618A1 (en) * | 2017-06-29 | 2019-01-03 | Trimble Inc. | Navigation methods for three dimensional (3d) models in mixed reality (mr) environments |
CN109550246A (en) * | 2017-09-25 | 2019-04-02 | 腾讯科技(深圳)有限公司 | Control method, device, storage medium and the electronic device of game client |
CN109903380A (en) * | 2019-03-14 | 2019-06-18 | 广州世峰数字科技有限公司 | A kind of three-dimensional building model and information show interface layout system |
CN110465073A (en) * | 2019-08-08 | 2019-11-19 | 腾讯科技(深圳)有限公司 | Method, apparatus, equipment and the readable storage medium storing program for executing that visual angle adjusts in virtual environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2722730B1 (en) | Mobile terminal and method for moving cursor thereof | |
WO2017133498A1 (en) | Intelligent device and intelligent device control method | |
EP2631759A2 (en) | Apparatus and method for switching active application | |
EP3033669B1 (en) | Context sensitive actions in response to touch input | |
US8797283B2 (en) | Method and apparatus for performing user-defined macros | |
EP3818674B1 (en) | Enhancing security using anomaly detection | |
WO2018090705A1 (en) | Method of moving and controlling character, device, data synchronization method, and system | |
US9658770B2 (en) | Method and apparatus for processing inputting of character | |
CN105242780A (en) | Interactive control method and apparatus | |
JP2015195567A (en) | Display control method, display control program, and information processing terminal | |
US20150002417A1 (en) | Method of processing user input and apparatus using the same | |
CN111694013A (en) | Method, device and equipment for constructing map of reflective column and storage medium | |
CN110865560A (en) | Zero-returning motion control method, terminal device and computer readable storage medium | |
CN105988561A (en) | Starting method and device of terminal application program | |
CN110865711A (en) | Position switching method, system, device and storage medium for Android equipment three-dimensional model roaming | |
WO2014082417A1 (en) | Operation method and operation control method of aerial input device, and related apparatus | |
CN106500689B (en) | Method for determining posture of mobile terminal and mobile terminal | |
CN110928430A (en) | Position switching method, system, device and storage medium for three-dimensional model roaming of iOS (internet operating system) equipment | |
JP2016018260A (en) | Client server system, control method, and control program | |
CN114830853A (en) | Mobile grading machine with improved grading control system | |
CN112416140B (en) | Method and equipment for inputting characters | |
EP3264203A1 (en) | Intelligent interaction method, equipment and system | |
WO2018077250A1 (en) | Method and apparatus for determining motion parameters | |
WO2016015279A1 (en) | Processing method for inputting information and mobile terminal | |
CN104575540A (en) | Method and device for controlling loudspeaker box |
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 |