CN113306391A - Pointer display method and device, electronic equipment and medium - Google Patents

Pointer display method and device, electronic equipment and medium Download PDF

Info

Publication number
CN113306391A
CN113306391A CN202110670981.0A CN202110670981A CN113306391A CN 113306391 A CN113306391 A CN 113306391A CN 202110670981 A CN202110670981 A CN 202110670981A CN 113306391 A CN113306391 A CN 113306391A
Authority
CN
China
Prior art keywords
target
virtual pointer
distance
pointer
acceleration
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
Application number
CN202110670981.0A
Other languages
Chinese (zh)
Other versions
CN113306391B (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.)
FAW Jiefang Automotive Co Ltd
FAW Jiefang Qingdao Automobile Co Ltd
Original Assignee
FAW Jiefang Automotive Co Ltd
FAW Jiefang Qingdao Automobile Co 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 FAW Jiefang Automotive Co Ltd, FAW Jiefang Qingdao Automobile Co Ltd filed Critical FAW Jiefang Automotive Co Ltd
Priority to CN202110670981.0A priority Critical patent/CN113306391B/en
Publication of CN113306391A publication Critical patent/CN113306391A/en
Application granted granted Critical
Publication of CN113306391B publication Critical patent/CN113306391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Arrangement of adaptations of instruments
    • B60K35/28
    • B60K2360/167

Abstract

The embodiment of the application discloses a pointer display method, a pointer display device, electronic equipment and a medium, wherein the method comprises the following steps: if the position of the virtual pointer is detected to need updating, controlling the virtual pointer to perform accelerated motion based on the first target acceleration; if the moved distance of the virtual pointer is inconsistent with the target moving distance and the current speed reaches a preset target speed, determining a second target acceleration according to the preset target speed and the distance difference between the target moving distance and the moved distance; and controlling the virtual pointer to perform deceleration movement based on the second target acceleration until the moved distance is consistent with the target movement distance or the virtual pointer performs deceleration movement to stop. The scheme can adaptively determine the acceleration of the virtual pointer in the motion process of the virtual pointer, and solves the problem that the virtual pointer can not realize the consideration of expressing the transition state and shortening the response time, so that the virtual pointer can smoothly express the transition state in the early stage and the later stage of the motion, and the response speed can be improved in the middle stage.

Description

