Summary of the invention
Fundamental purpose of the present invention is to provide a kind of disposal route, device and portable terminal of 3D icon, to address the above problem at least.
According to an aspect of the present invention, a kind of disposal route of 3D icon is provided, comprise: obtain the needed information of drafting 3 D icon, wherein, described information comprises: the positional information of described 3D icon on screen and the needed three-dimensional parameter of three-dimensional shape that is used to draw described 3D icon; The position corresponding with described positional information uses described three-dimensional parameter to draw the three-dimensional shape of described 3D icon on described screen; Pinup picture is to generate described 3D icon on described three-dimensional shape.
Preferably, use described three-dimensional parameter to draw the three-dimensional shape of described 3D icon by the one-point perspective method.
Preferably, after the pinup picture, said method also comprises on described three-dimensional shape: from user's angle, and the position of calculating the space projection of each face with a perspective, and according to the position of the projection clock that calculates described three-dimensional shape is handled.
Preferably, obtain the parameter that described 3D icon changes, and obtain the needed information of described 3D icon of drawing after changing again, and regenerate described 3D icon according to described parameter.
Preferably, described positional information, described three-dimensional parameter and the information of carrying out pinup picture on described three-dimensional shape save as state matrix information, and wherein, described state matrix information uses the Octree algorithm to generate.
Preferably, be under the cubical situation at described 3D icon, described three-dimensional parameter comprises: described cubical length and the residing state of described cube.
According to another aspect of the present invention, a kind for the treatment of apparatus of 3D icon also is provided, comprise: acquisition module, be used to obtain the needed information of drafting 3 D icon, wherein, described information comprises: the positional information of described 3D icon on screen and the needed three-dimensional parameter of three-dimensional shape that is used to draw described 3D icon; Drafting module is used for position corresponding with described positional information on described screen and uses described three-dimensional parameter to draw the three-dimensional shape of described 3D icon; Generation module is used on described three-dimensional shape pinup picture to generate described 3D icon.
Preferably, said apparatus also comprises: projection clock processing module, be used for angle from the user, and the position of calculating the space projection of each face with a perspective, and according to the position of the projection clock that calculates described three-dimensional shape is handled.
Preferably, under the situation that described 3D icon changes, the parameter that described acquisition module changes according to described 3D icon is obtained the needed information of described 3D icon of drawing after changing again, described drafting module repaints the three-dimensional shape of described 3D icon, and described generation module regenerates described 3D icon.
According to a further aspect of the invention, also provide a kind of portable terminal, comprised the treating apparatus of above-mentioned 3D icon.
By the present invention, adopt and obtain the needed information of drafting 3 D icon, wherein, described information comprises: the positional information of described 3D icon on screen and the needed three-dimensional parameter of three-dimensional shape that is used to draw described 3D icon; The position corresponding with described positional information uses described three-dimensional parameter to draw the three-dimensional shape of described 3D icon on described screen; Pinup picture is to generate described 3D icon on described three-dimensional shape.Having solved existing 3Dization processing mode influences the problem of user experience, has improved user experience.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Following examples can be applied in the portable terminal, can certainly be applied in other equipment, for example PC.
A kind of disposal route of 3D icon is provided in the present embodiment, and Fig. 1 is the process flow diagram according to the disposal route of the 3D icon of the embodiment of the invention, and as shown in Figure 1, this flow process comprises the steps:
Step S102, obtain the needed information of drafting 3 D icon, wherein, this information comprises: the positional information of this 3D icon on screen and the needed three-dimensional parameter of three-dimensional shape that is used to draw this 3D icon, need to prove, the three-dimensional shape of this icon may be a cube, spheroid or other rule or irregular three-dimensional shape, the drafting of different three-dimensional shapes needs different three-dimensional parameters, for example, at the 3D icon is under the cubical situation, three-dimensional parameter comprises: cubical length, wide, the residing state of height and cube (for example, what angle presenting which plane etc.) with.
Step S104, the three-dimensional shape of three-dimensional parameter drafting 3 D icon is used in the position corresponding with positional information on screen;
Step S106, pinup picture is to generate the 3D icon on three-dimensional shape.
By above step, just can on appointed positions on the screen, draw out the 3D icon of needs according to the information of 3D icon, the mode of pinup picture has realized real 3Dization processing behind the use drafting three-dimensional shape, dual mode than prior art, the 3D icon of its drafting is image more, thereby has promoted user's experience.
Preferably, more accurate or attractive in appearance during enforcement in order to make the three-dimensional shape of drawing out, can come the three-dimensional shape of drafting 3 D icon by the one-point perspective method.This drafting mode can reach little nearly big true, natural visual effect far away from observer's visual angle.
Preferably, during enforcement, the visual effect that meets the observer for the light and dark color that makes the 3D icon, on three-dimensional shape after the pinup picture, can also be from user's angle, the position of calculating the space projection of each face with a perspective, and according to the position of the projection clock that calculates the three-dimensional shape that sticks figure is handled.By the processing of projection, allow the user can observe icon three-dimensional shape clearly, can know from experience the light and shade color of icon again, eliminated user's the vision and the aestheticly tired of experience.
Preferably, during enforcement, when the user need change icon, can be by obtaining the parameter that the 3D icon changes, and obtain the needed information of 3D icon of drawing after changing again according to parameter, and regenerate the 3D icon.When the user changes icon continuously, just obtain 3D icon updated parameters continuously, draw continuously, generate the 3D icon, make the user experience icon in the variation that shape constantly takes place along with operation, produce dynamic 3D stereoscopic sensation.Certainly, such processing mode need consume number of C PU, for hardware certain requirement is arranged.So, also can adopt step S102 after step S106 generates the 3D icon, the icon of this generation is preserved, determined whether according to the situation of change of the icon of reality that needs redraw this icon then or the icon of preserving before carried out directly showing after the simple process etc.For example, if be this icon of translation in screen, then can not redraw.
Preferably, when implementing, positional information, the three-dimensional parameter of 3D icon and the information of carrying out pinup picture on three-dimensional shape can be saved as state matrix information, wherein, state matrix information uses the Octree algorithm to generate.
A kind for the treatment of apparatus of 3D icon also is provided in the present embodiment, and this device is used to realize the foregoing description and preferred implementation thereof, has carried out repeating no more of explanation, below the module that relates in this device is described.Fig. 2 is the structured flowchart according to the treating apparatus of the 3D icon of the embodiment of the invention, and as shown in Figure 2, this device comprises: acquisition module 22, drafting module 24, generation module 26 are explained below.
Acquisition module 22 is used to obtain the needed information of drafting 3 D icon, and wherein, information comprises: the positional information of 3D icon on screen and the needed three-dimensional parameter of three-dimensional shape that is used for the drafting 3 D icon; Drafting module 24 is connected to acquisition module 22, and this module is used for the three-dimensional shape that three-dimensional parameter drafting 3 D icon is used in position corresponding with positional information on screen; Generation module 26 is connected to drafting module 24, and this module is used on three-dimensional shape pinup picture to generate the 3D icon.
Fig. 3 is the preferred structure block diagram according to the treating apparatus of the 3D icon of the embodiment of the invention, as shown in Figure 3, this device can also comprise: projection clock processing module 32, this module is used for the angle from the user, the position of calculating the space projection of each face with a perspective, and according to the position of the projection clock that calculates three-dimensional shape is handled.
Preferably, under the situation that the 3D icon changes, the parameter that acquisition module 22 changes according to the 3D icon is obtained the needed information of 3D icon of drawing after changing again, and drafting module 24 repaints the three-dimensional shape of 3D icon, and generation module 26 regenerates the 3D icon.
By the foregoing description, realized the 3Dization of user's icon display effect, can eliminate user's the vision and the aestheticly tired of experience effectively, greatly promoted user's experience, strengthen the surcharge of product.
Be that example describes with mobile phone (being also referred to as terminal) below, in mobile phone, by the function of model mathematical operation and pinup picture, binding site perspective and projection, efficient rendering algorithm combines, and realizes the 3Dization of user's icon display effect.The module that mobile phone in the present embodiment is following: the management of icons module, mainly be in charge of the icon (function that this module realizes comprises the function of acquisition module 22) on the desktop; Look and imitate administration module (function that this module realizes comprises the function of drafting module 24 and generation module 26), the effect of looking of mainly being responsible for desktop icons represents and the position computing.
Fig. 4 is that as shown in Figure 4, this flow process comprises the steps: according to the process flow diagram of the method for the visual desktop of mobile phone 3D of the embodiment of the invention
Step S402 after user's start, loads the management of icons module automatically, tabulation of standby desktop icons and positional information that the management of icons module is provided with according to the user, and by looking administration module draw icons position and the state on background of imitating;
Step S404, the mode handle icon of user by touching looked and imitated administration module and realize moving of desktop icons according to user's input, pile up effect, and the user can also start the function that icon is associated by activating the icon mode;
Step S406, the user can pass through management of icons module management standby icon, for example, can increase or delete existing icon;
Step S408, after user's shutdown, the management of icons module can write down the positional information and the parameter of standby icon, and it is kept at the mobile phone memory block.
Fig. 5 is the process flow diagram according to administration module operation in the 3D icon disposal route of the embodiment of the invention, below is the example explanation with the phone icon, and as shown in Figure 5, this flow process may further comprise the steps:
Poly-S502 of step behind the starting up of terminal, loads the management of icons module automatically, and the management of icons module is at first opened configuration file by file operation, and read desktop icons ID number, position and status information, and these information are passed to as parameter look the effect administration module; Looking the effect module shows icon according to position and status information.For example, phone directory icon drawing process, can obtain Icon ID is ID0X0808, and coordinate is 0X0000, and state is 0X0305.Wherein Icon ID is this icon in system registered ID number.Coordinate is the relative position of icon center to the viewing area, defines according to the size of screen.The status information of status information user management icon, the angle of icon and the positional information of icon.Look and imitate after module reads the configuration information of phone directory icon, according to centre coordinate, the size of icon is drawn cube (length), and the picture of icon correspondence is carried out pinup picture.In the drawing process, can produce little nearly big effect far away by the one-point perspective method.Can also be from the observer visual angle, the position of calculating the space projection of each face with a perspective is to produce transparent effect.
Poly-S504 of step, the user can pass through the touch manner handle icon under standby, looks to imitate the ID that administration module obtains icon, and the coordinate figure of operation renewal position, look and imitate administration module is drawn phone directory according to new coordinate and state length.Look the icon information of imitating module update mode matrix information, and draw effect according to user's operation.The user can be according to selecting icon and carrying out related with it function.
Step S506, the user for example, can increase or delete existing icon by management of icons module management standby icon.For increasing operation, the icon type of Zeng Jiaing is increased to icon information in configuration file and the state matrix as required, and notice is looked the new icon of effect administration module drafting.The management of icons module is upgraded the corresponding relation of icon and associated program by allowing the user that the program of icons association is set.For deletion action, the management of icons module is deleted this icon in configuration file, and notice is looked the effect administration module and repainted desktop icons simultaneously.
Step S508, after the user starts shutdown process, the management of icons module by file operation with the information updating in the state matrix in configuration file, comprise icon state and coordinate information.After writing file and finishing, the notice terminal operating system starts shutdown process, normal shutdown.
Fig. 6 is imitated the process flow diagram that administration module is handled the icon rotation according to looking of the embodiment of the invention, below is the example explanation equally with the phone icon, and as shown in Figure 6, this flow process may further comprise the steps:
Step S602 looks and imitates the Icon ID that administration module transmits by the management of icons module, obtains the handle of icon file from local file management system, and loads icon file by this handle.Look and imitate coordinate figure and the state update mode matrix information of administration module according to icon.State matrix is used to describe the position and the status information of icon, can use the Octree algorithm to generate, and mainly preserves the configuration information of icon, comprises length and width and height, the pinup picture corresponding relation of each face association, location coordinate information.
Step S604 looks and imitates the information of administration module according to state matrix, as reference coordinate, determines level and vertical coordinate axle with user's observation point, and draw icons on the table.
Step S606, the user is by touching or other modes are rotated icon some angles on standby interface.In the rotary course, look and imitate administration module by stereographic map target change in location, constantly repaint the phone directory icon in new position again, thereby make the user experience icon, produce the three-dimensional 3D sense of phone directory icon along with change of shape constantly takes place in operation.
Step S608 in the drawing process, looks and imitates the original coordinates value that administration module keeps phone directory icon emphasis, and obtain new focus point coordinate figure according to new touch point.After the user rotates back phone directory icon, look and imitate administration module and can calculate and obtain the shift position angle of level and vertical coordinate axle relatively, with the anglec of rotation of transverse axis and Z-axis as benchmark, by the coordinate points of each relative emphasis in summit of space rotation change formula calculating cube, finish the removing of user's invisible area again by efficient rendering algorithm.After calculating is finished, look and imitate administration module and repaint the length and width and the height of phone directory, and carry out pinup picture again according to change of shape according to new fixed point coordinate.
In sum, promoted user's experience by the foregoing description.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, carry out by calculation element thereby they can be stored in the memory storage, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.