Summary of the invention
The embodiment of the present invention provides a kind of figure composition method, solved and needed at present user oneself to operate step by step, first must choose figure, then figure is carried out to the operational design of the typesetting of figure one by one by manual operation, not only on time loss, be doubled and redoubled, the technical matters of the error more or less that meanwhile, manually operated typesetting technique easily produces in graph position.
The embodiment of the present invention provides a kind of figure composition method, comprising:
S1: the central point x coordinate and the central point y coordinate that calculate a plurality of figures by XY axial coordinate;
S2: the horizontal span by a plurality of described figures on interface and longitudinally span determination typesetting radius;
S3: according to described central point x coordinate and described central point y coordinate, described typesetting radius and described figure corresponding figure angle on described interface is determined typesetting x coordinate and the typesetting y coordinate of a plurality of described figures one by one according to trigonometric function computing method.
Preferably,
Before described step S1, also comprise:
Obtain quantity and the selecting sequence of a plurality of described figures;
According to described quantity and selecting sequence, determine one by one the described figure angle of described figure.
Preferably,
Described step S1 specifically comprises:
Obtain the x coordinate of a plurality of described figures, and determine described central point x coordinate by the first preset computation schema;
Obtain the y coordinate of a plurality of described figures, and determine described central point y coordinate by the second preset computation schema.
Preferably,
The described x coordinate that obtains a plurality of described figures, and determine that by the first preset computation schema central point x coordinate specifically comprises:
According to the x coordinate of a plurality of described figures that get, determine minimum x coordinate;
By the x coordinate of a plurality of described figures that get and the summation of its graph of a correspondence width dimensions, and determine maximum x coordinate;
By described the first preset computation schema, be the minimum x coordinate of (maximum x coordinate-minimum x coordinate)/2+, determine described central point x coordinate.
Preferably,
The described y coordinate that obtains a plurality of described figures, and determine that by the second preset computation schema central point y coordinate specifically comprises:
According to the y coordinate of a plurality of described figures that get, determine minimum y coordinate;
By the y coordinate of a plurality of described figures that get and the summation of its graph of a correspondence height dimension, and determine maximum y coordinate;
By described the second preset computation schema, be the minimum y coordinate of (maximum y coordinate-minimum y coordinate)/2+, determine described central point y coordinate.
Preferably,
Described step S2 specifically comprises:
Obtain the x coordinate of a plurality of described figures, and determine described horizontal span by the 3rd preset computation schema;
Obtain the y coordinate of a plurality of described figures, and determine described longitudinal span by the 4th preset computation schema;
By typesetting radius described in described horizontal span and described longitudinal span determination.
Preferably,
The described x coordinate that obtains a plurality of described figures, and determine that by the 3rd preset computation schema described horizontal span specifically comprises:
According to the x coordinate of a plurality of described figures that get, determine minimum x coordinate;
By the x coordinate of a plurality of described figures that get and the summation of its graph of a correspondence width dimensions, and determine maximum x coordinate;
By described the 3rd preset computation schema, be maximum x coordinate-minimum x coordinate, determine described horizontal span.
Preferably,
The described y coordinate that obtains a plurality of described figures, and determine that by the 4th preset computation schema described longitudinal span specifically comprises:
According to the y coordinate of a plurality of described figures that get, determine minimum y coordinate;
By the y coordinate of a plurality of described figures that get and the summation of its graph of a correspondence height dimension, and determine maximum y coordinate;
By described the 4th preset computation schema, be maximum y coordinate-minimum y coordinate, determine described longitudinal span.
Preferably,
By typesetting radius described in described horizontal span and described longitudinal span determination, specifically comprise:
Judge whether described horizontal span is less than described longitudinal span, if so, determine half that described typesetting radius is described longitudinal span, if not, determine half that described typesetting radius is described horizontal span.
Preferably,
Described step S3 specifically comprises:
According to formula typesetting radius * sin (figure angle * π/180)-graphic width size+central point x coordinate, determine described typesetting x coordinate;
According to formula typesetting radius * cos (figure angle * π/180)-figure height dimension+central point y coordinate, determine described typesetting y coordinate.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
A kind of figure composition method providing in the embodiment of the present invention, method step comprises: S1 calculates central point x coordinate and the central point y coordinate of a plurality of figures by XY axial coordinate; S2: the horizontal span by a plurality of figures on interface and longitudinally span determination typesetting radius; S3: according to central point x coordinate and central point y coordinate, typesetting radius and figure corresponding figure angle on interface is determined typesetting x coordinate and the typesetting y coordinate of a plurality of figures one by one according to trigonometric function computing method.In the present embodiment, corresponding central point x coordinate and the central point y coordinate of each figure by a plurality of figures on interface, and the typesetting radius at whole interface is determined the final typesetting x coordinate of each figure on interface and the design of typesetting y coordinate by trigonometric function computing method, just solved and needed at present user oneself to operate step by step, first must choose figure, then figure is carried out to the operational design of the typesetting of figure one by one by manual operation, not only on time loss, be doubled and redoubled, simultaneously, the technical matters of the error more or less that manually operated typesetting technique easily produces in graph position.
Embodiment
The embodiment of the present invention provides a kind of figure composition method, solved and needed at present user oneself to operate step by step, first must choose figure, then figure is carried out to the operational design of the typesetting of figure one by one by manual operation, not only on time loss, be doubled and redoubled, the technical matters of the error more or less that meanwhile, manually operated typesetting technique easily produces in graph position.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiment, but not whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, an embodiment of a kind of figure composition method providing in the embodiment of the present invention comprises:
S1: the central point x coordinate and the central point y coordinate that calculate a plurality of figures by XY axial coordinate;
In the present embodiment, when need to be by PPT being carried out to the making of figure combination, and in the time of need to carrying out typesetting to a plurality of figures on interface, first need to calculate by XY axial coordinate central point x coordinate and the central point y coordinate of a plurality of figures, it should be noted that, self-defining XY axial coordinate on the aforesaid interface that is same PPT by XY axial coordinate, as the self-defining XY axial coordinate under a lantern slide, aforesaid a plurality of figure can be for example circular, oval other arbitrary graphic that waits does not specifically limit herein.
Be understandable that, aforesaidly by XY axial coordinate, calculate the central point x coordinate of a plurality of figures and the deterministic process of central point y coordinate by being described in detail in follow-up embodiment, repeat no more herein.
S2: the horizontal span by a plurality of figures on interface and longitudinally span determination typesetting radius;
When calculate the central point x coordinate and central point y coordinate of a plurality of figures by XY axial coordinate after, need to be by a plurality of figures the horizontal span on interface and longitudinal span determination typesetting radius, it should be noted that, aforesaid typesetting radius is the radius of the last whole typesetting figure forming of a plurality of figures, this integral body typesetting figure can be circular, it can also be circle rectangle, or oval, specifically do not limit herein, be understandable that, aforesaid horizontal span and longitudinally span are the formed horizontal span of a plurality of figures and longitudinal span of the irregular typesetting in current interface that is presented on before typesetting.
Aforesaid horizontal span and the longitudinally concrete computation process of span will be described in detail in subsequent embodiment, repeat no more herein.
S3: according to central point x coordinate and central point y coordinate, typesetting radius and figure corresponding figure angle on interface is determined typesetting x coordinate and the typesetting y coordinate of a plurality of figures one by one according to trigonometric function computing method.
After the central point x coordinate of obtaining step S1 and the typesetting radius of central point y coordinate and determining step S2, need to be according to central point x coordinate and central point y coordinate, typesetting radius and figure corresponding figure angle on interface is determined typesetting x coordinate and the typesetting y coordinate of a plurality of figures one by one according to trigonometric function computing method, be understandable that, on PPT interface, each figure has the typesetting x coordinate corresponding with it and typesetting y coordinate.
It should be noted that, concrete acquisition process and the aforesaid trigonometric function computing method of aforesaid figure corresponding figure angle on interface will be described in detail in subsequent embodiment, repeat no more herein.
In the present embodiment, corresponding central point x coordinate and the central point y coordinate of each figure by a plurality of figures on interface, and the typesetting radius at whole interface is determined the final typesetting x coordinate of each figure on interface and the design of typesetting y coordinate by trigonometric function computing method, just solved and needed at present user oneself to operate step by step, first must choose figure, then figure is carried out to the operational design of the typesetting of figure one by one by manual operation, not only on time loss, be doubled and redoubled, simultaneously, the technical matters of the error more or less that manually operated typesetting technique easily produces in graph position.
That the process of figure composition method is described in detail above, to the computation process of central point x coordinate and central point y coordinate be described in detail below, refer to Fig. 2, another embodiment of a kind of figure composition method providing in the embodiment of the present invention comprises:
201, obtain quantity and the selecting sequence of a plurality of figures;
In the present embodiment, when need to be by PPT being carried out to the making of figure combination, and in the time of need to carrying out typesetting to a plurality of figures on interface, first need to obtain quantity and the selecting sequence of a plurality of figures, for example user adds a plurality of figures in database, and the order of addition of the figure of interpolation and number needs will be carried out record, and the plurality of figure can be for example circular, oval other arbitrary graphic that waits does not specifically limit herein.
202, according to quantity and selecting sequence, determine one by one the figure angle of figure;
After obtaining the quantity and selecting sequence of a plurality of figures, need to determine one by one the figure angle of figure according to quantity and selecting sequence, be understandable that, aforesaid figure angle can be to calculate according to formula (360/ figure quantity * selecting sequence), and for example figure angle is as shown in Figure 4 A.
203, obtain the x coordinate of a plurality of figures, and determine central point x coordinate by the first preset computation schema;
In the present embodiment, after determining the figure angle of figure one by one according to quantity and selecting sequence, first need to obtain by XY axial coordinate the x coordinate of a plurality of figures, and determine central point x coordinate by the first preset computation schema, it should be noted that, self-defining XY axial coordinate on the aforesaid interface that is same PPT by XY axial coordinate, as the self-defining XY axial coordinate under a lantern slide, aforesaid a plurality of figure can be for example circular, oval other arbitrary graphic that waits does not specifically limit herein.
Be understandable that, the aforesaid x coordinate that obtains a plurality of figures, and determine that by the first preset computation schema the detailed process of central point x coordinate is as follows:
(a) according to the x coordinate of a plurality of figures that get, determine minimum x coordinate;
After obtaining the x coordinate of a plurality of figures, determine the minimum x coordinate of a plurality of x coordinate figures, be understandable that the x coordinate of the figure of leftmost position on the interface that this minimum x coordinate is PPT.
(b) by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and determine maximum x coordinate;
After obtaining the x coordinate of a plurality of figures, by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and definite maximum x coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, width is defined as its diameter, this circular x coordinate and the summation of its diameter need to be obtained to the value of (the x coordinate+width) of a plurality of figures, therefrom determined value maximum is maximum x coordinate.
(c) by the first preset computation schema, be the minimum x coordinate of (maximum x coordinate-minimum x coordinate)/2+, determine central point x coordinate.
After getting minimum x coordinate and maximum x coordinate, need to be that the minimum x coordinate of formula (maximum x coordinate-minimum x coordinate)/2+ calculates to determine central point x coordinate by the first preset computation schema.
204, obtain the y coordinate of a plurality of figures, and determine central point y coordinate by the second preset computation schema;
After determining the figure angle of figure one by one according to quantity and selecting sequence, first need to obtain by XY axial coordinate the y coordinate of a plurality of figures, and determine central point y coordinate by the second preset computation schema, it should be noted that, self-defining XY axial coordinate on the aforesaid interface that is same PPT by XY axial coordinate, as the self-defining XY axial coordinate under a lantern slide, aforesaid a plurality of figures can be for example circular, oval other arbitrary graphic that waits does not specifically limit herein.
Be understandable that, the aforesaid y coordinate that obtains a plurality of figures, and determine that by the second preset computation schema the detailed process of central point y coordinate is as follows:
(a) according to the y coordinate of a plurality of figures that get, determine minimum y coordinate;
After obtaining the y coordinate of a plurality of figures, determine the minimum y coordinate of a plurality of y coordinate figures, be understandable that the y coordinate of the figure of position, the top on the interface that this minimum y coordinate is PPT.
(b) by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and determine maximum y coordinate;
After obtaining the y coordinate of a plurality of figures, by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and definite maximum y coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, highly be defined as its diameter, need to be by the summation of this circular y coordinate and its diameter, obtain the value of (the y coordinate+highly) of a plurality of figures, therefrom determined value maximum is maximum y coordinate.
(c) by the first preset computation schema, be the minimum y coordinate of (maximum y coordinate-minimum y coordinate)/2+, determine central point x coordinate.
After getting minimum y coordinate and maximum y coordinate, need to be that the minimum y coordinate of formula (maximum y coordinate-minimum y coordinate)/2+ calculates to determine central point y coordinate by the first preset computation schema.
205, obtain the x coordinate of a plurality of figures, and determine horizontal span by the 3rd preset computation schema;
When calculate the central point x coordinate and central point y coordinate of a plurality of figures by XY axial coordinate after, need to obtain the x coordinate of a plurality of figures, and determine horizontal span by the 3rd preset computation schema.
Be understandable that, the aforesaid x coordinate that obtains a plurality of figures, and determine that by the 3rd preset computation schema the detailed process of horizontal span is as follows:
(a) according to the x coordinate of a plurality of figures that get, determine minimum x coordinate;
After obtaining the x coordinate of a plurality of figures, determine the minimum x coordinate of a plurality of x coordinate figures, be understandable that the x coordinate of the figure of leftmost position on the interface that this minimum x coordinate is PPT.
(b) by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and determine maximum x coordinate;
After obtaining the x coordinate of a plurality of figures, by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and definite maximum x coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, width is defined as its diameter, this circular x coordinate and the summation of its diameter need to be obtained to the value of (the x coordinate+width) of a plurality of figures, therefrom determined value maximum is maximum x coordinate.
(c) by the 3rd preset computation schema, be maximum x coordinate-minimum x coordinate, determine horizontal span.
After getting minimum x coordinate and maximum x coordinate, need to be formula (maximum x coordinate-minimum x coordinate) by the 3rd preset computation schema, determine horizontal span.
206, obtain the y coordinate of a plurality of figures, and determine longitudinal span by the 4th preset computation schema;
When calculate the central point x coordinate and central point y coordinate of a plurality of figures by XY axial coordinate after, and obtain the x coordinate of a plurality of figures, and when determining horizontal span by the 3rd preset computation schema, also need to obtain the y coordinate of a plurality of figures, and determine longitudinal span by the 4th preset computation schema.
Be understandable that, the aforesaid y coordinate that obtains a plurality of figures, and determine that by the 4th preset computation schema the detailed process of longitudinal span is as follows:
(a) according to the y coordinate of a plurality of figures that get, determine minimum y coordinate;
After obtaining the y coordinate of a plurality of figures, determine the minimum y coordinate of a plurality of y coordinate figures, be understandable that the y coordinate of the figure of position, the top on the interface that this minimum y coordinate is PPT.
(b) by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and determine maximum y coordinate;
After obtaining the y coordinate of a plurality of figures, by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and definite maximum y coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, highly be defined as its diameter, need to be by the summation of this circular y coordinate and its diameter, obtain the value of (the y coordinate+highly) of a plurality of figures, therefrom determined value maximum is maximum y coordinate.
(c) by the 4th preset computation schema, be maximum y coordinate-minimum y coordinate, determine longitudinal span.
After getting minimum y coordinate and maximum y coordinate, need to be formula (maximum y coordinate-minimum y coordinate) by the 4th preset computation schema, determine longitudinal span.
207, by horizontal span and longitudinal span determination typesetting radius;
After having obtained horizontal span and longitudinal span, need to be by horizontal span and longitudinal span determination typesetting radius.
It should be noted that, aforesaid typesetting radius is the radius of the last whole typesetting figure forming of a plurality of figures, this integral body typesetting figure can be circular, it can also be circle rectangle, or oval, specifically do not limit herein, be understandable that, aforesaid horizontal span and longitudinally span are the formed horizontal span of a plurality of figures and longitudinal span of the irregular typesetting in current interface that is presented on before typesetting.
Aforesaid horizontal span and the longitudinally concrete computation process of span will be described in detail in subsequent embodiment, repeat no more herein.
208,, according to central point x coordinate and central point y coordinate, typesetting radius and figure corresponding figure angle on interface is determined typesetting x coordinate and the typesetting y coordinate of a plurality of figures one by one according to trigonometric function computing method.
After obtaining aforesaid central point x coordinate and central point y coordinate and aforesaid typesetting radius, need to be according to central point x coordinate and central point y coordinate, typesetting radius and figure corresponding figure angle on interface is determined typesetting x coordinate and the typesetting y coordinate of a plurality of figures one by one according to trigonometric function computing method, be understandable that, on PPT interface, each figure has the typesetting x coordinate corresponding with it and typesetting y coordinate.
It should be noted that, concrete acquisition process and the aforesaid trigonometric function computing method of aforesaid figure corresponding figure angle on interface will be described in detail in subsequent embodiment, repeat no more herein.
In the present embodiment, corresponding central point x coordinate and the central point y coordinate of each figure by a plurality of figures on interface, and the typesetting radius at whole interface is determined the final typesetting x coordinate of each figure on interface and the design of typesetting y coordinate by trigonometric function computing method, just solved and needed at present user oneself to operate step by step, first must choose figure, then figure is carried out to the operational design of the typesetting of figure one by one by manual operation, not only on time loss, be doubled and redoubled, simultaneously, the technical matters of the error more or less that manually operated typesetting technique easily produces in graph position, and, by different account forms, obtain the corresponding central point x coordinate of a plurality of figures and central point y coordinate, horizontal span and the longitudinally design of span, improved further the precision of typesetting technique in graph position.
That the computation process of central point x coordinate and central point y coordinate is described in detail above, to the concrete deterministic process of typesetting x coordinate and typesetting y coordinate be described in detail below, refer to Fig. 3, another embodiment of a kind of figure composition method providing in the embodiment of the present invention comprises:
301, obtain quantity and the selecting sequence of a plurality of figures;
In the present embodiment, when need to be by PPT being carried out to the making of figure combination, and in the time of need to carrying out typesetting to a plurality of figures on interface, first need to obtain quantity and the selecting sequence of a plurality of figures, for example user adds a plurality of figures in database, and the order of addition of the figure of interpolation and number needs will be carried out record, and the plurality of figure can be for example circular, oval other arbitrary graphic that waits does not specifically limit herein.
302, according to quantity and selecting sequence, determine one by one the figure angle of figure;
After obtaining the quantity and selecting sequence of a plurality of figures, need to determine one by one the figure angle of figure according to quantity and selecting sequence, be understandable that, aforesaid figure angle can be to calculate according to formula (360/ figure quantity * selecting sequence), and for example figure angle is as shown in Figure 4 A.
303, obtain the x coordinate of a plurality of figures, and determine central point x coordinate by the first preset computation schema;
In the present embodiment, after determining the figure angle of figure one by one according to quantity and selecting sequence, first need to obtain by XY axial coordinate the x coordinate of a plurality of figures, and determine central point x coordinate by the first preset computation schema, it should be noted that, self-defining XY axial coordinate on the aforesaid interface that is same PPT by XY axial coordinate, as the self-defining XY axial coordinate under a lantern slide, aforesaid a plurality of figure can be for example circular, oval other arbitrary graphic that waits does not specifically limit herein.
Be understandable that, the aforesaid x coordinate that obtains a plurality of figures, and determine that by the first preset computation schema the detailed process of central point x coordinate is as follows:
(a) according to the x coordinate of a plurality of figures that get, determine minimum x coordinate;
After obtaining the x coordinate of a plurality of figures, determine the minimum x coordinate of a plurality of x coordinate figures, be understandable that the x coordinate of the figure of leftmost position on the interface that this minimum x coordinate is PPT.
(b) by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and determine maximum x coordinate;
After obtaining the x coordinate of a plurality of figures, by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and definite maximum x coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, width is defined as its diameter, this circular x coordinate and the summation of its diameter need to be obtained to the value of (the x coordinate+width) of a plurality of figures, therefrom determined value maximum is maximum x coordinate.
(c) by the first preset computation schema, be the minimum x coordinate of (maximum x coordinate-minimum x coordinate)/2+, determine central point x coordinate.
After getting minimum x coordinate and maximum x coordinate, need to be that the minimum x coordinate of formula (maximum x coordinate-minimum x coordinate)/2+ calculates to determine central point x coordinate by the first preset computation schema.
304, obtain the y coordinate of a plurality of figures, and determine central point y coordinate by the second preset computation schema;
After determining the figure angle of figure one by one according to quantity and selecting sequence, first need to obtain by XY axial coordinate the y coordinate of a plurality of figures, and determine central point y coordinate by the second preset computation schema, it should be noted that, self-defining XY axial coordinate on the aforesaid interface that is same PPT by XY axial coordinate, as the self-defining XY axial coordinate under a lantern slide, aforesaid a plurality of figures can be for example circular, oval other arbitrary graphic that waits does not specifically limit herein.
Be understandable that, the aforesaid y coordinate that obtains a plurality of figures, and determine that by the second preset computation schema the detailed process of central point y coordinate is as follows:
(a) according to the y coordinate of a plurality of figures that get, determine minimum y coordinate;
After obtaining the y coordinate of a plurality of figures, determine the minimum y coordinate of a plurality of y coordinate figures, be understandable that the y coordinate of the figure of position, the top on the interface that this minimum y coordinate is PPT.
(b) by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and determine maximum y coordinate;
After obtaining the y coordinate of a plurality of figures, by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and definite maximum y coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, highly be defined as its diameter, need to be by the summation of this circular y coordinate and its diameter, obtain the value of (the y coordinate+highly) of a plurality of figures, therefrom determined value maximum is maximum y coordinate.
(c) by the first preset computation schema, be the minimum y coordinate of (maximum y coordinate-minimum y coordinate)/2+, determine central point x coordinate.
After getting minimum y coordinate and maximum y coordinate, need to be that the minimum y coordinate of formula (maximum y coordinate-minimum y coordinate)/2+ calculates to determine central point y coordinate by the first preset computation schema.
305, obtain the x coordinate of a plurality of figures, and determine horizontal span by the 3rd preset computation schema;
When calculate the central point x coordinate and central point y coordinate of a plurality of figures by XY axial coordinate after, need to obtain the x coordinate of a plurality of figures, and determine horizontal span by the 3rd preset computation schema.
Be understandable that, the aforesaid x coordinate that obtains a plurality of figures, and determine that by the 3rd preset computation schema the detailed process of horizontal span is as follows:
(a) according to the x coordinate of a plurality of figures that get, determine minimum x coordinate;
After obtaining the x coordinate of a plurality of figures, determine the minimum x coordinate of a plurality of x coordinate figures, be understandable that the x coordinate of the figure of leftmost position on the interface that this minimum x coordinate is PPT.
(b) by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and determine maximum x coordinate;
After obtaining the x coordinate of a plurality of figures, by the x coordinate of a plurality of figures that get and the summation of its graph of a correspondence width dimensions, and definite maximum x coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, width is defined as its diameter, this circular x coordinate and the summation of its diameter need to be obtained to the value of (the x coordinate+width) of a plurality of figures, therefrom determined value maximum is maximum x coordinate.
(c) by the 3rd preset computation schema, be maximum x coordinate-minimum x coordinate, determine horizontal span.
After getting minimum x coordinate and maximum x coordinate, need to be formula (maximum x coordinate-minimum x coordinate) by the 3rd preset computation schema, determine horizontal span.
306, obtain the y coordinate of a plurality of figures, and determine horizontal span by the 4th preset computation schema;
When calculate the central point x coordinate and central point y coordinate of a plurality of figures by XY axial coordinate after, and obtain the x coordinate of a plurality of figures, and when determining horizontal span by the 3rd preset computation schema, also need to obtain the y coordinate of a plurality of figures, and determine horizontal span by the 4th preset computation schema.
Be understandable that, the aforesaid y coordinate that obtains a plurality of figures, and determine that by the 4th preset computation schema the detailed process of horizontal span is as follows:
(a) according to the y coordinate of a plurality of figures that get, determine minimum y coordinate;
After obtaining the y coordinate of a plurality of figures, determine the minimum y coordinate of a plurality of y coordinate figures, be understandable that the y coordinate of the figure of position, the top on the interface that this minimum y coordinate is PPT.
(b) by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and determine maximum y coordinate;
After obtaining the y coordinate of a plurality of figures, by the y coordinate of a plurality of figures that get and the summation of its graph of a correspondence height dimension, and definite maximum y coordinate, for example, when the width of each figure is circular as the figure of Fig. 4, highly be defined as its diameter, need to be by the summation of this circular y coordinate and its diameter, obtain the value of (the y coordinate+highly) of a plurality of figures, therefrom determined value maximum is maximum y coordinate.
(c) by the 4th preset computation schema, be maximum y coordinate-minimum y coordinate, determine longitudinal span.
After getting minimum y coordinate and maximum y coordinate, need to be formula (maximum y coordinate-minimum y coordinate) by the 4th preset computation schema, determine longitudinal span.
307, judge whether horizontal span is less than longitudinal span, if so, performs step 308, if not, perform step 309;
When determined horizontal span and longitudinal span according to step 305 and 306 after, need judgement to state horizontal span and whether be less than longitudinal span, if so, perform step 308, if not, perform step 309.
308, determine that typesetting radius is half of longitudinal span;
When judgement horizontal span is less than longitudinal span, determine half that typesetting radius is longitudinal span.
It should be noted that, aforesaid typesetting radius is the radius of the last whole typesetting figure forming of a plurality of figures, this integral body typesetting figure can be circular, it can also be circle rectangle, or oval, specifically do not limit herein, be understandable that, aforesaid horizontal span and longitudinally span are the formed horizontal span of a plurality of figures and longitudinal span of the irregular typesetting in current interface that is presented on before typesetting.
309, determine that typesetting radius is half of horizontal span;
When judgement horizontal span is not less than longitudinal span, determine half that typesetting radius is horizontal span.
It should be noted that, aforesaid typesetting radius is the radius of the last whole typesetting figure forming of a plurality of figures, this integral body typesetting figure can be circular, it can also be circle rectangle, or oval, specifically do not limit herein, be understandable that, aforesaid horizontal span and longitudinally span are the formed horizontal span of a plurality of figures and longitudinal span of the irregular typesetting in current interface that is presented on before typesetting.
310, according to formula typesetting radius * sin (figure angle * π/180)-graphic width size+central point x coordinate, determine typesetting x coordinate;
After obtaining aforesaid central point x coordinate and central point y coordinate and aforesaid typesetting radius, need to determine typesetting x coordinate according to formula typesetting radius * sin (figure angle * π/180)-graphic width size+central point x coordinate, be understandable that, on PPT interface, each figure has the typesetting x coordinate corresponding with it.
311, according to formula typesetting radius * cos (figure angle * π/180)-figure height dimension+central point y coordinate, determine typesetting y coordinate;
After obtaining aforesaid central point x coordinate and central point y coordinate and aforesaid typesetting radius, need to determine typesetting y coordinate according to formula typesetting radius * cos (figure angle * π/180)-figure height dimension+central point y coordinate, be understandable that, on PPT interface, each figure has the typesetting y coordinate corresponding with it.
312, a plurality of figures carry out typesetting according to typesetting x coordinate and the typesetting y coordinate corresponding with it.
In the present embodiment, after each figure corresponding typesetting x coordinate and typesetting y coordinate are determined, a plurality of figures are carried out to typesetting one by one according to the typesetting x coordinate corresponding with it and the position of typesetting y coordinate, for example, form as the typesetting form of Fig. 4, specifically do not limit herein.
It should be noted that, raw fine adjustment type typesetting renews after can also carrying out typesetted a plurality of figures by adjustment typesetting radius in the embodiment of the present invention further, can be for example to realize spiral typesetting formula, can also be to adjust aforesaid figure angle, as the allocation proportion of each figure of the A angle of Fig. 4, further form the typesetting of the imperfect circles such as arc, specifically do not limit herein.
In the present embodiment, corresponding central point x coordinate and the central point y coordinate of each figure by a plurality of figures on interface, and the typesetting radius at whole interface is determined the final typesetting x coordinate of each figure on interface and the design of typesetting y coordinate by trigonometric function computing method, just solved and needed at present user oneself to operate step by step, first must choose figure, then figure is carried out to the operational design of the typesetting of figure one by one by manual operation, not only on time loss, be doubled and redoubled, simultaneously, the technical matters of the error more or less that manually operated typesetting technique easily produces in graph position, and, by different account forms, obtain the corresponding central point x coordinate of a plurality of figures and central point y coordinate, horizontal span and the longitudinally design of span, improved further the precision of typesetting technique in graph position, simultaneously, typesetting x coordinate and typesetting y coordinate are carried out to correspondence calculating according to sin trigonometric function and cos trigonometric function respectively, the more perfect degree of accuracy of last moulding typesetting.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.