Pointer display method and device, electronic equipment and medium
Technical Field
The embodiment of the application relates to the field of screen display, in particular to a pointer display method and device, electronic equipment and a medium.
Background
At present, liquid crystal screens are more and more widely applied, under a plurality of application scenes, various functional parts of a traditional instrument are replaced by the liquid crystal screens for the full liquid crystal instrument, typically, a rotating speed pointer and a vehicle speed pointer in a vehicle do not use a traditional mechanical pointer, but display is carried out through a virtual pointer on the liquid crystal screens.
The traditional pointer is acted by the driving force of a motor and has a movement tendency; meanwhile, as a real object, the traditional pointer has inertia and can be subjected to resistance in the moving process, so that the pointer has a tendency of being static. Under the action of the driving force and the resistance, the pointer can show a motion state of acceleration or deceleration. The virtual pointer of the full liquid crystal instrument is calculated and displayed by the cpu and the gpu after a certain mathematical model is selected, and the virtual pointer has no physical characteristics such as quality, driving force, resistance and the like, so that the virtual pointer is greatly different from the traditional pointer.
Based on the scheme of controlling the movement of the virtual pointer by the current mathematical model, the response speed of the virtual pointer in the first half is high, the response speed of the virtual pointer in the second half is low, the duration time of the transition state of the change of the virtual pointer in the first half is too short, and a user cannot feel the transition state easily. Moreover, based on the current model, it is difficult to achieve both the representation of the transient state and the reduction of the response time, and the user's demand cannot be satisfied.
Disclosure of Invention
Embodiments of the present application provide a pointer display method, an apparatus, an electronic device, and a medium, so that in a virtual pointer movement process, a transition state can be embodied, and response time can be improved.
In one embodiment, an embodiment of the present application provides a pointer display method, including:
if the position of the virtual pointer is detected to need updating, controlling the virtual pointer to perform accelerated motion based on a first target acceleration;
if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches a preset target speed, determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance;
and controlling the virtual pointer to perform deceleration movement based on the second target acceleration until the moved distance is consistent with the target movement distance or the virtual pointer performs deceleration movement to stop.
In another embodiment, an embodiment of the present application further provides a pointer display apparatus, including:
the acceleration motion control module is used for controlling the virtual pointer to perform acceleration motion based on a first target acceleration if the position of the virtual pointer is detected to need updating;
the acceleration determining module is used for determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches the preset target speed;
and the deceleration motion control module is used for controlling the virtual pointer to perform deceleration motion based on the second target acceleration until the moved distance is consistent with the target motion distance or the virtual pointer is decelerated to stop.
In another embodiment, an embodiment of the present application further provides an electronic device, including: one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the pointer display method according to any one of the embodiments of the present application.
In one embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the pointer display method according to any one of the embodiments of the present application.
In the embodiment of the application, if it is detected that the position of the virtual pointer needs to be updated, the virtual pointer is controlled to perform accelerated motion based on the first target acceleration, so that the virtual pointer can smoothly move in the previous motion and gradually accelerate to achieve a faster response in the middle motion, if the moved distance of the virtual pointer is inconsistent with the target moving distance and the current speed reaches the preset target speed, a second target acceleration is determined according to the preset target speed and the distance difference between the target moving distance and the moved distance, the virtual pointer is controlled to perform decelerated motion based on the second target acceleration until the moved distance is consistent with the target moving distance or the virtual pointer decelerates to stop, so that the virtual pointer decelerates after the middle acceleration and can resume the smooth motion in the later motion, the transition state is displayed for the user, the user feels the gradual change state of the virtual pointer from the initial position to the target position, and the response time can be improved due to medium-term acceleration.
Drawings
FIG. 1 is a flowchart illustrating a method for displaying a pointer according to an embodiment of the present application;
FIG. 2 is a schematic diagram of pointer acceleration provided in accordance with an embodiment of the present application;
FIG. 3 is a flowchart of a pointer display method according to another embodiment of the present application;
fig. 4 is a flowchart illustrating a specific implementation of a pointer display method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a pointer display device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a pointer display method according to an embodiment of the present application. The pointer display method provided by the embodiment of the application can be suitable for the situation of displaying the pointer. Typically, the embodiment of the present application is applied to a case of controlling the motion display of the virtual pointer. The method can be specifically executed by a pointer display device, the device can be realized by software and/or hardware, the device can be integrated into electronic equipment capable of realizing the pointer display method, and the electronic equipment can be a computer, a mobile phone, a tablet computer, wearable equipment and the like. Referring to fig. 1, the method of the embodiment of the present application specifically includes:
and S110, if the position of the virtual pointer is detected to need to be updated, controlling the virtual pointer to perform accelerated motion based on the first target acceleration.
The virtual pointer may be a non-mechanical pointer displayed on an electronic display screen, such as a pointer drawn on the display screen. The electronic display screen may be a dashboard or a central control screen in the vehicle. The position of the virtual pointer may represent the position of the virtual pointer when pointing on the dial.
In the embodiment of the present application, the virtual pointer makes a circular motion, and in order to describe the motion condition of the virtual pointer, the acceleration of the circular motion of the virtual pointer is decomposed, and if the rotation trajectory of the virtual pointer is stretched into a straight line, the acceleration of the virtual pointer making the straight line motion is the acceleration along the tangential direction of the rotation trajectory, so the accelerations in the embodiment of the present application all refer to the acceleration along the tangential direction of the rotation trajectory of the virtual pointer. The first target acceleration is an acceleration in a tangential direction at a point on the outer end of the virtual pointer on the rotation locus of the outer end of the virtual pointer, and as shown in fig. 2, if the virtual pointer moves from the position of the indication 40 to the position of the indication 60, the first target acceleration is an acceleration noted in fig. 2 at the position indicated by the virtual pointer at this time.
If the parameter indicated by the virtual pointer changes, the position of the virtual pointer is determined to need updating, for example, if the vehicle speed is increased from 40 km/h to 80 km/h, the virtual pointer is determined to need updating when the current position indicating 40 km/h is changed to the position indicating 80 km/h. It is detected whether the position of the virtual pointer needs to be updated, that is, whether the index value indicated by the virtual pointer changes. And if the index value is not changed, determining that the position of the virtual pointer does not need to be updated.
For example, the electronic device detects in real time whether the index value indicated by the virtual pointer changes, that is, whether the position of the virtual pointer needs to be updated, and if the position of the virtual pointer does not need to be updated, the electronic device does not need to control the virtual pointer to move. And if the position of the virtual pointer needs to be updated, determining a first target acceleration of the virtual pointer for moving, and controlling the virtual pointer to move based on the first target acceleration.
And S120, if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches a preset target speed, determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance.
The moved distance may be the length of the trajectory traveled by the virtual pointer from the initial position to the current time when the virtual pointer performs the accelerated motion, and the target moving distance may be the length of the trajectory traveled by the virtual pointer from the initial position to the target position. The preset target speed is a preset speed peak value, and the accelerated motion of the virtual pointer reaches the speed peak value.
Illustratively, if it is detected that the moved distance of the virtual pointer is inconsistent with the target movement distance, it is determined that the virtual pointer has not yet reached the target position and still needs to be moved, it is determined whether the current speed of the virtual pointer reaches a preset target speed, if the current speed has reached the preset target speed, it is determined that the virtual pointer has reached a preset speed peak, the movement speed reaches a higher value in the current middle movement stage, has a faster response speed, deceleration is subsequently required to achieve the appearance of a transitional state before reaching the target position, with a smooth transition to the target position, and, therefore, and determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance, namely the residual movement distance, wherein the second target acceleration is actually a negative value and is used for controlling the virtual pointer to perform deceleration movement.
The beneficial effects of the above scheme are that, can make the virtual pointer accelerate smoothly in the early stage, show transition state for the user, accelerate to preset target speed in the middle stage, reach the speed peak value, realize high-speed motion for response time, and after reaching preset target speed, confirm the virtual pointer of second target acceleration control speed reduction, smooth transition to the target location shows transition state for the user, improves user experience.
And S130, controlling the virtual pointer to perform deceleration movement based on the second target acceleration until the moved distance is consistent with the target movement distance or the virtual pointer performs deceleration movement until the virtual pointer stops.
Illustratively, the deceleration movement of the virtual pointer is controlled based on the second target acceleration, the movement state of the virtual pointer is detected in real time during the movement, and if the moved distance of the virtual pointer is consistent with the target movement distance, namely, the virtual pointer is moved to the target position, the virtual pointer is determined to have moved to the target position. Or decelerating the movement to a stop, since the second target acceleration of the virtual pointer is determined according to a distance difference between the moved distance and the target movement distance, when the virtual pointer decelerates to the stop, the virtual pointer is determined to move to the target position, and when the virtual pointer moves to the target position, the virtual pointer may be controlled to stop moving.
In the embodiment of the application, the virtual pointer performs deceleration movement at the later stage of movement, and when the virtual pointer moves to the adjacent target position, the speed is decelerated to be close to zero, so that the effect of smoothly moving to the target position can be shown, a transition state is embodied, and the user experience is improved.
In the embodiment of the application, if it is detected that the position of the virtual pointer needs to be updated, the virtual pointer is controlled to perform accelerated motion based on the first target acceleration, so that the virtual pointer can smoothly move in the previous motion and gradually accelerate to achieve a faster response in the middle motion, if the moved distance of the virtual pointer is inconsistent with the target moving distance and the current speed reaches the preset target speed, a second target acceleration is determined according to the preset target speed and the distance difference between the target moving distance and the moved distance, the virtual pointer is controlled to perform decelerated motion based on the second target acceleration until the moved distance is consistent with the target moving distance or the virtual pointer decelerates to stop, so that the virtual pointer decelerates after the middle acceleration and can resume the smooth motion in the later motion, the transition state is displayed for the user, the user feels the gradual change state of the virtual pointer from the initial position to the target position, and the response time can be improved due to medium-term acceleration.
Fig. 3 is a flowchart of a pointer display method according to another embodiment of the present application. For further optimization of the embodiments, details which are not described in detail in the embodiments of the present application are described in the embodiments. Referring to fig. 3, a pointer display method provided in an embodiment of the present application may include:
s210, if the position of the virtual pointer is detected to need to be updated, determining the target position and the current position of the virtual pointer.
For example, if it is detected that the index value indicated by the virtual pointer changes, that is, the position of the virtual pointer needs to be updated, the current position of the virtual pointer and the target position that needs to be moved need to be determined. For example, if the initial vehicle speed is 20 km/h and the current vehicle speed is adjusted to 40 km/h, the current position of the virtual pointer is a position indicating 20 km/h and the target position is a position indicating 40 km/h before the virtual pointer is adjusted.
S220, determining the target movement distance of the virtual pointer according to the target position and the current position.
For example, according to the target position and the current position, the target movement distance of the virtual pointer, that is, the virtual pointer moves from the current position to the target position, and the outer end of the virtual pointer traverses the length of the trajectory, may specifically be calculated according to the central angle of the virtual pointer rotated from the current position to the target position and the length of the virtual pointer.
And S230, determining a first target acceleration associated with the target movement distance based on the association relationship between the movement distance and the acceleration.
The incidence relation between the movement distance and the acceleration can be determined according to actual conditions, so that the movement speed of the virtual pointer is controlled through the incidence relation between the movement distance and the acceleration, and the response time of the virtual pointer is further controlled. For example, the movement distance may be set in proportion to the acceleration, and the larger the movement distance, the larger the acceleration, and the smaller the movement distance, the smaller the acceleration. According to the association relationship between the movement distance and the acceleration, a first target acceleration associated with the target movement distance can be determined, so that the virtual pointer is controlled to perform accelerated movement according to the first target acceleration.
And S240, controlling the virtual pointer to perform accelerated motion based on the first target acceleration.
And S250, if the moved distance of the virtual pointer is not consistent with the target movement distance and the current speed reaches a preset target speed, determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance.
In an embodiment of the present application, the method further includes: determining the preset speed according to a preset distance and the acceleration associated with the movement distance; wherein the preset distance is smaller than the movement distance; and determining the association relation among the movement distance, the acceleration and the preset speed. The process of determining the preset target speed comprises the following steps: and determining a preset target speed associated with the target movement distance based on the association relation among the movement distance, the acceleration and the preset speed.
Exemplary, predeterminedThe preset distance and the acceleration are determined, the preset speed can be determined, and then the association relation among the movement distance, the acceleration and the preset speed is established. The preset speed is a speed peak value reached by the virtual pointer when the moving distance is the preset distance and the linear uniform acceleration movement is carried out based on the acceleration under the condition that the initial speed of the virtual pointer is zero. Specifically, it can be calculated according to the following formula: v. of2Where v is a predetermined velocity, a is an acceleration, and S is a predetermined distance, where the predetermined distance may be selected as a fraction of the movement distance, e.g., one-third, one-half, etc. of the movement distance. In this application embodiment, the preset distance may be set to be half of the movement distance, that is, when the virtual pointer is controlled to move to half of the movement distance with the acceleration, the speed reaches the preset speed, that is, the speed peak value, so that the virtual pointer moves at a gentle speed in the early stage and the later stage, the transition effect is realized, the middle stage moves quickly, and the response time is shortened. In the actual application process, after the target movement distance is determined, the preset target speed associated with the target movement distance is determined according to the association relation among the movement distance, the acceleration and the preset speed, and therefore the speed peak value to which the virtual pointer needs to move is determined.
And S260, controlling the virtual pointer to perform deceleration movement based on the second target acceleration until the moved distance is consistent with the target movement distance or the virtual pointer performs deceleration movement until the virtual pointer stops.
In an embodiment of the present application, the method further includes: detecting whether the moved distance of the virtual pointer is consistent with the target movement distance or not according to a preset frequency; if the virtual pointer is consistent with the preset virtual pointer, controlling the virtual pointer to stop moving; and if not, controlling the virtual pointer to continue moving.
Illustratively, the moving distance of the virtual pointer is detected according to a preset frequency, and whether the virtual pointer moves to the target position is determined. And if the virtual pointer does not move to the target position, controlling the virtual pointer to continue moving according to the movement scheme until the condition that the virtual pointer stops moving is met.
In the embodiment of the application, whether the child needs to be updated or not is detected through the virtual pointer in real time, when the child needs to be updated, the target movement distance of the virtual pointer is determined, then the first target acceleration is determined according to the target movement distance, the virtual pointer is controlled to move in an accelerated mode based on the first target acceleration, therefore the position of the virtual pointer is updated, and the updated index value is indicated.
In this embodiment, in S250, if the moved distance of the virtual pointer is not consistent with the target moving distance and the current speed reaches the preset target speed, the virtual pointer is controlled to move at a constant speed at the preset target speed for a preset time, and then the second target acceleration is determined according to the preset target speed and the distance difference between the target moving distance and the moved distance.
Illustratively, the virtual pointer is controlled to move at a first target acceleration until the speed of the virtual pointer reaches a preset target speed, and then the virtual pointer is controlled to move at a constant speed at the preset target speed, so as to improve the response speed, shorten the movement time in the middle period of movement, and after the constant speed reaches the preset time, in the later period of movement, a second target acceleration is determined according to the preset target speed and the distance difference between the target movement distance and the moved distance, and the virtual pointer is controlled to move at the second target acceleration, so that the virtual pointer moves smoothly in the later period, and a transition state is shown.
Fig. 4 is a flowchart illustrating a specific implementation of a pointer display method according to another embodiment of the present application. Details which are not described in detail in the examples of the present application are described in the above examples. Referring to fig. 4, a specific implementation procedure of the pointer display method provided in the embodiment of the present application may include:
s310, whether the index value indicated by the virtual pointer is updated or not is judged. If there is an update, S320 is performed, and if there is no update, S330 is performed.
S320, calculating the target position S of the virtual pointerTargetAnd an initial value SInitialIs taken as the target movement distance deltaSGeneral assembly=STarget-SInitialAnd according to the target movement distance Delta SGeneral assemblyThe distance-power-speed peak value corresponding table is searched, and the acceleration a required by the round of response is obtained from the tableAddingSum velocity peak VPeak value
S330, judging whether the virtual pointer reaches the target position.
Current position according to Newton's equation of motion
Figure BDA0003119226430000111
If the target position has been reached, the round of response is ended. If the target position is not reached, S340 is performed.
And S340, judging whether the current speed reaches a peak value, if so, executing S350, and if not, executing S320.
Determining the current speed V of the virtual pointer according to Newton's equation of motionNow it is=VInitial+aAddingtAdding. If the current speed V isNow it isNot reaching the velocity peak VPeak valueAt a corresponding acceleration aAddingStarting acceleration until reaching the speed peak value VPeak value
S350, if the current speed VNow it isHas reached a velocity peak VPeak valueThen deceleration is started, depending on the current speed VNow it isAnd the current position SNow it isAnd a target position STargetDistance Δ S of1=STarget-SNow it is
Figure BDA0003119226430000112
Calculating the deceleration aReducing. Controlling virtual hands to decelerate aReducingA deceleration movement is performed.
S360, judging whether the virtual pointer reaches the target position or whether the virtual pointer decelerates to 0. If yes, it is ended, and if no, S350 is performed.
Determining the current speed V of the virtual pointer according to Newton's equation of motionNow it is=VPeak value+aReducingtReducing. If it has slowed to 0, or the virtual pointer has reachedAnd the target position, the round of response is finished.
The pointer display specific implementation method provided by the embodiment of the application can execute the pointer display method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 5 is a schematic structural diagram of a pointer display device according to an embodiment of the present application. The device is applicable to the situation of displaying the pointer. Typically, the embodiment of the present application is applied to a case of controlling the motion display of the virtual pointer. The apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in an electronic device. Referring to fig. 5, the apparatus specifically includes:
an accelerated motion control module 410, configured to, if it is detected that the position of the virtual pointer needs to be updated, control the virtual pointer to perform accelerated motion based on a first target acceleration;
an acceleration determining module 420, configured to determine a second target acceleration according to the preset target speed and a distance difference between the target movement distance and the moved distance if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches a preset target speed;
and a deceleration motion control module 430, configured to control the virtual pointer to perform a deceleration motion until the moved distance is consistent with the target motion distance, or to perform a deceleration motion to a stop, based on the second target acceleration.
In an embodiment of the present application, the apparatus further includes:
the position determining module is used for determining the target position and the current position of the virtual pointer if the position of the virtual pointer is detected to be required to be updated;
and the target movement distance determining module is used for determining the target movement distance of the virtual pointer according to the target position and the current position.
In an embodiment of the present application, the apparatus further includes:
and the first target acceleration determining module is used for determining a first target acceleration associated with the target movement distance based on the association relationship between the movement distance and the acceleration.
In an embodiment of the present application, the apparatus further includes:
the preset speed determining module is used for determining the preset speed according to a preset distance and the acceleration associated with the movement distance; wherein the preset distance is smaller than the movement distance;
and the incidence relation determining module is used for determining the incidence relation among the movement distance, the acceleration and the preset speed.
In an embodiment of the present application, the apparatus further includes:
and the preset target distance determining module is used for determining the preset target speed associated with the target movement distance based on the association relation among the movement distance, the acceleration and the preset speed.
In the embodiment of the present application, the preset distance is half of the movement distance.
In an embodiment of the present application, the apparatus further includes:
the detection module is used for detecting whether the moved distance of the virtual pointer is consistent with the target movement distance or not according to a preset frequency;
if the virtual pointer is consistent with the preset virtual pointer, controlling the virtual pointer to stop moving;
and if not, controlling the virtual pointer to continue moving.
The pointer display device provided by the embodiment of the application can execute the pointer display method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. FIG. 6 illustrates a block diagram of an exemplary electronic device 512 suitable for use in implementing embodiments of the present application. The electronic device 512 shown in fig. 6 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the electronic device 512 may include: one or more processors 516; the memory 528 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 516, the one or more processors 516 may implement the pointer display method provided in the embodiment of the present application, including:
if the position of the virtual pointer is detected to need updating, controlling the virtual pointer to perform accelerated motion based on a first target acceleration;
if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches a preset target speed, determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance;
and controlling the virtual pointer to perform deceleration movement based on the second target acceleration until the moved distance is consistent with the target movement distance or the virtual pointer performs deceleration movement to stop.
Components of the electronic device 512 may include, but are not limited to: one or more processors 516, a memory 528, and a bus 518 that connects the various device components, including the memory 528 and the processors 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, transaction ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The electronic device 512 typically includes a variety of computer device-readable storage media. These storage media may be any available storage media that can be accessed by electronic device 512 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
The memory 528 may include computer device readable storage media in the form of volatile memory, such as Random Access Memory (RAM)530 and/or cache memory 532. The electronic device 512 may further include other removable/non-removable, volatile/nonvolatile computer device storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic storage media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In such cases, each drive may be connected to bus 518 through one or more data storage media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 540 having a set (at least one) of program modules 542 may be stored, for example, in memory 528, such program modules 542 including, but not limited to, an operating device, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), with one or more devices that enable a user to interact with the electronic device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 512 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 522. Also, the electronic device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 520. As shown in FIG. 6, the network adapter 520 communicates with the other modules of the electronic device 512 via the bus 518. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with the electronic device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, among others.
The processor 516 executes various functional applications and data processing, for example, a pointer display method provided in the embodiment of the present application, by executing at least one of other programs stored in the memory 528.
One embodiment of the present application provides a storage medium containing computer-executable instructions that when executed by a computer processor perform a pointer display method, comprising:
if the position of the virtual pointer is detected to need updating, controlling the virtual pointer to perform accelerated motion based on a first target acceleration;
if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches a preset target speed, determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance;
and controlling the virtual pointer to perform deceleration movement based on the second target acceleration until the moved distance is consistent with the target movement distance or the virtual pointer performs deceleration movement to stop.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
A computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A pointer display method, the method comprising:
if the position of the virtual pointer is detected to need updating, controlling the virtual pointer to perform accelerated motion based on a first target acceleration;
if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches a preset target speed, determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance;
and controlling the virtual pointer to perform deceleration movement based on the second target acceleration until the moved distance is consistent with the target movement distance or the virtual pointer performs deceleration movement to stop.
2. The method of claim 1, wherein if it is detected that the position of the virtual pointer needs to be updated, the method further comprises:
determining a target position and a current position of the virtual pointer;
and determining the target movement distance of the virtual pointer according to the target position and the current position.
3. The method of claim 2, wherein after determining the target movement distance of the virtual pointer, the method further comprises:
and determining a first target acceleration associated with the target movement distance based on the association relationship between the movement distance and the acceleration.
4. The method of claim 1, further comprising:
determining the preset speed according to a preset distance and the acceleration associated with the movement distance; wherein the preset distance is smaller than the movement distance;
and determining the association relation among the movement distance, the acceleration and the preset speed.
5. The method of claim 4, wherein the determining of the preset target speed comprises:
and determining a preset target speed associated with the target movement distance based on the association relation among the movement distance, the acceleration and the preset speed.
6. The method of claim 4, wherein the predetermined distance is half of the distance of movement.
7. The method of claim 1, further comprising:
detecting whether the moved distance of the virtual pointer is consistent with the target movement distance or not according to a preset frequency;
if the virtual pointer is consistent with the preset virtual pointer, controlling the virtual pointer to stop moving;
and if not, controlling the virtual pointer to continue moving.
8. A pointer display apparatus, characterized in that the apparatus comprises:
the acceleration motion control module is used for controlling the virtual pointer to perform acceleration motion based on a first target acceleration if the position of the virtual pointer is detected to need updating;
the acceleration determining module is used for determining a second target acceleration according to the preset target speed and the distance difference between the target movement distance and the moved distance if the moved distance of the virtual pointer is inconsistent with the target movement distance and the current speed reaches the preset target speed;
and the deceleration motion control module is used for controlling the virtual pointer to perform deceleration motion based on the second target acceleration until the moved distance is consistent with the target motion distance or the virtual pointer is decelerated to stop.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the pointer display method of any one of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing a pointer display method according to any one of claims 1 to 7.
CN202110670981.0A 2021-06-17 2021-06-17 Pointer display method and device, electronic equipment and medium Active CN113306391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110670981.0A CN113306391B (en) 2021-06-17 2021-06-17 Pointer display method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110670981.0A CN113306391B (en) 2021-06-17 2021-06-17 Pointer display method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113306391A true CN113306391A (en) 2021-08-27
CN113306391B CN113306391B (en) 2023-02-17

Family

ID=77379306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110670981.0A Active CN113306391B (en) 2021-06-17 2021-06-17 Pointer display method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113306391B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1062104A (en) * 1996-08-13 1998-03-06 Tekurotsuku:Kk Dial gauge
JP2006234592A (en) * 2005-02-25 2006-09-07 Makoto Kato Analog electronic timepiece
US20080258892A1 (en) * 2004-06-07 2008-10-23 Sharp Kabushiki Kaisha Display Device, Vehicle, Method for Displaying, Program for Displaying and Recording Medium of Same
CN101373947A (en) * 2007-08-22 2009-02-25 比亚迪股份有限公司 Method, apparatus and system for controlling stepper motor speed
US20130113993A1 (en) * 2011-11-04 2013-05-09 Remote TelePointer, LLC Method and system for user interface for interactive devices using a mobile device
US20170174081A1 (en) * 2014-08-06 2017-06-22 Denso Corporation Display device for vehicle
EP3628526A1 (en) * 2018-09-18 2020-04-01 MAN Truck & Bus SE Device for displaying a time-dependent number value
US20200338985A1 (en) * 2019-04-26 2020-10-29 e.solutions GmbH Method and device for displaying a pointer in an instrument panel, and vehicle having a display device
US20210016172A1 (en) * 2018-08-30 2021-01-21 Tencent Technology (Shenzhen) Company Limited Virtual vehicle control method in virtual scene, computer device, and storage medium
CN112606686A (en) * 2020-12-10 2021-04-06 上海欧菲智能车联科技有限公司 Control method and control device for virtual instrument, vehicle and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1062104A (en) * 1996-08-13 1998-03-06 Tekurotsuku:Kk Dial gauge
US20080258892A1 (en) * 2004-06-07 2008-10-23 Sharp Kabushiki Kaisha Display Device, Vehicle, Method for Displaying, Program for Displaying and Recording Medium of Same
JP2006234592A (en) * 2005-02-25 2006-09-07 Makoto Kato Analog electronic timepiece
CN101373947A (en) * 2007-08-22 2009-02-25 比亚迪股份有限公司 Method, apparatus and system for controlling stepper motor speed
US20130113993A1 (en) * 2011-11-04 2013-05-09 Remote TelePointer, LLC Method and system for user interface for interactive devices using a mobile device
US20170174081A1 (en) * 2014-08-06 2017-06-22 Denso Corporation Display device for vehicle
US20210016172A1 (en) * 2018-08-30 2021-01-21 Tencent Technology (Shenzhen) Company Limited Virtual vehicle control method in virtual scene, computer device, and storage medium
EP3628526A1 (en) * 2018-09-18 2020-04-01 MAN Truck & Bus SE Device for displaying a time-dependent number value
US20200338985A1 (en) * 2019-04-26 2020-10-29 e.solutions GmbH Method and device for displaying a pointer in an instrument panel, and vehicle having a display device
CN112606686A (en) * 2020-12-10 2021-04-06 上海欧菲智能车联科技有限公司 Control method and control device for virtual instrument, vehicle and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吉爽等: ""汽车虚拟仪表的指针设计与实现"", 《汽车零部件》 *

