CN104199807A - Pattern typesetting method - Google Patents

Pattern typesetting method Download PDF

Info

Publication number
CN104199807A
CN104199807A CN201410503389.1A CN201410503389A CN104199807A CN 104199807 A CN104199807 A CN 104199807A CN 201410503389 A CN201410503389 A CN 201410503389A CN 104199807 A CN104199807 A CN 104199807A
Authority
CN
China
Prior art keywords
coordinate
typesetting
figures
central point
minimum
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.)
Granted
Application number
CN201410503389.1A
Other languages
Chinese (zh)
Other versions
CN104199807B (en
Inventor
陈志宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201410503389.1A priority Critical patent/CN104199807B/en
Publication of CN104199807A publication Critical patent/CN104199807A/en
Application granted granted Critical
Publication of CN104199807B publication Critical patent/CN104199807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The embodiment of invention discloses a pattern typesetting method, and solves the technical problems in the prior art that the conventional operation design which requires operation of a user per se step by step, to be specific, firstly, selecting a pattern, and secondly, typesetting the pattern through manual operation is multiplied in the growing speed of time consumption; besides, the typesetting technology of manual operation can more or less cause errors on the position of the pattern easily. According to the embodiment of the invention, the method comprises the steps as follows: firstly, the x-coordinates and the y-coordinates of the center points of multiple patterns are calculated through the coordinates on the X axis and the Y axis; secondly, the typesetting radius is confirmed through the horizontal span and the longitudinal span of the multiple patterns on an interface; thirdly, the typesetting x-coordinates and the typesetting y-coordinates of the multiple patterns are confirmed one by one according to the center point x-coordinates and the center point y-coordinates, and the pattern angles corresponding to the typesetting radius and the patterns on the interface by adopting the trigonometric function calculation method.

Description

A kind of figure composition method
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of figure composition method.
Background technology
PowerPoint (PPT), conventionally be applied to design and produce advertising, product demonstration, the institute such as meeting report and Discussion on Technology provides the most directly perceived and auxiliary electronic edition lantern slide, the PowerPoint of making can be play by computer screen or projector, along with popularizing of office automation, PPT is more and more diversified, at present the most popularization be the combination of word and pattern, the result that the design of PPT and the effect of demonstration produce is closely bound up, especially the graphical interfaces of PPT is performance technology the most intuitively, therefore, enjoy liking of every profession and trade.
The technology of the graphical interfaces of existing PPT, needs user oneself to operate step by step conventionally, first must choose figure, and figure is carried out to the typesetting of figure one by one by manual operation, as a plurality of figure typesettings become circular etc.
Yet, the above-mentioned user oneself that often needs who mentions operates 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, meanwhile, manually operated typesetting technique easily causes the generation of the technical matters of error more or less in graph position.
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.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the embodiment that Fig. 1 is a kind of figure composition method of providing in the embodiment of the present invention;
The schematic flow sheet of another embodiment that Fig. 2 is a kind of figure composition method of providing in the embodiment of the present invention;
The schematic flow sheet of another embodiment that Fig. 3 is a kind of figure composition method of providing in the embodiment of the present invention;
The schematic diagram of a typesetting form for a kind of figure composition method of providing in the embodiment of the present invention of Fig. 4.
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.

Claims (10)

1. a figure composition method, is characterized in that, 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.
2. figure composition method according to claim 1, is characterized in that, before described step S1, also comprises:
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.
3. figure composition method according to claim 1, is characterized in that, 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.
4. figure composition method according to claim 3, is characterized in that, described in obtain the x coordinate of 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.
5. figure composition method according to claim 3, is characterized in that, described in obtain the y coordinate of 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.
6. figure composition method according to claim 1, is characterized in that, 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.
7. figure composition method according to claim 6, is characterized in that, described in obtain the x coordinate of 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.
8. figure composition method according to claim 6, is characterized in that, described in obtain the y coordinate of 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.
9. figure composition method according to claim 6, is characterized in that, by typesetting radius described in described horizontal span and described longitudinal span determination, specifically comprises:
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.
10. figure composition method according to claim 1, is characterized in that, 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.
CN201410503389.1A 2014-09-26 2014-09-26 A kind of figure composition method Active CN104199807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410503389.1A CN104199807B (en) 2014-09-26 2014-09-26 A kind of figure composition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410503389.1A CN104199807B (en) 2014-09-26 2014-09-26 A kind of figure composition method

Publications (2)

Publication Number Publication Date
CN104199807A true CN104199807A (en) 2014-12-10
CN104199807B CN104199807B (en) 2017-03-15

Family

ID=52085102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410503389.1A Active CN104199807B (en) 2014-09-26 2014-09-26 A kind of figure composition method

Country Status (1)

Country Link
CN (1) CN104199807B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180139A (en) * 2017-06-06 2017-09-19 北京华大九天软件有限公司 A kind of method and device that not isolabeling is created in domain
CN107259712A (en) * 2017-05-12 2017-10-20 巨集团有限公司 A kind of footwear component processing method and its processing unit (plant)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063731B (en) * 2009-11-13 2013-03-13 方正国际软件(北京)有限公司 Typesetting processing method and device
CN103034624B (en) * 2011-09-29 2015-12-16 北京大学 A kind of accurate positioning method of page object and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107259712A (en) * 2017-05-12 2017-10-20 巨集团有限公司 A kind of footwear component processing method and its processing unit (plant)
CN107180139A (en) * 2017-06-06 2017-09-19 北京华大九天软件有限公司 A kind of method and device that not isolabeling is created in domain

Also Published As

Publication number Publication date
CN104199807B (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN109002895B (en) Desktop dispensing demonstration method and device
KR20140024260A (en) Method and device for implementing original calligraphy of handwriting
CN104020944A (en) Data input method based on sliding block
CN104778735B (en) A kind of animation producing method and device based on irregular figure
CN109176526A (en) A kind of three axis Cartesian robot space circular arc interpolation methods
CN102903134A (en) Method for rapidly drawing curves multiple times
CN105427358B (en) View animation generation method and system based on android
CN104199807A (en) Pattern typesetting method
US20130162642A1 (en) Computing device and method for establishing three dimensional coordinate system using graphics
CN108648109B (en) Teaching technology mathematical tool system and method for realizing multiple functions
CN110989879B (en) Auxiliary line prompting method and device, readable storage medium and electronic equipment
CN107050859B (en) Unity 3D-based method for dragging camera to displace in scene
CN102446435A (en) Analog clock regulation method and device
CN102298787A (en) Control method and control system for animation object motion
CN104268118A (en) Mathematical formula calculator including touch screen and method for identifying mathematical formulas
CN106951166A (en) Person's handwriting method for drafting and device
CN105371925A (en) An anaesthesia machine flow sensor calibration method
CN105739870A (en) Pie chart manufacturing method of interactive electronic white board
CN108133502B (en) Method for displaying business flow chart
WO2017107474A1 (en) Method and apparatus for simulating handwriting effect
TWI679506B (en) Planning method for turning over steel construction materials
CN106033411A (en) Object layout method and device
KR20080008467A (en) Method for designing straight bevel gear with localized bearing contact
EP3295291B1 (en) Drawing object inferring system and method
CN105719334B (en) A kind of three-dimensional sphere method for drafting and system

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
CB02 Change of applicant information

Address after: 519015 Guangdong city in Guangzhou Province, Tianhe District Road No. 60 building 6 floor Kosun

Applicant after: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Address before: 519015 Guangdong city in Guangzhou Province, Tianhe District Road No. 60 building 6 floor Kosun

Applicant before: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant