Summary of the invention
In order to overcome the deficiency in the existing computer animation treatment technology, the objective of the invention is to: provide a kind of can be with cartoon track and the AutoShape apparatus and method of conversion mutually, ease for use scheme in a kind of PowerPoint design process is provided, it is operated easily, orderliness is clear, form is lively, for the making of computer animation provides convenience.
The technical solution adopted for the present invention to solve the technical problems is:
A kind ofly cartoon track and the AutoShape device of conversion mutually can be included interconnective computer entry device, display device and main frame; Wherein: described device also comprises and can extract the extraction cartoon track device of cartoon track and the pattern switch device that cartoon track is converted to AutoShape according to the AutoShape profile; Described extraction cartoon track device includes:
User's interface one: be used to the user to provide and choose the inlet that AutoShape identifies;
Analysis module: be used to differentiate the AutoShape type;
Graphics processing engine: be used to generate cartoon track;
Shape database: be used to store existing cartoon track data;
Final processing module: be used to generate cartoon track and determine that cartoon track is added to shape database still presents to the user with the result;
Described pattern switch device includes: user's interface two and the processing module of using when cartoon track is converted to AutoShape.
Described picture processing engine includes picture processing engine and other AutoShape processing engine.
A kind ofly cartoon track and the AutoShape method of conversion mutually as shown in Figure 2, wherein, can be comprised the method for extracting movement locus according to the AutoShape profile; Described method according to AutoShape profile extraction movement locus comprises following job step:
Step 1: the user selects to add the AutoShape of cartoon track;
Step 2: user and rolling mouse are to will therefrom extracting on the AutoShape of cartoon track;
Step 3: computing machine is accepted the signal of step 1, step 2, the cartoon track shape of prompting after the current some conversion of mouse;
Step 4: the user confirms the cartoon track that will change or abandons conversion; In this way, enter step 5; As denying: enter step 6;
Step 5: computing machine has added the cartoon track shape that the user extracts under current mouse pointer position;
Step 6: end operation.
Describedly cartoon track and the AutoShape method of conversion mutually also can be comprised the method that cartoon track is converted to AutoShape, the described method that cartoon track is converted to AutoShape comprises following job step:
Step 1: the user selects to be converted to the cartoon track of AutoShape;
Step 2: computing machine converts cartoon track to figure;
Step 3: the AutoShape after the user confirms to change or abandon the conversion.
The invention has the beneficial effects as follows: adopt a kind of apparatus and method of the present invention cartoon track and the mutual conversion of AutoShape, be that a cover improves the ease for use scheme in the design slide presentation process, make the user can generate the cartoon track and the AutoShape of design fast according to existing resource, remove unnecessary troublesome operation under the existing situation from, also can greatly expand simultaneously user's available material space, help the user to design more attractive in appearance, beautiful PowerPoint.
Description of drawings
Fig. 1 is a kind of composition configuration diagram with cartoon track and the mutual device of changing of AutoShape of the present invention;
Fig. 2 is a kind of workflow synoptic diagram with cartoon track and the mutual method of changing of AutoShape of the present invention;
Fig. 3 is a kind of workflow diagram synoptic diagram with other AutoShape processing engine in the method for cartoon track and the mutual conversion of AutoShape of the present invention;
Fig. 4 a is a kind of simple AutoShape synoptic diagram with cartoon track and the mutual device of changing of AutoShape of the present invention;
Fig. 4 b is a kind of complicated AutoShape synoptic diagram with cartoon track and the mutual device of changing of AutoShape of the present invention;
Fig. 4 c is a kind of combination AutoShape synoptic diagram with cartoon track and the mutual device of changing of AutoShape of the present invention;
Fig. 4 d is a kind of picture synoptic diagram with cartoon track and the mutual device of changing of AutoShape of the present invention;
Fig. 5 a is that the present invention is a kind of with cartoon track and AutoShape mutually in the device of conversion, and the complicated AutoShape that is separated from each other by spirte extracts the synoptic diagram of cartoon track;
Fig. 5 b is in a kind of device with cartoon track and the mutual conversion of AutoShape of the present invention, is extracted the synoptic diagram of cartoon track by the overlapped complicated AutoShape of spirte;
Fig. 5 c is that the present invention is a kind of with cartoon track and AutoShape mutually in the device of conversion, and the complicated AutoShape that is separated from each other by spirte extracts the synoptic diagram of cartoon track;
Fig. 5 d is in a kind of device with cartoon track and the mutual conversion of AutoShape of the present invention, is extracted the synoptic diagram of cartoon track by picture;
Fig. 6 a is a kind of relative position synoptic diagram with consecutive point in the bitmap in the method for cartoon track and the mutual conversion of AutoShape of the present invention;
Fig. 6 b is that the present invention is a kind of with " key point " synoptic diagram in the method for cartoon track and the mutual conversion of AutoShape;
Fig. 6 c is a kind of work synoptic diagram with picture processing engine in the method for cartoon track and the mutual conversion of AutoShape of the present invention.
Among the figure:
301 simple AutoShapes;
302 complicated AutoShapes;
303 combination AutoShapes;
304 pictures;
The 305 complicated AutoShapes that are separated from each other by spirte extract movement locus;
306 by the overlapped complicated AutoShape extraction movement locus of spirte;
307 by combination AutoShape extraction movement locus;
308 by picture extraction movement locus;
31 user's interfaces one;
32 analysis modules;
33 picture processing engine;
The relative position synoptic diagram of consecutive point in 331 bitmaps;
332 " key point " synoptic diagram;
333 picture processing engine workflow synoptic diagram;
34 other AutoShape processing engine;
35 shape databases;
36 final processing modules;
37 generate cartoon track;
38 results present to the user;
51 user's interfaces two;
52 processing modules;
53 generate AutoShape;
The step that 10 users selection will be added the AutoShape of cartoon track;
20 enter this programme logic, and the step of rolling mouse to the AutoShape that will therefrom extract cartoon track;
The step of the cartoon track shape of 30 program prompts after the current some conversion of mouse;
40 users confirm the cartoon track that will change or the step of abandoning changing;
50 users selection will be converted to the step of the cartoon track of AutoShape;
60 users confirm to be converted to the cartoon track of AutoShape or the step of abandoning changing;
341 take the step of AutoShape sign;
The step of 342 inquiry shape databases;
343 take out the step of the outline data of AutoShape from database;
344 analyze the step of AutoShape profile;
345 steps of adding the AutoShape outline data to shape database;
346 analyze the step that outline data obtains final cartoon track.
Embodiment
A kind ofly cartoon track and the AutoShape device of conversion mutually as shown in Figure 1, can be included interconnective computer entry device, display device and main frame; Wherein: described device also comprises and can extract the extraction cartoon track device of cartoon track and the pattern switch device that cartoon track is converted to AutoShape according to the AutoShape profile; Described extraction cartoon track device includes:
User's interface one: be used to the user to provide and choose the inlet that AutoShape identifies;
Analysis module: be used to differentiate the AutoShape type;
Graphics processing engine: be used to generate cartoon track;
Shape database: be used to store existing cartoon track data;
Final processing module: be used to generate cartoon track and determine that cartoon track is added to shape database still presents to the user with the result;
Described pattern switch device includes: user's interface two and the processing module of using when cartoon track is converted to AutoShape.
Described picture processing engine includes picture processing engine and other AutoShape processing engine.
A kind ofly cartoon track and the AutoShape method of conversion mutually as shown in Figure 2, wherein, can be comprised the method for extracting movement locus according to the AutoShape profile; Described method according to AutoShape profile extraction movement locus comprises following job step:
Step 1: the user selects to add the AutoShape of cartoon track;
Step 2: user and rolling mouse are to will therefrom extracting on the AutoShape of cartoon track;
Step 3: computing machine is accepted the signal of step 1, step 2, the cartoon track shape of prompting after the current some conversion of mouse;
Step 4: the user confirms the cartoon track that will change or abandons conversion; In this way, enter step 5; As denying: enter step 6;
Step 5: computing machine has added the cartoon track shape that the user extracts under current mouse pointer position;
Step 6: end operation.
Describedly cartoon track and the AutoShape method of conversion mutually also can be comprised the method that cartoon track is converted to AutoShape, the described method that cartoon track is converted to AutoShape comprises following job step:
Step 1: the user selects to be converted to the cartoon track of AutoShape;
Step 2: computing machine converts cartoon track to figure;
Step 3: the AutoShape after the user confirms to change or abandon the conversion.
The specific descriptions of technical solution of the present invention are: it is that its shape generation has identical shaped cartoon track according to the profile of AutoShape that first " extract movement locus according to the AutoShape profile " to allow the user.This operation comprised for three steps: cartoon track is exactly the movement locus of AutoShape in an animation process, so want to generate cartoon track, must will select a target AutoShape (step 10) earlier; The user is by entering apparatus of the present invention with add the similar inlet of other animation effects for this AutoShape afterwards, and then mouse pointer being moved to will be with its profile as on the AutoShape of cartoon track (step 20); At this moment the program cartoon track shape (step 30) that can point out the user under current mouse pointer position, to extract in clear and definite mode, this step is the task of application program, does not need the user to operate; End user is according to program prompts, determine to confirm or abandon extracting (step 40), if the user confirms to extract, the AutoShape of choosing in the step 10 just has been added a cartoon track identical with the shape of program prompts in the step 30 so, and so self-defined track animation just design has been finished.
The second portion of technical solution of the present invention " is converted to AutoShape to cartoon track " and allows the user that any one cartoon track in the PowerPoint is converted to profile with the identical AutoShape of this cartoon track shape, and the AutoShape that converts to can carry out the various editing operations that other objects can carry out.This operation only comprises two steps, with reference to figure 1: select a cartoon track (step 50) from first user; The user determines to confirm or abandon conversion (step 60) afterwards.
AutoShape in the general PowerPoint production process is not only a kind of, and AutoShape and AutoShape can make up mutually, so in step 30, application program should differently according to the AutoShape type that the user selects be taked different processing modes in step 20, describe below in conjunction with Fig. 4 a, 4b, 4c, 4d, 5a, 5b, 5c, 5d.
This scheme is divided into four classes to the AutoShape in the PowerPoint production process, promptly simple AutoShape 301, complicated AutoShape 302, combination AutoShape 303, picture 304, and at each AutoShape, it is as follows to provide different cartoon tracks to choose scheme:
Simple AutoShape 301: the profile of simple AutoShape can be represented that this class AutoShape is directly got its profile by single track;
Complicated AutoShape 302: the profile of complicated AutoShape can represent just that by two or above track can extract different cartoon tracks from such AutoShape, at this moment selection rule is divided into two kinds of situations again.The first, if the each several part of complicated AutoShape 305 is separated from each other, program serves as according to extracting cartoon track, shown in Fig. 5 a with that part of profile at current mouse pointer place just so; The second, if the various piece of complicated AutoShape 306 is together overlapped, program serves as according to extracting cartoon track, shown in Fig. 5 b with the region contour that surrounds mouse pointer position and area minimum just;
Combination AutoShape 307: if the combination AutoShape is together overlapped, then get its overall profile, promptly can wrap
The region contour that encloses all spirtes extracts for foundation, as Fig. 5 c; If the spirte of combination AutoShape is separated from each other,
Then each separating part is treated according to another one independence AutoShape;
Picture 308: the class of operation of picture is like " magic " selection tool in some mapping software, program at first obtains the pixel color of current mouse pointer position, then so that all are adjacent and the outline in the zone that the pixel of color close (in certain range of tolerable variance) is formed serve as according to extraction cartoon track such as Fig. 5 d around it, the tolerance here requires manually real-time regulated, and corresponding conversion results also can change in real time.
More than four kinds of AutoShapes be to extract four kinds of basic AutoShapes in the cartoon track process by AutoShape, in general also have the AutoShape of other kinds in the demonstration program, these AutoShapes can be handled according to a certain of above four kinds of basic AutoShapes.For example object table is handled by simple AutoShape, and characters in a fancy style is handled by the combination AutoShape, and ole object, clip art are pressed picture and handled.
Embodiment:
A kind of specific implementation of this scheme is described below in conjunction with Fig. 1:
In the described method according to AutoShape profile extraction movement locus, at first the user imports AutoShape sign, the relative position of mouse pointer on AutoShape chosen by user interface 31 and gives analysis module 32; Analysis module 32 is differentiated the type of AutoShapes, if the AutoShape of input be picture or will be used as other AutoShapes that picture is handled, just give picture processing engine 33 and handle, handle otherwise just give other AutoShape processing engine 34; Picture processing engine 33 and other AutoShape processing engine 34 all can generate a cartoon track, give final processing module 36 then and handle; The operational order that final processing module 36 provides according to user interface 31 (preview cartoon track or generate cartoon track) decision is added the cartoon track of picture processing engine 33 or 4 inputs of other object handles engine 3s to selected AutoShape 37 and is still presented to the user, supplies user's preview 38.
In the described method that cartoon track is converted to AutoShape, the cartoon track that the user chooses by user interface 51 inputs is to handling module 52; Processing module 52 is extracted the cartoon track data, and generates AutoShape 53 according to these data.
As shown in Figure 3, a kind of can be with cartoon track and the AutoShape method of conversion mutually, the realization flow of described picture processing engine 33 is:
Engine is taken AutoShape sign (step 341) afterwards, at first inquires about shape database 35 (step 342), if the outline data record corresponding to current AutoShape sign is arranged in the shape database 35, then directly takes out this outline data (step 343); If there is not the record of current AutoShape in the shape database 35, engine will be analyzed the outline data of this AutoShape earlier and carry out appropriate location reason (step 344), the outline data that adds this AutoShape in database writes down (step 345) afterwards, this outline data is transferred to next step (step 346) again and is handled; Step 346 is taken an outline data, and decision is finally presented to the user or generated cartoon track.
As mentioned above, the data of adding in the shape database all are to have passed through the processing of step 344: if AutoShape is the combination AutoShape, then taking from the whole housing that selects all isolated areas of figure (does not all link together if make up AutoShape, then each independent sector is also treated as independent AutoShape respectively), other AutoShapes just take out all (with reference to complicated AutoShape 30 (b)) profiles of AutoShape.Step 346 just is easy to make a decision like this: if having only an outline data in the data of taking, just it as final cartoon track; If a plurality of profiles are arranged, then travel through each profile, judge whether this profile comprises current mouse pointer loca, then to all profiles that comprises current mouse pointer loca, getting wherein, the profile of area minimum is final cartoon track.
Because the operand of analyzing the AutoShape profile and handling (step 344) operation is usually much larger than the operand of Query Database (step 342), and the AutoShape data of non-picture are all fairly simple, so introduced a shape database 35 here, under space expense is not very big situation, can improve to a great extent as the user and between a plurality of AutoShapes, hesitate efficient when not determining.
The realization flow of described other AutoShape processing engine 34 is: the general more complicated of the data of picture, and the track that can extract is many, and the mode of " shape database " is just not too suitable here.So we have adopted real-time judge, promptly enter the picture processing logic at every turn, picture processing engine 33 just goes out a cartoon track as extracting the result according to the position calculation of current mouse pointer.Its account form is as follows:
In a width of cloth picture, adjacent 2 relative position has eight kinds of relations, shown in Fig. 6 a: some B can be on an A F2, upper right F3, right F4, bottom right F5, F6, lower-left F7, left F8 and upper left F1 side down.Cartoon track is exactly a series of point, and the process that picture processing engine 33 is calculated cartoon track is exactly first point from track in fact, finds last point of track always.We call cartoon track " moving towards trend " at current point to the current point and the position relative relation between the previous point of the cartoon track that picture processing engine 33 finds, and two critical points that we change track " moving towards trend " call " key point " of track.Grey color part among Fig. 6 b is a track, suppose that P0 is the starting point of track, " moving towards trend " at the P1 locus of points is " upper right "---be the upper right side of P1 at P0, P2, P3 also are " upper right ", P4 then is " right side ", P5 is " bottom right ", and the trend of moving towards of visible track at P3, P4 and P4, P5 two places change has taken place, so P0, P3, P4, P5 are the key points (starting point of track and terminal point also are key points) of track.
As Fig. 6 c, a given width of cloth picture and the position Ps of mouse pointer on picture, the picture processing engine at first finds borderline 1 P0 by a little zone (in this example be a circle) formed close with this color along a certain direction (this example is the top), then (clockwise or counterclockwise along a certain direction, this example is clockwise) find all the key point P1 on the zone boundary successively, P2 ... till arriving starting point P0 or can not find the key point that meets the demands, at last all key points are coupled together the cartoon track that will extract exactly with line segment in order.
Presentation file is made software and is different from professional graphics software, degree of accuracy to figure requires strictness so, moreover cartoon track is used for animation and plays, consideration for playing efficiency, cartoon track should be too not complicated yet, so the introducing of " key point " notion has just adapted to this demand just.
The present invention is directed to the deficiency of ease for use aspect in the present presentation file design process, between original separate AutoShape and cartoon track circle, set up association, provide a kind of easy mode of operation to make the user can convert AutoShape fast to according to specific AutoShape generation cartoon track and cartoon track with respective shapes.The present invention can also directly extract cartoon track from the picture of various common formats, cooperate " cartoon track commentaries on classics AutoShape " can realize the object in the picture is become editable AutoShape, thereby greatly enriched available AutoShape and the cartoon track kind in the demonstration applications, given the bigger selection space of user.
Realization system high efficiency provided by the invention ground has satisfied the requirement of above-mentioned ease for use scheme; but be not to be used for limiting the present invention; those skilled in the art; without departing from the spirit and scope of the present invention; should make some changes and revise, so protection scope of the present invention defines and is as the criterion when looking the accompanying Claim book.To one skilled in the art, do not departing from the scope of the invention, various improvement and the variation carried out all belong to protection scope of the present invention.