Mode switching system on a kind of intellectual measuring instrument and display packing thereof
Technical field
The invention belongs to touch-screen operation technique field, relate in particular to mode switching system and display packing thereof on a kind of intellectual measuring instrument.
Background technology
At present, many intelligent measuring instruments, the separate unit instrument can be realized multiple measurement function or measurement pattern, has different display interfaces under the different measurement patterns and offers the user.The selection of measurement function or measurement pattern is generally operated by button or menu, and process is more loaded down with trivial details.
Existing intellectual measuring instrument generally adopts intelligent processor and intelligent operating system, and in order to offer user's hommization operation more, many intelligence instruments provide touch screen operation.This quasi-instrument uses menu to replace traditional panel button usually, and the user carries out instrumentation by the virtual menu of clicking on the touch-screen.The measurement pattern of instrument or the switching of measurement function are to select to realize by menu repeatedly.When the user touched touch-screen, the touch-screen driver sent to operating system with touch event and contact coordinate, and operating system sends to instrument software with this event, and software is handled accordingly.
The shortcoming of the mode switching method of existing surveying instrument is: the user need be switched from multiple menu, and the pattern that accesses is switched the place menu, switches by selecting corresponding menu button to carry out pattern then, and this operation is more loaded down with trivial details.
Therefore, there is defective in prior art, needs to improve.
Summary of the invention
Technical matters to be solved by this invention is to provide mode switching system and the display packing thereof on a kind of intellectual measuring instrument, and the pattern that is intended to solve existing intellectual measuring instrument is switched need be with switch the problem of complex operation from multiple menu.
The present invention is achieved in that the mode switching system on a kind of intellectual measuring instrument, wherein, comprises intelligent operating system, memory cache module and the touch-screen of intellectual measuring instrument; Described memory cache module is used for the storage display interface, and the mapping by software shows the display interface in the memory cache module at described touch-screen.
Further, the internal memory in the described memory cache module is drawn and is stored 3 display interface images, and the size of each display interface image and the size of display screen match.
Further, do not touch or after touch action finished, the central point that described internal memory is drawn shone upon corresponding coinciding together with the central point of described display screen.
Further, described memory cache module finishes the back in touch action and in time adjusts buffer memory, internal memory is drawn only store three up-to-date display interface pictures all the time.
Further, described touch-screen is when touching, and described intelligent operating system is supported in carries out taking over seamlessly and operating between each display interface between all display interfaces.
The present invention also provides the display packing of the mode switching system on a kind of intellectual measuring instrument, wherein, may further comprise the steps:
Step 1: in the internal memory of memory cache module is drawn, draw display interface;
Step 2: during the slip touch-screen, the display interface in the described internal memory drawing is mapped on the display screen of actual displayed.
Further, described step 1 comprises: corresponding the coinciding together of central point mapping that touches central point with the display screen of the preceding described internal memory drawing of described touch-screen; The image that described internal memory is drawn comprises three display interface images, and the size of each display interface image is big or small consistent with described display screen.
Further, described step 2 comprises: when sliding from left to right from touch-screen, the sliding distance point place in the central point left side that internal memory is drawn is shone upon mutually with the central point of display screen.
Further, described step 2 also comprises: when sliding from right to left from touch-screen, the sliding distance point place on the central point right side that internal memory is drawn is shone upon mutually with the central point of display screen.
Further, further comprising the steps of after the described step 2:
After touching end, the central point of display screen is corresponding with the central point that internal memory is drawn, and intellectual measuring instrument hardware switches on the corresponding measurement pattern;
The display interface image that the memory cache module is deposited during internal memory is drawn is adjusted, and makes it show three up-to-date width of cloth display interface images all the time.
The present invention compared with prior art, beneficial effect is:
1, switch speed is fast, need not carry out menu and select operation, can circulate to the left or to the right and switch all measurement patterns.
2, can realize smooth interface handoff procedure, show attractive in appearance.
Description of drawings
Fig. 1 is internal memory drawing synoptic diagram of the present invention;
Fig. 2 is that touch-screen of the present invention shows the mapping synoptic diagram when from left to right sliding;
Fig. 3 is that touch-screen of the present invention shows the mapping synoptic diagram when sliding from right to left;
Fig. 4 is that touch-screen of the present invention from left to right slides and shows the mapping synoptic diagram when finishing;
Fig. 5 is that touch-screen of the present invention slides from right to left and shows the mapping synoptic diagram when finishing.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
Intellectual measuring instrument of the present invention adopts intelligent operating system, has touch-screen and memory cache module.Suppose that this surveying instrument has N different measurement function, with (F
1, F
2, F
3F
N) expression, each function has different display interfaces, with (U
1, U
2, U
3U
N) expression.Can circulate between N different display interface by finger slip touch-screen and to take over seamlessly, and switch corresponding measurement pattern.
Technical solution of the present invention mainly realizes by the software design, in order on touch screen, smooth slip to switch, adopted the drawing practice of memory cache, at first drawn display interface at internal memory, the interface that internal memory is drawn is mapped to actual display screen 105 then.The size of internal memory drawing 104 is the display interface of 3 measurement functions, as shown in Figure 1.
Among Fig. 1, draw the display interface of 3 measurement functions at internal memory, represent with left Figure 101, middle Figure 102, right Figure 103 according to its position in internal memory, these three figure each and display screen 105 are the same big or small.When the user did not carry out slide, the central point O point of internal memory drawing 104 shone upon corresponding coinciding together with the central point p point of display screen 105, and Figure 102 is mapped on the display screen 105 and shows in.When the user carries out slide, dynamically change internal memory drawing 104 to the mappings of display screen 105 according to the direction of sliding and sliding distance, realize out smooth sliding effect at display screen 105.When sliding from left to right, internal memory draw 104 with the mapping synoptic diagram of display screen 105 as shown in Figure 2, when sliding from right to left, internal memory draw with the mapping synoptic diagram of display screen as shown in Figure 3.
As user when from left to right sliding distance is d, the central point p mapping of d place, internal memory drawing O point left side and display screen, figure and left figure partly in this moment display screen display part.
As user when sliding distance is d from right to left, the central point p of internal memory drawing O d place, some right side and display screen mapping, Figure 102 and the right Figure 103 of part in this moment display screen display part.
Finish when sliding, when user's finger left touch-screen, the switch instances that internal memory is drawn was as follows:
As shown in Figure 4, when user's end of from left to right sliding, when finger left touch-screen, the central point p of display screen 105 was corresponding with the central point of left Figure 101, display screen 105 shows complete left Figure 101, and instrument hardware switches on the corresponding measurement pattern of left figure simultaneously.Simultaneously in order to carry out the slide of back, the memory cache module has been deleted former right figure, the right figure that attempts to change in former, and a former left side middle figure that attempts to change, generation is left figure newly.Internal memory drawing this moment mapping relations return to shown in Figure 1.
As shown in Figure 5, when user's end of sliding from right to left, when finger left touch-screen, the central point p of display screen 105 was corresponding with the central point of right Figure 103, display screen 105 shows complete right Figure 103, and instrument hardware switches on the corresponding measurement pattern of right figure simultaneously.Simultaneously in order to carry out the slide of back, the former left figure of memory cache module deletion, the left figure that attempts to change in former, the former right side middle figure that attempts to change, generation is right figure newly.This moment, the memory-mapped relation returned to shown in Figure 1.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.