Also Published As

Publication number Publication date
CN113306391B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
KR102029303B1 (en) Crown input for a wearable electronic device
US10521102B1 (en) Handling touch inputs based on user intention inference
AU2019398095B2 (en) Variable-speed phonetic pronunciation machine
US9792031B2 (en) Scroll speed adjustment
KR101949493B1 (en) Method and system for controlling play of multimeida content
US20160274683A1 (en) Apparatus, method, and program product for setting a cursor position
CN113306391B (en) Pointer display method and device, electronic equipment and medium
US20100128007A1 (en) Accelerometer Guided Processing Unit
JP6641484B2 (en) Method and portable electronic device for changing graphics processing resolution according to scenario
US10216289B2 (en) Laser pointer emulation via a mobile device
CN114911406B (en) Dynamic effect generation method, dynamic effect generation device, dynamic effect generation medium and dynamic effect generation equipment
CN114593151A (en) Magnetic suspension bearing stopping method and device, electronic equipment and storage medium
CN111127607B (en) Animation generation method, device, equipment and medium
US11657556B2 (en) Scrolling with damped oscillation
CN110930485B (en) Character rotation method and device based on animation, server and storage medium
CN110262732B (en) Picture moving method and device
WO2014031449A1 (en) Visual object manipulation
CN111013147B (en) Method and device for rendering effect of double-wheel carrier, storage medium and electronic equipment
CN111347419A (en) Robot motion control method and device and terminal equipment
CN117076801A (en) Animation display method, electronic device and readable storage medium
CN115984457A (en) Three-dimensional model display method and device and electronic equipment
JP2023501404A (en) Speech Synthesizer Using Multimodal Mixing
CN104731467A (en) Information processing method and electronic equipment
CN113407029A (en) Page object state information determination method, device, equipment and readable medium
US20160358626A1 (en) Chronological event information for multimedia content

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