CN103064672B - A kind of 3D view method of adjustment and device - Google Patents
A kind of 3D view method of adjustment and device Download PDFInfo
- Publication number
- CN103064672B CN103064672B CN201210556618.7A CN201210556618A CN103064672B CN 103064672 B CN103064672 B CN 103064672B CN 201210556618 A CN201210556618 A CN 201210556618A CN 103064672 B CN103064672 B CN 103064672B
- Authority
- CN
- China
- Prior art keywords
- shortcut
- view
- mentioned
- template
- picture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of 3D view method of adjustment and device.Wherein, the method comprises: the shortcut distinguishing prerun is 2D shortcut or 3D shortcut; If 2D shortcut, build the 3D view corresponding with this 2D shortcut; Receive after running message, run the application program of above-mentioned 2D shortcut, and adjusted the 3D view of above-mentioned 2D shortcut by 3D desktop system according to above-mentioned operation message; If 3D shortcut, receive after running message, run the application program of above-mentioned 3D shortcut, and adjusted the 3D view of above-mentioned 3D shortcut by 3D shortcut according to above-mentioned operation message.By the present invention, the third party 2D shortcut solved in correlation technique cannot show the problem of 3D effect, makes third-party 2D shortcut also can show 3D visual effect, thus has unified the 3D visual effect of desktop, improves user's impression.
Description
Technical field
The present invention relates to field of mobile communication, particularly relate to a kind of 3D view method of adjustment and device.
Background technology
Three-dimensional (threeDimensional, referred to as 3D) technology is widely used in multiple visual device in recent years, popular along with 3D film, and 3D TV starts the visual field entering people in a large number, and apple and Microsoft are also actively pushing forward the 3D desktop system of oneself.Now along with the quick upgrading of handheld device hardware, also can support the consumption of 3D graphic plotting, occur that a large amount of 3D game is used for promoting the game of handheld device.And start to occur 3D desktop, because desktop is that user contacts maximum application, good 3D looks usefulness and enough directly promotes user's impression.Now popular have community to set for this platform (Spacebuilder, referred to as SPB) Shell, develops the 3D plug-in unit that some are new, more mainly compare the animation effect of dazzling.Also can support third-party two dimension (twoDimensional, referred to as 2D) shortcut icon and 2D plug-in unit, but all there is no three-dimensional effect, but just plane effect the same as 2D desktop.And the 3D shortcut of a set of support said function can not be done again according to the development requires of 3D desktop due to third-party application, what therefore make 3D desktop looks effect and operation and disunity.Most adjoint 3D desktop develops some distinctive 3D shortcuts together to strengthen effect, but the 3D shortcut related to according to oneself framework can only be supported, and the support of 2D shortcut and display there are not difference with primary, namely third-party 2D shortcut remains the display effect of 2D.
The problem of 3D effect cannot be shown for the third party 2D shortcut in correlation technique, not yet propose effective solution at present.
Summary of the invention
The problem of 3D effect cannot be shown for the third party 2D shortcut in correlation technique, the invention provides a kind of 3D view method of adjustment and device, in order to solve the problems of the technologies described above.
According to an aspect of the present invention, the invention provides a kind of 3D view method of adjustment, wherein, the method comprises: the shortcut distinguishing prerun is 2D shortcut or 3D shortcut; If 2D shortcut, build the 3D view corresponding with this 2D shortcut; Receive after running message, run the application program of above-mentioned 2D shortcut, and adjusted the 3D view of above-mentioned 2D shortcut by 3D desktop system according to above-mentioned operation message; If 3D shortcut, receive after running message, run the application program of above-mentioned 3D shortcut, and adjusted the 3D view of above-mentioned 3D shortcut by 3D shortcut according to above-mentioned operation message.
Further, monitor the speech data that above-mentioned transmitting terminal sends and whether meet above-mentioned pre-conditionedly can to comprise: extract the characteristic parameter in above-mentioned speech data, determine whether above-mentioned speech data meets according to above-mentioned characteristic parameter above-mentioned pre-conditioned; And/or, monitor in above-mentioned speech data whether comprise default vocabulary; Wherein, above-mentioned default vocabulary is above-mentioned transmitting terminal when being in improper emotional state, the indecency vocabulary in the speech data of transmission.
Further, determine whether above-mentioned speech data meets above-mentioned pre-conditionedly can to comprise according to above-mentioned characteristic parameter: above-mentioned characteristic parameter and fisrt feature parameter and/or second feature parameter are contrasted; Wherein, above-mentioned fisrt feature parameter is above-mentioned transmitting terminal when being in improper emotional state, the characteristic parameter of the speech data of transmission, and above-mentioned second feature parameter is above-mentioned transmitting terminal when being in normal emotional state, the characteristic parameter of the speech data of transmission; Determine whether above-mentioned speech data meets according to comparing result above-mentioned pre-conditioned.
Further, monitor in above-mentioned speech data and whether comprise above-mentioned default vocabulary and can comprise: extract the vocabulary in above-mentioned speech data; The above-mentioned vocabulary proposed and above-mentioned default vocabulary are contrasted; Determine in above-mentioned speech data, whether to comprise above-mentioned default vocabulary according to comparing result.
Further, the speech data that monitoring transmitting terminal sends whether meet pre-conditioned after, said method can also comprise: monitor above-mentioned speech data meet above-mentioned pre-conditioned time, send cue to above-mentioned transmitting terminal.
Further, carry out adjustment to above-mentioned speech data can comprise: adjust the above-mentioned characteristic parameter in above-mentioned speech data; And/or, search for the courtesy vocabulary that above-mentioned default vocabulary is corresponding, replace above-mentioned default vocabulary according to above-mentioned courtesy vocabulary.
Further, above-mentioned characteristic parameter can comprise following one of at least: base frequency parameters, speech energy, statement duration.
According to a further aspect in the invention, present invention also offers a kind of 3D view adjusting gear, wherein, this device comprises: discriminating module, is 2D shortcut or 3D shortcut for distinguishing the shortcut of prerun; View builds module, for when the differentiation result of above-mentioned discriminating module is above-mentioned 2D shortcut, builds the 3D view corresponding with above-mentioned 2D shortcut; Run module, after receiving operation message, run the application program of above-mentioned 2D shortcut; First adjusting module, for being adjusted the above-mentioned 3D view of above-mentioned 2D shortcut by 3D desktop system according to above-mentioned operation message; Second adjusting module, for when the differentiation result of above-mentioned discriminating module is above-mentioned 3D shortcut, receives after running message, runs the application program of above-mentioned 3D shortcut; And adjusted the 3D view of above-mentioned 3D shortcut by 3D shortcut according to above-mentioned operation message.
Further, above-mentioned monitoring modular can comprise: the first monitoring means, for extracting the characteristic parameter in above-mentioned speech data, determines whether above-mentioned speech data meets above-mentioned pre-conditioned according to above-mentioned characteristic parameter; And/or the second monitoring means, for monitoring in above-mentioned speech data whether comprise default vocabulary; Wherein, above-mentioned default vocabulary is above-mentioned transmitting terminal when being in improper emotional state, the indecency vocabulary in the speech data of transmission.
Further, above-mentioned adjusting module can comprise: adjustment unit, for adjusting the characteristic parameter of above-mentioned speech data; And/or replacement unit, for searching for courtesy vocabulary corresponding to above-mentioned default vocabulary, replaces above-mentioned default vocabulary according to above-mentioned courtesy vocabulary.
Pass through the present invention, build the 3D view corresponding with 2D shortcut, after receiving operation message, relevant application program is performed with 3D shortcut for 2D shortcut, and the 3D view of 2D shortcut is adjusted according to above-mentioned operation message, and the 3D view of adjustment 3D shortcut, the third party 2D shortcut solved in correlation technique cannot show the problem of 3D effect, make third-party 2D shortcut also can show 3D visual effect, thus unified the 3D visual effect of desktop, improve user's impression.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the 3D view method of adjustment according to the embodiment of the present invention;
Fig. 2 is the basic structure schematic diagram of the 3D desktop according to the embodiment of the present invention;
Fig. 3 is the visioning procedure figure of the 3D view template according to the embodiment of the present invention;
Fig. 4 is the structure process flow diagram of the 3D view according to the embodiment of the present invention;
Fig. 5 is according to the 3D view adjustment process flow diagram in the reciprocal process of the embodiment of the present invention;
Fig. 6 is the unified responding process figure of the shortcut for special efficacy operation according to the embodiment of the present invention;
Fig. 7 is the structured flowchart of the 3D view adjusting gear according to the embodiment of the present invention;
Fig. 8 is the concrete structure block diagram of the 3D view adjusting gear according to the embodiment of the present invention.
Embodiment
In order to the third party 2D shortcut solved in correlation technique cannot show the problem of 3D effect, the invention provides a kind of 3D view method of adjustment and device, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, do not limit the present invention.
3D effect can be demonstrated on 3D desktop to make 2D shortcut and 3D shortcut, present embodiments provide a kind of 3D view method of adjustment, Fig. 1 is the process flow diagram of the 3D view method of adjustment according to the embodiment of the present invention, as shown in Figure 1, the method comprises the following steps (step S102-step S106):
Step S102, the shortcut distinguishing prerun is 2D shortcut or 3D shortcut; If 2D shortcut, then perform step S104, if 3D shortcut, then perform step S106.
Step S104, if 2D shortcut, builds the 3D view corresponding with this 2D shortcut; Receive after running message, run the application program of above-mentioned 2D shortcut, and adjusted the 3D view of above-mentioned 2D shortcut by 3D desktop system according to above-mentioned operation message;
Step S106, if 3D shortcut, receives after running message, runs the application program of above-mentioned 3D shortcut, and adjusted the 3D view of above-mentioned 3D shortcut by 3D shortcut according to above-mentioned operation message.
Pass through said method, build the 3D view corresponding with 2D shortcut, after receiving operation message, relevant application program is performed with 3D shortcut for 2D shortcut, and the 3D view of 2D shortcut is adjusted according to above-mentioned operation message, and the 3D view of adjustment 3D shortcut, the third party 2D shortcut solved in correlation technique cannot show the problem of 3D effect, make third-party 2D shortcut also can show 3D visual effect, thus unified the 3D visual effect of desktop, improve user's impression.
Adjust the 3D view of 2D shortcut at above-mentioned steps S104 before, need first to set up this 3D view, third-party 2D shortcut is had on 3D desktop corresponding 3D view, thus make user can enjoy the intuitive visual effect of 3D, improve user's impression.
For the building process of the 3D view of 2D shortcut, present embodiments provide a kind of preferred implementation, namely build the above-mentioned 3D view corresponding with 2D shortcut and comprise: the 3D view template creating 2D shortcut; Above-mentioned 3D view is built according to this 3D view template.By this preferred implementation, improve 3D view and build efficiency and accuracy, make user can enjoy the intuitive visual effect of 3D, improve user's impression.
For the constructive process of the 3D view template of 2D shortcut, present embodiments provide a kind of preferred implementation, the 3D view template creating 2D shortcut comprises: the shape and the length of side that obtain 2D shortcut; Above-mentioned 3D view template is created according to above-mentioned shape and the above-mentioned length of side.That is, the 3D view template of establishment is all the same with the outward appearance, shape etc. of 2D shortcut.
Above-mentioned 2D shortcut comprises 2D shortcut icon and/or 2D plug-in unit.Shortcut icon is used for starting application, and a kind of desktop plug-ins that plug-in unit is normally provided by third party's program, common are weather forecast, clock, calendar etc.2D shortcut icon is different with the shape of 2D plug-in unit, and the 3D view template therefore created is also just different, but, no matter adopt which kind of mode, as long as the 3D view template identical with the outward appearance, shape etc. of 2D shortcut icon or 2D plug-in unit can be created.
After creating 3D view template, need to draw this 3D view template, be depicted as the 3D view possessing 3D effect.For 2D shortcut icon and 2D plug-in unit, present embodiments provide different preferred implementations and realize drawing operation.Particularly;
If 2D shortcut is 2D shortcut icon, builds 3D view according to 3D view template and comprise: the picture obtaining 2D shortcut icon from 3D database; By texture mapping interface, the picture of 2D shortcut icon is plotted to the front of 3D view template, forms the front of above-mentioned 3D view; Default picture is plotted to the side of 3D view template, forms the side of above-mentioned 3D view.Wherein, the above-mentioned operation obtaining the picture of 2D shortcut icon from 3D database is that reason is assured in application, is the one service that Android provides, can gets some information of installing application, the picture that such as third-party application provides.
If above-mentioned 2D shortcut is 2D plug-in unit, builds 3D view according to 3D view template and comprise: convert the painting canvas of 2D plug-in unit to picture; This picture is plotted to the front of above-mentioned 3D view template, forms the front of above-mentioned 3D view; Default picture is plotted to the side of above-mentioned 3D view template, forms the side of above-mentioned 3D view.Wherein, namely above-mentioned painting canvas is draw buffer zone, usual 2D plug-in unit is plotted in liquid crystal display (LiquidCrystalDisplay, referred to as LCD) buffer zone in, the embodiment of the present invention creates drafting buffer zone (i.e. above-mentioned painting canvas) and instead of LCD buffer zone, then utilizes the picture that this drafting buffer generation needs.This drafting buffer zone stores the parameters such as pixel, can generate the picture of needs according to the parameter of drawing in buffer zone.
By above-mentioned two kinds of preferred implementations, successfully realize the drafting operation of 3D view, make 2D shortcut possess 3D visual effect on 3D desktop, improve user's impression.Certainly, the drafting operation of 3D view is not limited only to this, and concrete operations can be determined according to actual conditions, as long as the success that can complete 3D view is drawn.
After successfully building 3D view, 2D shortcut just achieves 3D visual effect on 3D desktop, for the creation operation of the 3D view of 3D shortcut, can apply himself program and realize, introduce no longer in detail at this according to actual conditions.
In above-mentioned steps S104, receive after running message, run the application program of 2D shortcut, and adjust the 3D view of 2D shortcut according to this operation message.Above-mentioned operation message is used to indicate the position of the above-mentioned 2D shortcut of adjustment and/or 3D shortcut, when applying 2D shortcut, remaining and adopting the application program of 2D shortcut to complete operation.If but need to run special efficacys such as dragging 2D shortcut, need to adjust the 3D view of 2D shortcut.
Based on this, present embodiments provide a kind of preferred implementation, namely comprise according to the 3D view running message adjustment 2D shortcut: the deflection angle of monitoring terminal equipment, and/or the controlled angle in the position of 2D shortcut, distance; According to above-mentioned deflection angle, and/or above-mentioned controlled angle and distance, the front of 3D view of adjustment 2D shortcut and/or the picture of side.By above-mentioned preferred implementation, make to run 2D shortcut user, or 2D shortcut is dragged, or in the situation such as terminal device deflection, 2D shortcut can ensure 3D visual effect all the time.
For the 3D desktop that the present embodiment is mentioned, can be introduced by the mode of Root View.Fig. 2 is the basic structure schematic diagram of the 3D desktop according to the embodiment of the present invention, and as shown in Figure 2,3D desktop has individual Root View, is used for creating whole 3D desktop and the various message monitoring Android definition.Be divided into 2D view and 3D view below, 2D view is used to the 2D shortcut carrying third party's exploitation here, and 3D view is used to carry all 3D shortcuts, comprises the object for carrying 2D plug-in unit and shortcut icon, and the 3D plug-in unit of independent development; 3D view associates a 3D world, and all 3D objects all need to be created in the 3D world, and the element in the 3D world is mainly divided into two classes: plug-in unit and shortcut icon.
Below to the process of the 3D view template of each shortcut of establishment, namely the process that each shortcut that default setting or user set is added in 3D desktop is introduced, Fig. 3 is the visioning procedure figure of the 3D view template of shortcut according to the embodiment of the present invention, as shown in Figure 3, this flow process comprises the following steps (step S302-step S316):
Step S302, reads topology file.This topology file is used for setting the shortcut that 3D desktop should comprise under default situations, such as shortcut icon, plug-in unit etc.
3D desktop has the topology file of acquiescence, and 3D desktop can read topology file when starting initialized, creates each corresponding part.Certainly, user oneself can revise the layout on 3D desktop, and these amended information all can be stored in the database of 3D desktop.3D desktop is the layout information obtaining each screen from database when restarting.Namely being read layout information from original layout file during initiating switchup, is read from database when again starting.The corresponding two kinds of situations of above-mentioned initiating switchup, a kind of situation is that user installs 3D desktop first, and the second situation is that user manually removes all data of 3D desktop and again starts.
Step S304, distinguishes the type of shortcut.If 3D shortcut, then perform step S306, if 2D shortcut, then perform step S308.
When loading topology file, needing to distinguish different shortcuts, mainly 2D shortcut and 3D shortcut being distinguished.This differentiation operation can be distinguished by " the bag name " in android system, above-mentioned " bag name " is the unique identification for different application in android system, and because 3D shortcut is all that the form applied separately is installed, instead of be embedded in 3D desktop, so distinguish can satisfy condition completely with " bag name ".According to the shortcut of 3D Development of Framework then as 3D shortcut, other shortcut is then as 2D shortcut.
Step S306, creates the 3D view template of 3D shortcut.This 3D view template is all generated by the application program of self, is then got the object of the object created separately by the interface of unified definition, is then loaded into 3D desktop and shows.Then step S316 is performed.
Step S308, judges that 2D shortcut is 2D shortcut icon or 2D plug-in unit.If 2D shortcut icon, then perform step S310, if 2D plug-in unit, then perform step S312.
Shortcut icon and plug-in unit are comprised for 2D shortcut.Shortcut icon is used for starting application, and a kind of desktop plug-ins that plug-in unit is normally provided by third party's program, common are weather forecast, clock, calendar etc.The function realized due to shortcut icon and plug-in unit has very large difference, defines two kinds of diverse classifications and distinguish in 3D desktop, as long as so judge that the shortcut that will load is the example of which kind of classification, just can accomplish to distinguish accurately.
Step S310, creates the 3D view template of carrying 2D plug-in unit, and is loaded in Root View.Then step S314 is performed.
Generally the prototype of the 3D view template of 2D plug-in unit is cube, and because the size of plug-in unit is not identical, normally m takes advantage of n, here the length and width of m, n indication plug unit respectively.The value of m, n is be stored in the database of 3D desktop equally.By obtaining the length and width of plug-in unit, create corresponding 3D view template, this 3D view template normally cube, and this cube is transparent.X, y-axis are according to the value setting of reading, and the length of z-axis is according to unified rule settings.
Step S312, creates the 3D view template of carrying 2D shortcut icon, and is loaded in Root View.
Generally, 2D shortcut icon is all that n takes advantage of n, and the unified establishment length of side is the 3D view template of the square shape of 1 length.
Step S314,3D view template creates successfully, is added in 3D desktop by unified interpolation interface.
The visioning procedure of step S316,3D view template terminates.
After the 3D view template successfully creating 2D shortcut and 3D shortcut, need to draw this 3D view template, build 3D view.Be introduced the building process of 3D view below, Fig. 4 is the structure process flow diagram of the 3D view according to the embodiment of the present invention, and as shown in Figure 4, this flow process comprises the following steps (step S402-step S414):
Step S402, when Root View receives the message of drafting, all shortcuts in the 3D world in form all need to draw.
Step S404, distinguishes the type of shortcut.If 3D shortcut, then perform step S406, if 2D shortcut, then perform step S408.Concrete differentiation process is the same with the step S304 in above-described embodiment, does not repeat them here.
Step S406, sends and draws message to 3D shortcut, notify that it carries out drafting operation.This operating process can be processed by the application of 3D shortcut self, introduces no longer in detail at this.Then step S414 is performed.
Step S408, judges that 2D shortcut is 2D shortcut icon or 2D plug-in unit.If 2D shortcut icon, then perform step S410, if 2D plug-in unit, then perform step S412.
Step S410, builds the 3D view that 2D shortcut icon is corresponding.Particularly:
Directly from the database of 3D desktop, obtain the picture with 2D shortcut icon, this picture is when the initialization of 3D desktop, gets from assuring reason of Android and stores in a database, and what now store also has the distinctive information of application such as bag name.Use texture mapping interface this picture to be attached to the front of 3D view template, unified default picture is sticked in side.Herein also can by obtaining the pixel value at pinup picture edge, side uses same pixel to carry out pinup picture, thus builds 3D view.And make 3D view seem more naturally directly perceived.Then step S414 is performed.
Step S412, builds the 3D view that 2D plug-in unit is corresponding.Particularly:
Using oneself newly-built painting canvas to replace on the painting canvas drawing buffer zone when drawing, namely allowing 2D View Drawing in newly-built painting canvas, re-using interface and painting canvas is changed into picture.Due to the replacement of painting canvas, be the equal of carried out drafting action on backstage, the picture generated after drafting is saved, after the 3D view template that 2D plug-in unit is corresponding has created, call the front that texture rendering interface is attached to above-mentioned picture 3D view template, the process of the pinup picture reference step S410 of side, thus build 3D view.And make 3D view seem more naturally directly perceived.
The structure flow process of step S414,3D view terminates.
After the 3D view building 2D shortcut and 3D shortcut, 2D shortcut achieves 3D visual effect on 3D desktop.With user interaction process, need according to interactive operation, adjustment is carried out to 3D view and replaces, to ensure that 2D shortcut all shows 3D visual effect at any time.Fig. 5 is that as shown in Figure 5, this flow process comprises the following steps (step S502-step S512) according to the 3D view adjustment process flow diagram in the reciprocal process of the embodiment of the present invention:
Step S502, when the shortcut of user operation 3D desktop, android system is forwarded to Root View by the message forwarding mechanism of View message, and is down forwarded to from level to level on need view to be processed.
Step S504, distinguishes the type of shortcut.If 3D shortcut, then perform step S506, if 2D shortcut, then perform step S508.
The response of step S506,3D shortcut can by self routine processes.Due to the object composition more complicated of 3D shortcut, be usually by tens, or even tens object compositions, event needs to be judged by coordinate range by the superiors' object, is again forwarded on concrete wisp, responds specific event by wisp.Concrete response mode is determined by the demand of 3D shortcut, introduces no longer in detail at this.Then step S512 is performed.
Step S508, because 2D shortcut is loaded in Root View, although display section is replaced, the response of message still can normal process, namely by the operation of the application response user of original 2D shortcut, generates new picture after refreshing.
Step S510, carrys out the response of synchronous 2D shortcut by the pinup picture not stopping to replace 3D view front, thus realizes ensureing 3D visual effect in the reciprocal process with user.
Step S512, this flow process terminates.
In the practical application of 3D desktop, user, when performing the operation of some special efficacys, also can ensure the 3D visual effect of each shortcut on 3D desktop.The special efficacy operation of process usually is now gravity sensing, and object is stirred.Certainly, follow-up can also increase according to demand more special efficacy operation.Fig. 6 is the unified responding process figure of the shortcut for special efficacy operation according to the embodiment of the present invention, and as shown in Figure 6, this flow process comprises the following steps (step S602-step S616):
Step S602, the message registering the operation of each special efficacy when the initialization of 3D desktop is monitored.Such as, the monitoring of gravity sensor, and need when creating each shortcut to register the monitoring touching message, and interpolation processes function accordingly.
Step S604, distinguishes the type of message of special efficacy operation.If gravity sensing, then perform step S606, if stir response, then perform step S608.
The present embodiment only comprises gravity sensing for special efficacy operation and is described with stirring to respond.The difference of the follow-up type of message according to special efficacy operation, can start corresponding process function.
Step S606, after receiving the message that mobile phone rotates, according to the rotational angle that gravity sensor imports into, progressively to adjust in 3D desktop window all shortcuts along the deflection angle of Z axis, realize the rotation of 3D view, now the side of 3D view will clearly show.Then step S616 is performed.
Step S608, by the slip of monitoring users finger on screen, the call back function of registration before calling.
Step S610, judges whether 2D view corresponding to 2D shortcut responds the event of stirring.Particularly, can be judged by the corresponding rreturn value of event.If 2D view responds this event, the view system of Android is true in the corresponding rreturn value of event, then perform step S612, otherwise, perform step S614.
Step S612, this process is identical with the process that Fig. 5 describes, and is namely replaced the 3D visual effect of 3D view realization 2D shortcut by adjustment, does not repeat them here.Then step S616 is performed.
Step S614, points the direction of stirring according to user and rotates corresponding 3D view, realize user's other observations of each to shortcut, and when user's finger lifts, 3D view needs automatically to go back to original position, and namely front is shown to user.
Step S616, this flow process terminates.
Corresponding to the 3D view method of adjustment that above-described embodiment is introduced, present embodiments provide a kind of 3D view adjusting gear, in order to realize above-described embodiment.Fig. 7 is the structured flowchart of the 3D view adjusting gear according to the embodiment of the present invention, and as shown in Figure 7, this device comprises: discriminating module 10, view build module 20, run module 30, first adjusting module 40 and the second adjusting module 50.Below this structure is described in detail.
Discriminating module 10 is 2D shortcut or 3D shortcut for distinguishing the shortcut of prerun;
View builds module 20, is connected to discriminating module 10, for when the differentiation result of above-mentioned discriminating module 10 is above-mentioned 2D shortcut, builds the 3D view corresponding with above-mentioned 2D shortcut;
Run module 30, be connected to view and build module 20, after receiving operation message, run the application program of above-mentioned 2D shortcut;
First adjusting module 40, is connected to and runs module 30, for adjusting the above-mentioned 3D view of above-mentioned 2D shortcut according to above-mentioned operation message;
Second adjusting module 50, discriminating module 10, is connected to for when the differentiation result of above-mentioned discriminating module 10 is above-mentioned 3D shortcut, receives after running message, runs the application program of above-mentioned 3D shortcut; And the 3D view of above-mentioned 3D shortcut is adjusted according to above-mentioned operation message.
Pass through said apparatus, after receiving operation message, relevant application program is performed with 3D shortcut for 2D shortcut, and the 3D view of 2D shortcut is adjusted according to above-mentioned operation message, and the 3D view of adjustment 3D shortcut, the third party 2D shortcut solved in correlation technique cannot show the problem of 3D effect, makes third-party 2D shortcut also can show 3D visual effect, thus unified the 3D visual effect of desktop, improve user's impression.
In the present embodiment, before view structure module 20 can be arranged on discriminating module 10, after also can being arranged on discriminating module 10, the present embodiment is described after being connected to discriminating module 10.
For the building process of the 3D view of 2D shortcut, present embodiments provide a kind of preferred structure, namely above-mentioned view structure module 60 comprises: template establishment unit, for creating the 3D view template of 2D shortcut; View construction unit, builds above-mentioned 3D view for the above-mentioned 3D view template created according to above-mentioned template establishment unit.By this preferred structure, improve 3D view and build efficiency and accuracy, make user can enjoy the intuitive visual effect of 3D, improve user's impression.
For the constructive process of the 3D view template of 2D shortcut, present embodiments provide a kind of preferred structure, namely above-mentioned template establishment unit comprises: obtain subelement, for obtaining shape and the length of side of above-mentioned 2D shortcut; Create subelement, create above-mentioned 3D view template for the above-mentioned shape that obtains according to above-mentioned acquisition subelement and the above-mentioned length of side.That is, the 3D view template of establishment is all the same with the outward appearance, shape etc. of 2D shortcut.
Above-mentioned 2D shortcut comprises 2D shortcut icon and/or 2D plug-in unit.2D shortcut icon is different with the shape of 2D plug-in unit, and the 3D view template therefore created is also just different, but, no matter adopt which kind of mode, as long as the 3D view template identical with the outward appearance, shape etc. of 2D shortcut icon or 2D plug-in unit can be created.
After creating 3D view template, need to draw this 3D view template, be depicted as the 3D view possessing 3D effect.For 2D shortcut icon and 2D plug-in unit, present embodiments provide different preferred implementations and realize drawing operation.Particularly;
If 2D shortcut is 2D shortcut icon, builds 3D view according to 3D view template and comprise: the picture obtaining 2D shortcut icon from 3D database; By texture mapping interface, the picture of 2D shortcut icon is plotted to the front of 3D view template, forms the front of above-mentioned 3D view; Default picture is plotted to the side of 3D view template, forms the side of above-mentioned 3D view.
If above-mentioned 2D shortcut is 2D plug-in unit, builds 3D view according to 3D view template and comprise: convert the painting canvas of 2D plug-in unit to picture; This picture is plotted to the front of above-mentioned 3D view template, forms the front of above-mentioned 3D view; Default picture is plotted to the side of above-mentioned 3D view template, forms the side of above-mentioned 3D view.
After the first operation module 20 receives operation message, run the application program of 2D shortcut.Above-mentioned operation message is used to indicate the position of the above-mentioned 2D shortcut of adjustment and/or 3D shortcut, when applying 2D shortcut, remaining and adopting the application program of 2D shortcut to complete operation.If but need to run special efficacys such as dragging 2D shortcut, need to adjust the 3D view of 2D shortcut.
Based on this, present embodiments provide a kind of preferred structure, the concrete structure block diagram of 3D view adjusting gear as shown in Figure 8, this device is except comprising the modules shown in above-mentioned Fig. 7, and above-mentioned first adjusting module 30 also comprises: monitoring means 32 and adjustment unit 34.Below this structure is described in detail.
Monitoring means 32, for the deflection angle of monitoring terminal equipment, and/or the controlled angle in position, the distance of above-mentioned 2D shortcut;
Adjustment unit 34, is connected to monitoring means 32, for the above-mentioned deflection angle of monitoring according to above-mentioned monitoring means 32, and/or above-mentioned controlled angle and distance, the above-mentioned front of 3D view and/or the picture of side of above-mentioned 2D shortcut are replaced in adjustment.
By above-mentioned preferred structure, make to run 2D shortcut user, or 2D shortcut is dragged, or in the situation such as terminal device deflection, 2D shortcut can ensure 3D visual effect all the time.
As can be seen from the above description, the perfection that the embodiment of the present invention achieves the 3D visual effect of 2D shortcut presents, achieve 2D shortcut 3D desktop all operations, achieve the unification looking effect, operation, characteristic etc. of 3D desktop.For the unification of all drawing and operation, user also need not be concerned about which shortcut be which shortcut of 3D is 2D again, and all experience is all in the 3D world, can the application of perfect integrating third-party exploitation, improves user's impression.
Although be example object, disclose the preferred embodiments of the present invention, it is also possible for those skilled in the art will recognize various improvement, increase and replacement, and therefore, scope of the present invention should be not limited to above-described embodiment.
Claims (10)
1. a 3D view method of adjustment, is characterized in that, said method comprising the steps of:
The shortcut distinguishing prerun is two-dimentional 2D shortcut or three-dimensional 3D shortcut;
If described 2D shortcut, build the 3D view corresponding with described 2D shortcut; Receive after running message, run the application program of described 2D shortcut, and adjusted the described 3D view of described 2D shortcut by 3D desktop system according to described operation message, by replacing the response of the synchronous 2D shortcut of pinup picture in 3D view front;
If described 3D shortcut, when receiving the operation of user to 3D desktop shortcuts, operation message is forwarded to Root View, and is forwarded to downwards and needs view to be processed;
Run the application program of described 3D shortcut, and adjusted the 3D view of described 3D shortcut by the application program that described 3D shortcut is corresponding according to described operation message.
2. the method for claim 1, is characterized in that, builds the described 3D view corresponding with described 2D shortcut and comprises:
Create the 3D view template of described 2D shortcut;
Described 3D view is built according to described view template.
3. method as claimed in claim 2, it is characterized in that, the described 3D view template creating described 2D shortcut comprises:
Obtain shape and the length of side of described 2D shortcut;
Described 3D view template is created according to described shape and the described length of side.
4. method as claimed in claim 3, it is characterized in that, described 2D shortcut comprises 2D shortcut icon or 2D plug-in unit;
If described 2D shortcut is described 2D shortcut icon, builds described 3D view according to described 3D view template and comprise:
The picture of described 2D shortcut icon is obtained from database; By texture mapping interface, the picture of described 2D shortcut icon is plotted to the front of described 3D view template, forms the front of described 3D view; Default picture is plotted to the side of described 3D view template, forms the side of described 3D view;
If described 2D shortcut is 2D plug-in unit, builds described 3D view according to described 3D view template and comprise:
Convert the painting canvas of described 2D plug-in unit to picture; Described picture is plotted to the front of described 3D view template, forms the front of described 3D view; Default picture is plotted to the side of described 3D view template, forms the side of described 3D view.
5. the method for claim 1, is characterized in that, described operation message is used to indicate the position of the described 2D shortcut of adjustment and/or 3D shortcut, comprises according to the 3D view that described operation message adjusts described 2D shortcut by described 3D desktop system:
The deflection angle of monitoring terminal equipment, and/or the controlled angle in position, the distance of described 2D shortcut;
According to described deflection angle, and/or described controlled angle and distance, the described front of 3D view and/or the picture of side of described 2D shortcut is adjusted by described 3D desktop system.
6. a 3D view adjusting gear, is characterized in that, comprising:
Discriminating module is two-dimentional 2D shortcut or three-dimensional 3D shortcut for distinguishing the shortcut of prerun;
View builds module, for when the differentiation result of described discriminating module is described 2D shortcut, builds the 3D view corresponding with described 2D shortcut;
Run module, after receiving operation message, run the application program of described 2D shortcut;
First adjusting module, for being adjusted the described 3D view of described 2D shortcut by 3D desktop system according to described operation message, by replacing the response of the synchronous 2D shortcut of pinup picture in 3D view front;
Second adjusting module, for when the differentiation result of described discriminating module is described 3D shortcut, when receiving the operation of user to 3D desktop shortcuts, operation message is forwarded to Root View, and be forwarded to need view to be processed downwards, run the application program of described 3D shortcut; And adjusted the 3D view of described 3D shortcut by the application program that described 3D shortcut is corresponding according to described operation message.
7. device as claimed in claim 6, is characterized in that, described view builds module and comprises:
Template establishment unit, for creating the 3D view template of described 2D shortcut;
View construction unit, builds described 3D view for the described 3D view template created according to described template establishment unit.
8. device as claimed in claim 7, it is characterized in that, described template establishment unit comprises:
Obtain subelement, for obtaining shape and the length of side of described 2D shortcut;
Create subelement, for the described shape that obtains according to described acquisition subelement and the described length of side, create described 3D view template.
9. device as claimed in claim 8, is characterized in that, described operation message is used to indicate the position of the described 2D shortcut of adjustment and/or 3D shortcut, and described first adjusting module comprises:
Monitoring means, for the deflection angle of monitoring terminal equipment, and/or the controlled angle in position, the distance of described 2D shortcut;
Adjustment unit, for the described deflection angle of monitoring according to described monitoring means, and/or described controlled angle and distance, the described front of 3D view and/or the picture of side of described 2D shortcut are replaced in adjustment.
10. the device according to any one of claim 6 to 9, is characterized in that, described 2D shortcut comprises 2D shortcut icon and/or 2D plug-in unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210556618.7A CN103064672B (en) | 2012-12-20 | 2012-12-20 | A kind of 3D view method of adjustment and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210556618.7A CN103064672B (en) | 2012-12-20 | 2012-12-20 | A kind of 3D view method of adjustment and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103064672A CN103064672A (en) | 2013-04-24 |
CN103064672B true CN103064672B (en) | 2016-04-13 |
Family
ID=48107310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210556618.7A Active CN103064672B (en) | 2012-12-20 | 2012-12-20 | A kind of 3D view method of adjustment and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103064672B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361622B (en) * | 2014-10-31 | 2018-06-19 | 福建星网视易信息系统有限公司 | A kind of interface method for drafting and device |
WO2017049437A1 (en) * | 2015-09-21 | 2017-03-30 | 上海欧拉网络技术有限公司 | Method and device for implementing 3d dynamic effect interaction on mobile phone desktop |
CN106231281B (en) * | 2015-12-31 | 2017-11-17 | 深圳超多维光电子有限公司 | A kind of display converting method and device |
CN109766039B (en) * | 2018-12-29 | 2021-06-25 | 努比亚技术有限公司 | Information display method of mobile terminal, mobile terminal and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3651943B2 (en) * | 1994-12-09 | 2005-05-25 | オリンパス株式会社 | Icon creation method and movie frame creation method |
US8266550B1 (en) * | 2008-05-28 | 2012-09-11 | Google Inc. | Parallax panning of mobile device desktop |
CN101655989A (en) * | 2008-08-20 | 2010-02-24 | 深圳市金立通信设备有限公司 | 3D special-efficacy graphic user interface system and method of mobile phone |
US20100100853A1 (en) * | 2008-10-20 | 2010-04-22 | Jean-Pierre Ciudad | Motion controlled user interface |
US8448092B2 (en) * | 2009-11-25 | 2013-05-21 | International Business Machines Corporation | Positional effects in a three-dimensional desktop environment |
CN101872285A (en) * | 2010-06-13 | 2010-10-27 | 中兴通讯股份有限公司 | Method and device for realizing desktop system |
CN102147926A (en) * | 2011-01-17 | 2011-08-10 | 中兴通讯股份有限公司 | Three-dimensional (3D) icon processing method and device and mobile terminal |
-
2012
- 2012-12-20 CN CN201210556618.7A patent/CN103064672B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103064672A (en) | 2013-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106791212B (en) | A kind of control method, device and the mobile terminal of mobile terminal refresh rate | |
CN110069580B (en) | Road marking display method and device, electronic equipment and storage medium | |
CN106933526A (en) | A kind of method of dynamic regulation screen refresh rate, device and mobile terminal | |
CN110795007B (en) | Method and device for acquiring screenshot information | |
CN104508684A (en) | Setting an operating-system color using a photograph | |
CN104142798A (en) | Application start method and intelligent terminal equipment provided with touch screen | |
CN110321126B (en) | Method and device for generating page code | |
KR20120107109A (en) | Method and mobile terminal for processing contacts | |
CN103064672B (en) | A kind of 3D view method of adjustment and device | |
CN103377487A (en) | Information processing apparatus, display control method, and program | |
CN112233211B (en) | Animation production method, device, storage medium and computer equipment | |
CN110458921B (en) | Image processing method, device, terminal and storage medium | |
CN110928464B (en) | User interface display method, device, equipment and medium | |
KR20150079387A (en) | Illuminating a Virtual Environment With Camera Light Data | |
CN106250080A (en) | Method for displaying image and device | |
CN109948581B (en) | Image-text rendering method, device, equipment and readable storage medium | |
JP2022508162A (en) | Object construction methods, devices, computer equipment, and computer programs based on virtual environments | |
CN109726368B (en) | Map marking method and device | |
CN111583379A (en) | Rendering method and device of virtual model, storage medium and electronic equipment | |
CN102339207A (en) | Electronic interaction apparatus and method for generating full screen effect | |
CN111796826B (en) | Bullet screen drawing method, device, equipment and storage medium | |
KR20160106985A (en) | Method for displaying image and electronic apparatus | |
CN110502205A (en) | Picture showing edge processing method, device, electronic equipment and readable storage medium storing program for executing | |
CN105808035A (en) | Icon display method and apparatus | |
CN112905280A (en) | Page display method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |