CN103578139B - The method for drafting of the 3 D stereo pie chart of a kind of not equal altitude and system - Google Patents
The method for drafting of the 3 D stereo pie chart of a kind of not equal altitude and system Download PDFInfo
- Publication number
- CN103578139B CN103578139B CN201210250126.5A CN201210250126A CN103578139B CN 103578139 B CN103578139 B CN 103578139B CN 201210250126 A CN201210250126 A CN 201210250126A CN 103578139 B CN103578139 B CN 103578139B
- Authority
- CN
- China
- Prior art keywords
- cake
- degree
- drafting
- angle
- pie chart
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention relates to method for drafting and the system of the 3 D stereo pie chart of a kind of not equal altitude, belong to computer image processing technology field.The method of the invention comprises the following steps: (1) obtains the numerical value of each statistics component, in order to determine the drafting angle of each cake object;(2) according to the result of calculation of the first step, the drafting start angle of each cake object, termination point and height are calculated;(3) the cake object that all drafting angular ranges cross over 90 degree and 270 degree is found, with a vertical divider, it is divided at 90 degree and 270 degree two cake objects, if a cake object just terminates or originate in 90 degree or 270 degree, then this object need not be split;(4) readjust the drawing order of each cake object and draw.The correct of stereoscopic three-dimensional pie chart using method and system of the present invention can conveniently realize not equal altitude is drawn, including the gland relation processed between each cake.
Description
Technical field
The invention belongs to computer image processing technology field, be specifically related to the 3 D stereo pie chart of a kind of not equal altitude
Method for drafting and system.
Background technology
Carry out pie chart drawing by computer is a lot of GIS (GIS-Geographic Information System, Geographic Information
System) common function in software and graph making software.Major part GIS and the commonly provided simple cake of chart system at present
Figure, the drafting function of three-dimensional pie chart, it generally represents the proportionate relationship of each special topic component, as shown in Figure 1 with angle.
Either simple pie chart or three-dimensional pie chart, it can only represent the steel of statistics a component, such as each area
Proportionate relationship between yield.And when exist second statistics component need represent in pie chart time, traditional pie chart form without
It is shown by method simultaneously.Now, we can use different radiuses or different height to part every in pie chart
Represent, more add up component in this manner it is possible to show in a pie chart.As in figure 2 it is shown, Fig. 2 shows one not
Deng the complex three-dimensional pie chart of height, it can show the accounting situation of two statistics components.
The comparison that the complex three-dimensional pie chart providing this not equal altitude at present draws function is few, and it is based on two dimension
Draw API(such as Windows GDI, GDI+ etc.) drawing process is the most extremely complex, and not only need to draw the three-dimensional of each cake and imitate
Really, it is contemplated that the gland relation between each cake, determine the drafting sequencing of each cake, and correct drafting sanction is set
Cut region.
In existing pie chart rendering technique, have been realized in simple pie chart (plane pie chart) and ordinary stereo pie chart
Drawing, various common GIS software and graph making software both provide relevant function substantially.Major part software is main at present
Drawing interface (such as the GDI of windows platform, GDI+ etc.) based on two dimension and realize the drafting to pie chart, it is it is important that utilize and draw
The Crop Area function that API provides, after each cake objects draw completes, revises current Crop Area.With ordinary stereo pie chart
As a example by drawing process, it is generally divided into following step:
1. obtain the numerical value of each statistics component
2. calculate the angular range that each cake should account for
3. draw each cake object, after completing, according to the angular span of this cake object, determine that this cake object can not
The screen area covered, and Crop Area is drawn in amendment accordingly, in order to this region will not be covered the when of next cake objects draw.
When determining clipping region, it is considered to mainly have the end face of cake object, cylindrical side, internal diameter side.Due to each
Cake object highly consistent, therefore there is not the situation of covering in the end face of cake, it is only necessary to processes covering of cylindrical side and internal diameter side
Lid situation, mainly considers during each cake objects draw that its internal diameter side, the need of joining drafting Crop Area, processes
Fairly simple.
The method for drafting of existing common 3 D stereo pie chart is applicable to the situation of the height such as each cake object, holds the most very much
Easily determine each the most overlayable screen area of cake object, thus Crop Area is correctly set.And when each cake height
Time, now the end face of cake may be hidden by the end face of other cake object or side, and owing to the side of each cake object exists
The situation of part overlaid, now the calculating of Crop Area is extremely complex.As a example by Fig. 3: when " 1 " first draws, if being not provided with cutting out
Cut district, then " 2 " can hide " 1 " region when drawing, if but by the addition Crop Area, internal diameter side of " 1 ", then when " 4 " draw
The bottom section of " 1 " cannot be covered again.
Now to be computed correctly the clipping region should deducted after " 1 " draws extremely difficult, because " 3 " are if object angle increases
After the most to a certain extent, it can cover the lateral side regions of " 1 " equally, as shown in Figure 4.
Now want correct drawing three-dimensional solid pie chart, it is necessary to calculate the irregular Crop Area of object " 1 " in three dimensions,
And this process is difficult to for most of traditional program excessively complexity based on two dimension drafting interface.
Summary of the invention
For defect present in prior art, it is an object of the invention to provide the three of a kind of simple and easy to do not equal altitude
The method for drafting of the three-dimensional pie chart of dimension and system.The method and system need not carry out the Crop Area complicated calculations under three dimensions, i.e.
The correct drafting of any not equal altitude solid pie chart can be realized.
For reaching object above, the technical solution used in the present invention is: painting of the 3 D stereo pie chart of a kind of not equal altitude
Method processed, comprises the following steps:
(1) numerical value of each statistics component is obtained, in order to determine the drafting angle of each cake object;
(2) according to the result of calculation of the first step, drafting start angle, termination point and the height of each cake object are calculated
Degree;
(3) all drafting angular ranges are found to cross over the cake object of set angle, with a cut-off rule by it in this angle
Place is divided into two cake objects, if a cake object just terminates or originate in this angle, then this object need not be split;
(4) readjust the drawing order of each cake object and draw.
Further, in step (3), described set angle is 90 degree and 270 degree, will draw with a vertical divider
Angular range is crossed over the cake object of 90 degree and 270 degree and is divided into two cake objects at 90 degree and 270 degree, if a cake object
Just terminate or originate in 90 degree or 270 degree, then this object need not be split.
Further, in step (4), readjust the drawing order of each cake object and the method that carries out drawing is as follows:
The vertical divider left and right sides is drawn the most in accordance with the order from top to bottom, according to this drawing order, drawing when without
Crop Area need to be adjusted.
A kind of drawing system of the 3 D stereo pie chart of not equal altitude, including following device:.
Each statistics component acquisition module, for obtaining the numerical value of each statistics component, in order to determine the drafting angle of each cake object
Degree;
Computing module, for the result of calculation according to the first step, calculates the drafting start angle of each cake object, termination
Angle and height;
Segmentation module, for finding all drafting angular ranges to cross over the cake object of set angle, by a vertical segmentation
It is divided into two cake objects at this angle by line, if a cake object just terminates or originate in this angle, then should
Object need not be split;
Drafting module, for readjusting the drawing order of each cake object and drawing.
Further, described set angle is 90 degree and 270 degree, and segmentation module will draw angle with a vertical divider
The cake object of degree range spans 90 degree and 270 degree is divided into two cake objects, if a cake object is just at 90 degree and 270 degree
Terminate or originate in 90 degree or 270 degree well, then this object need not be split.
Further, described drafting module is drawn the most in accordance with the order from top to bottom in the cut-off rule left and right sides.
Effect of the invention is that: use method and system of the present invention, enormously simplify not equal altitude three-dimensional and stand
The method for drafting of body pie chart, solve in its drawing process to various height, angle cake object between mutually gland cause
Crop Area complexity of the calculation.The GIS of API technological development, charting software drafting is drawn based on two dimension for the most various
This complicated pie chart tool has very great help.
Accompanying drawing explanation
Fig. 1 is two dimension pie chart example;
Fig. 2 is 3 D stereo pie chart example one;
Fig. 3 is 3 D stereo pie chart example two;
Fig. 4 is 3 D stereo pie chart example three;
Fig. 5 is the schematic diagram of the method for drafting of the 3 D stereo pie chart of a kind of not equal altitude of the present invention;
Fig. 6 is the flow chart of a kind of detailed description of the invention of the method for the invention;
Fig. 7 is the structure chart of system of the present invention.
Detailed description of the invention
The invention will be further described with detailed description of the invention below in conjunction with the accompanying drawings.
The present invention draws API based on two dimension, and the drafting for the complex three-dimensional pie chart of this not equal altitude gives one
Very simple method, can conveniently realize the correct drafting of the stereoscopic three-dimensional pie chart of not equal altitude based on the method, including
Process the gland relation between each cake.
By the covering relation of each cake in not equal altitude 3 D stereo pie chart is furtherd investigate, have been found that and only rely on
It is the most complicated that Crop Area realizes drawing function, it is necessary to is adjusted the drawing order of each cake, so can simplify Crop Area
Complexity of the calculation.But its situation about being distributed at four quadrants of each cake object is arbitrary, cake object may be across
More one, two even three quadrants, add that the arbitrarily change of its height affects covering relation, correctly painting of cake to be determined
System order is the most extremely complex.Further analyze, determine that the drawing order main difficulty of cake object is that it crosses over quadrant
Problem, and the impact of the leap quadrant of key, occur in from the first to the second quadrant and from third quadrant to fourth quadrant.
Through research, the present invention proposes the brief method for drafting of 3 D stereo pie chart of not equal altitude, and its key idea is such as
Shown in Fig. 5.
1. utilize a vertical line, be two halves by leap one, two quadrant and leap three, four-quadrant cake Object Segmentation,
After this splits, the drawing order of each cake object judges to be greatly simplified;
2., on the basis of vertical segmentation, adjust the drawing order of cake object, thus be greatly simplified the calculating drawing Crop Area
Complexity.
As shown in Figure 6, the method for drafting of the 3 D stereo pie chart of a kind of not equal altitude, comprise the following steps:
(1) numerical value of each statistics component is obtained, in order to determine the drafting angle of each cake object, see step S1;
(2) according to the result of calculation of the first step, drafting start angle, termination point and the height of each cake object are calculated
Degree, is shown in step S2;
(3) the cake object that all drafting angular ranges cross over 90 degree and 270 degree is found, with a vertical divider by it
Two cake objects it are divided at 90 degree and 270 degree, if a cake object just terminates or originates in 90 degree or 270 degree,
Then this object need not be split, and sees step S3;
(4) readjust the drawing order of each cake object and draw, seeing step S4.
In the present embodiment, draw the most in accordance with the order from top to bottom in the vertical divider left and right sides, paint according to this
System order, without adjusting Crop Area drawing when, because can cover cake above by nature during following pie chart objects draw
Figure object, and be in pie chart object above and will not cover following pie chart object;
A) along the order drafting cake of (90 degree to 0 degree again to the order of 270 degree) from top to bottom on the right side of vertical divider
Object;
B) along the order drafting of (90 degree to 180 degree again to the order of 270 degree) from top to bottom on the left of vertical divider
Cake object.
The not equal altitude 3 D stereo pie chart that the present invention is given draws a set of short-cut method, is directed to following two and closes
Key technology point:
1, utilize a vertical line, be two halves by leap one, two quadrant and leap three, four-quadrant cake Object Segmentation.
This step is the most crucial, because after this splits, the drawing order of left and right sides cake object judges to be greatly simplified, only need to be from upper
Draw under to.
2, by adjusting cake objects draw order, it is achieved the cake object that the rear drafting automatic gland of cake object is first drawn, thus
Simplify the calculating of Crop Area when drawing.
Not equal altitude 3 D stereo pie chart to be drawn, also having a kind of scheme is to develop based on 3 D rendering API, utilizes
The API such as DirectX, OpenGL draw, owing to it can process the gland of each cake object by the correct judgment of Z-buffer
Relation, can solve this problem the most equally.But existing major part GIS and graphic software still are based on two dimensional technique research and development, its
Pure three-dimensional software cannot be changed in a short time, therefore these 3 D rendering technology difficulty in these softwares is had place to show one's prowess.
As it is shown in fig. 7, the drawing system of the 3 D stereo pie chart of a kind of not equal altitude, including with lower module:
Each statistics component acquisition module 21, for obtaining the numerical value of each statistics component, in order to determine the drafting of each cake object
Angle;
Computing module 22, for the result of calculation according to the first step, calculates the drafting start angle of each cake object, end
Only angle and height;
Segmentation module 23, for the cake object finding all drafting angular ranges to cross over 90 degree and 270 degree, hangs down with one
It is divided into two cake objects, if a cake object just terminates or originates at 90 degree and 270 degree by straight cut-off rule
90 degree or 270 degree, then this object need not be split;
Drafting module 24, for readjusting the drawing order of each cake object and drawing.
In the present embodiment, described drafting module 24 enters the most in accordance with the order from top to bottom in the vertical divider left and right sides
Row is drawn, according to this drawing order, without adjusting Crop Area drawing when.
As described in detailed description of the invention, the drafting that the present invention is directed to not equal altitude 3 D stereo pie chart provides a kind of simplicity
Implementation method, need not carry out the Crop Area complicated calculations under three dimensions based on the method, can realize any not equal altitude and stand
The correct drafting of body pie chart effect.
Method and system of the present invention is not limited to the embodiment described in detailed description of the invention, people in the art
Member draws other embodiment according to technical scheme, also belongs to the technological innovation scope of the present invention.
Claims (4)
1. a method for drafting for the 3 D stereo pie chart of not equal altitude, comprises the following steps:
(1) numerical value of each statistics component is obtained, in order to determine the drafting angle of each cake object;
(2) according to the result of calculation of the first step, the drafting start angle of each cake object, termination point and height are calculated;
(3) find all drafting angular ranges to cross over the cake object of set angle, with a cut-off rule, it is punished in this angle
Being segmented into two cake objects, if a cake object just terminates or originate in this angle, then this object need not be split;
(4) readjust the drawing order of each cake object and draw;
Wherein in step (3), described set angle is 90 degree and 270 degree, will draw angle model with a vertical divider
The cake object enclosing leap 90 degree and 270 degree is divided into two cake objects, if a cake object is just tied at 90 degree and 270 degree
Restraint or originate in 90 degree or 270 degree, then this object need not be split.
The method for drafting of the 3 D stereo pie chart of a kind of not equal altitude the most as claimed in claim 1, is characterized in that, step (4)
In, readjust the drawing order of each cake object and the method that carries out drawing be as follows:
Draw the most in accordance with the order from top to bottom in the cut-off rule left and right sides, according to this drawing order, drawing when
Without adjusting Crop Area.
3. a drawing system for the 3 D stereo pie chart of not equal altitude, including with lower module:
Each statistics component acquisition module, for obtaining the numerical value of each statistics component, in order to determine the drafting angle of each cake object;
Computing module, for the result of calculation according to the first step, calculates the drafting start angle of each cake object, termination point
And height;
Segmentation module, for find all drafting angular ranges cross over set angle cake object, with a cut-off rule by its
Being divided into two cake objects at this angle, if a cake object just terminates or originate in this angle, then this object need not
Segmentation;
Drafting module, for readjusting the drawing order of each cake object and drawing;
Wherein said set angle is 90 degree and 270 degree, and segmentation module will draw angular range with a vertical divider
The cake object crossing over 90 degree and 270 degree is divided into two cake objects at 90 degree and 270 degree, if a cake object just terminates
Or originate in 90 degree or 270 degree, then this object need not be split.
The drawing system of the 3 D stereo pie chart of a kind of not equal altitude the most as claimed in claim 3, it is characterised in that: described
Drafting module is drawn the most in accordance with the order from top to bottom in the cut-off rule left and right sides.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210250126.5A CN103578139B (en) | 2012-07-18 | 2012-07-18 | The method for drafting of the 3 D stereo pie chart of a kind of not equal altitude and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210250126.5A CN103578139B (en) | 2012-07-18 | 2012-07-18 | The method for drafting of the 3 D stereo pie chart of a kind of not equal altitude and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103578139A CN103578139A (en) | 2014-02-12 |
CN103578139B true CN103578139B (en) | 2016-12-28 |
Family
ID=50049856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210250126.5A Active CN103578139B (en) | 2012-07-18 | 2012-07-18 | The method for drafting of the 3 D stereo pie chart of a kind of not equal altitude and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103578139B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106340048A (en) * | 2016-09-12 | 2017-01-18 | 福建中金在线信息科技有限公司 | Pie chart rendering method and apparatus thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0654763A1 (en) * | 1993-11-24 | 1995-05-24 | Xerox Corporation | Method of analyzing data defining an image |
US5491779A (en) * | 1992-04-03 | 1996-02-13 | Bezjian; Richard D. | Three dimensional presentation of multiple data sets in unitary format with pie charts |
CN101261628A (en) * | 2007-03-07 | 2008-09-10 | 国际商业机器公司 | Method, mutual method and its apparatus using angle chart for displaying hierarchical structure data |
-
2012
- 2012-07-18 CN CN201210250126.5A patent/CN103578139B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5491779A (en) * | 1992-04-03 | 1996-02-13 | Bezjian; Richard D. | Three dimensional presentation of multiple data sets in unitary format with pie charts |
EP0654763A1 (en) * | 1993-11-24 | 1995-05-24 | Xerox Corporation | Method of analyzing data defining an image |
CN101261628A (en) * | 2007-03-07 | 2008-09-10 | 国际商业机器公司 | Method, mutual method and its apparatus using angle chart for displaying hierarchical structure data |
Non-Patent Citations (1)
Title |
---|
《Excel图表的应用技巧》;杨三雄;《计算机与农业》;20030630(第6期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103578139A (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9916676B2 (en) | 3D model rendering method and apparatus and terminal device | |
CN102509343B (en) | Binocular image and object contour-based virtual and actual sheltering treatment method | |
JP6131704B2 (en) | Detection method for continuous road segment and detection device for continuous road segment | |
CN106934111B (en) | Engineering three-dimensional entity modeling method based on topographic data and modeling device thereof | |
CN108334802B (en) | Method and device for positioning road feature | |
CN108921943B (en) | Road three-dimensional model modeling method based on lane-level high-precision map | |
CN111737790B (en) | Method and equipment for constructing simulated city model | |
CN101930623A (en) | Three-dimensional road modeling method and device | |
CN104318605B (en) | Parallel lamination rendering method of vector solid line and three-dimensional terrain | |
CN104183016A (en) | Method for rapidly constructing 2.5-dimensional building model | |
CN105095314B (en) | A kind of mask method of point of interest, terminal, navigation server and navigation system | |
CN105005580B (en) | A kind of method for showing reservoir landform and device thereof | |
CN104657968A (en) | Automatic vehicle-mounted three-dimensional laser point cloud facade classification and outline extraction method | |
CN106327576B (en) | A kind of City scenarios method for reconstructing and system | |
CN102307308B (en) | Method and equipment for generating three-dimensional image on touch screen | |
CN106504227A (en) | Demographic method and its system based on depth image | |
CN104574489B (en) | Landform and motion vector integrated approach based on lamination quaternary tree atlas | |
CN103578139B (en) | The method for drafting of the 3 D stereo pie chart of a kind of not equal altitude and system | |
CN102663805A (en) | Projection-based view frustum cutting method | |
CN110659440B (en) | Method for rapidly and dynamically displaying different detail levels of point cloud data large scene | |
CN103310409A (en) | Quick triangle partitioning method of Tile-based rendering architecture central processing unit (CPU) | |
CN108053751B (en) | Method and device for drawing direction arrow on electronic map navigation route | |
CN110910482B (en) | Method, system and readable storage medium for video data organization and scheduling | |
CN115797579A (en) | Image superposition method and device for three-dimensional map, electronic equipment and storage medium | |
CN112687000B (en) | Correction method, system and computer readable storage medium for three-dimensional model coordinates |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |