CN107451235A - Display method and device of space dimension mark - Google Patents
Display method and device of space dimension mark Download PDFInfo
- Publication number
- CN107451235A CN107451235A CN201710613091.XA CN201710613091A CN107451235A CN 107451235 A CN107451235 A CN 107451235A CN 201710613091 A CN201710613091 A CN 201710613091A CN 107451235 A CN107451235 A CN 107451235A
- Authority
- CN
- China
- Prior art keywords
- mark
- dimension
- displaying
- dimensional
- coordinate
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000006243 chemical reaction Methods 0.000 claims abstract description 88
- 230000008859 change Effects 0.000 claims abstract description 22
- 230000001747 exhibiting effect Effects 0.000 claims description 44
- 238000011161 development Methods 0.000 claims description 24
- 239000003550 marker Substances 0.000 claims description 19
- 239000013598 vector Substances 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 5
- 230000009466 transformation Effects 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 abstract description 10
- 230000001360 synchronised effect Effects 0.000 abstract description 10
- 238000012546 transfer Methods 0.000 description 5
- 239000000126 substance Substances 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000002689 soil Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a display method and a device of a space dimension mark, wherein the display method of the space dimension mark comprises the following steps: acquiring the space dimension type of a display diagram to be switched; acquiring current dimensional point coordinates of each target point in the display diagram to be switched according to the space dimensional type of the display diagram to be switched; obtaining a marking coordinate of a target point according to the current dimension point coordinate; acquiring mark content, and generating a current dimension mark of a target point according to the mark content and the mark coordinates; converting the current dimension mark according to a preset coordinate conversion rule and the space dimension type of the switched display diagram to obtain a converted dimension mark; and displaying the corresponding target point on the switched display diagram according to the converted dimension mark. The invention can realize the mutual conversion and synchronous change of different space dimension marks, greatly simplifies the operation of a user and automatically converts and displays the space dimension marks in the display diagram.
Description
Technical field
The present invention relates to the information processing technology, more particularly to the methods of exhibiting and device of a kind of Spatial Dimension mark.
Background technology
For the product for needing in three-dimensional sphere and corresponding flat (two dimension) region to change coordinate mutually, such as virtually
Globe, user is when using virtually globe, it is necessary to which label shows " conversion " on figure in two and three dimensions, to complete in difference
Displaying when, position location and additional information can accurately be shown;And conventional art can be only carried out individually in two-dimentional, three-dimensional exhibition
The mode of label or both sides all manual modifications is all added on diagram.
In implementation process, inventor has found that at least there are the following problems in conventional art:Conventional art is individually in difference
The mode of addition or modification mark on the displaying figure of Spatial Dimension, cause carrying out the switching displaying of different spaces dimension displaying figure
When, the mutual conversion of different spaces dimension mark and synchronous change can not be realized, it is cumbersome.
The content of the invention
Based on this, it is necessary to during for being shown in the switching for carrying out different spaces dimension displaying figure, different skies can not be realized
Between the mutual conversion that marks of dimension and the problem of synchronous change, there is provided a kind of methods of exhibiting and device of Spatial Dimension mark.
To achieve these goals, on the one hand, the embodiments of the invention provide a kind of Spatial Dimension mark methods of exhibiting,
Comprise the following steps:
Obtain the Spatial Dimension type of to be switched displaying figure;
According to the Spatial Dimension type of to be switched displaying figure, the to be switched current dimension point for showing each target point in figure is obtained
Coordinate;
According to current dimension point coordinates, the mark coordinate of target point is obtained;
Mark content is obtained, according to mark content and coordinate is marked, generates the leading dimension scale designation of target point;
According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, leading dimension scale designation is carried out
Conversion, the dimension mark after being changed;
Marked according to the dimension after conversion, carry out the displaying of corresponding target point on displaying figure after handover.
On the one hand, the embodiment of the present invention additionally provides a kind of exhibiting device of Spatial Dimension mark, including:
Dimension type units are obtained, for obtaining the Spatial Dimension type of to be switched displaying figure;
Point coordinates unit is obtained, for the Spatial Dimension type according to be switched displaying figure, is obtained in be switched displaying figure
The current dimension point coordinates of each target point;
Indexing unit is generated, for according to current dimension point coordinates, obtaining the mark coordinate of target point;Obtain in mark
Hold, according to mark content and mark coordinate, generate the leading dimension scale designation of target point;
Dimension transformation unit, for according to default Coordinate Conversion rule and switching after show figure Spatial Dimension type,
Leading dimension scale designation is changed, the dimension mark after being changed;
Display unit, for being marked according to the dimension after conversion, the exhibition of corresponding target point is carried out on displaying figure after handover
Show.
On the other hand, the embodiments of the invention provide a kind of computer equipment, including memory, processor and it is stored in
The exhibition of above-mentioned Spatial Dimension mark is realized on reservoir and the computer program that can run on a processor, during computing device program
Show each step of method.
On the other hand, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer
Program (instruction), it is characterised in that the program (instruction) realizes the displaying side of above-mentioned Spatial Dimension mark when being executed by processor
Each step of method.
The invention has the advantages that and beneficial effect:
The methods of exhibiting and device of Spatial Dimension mark of the present invention, shown according to default Coordinate Conversion rule and after switching
The Spatial Dimension type of figure, is changed to leading dimension scale designation, the dimension mark after being changed;According to the dimension after conversion
Mark, the displaying of corresponding target point is carried out on displaying figure after handover, can solve the problem that three dimensional indicia and two dimension in three-dimensional sphere
Mutual transfer problem between the two-dimensional marker of expanded view, realize the synchronous change of different spaces dimension mark;The present invention can
The operation of user is greatly simplified, only needs to add or change a marked content by user of the present invention, you can is schemed in displaying
The middle automatic conversion displaying for carrying out Spatial Dimension mark.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the methods of exhibiting embodiment 1 of Spatial Dimension of the present invention mark;
Fig. 2 is the idiographic flow schematic diagram of the methods of exhibiting embodiment 2 of Spatial Dimension of the present invention mark;
Fig. 3 is that the mark of target point in three-dimensional sphere figure to be converted in the methods of exhibiting that Spatial Dimension of the present invention marks shows
It is intended to;
Fig. 4 shows for the mark of target point in the two-dimensional development figure after conversion in the methods of exhibiting of Spatial Dimension of the present invention mark
It is intended to;
Fig. 5 is that the mark of target point in two-dimensional development figure to be converted in the methods of exhibiting that Spatial Dimension of the present invention marks shows
It is intended to;
Fig. 6 shows for the mark of target point in the three-dimensional sphere figure after conversion in the methods of exhibiting of Spatial Dimension of the present invention mark
It is intended to;
Fig. 7 is the structural representation of the exhibiting device embodiment 1 of Spatial Dimension of the present invention mark.
Embodiment
For the ease of understanding the present invention, the present invention is described more fully below with reference to relevant drawings.In accompanying drawing
Give the preferred embodiment of the present invention.But the present invention can realize in many different forms, however it is not limited to this paper institutes
The embodiment of description.On the contrary, the purpose for providing these embodiments is made to the disclosure more thorough and comprehensive.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention
The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " include one or more phases
The arbitrary and all combination of the Listed Items of pass.
The methods of exhibiting of Spatial Dimension mark of the present invention and the application scenarios explanation and relevant technical terms of device are explained:
Conventional art can not realize the mutual conversion of locus mark and synchronous change, and cumbersome;It is and of the invention
The operation of user can be facilitated, only need to add or change a marked content by user of the present invention, you can schemed in displaying
The middle automatic conversion displaying for carrying out Spatial Dimension mark.Such as user with the addition of a three dimensional indicia on the three-dimensional earth, when with
Family be switched to two dimension turn up the soil ball expanded view when, the mark that is added when three-dimensional should automatic conversion come, and be shown to correct
Position and correct content.Vice versa.
Preferably, the present invention, which can apply, is needing in three-dimensional sphere and corresponding flat (two dimension) region to turn coordinate mutually
On the product changed, such as virtually globe;Locus mark in various embodiments of the present invention can include three dimensional indicia and two
Dimension mark;Defined label of the present invention includes two characteristics:1st, indicating positions;2nd, content is indicated.
Wherein, three dimensional indicia can refer to the mark that three-dimensional is added in three-dimensional body or scene, you can be tab style
Or the three-dimensional label of bubble pattern etc., record need additional information.Three dimensional indicia can add any form equivalent to label
Content, such as word, picture, video etc..
Two-dimensional marker can refer to UI (the User Interface added in two-dimensional scene:User interface) label,
To indicate the position of mark and additional information.Two-dimensional marker can add any type of content equivalent to label, such as
Word, picture, video etc..
The methods of exhibiting embodiment 1 of Spatial Dimension mark of the present invention:
In order to solve, when carrying out the switching displaying of different spaces dimension displaying figure, can not to realize that different spaces dimension marks
Mutual conversion and the problem of synchronous change, the invention provides a kind of methods of exhibiting embodiment 1, Fig. 1 of Spatial Dimension mark
The schematic flow sheet of the methods of exhibiting embodiment 1 marked for Spatial Dimension of the present invention, as shown in figure 1, may comprise steps of:
Step S110:Obtain the Spatial Dimension type of to be switched displaying figure;
Specifically, the displaying figure that to be switched displaying figure is currently shown, can be two-dimensional development figure or three-dimensional sphere figure;
And the Spatial Dimension type for the displaying figure that Spatial Dimension type is currently shown, two dimension or three-dimensional can be corresponded to.Further,
The positioned Spatial Dimension state of current to be switched displaying figure can be recorded by the variable Type inside program, and then is treated
The Spatial Dimension type of switching displaying figure.
Step S120:According to the Spatial Dimension type of to be switched displaying figure, each target point in be switched displaying figure is obtained
Current dimension point coordinates;
Specifically, for target point i.e. on to be switched displaying figure, user is clicked on by mouse or the point of touch, can be in mesh
Content or writing position information are marked on punctuate, for example, user clicks on the position for thinking addition mark by mouse, passes through the present invention
A label can be automatically generated and point to the position, user is filling in related content by the label.Each target point it is current
The point coordinates on to be switched displaying figure of dimension point coordinates, i.e. target point;When to be switched displaying figure is three-dimensional sphere figure, mesh
The current dimension point coordinates of punctuate is three-dimensional point coordinate;When to be switched displaying figure is two-dimensional development figure, the leading dimension of target point
Degree point coordinates is two-dimensional points coordinate;
Step S130:According to current dimension point coordinates, the mark coordinate of target point is obtained;Mark content is obtained, according to mark
Remember content and mark coordinate, generate the leading dimension scale designation of target point;
Specifically, mark includes two characteristics:Indicating positions and instruction content.Can root in various embodiments of the present invention
The corresponding mark of mark content generation of strong point coordinate and user's input;For example, generating one according to three-dimensional point coordinate does not have
The mark of content, indicates position, according to this position generate coordinate (marking coordinate), and pattern of coordinate etc. all with coordinate without
Close, content is filled in by user.
Step S140:According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, to leading dimension
Scale designation is changed, the dimension mark after being changed;
Specifically,, will be current by default Coordinate Conversion rule according to the Spatial Dimension type that figure is shown after switching
The mark coordinate that mark Coordinate Conversion in dimension mark marks for the dimension after conversion;Coordinate points in dimension mark after conversion
Spatial Dimension type with switching after show figure Spatial Dimension type it is identical.And default Coordinate Conversion rule can be basis
The space type of coordinate system is different before and after conversion, is realized by establishing between two coordinate systems one-to-one relationship.
Step S150:Marked according to the dimension after conversion, carry out the displaying of corresponding target point on displaying figure after handover.
Specifically, corresponding label can be generated according to the point coordinates in the dimension mark after conversion and mark content,
Then the displaying of corresponding target point (can be multiple target points) is carried out on displaying figure after handover.
In a specific embodiment, the mark content of mark coordinate is obtained, it is raw according to mark content and mark coordinate
Into target point leading dimension scale designation the step of after also include step:
Each leading dimension scale designation is separately recorded in preset data structure list corresponding to be switched displaying figure;
According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, leading dimension scale designation is carried out
Conversion, the step of dimension after change marks, include:
Preset data structure list corresponding to traveling through to be switched displaying figure, obtain each mark coordinate;
According to default Coordinate Conversion rule, Coordinate Conversion is carried out to each mark coordinate respectively, the mark after conversion is sat
Mark is added to after switching in preset data structure list corresponding to displaying figure, obtains the mark of the dimension after each conversion;
Marked according to the dimension after conversion, carry out including the step of corresponding to the displaying of target point after handover on displaying figure:
Preset data structure list corresponding to showing figure after traversal switching, obtains the mark of the dimension after each conversion;
Marked according to the dimension after each conversion, carry out the displaying of each target point on displaying figure after handover.
Specifically, the present invention can realize mark by preset data structure list in Spatial Dimension marks conversion
The quick obtaining of data (such as mark coordinate and mark content), it is possible to increase dimension marks the accuracy and speed of Coordinate Conversion
Degree, facilitates the operation of user.
In a specific embodiment, preset data structure list is Hash list.
Specifically, the correlation function of preset data structure list can be realized by Hash list;Preferably, can be with
Above-mentioned function, such as two list corresponding records are realized using other data structures.
The methods of exhibiting of Spatial Dimension mark of the present invention, it can solve the problem that three dimensional indicia and two-dimensional development figure in three-dimensional sphere
Two-dimensional marker between mutual transfer problem, realize the synchronous change of different spaces dimension mark;The present invention can be significantly simple
Change the operation of user, by user of the present invention only need to add or change marked content (shown to be switched on figure,
During target point being chosen by mouse or touch), you can realize the automatic conversion of two-dimensional marker and three dimensional indicia.
The methods of exhibiting embodiment 2 of Spatial Dimension mark of the present invention:
The technical scheme of methods of exhibiting embodiment 1 based on space above dimension mark, while in order to solve carrying out not
During the switching displaying of isospace dimension displaying figure, the mutual conversion of different spaces dimension mark can not be realized and that synchronously changes ask
Topic, it is real with the methods of exhibiting of Spatial Dimension mark present invention also offers a kind of methods of exhibiting embodiment 2 of Spatial Dimension mark
The technical scheme for applying example 1 is compared, and the three dimensional indicia and two realized based on Hash list in three-dimensional sphere has been discussed in detail in embodiment 2
Tie up the mutual transfer process between the two-dimensional marker of expanded view;Fig. 2 is the methods of exhibiting embodiment 2 of Spatial Dimension of the present invention mark
Idiographic flow schematic diagram.
On the one hand, it is to be switched during the three dimensional indicia in three-dimensional sphere is converted to the two-dimensional marker of two-dimensional development figure
Show that figure is three-dimensional sphere figure;Show that figure is two-dimensional development figure after switching;Leading dimension scale is designated as three dimensional indicia;Dimension after conversion
Scale is designated as two-dimensional marker;
In a specific embodiment, according to the Spatial Dimension type of to be switched displaying figure, to be switched displaying figure is obtained
In each target point current dimension point coordinates the step of include:
Obtain the target point of three-dimensional sphere figure;
Tested according to hit, target point is mapped in three-dimensional system of coordinate, obtains the three-dimensional point coordinate of target point.
Specifically, if currently show for three-dimensional sphere (i.e. to be switched displaying figure be three-dimensional sphere figure):According to mouse
Mark or the point (i.e. each target point) touched, nearest three-dimensional point coordinate P3 can be obtained by hitting test, and be generated according to P3
Three dimensional indicia, and by the coordinate of mark and content record in Hash list L3.
It should be noted that for above-mentioned nearest three-dimensional point coordinate P3, due to the displaying figure that screen is currently shown, no matter
Presentation it is three-dimensional or two-dimentional, its substantially be all two dimension pixel render come, such as it is to be switched displaying figure be three-dimensional ball
Body figure, this three-dimensional sphere figure are three-dimensional come the vacation drawn out using two dimension.And by mouse or the target point obtained is touched,
Its essence is two dimension;Point (target point) of the invention by two dimension is mapped to the three-dimensional coordinate that the pixel of two dimension is rendered
, can be by correlation computations (such as hit be tested), to obtain nearest three-dimensional coordinate point in system.
And the mark coordinate of three dimensional indicia can refer to space coordinates (x, y, z), the mark content of three dimensional indicia can refer to
The content of user's addition, above-mentioned data are recorded in corresponding Hash list.
In a specific embodiment, according to the Spatial Dimension class that figure is shown after default Coordinate Conversion rule and switching
Type, leading dimension scale designation is changed, included the step of dimension after being changed mark:
According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, to the leading dimension scale designation
The step of being changed includes:
Obtain the peak width and region height of two-dimensional development figure;
According to the mark coordinate of three dimensional indicia, three-dimensional vector is built;Acquisition three-dimensional vector has rendered with two-dimensional development figure
The angle value of beginning coordinate vector;
According to angle value, peak width and region height, the mark coordinate of two-dimensional marker is obtained.
Specifically, when detecting that user clicks on switching push button, three-dimensional sphere (the i.e. ball of three-dimensional sphere figure can be obtained
Body) radius R, the wide W, the height H in two-dimentional textures region in two-dimentional textures (i.e. two-dimensional development figure) region.
The current type of displaying figure be three-dimensional sphere, it is necessary to when switching to two-dimentional textures, travel through Hash list L3, obtain
The coordinate P3 of each (list items i.e. in Hash list), constructs three-dimensional vector Vw(P3.X, P3.Y, 0), calculate and vector
V's (1,0,0) (because two-dimentional textures start from V (1,0,0) and start to render, i.e. two-dimensional development figure renders origin coordinates vector)
Angulation value A1;A1 and 360 degree of ratio ScaleX is calculated according to A1, i.e. ScaleX is the x and two where two-dimensional coordinate
Tie up the W in textures region ratio;
Further, according to P3 vectors Vh(P3.X, P3.Y, P3.Z), and vectorial Vxy(P3.X, P3.Y, 0), calculates Vh
And VxyAngulation A2;According to A2 and 90 degree of ratio ScaleY, i.e. Y values of the ScaleY where two-dimensional coordinate and two-dimentional Maps
Domain H/2 ratio.If P3 Z values are more than 0, the Y value put is more than H/2, then the two-dimensional coordinate being calculated is:P2
(SclaeX*W, H/2-ScaleY*H/2);If P3 Z values are less than 0, point Y value is more than H/2, then the two dimension seat being calculated
It is designated as:P2 (ScaleX*W, H/2+ScaleY*H/2).The coordinate P2 obtained, and corresponding label substance addition Hash will be calculated
In list L2.(see Fig. 3,4)
It should be noted that when the central point of three-dimensional sphere is not when on (0,0,0), it is assumed that central point C, it is only necessary to will
Vector does V (C.X, C.Y, C.Z) skew.
Fig. 3 is that the mark of target point in three-dimensional sphere figure to be converted in the methods of exhibiting that Spatial Dimension of the present invention marks shows
It is intended to;Fig. 4 illustrates for the mark of target point in the two-dimensional development figure after conversion in the methods of exhibiting of Spatial Dimension of the present invention mark
Figure;As shown in Figure 3, Figure 4, Hash list L2, traversal of lists L2 after being changed according to above-mentioned steps, according to the point in each
Coordinate P2 and label substance generation label, carry out the displaying of each target point.
On the other hand, it is to be cut during the two-dimensional marker of two-dimensional development figure is converted to the three dimensional indicia in three-dimensional sphere
It is two-dimensional development figure to change displaying figure;Show that figure is three-dimensional sphere figure after switching;Leading dimension scale is designated as two-dimensional marker;After conversion
Dimension is labeled as three dimensional indicia;
Specifically, if the to be switched displaying figure currently shown is two-dimentional textures (i.e. two-dimensional development figure), according to mouse
Or the point (i.e. each target point) touched, the two-dimensional coordinate P2 of addition is obtained, and according to P2 generation two-dimensional markers, and by the seat of mark
Mark and content record are in Hash list L2.Preferably, the UI classes of mark can be generated, and its position is put on P2.
In a specific embodiment, according to the Spatial Dimension class that figure is shown after default Coordinate Conversion rule and switching
Type, the step of being changed to leading dimension scale designation, include:
Obtain three-dimensional sphere radius of graph, the peak width and region height of two-dimensional development figure;
According to mark coordinate, peak width and the region height of two-dimensional marker, obtain the mark coordinate of three dimensional indicia with it is each
The angulation angle of reference axis;
According to angulation angle and institute's three-dimensional sphere radius of graph, the mark coordinate of three dimensional indicia is obtained.
Specifically, when detecting that user clicks on switching push button, the radius R of three-dimensional sphere, two-dimentional textures can be obtained
The wide W in (i.e. two-dimensional development figure) region, the height H in two-dimentional textures region.
Hash list L2 is traveled through, obtains the coordinate P2 of each, ratio calculated ScaleY=(P2.Y-H/2)/(H/2), i.e.,
ScaleY is three-dimensional coordinate and 90 degree of ratio, can obtain three-dimensional coordinate and Z axis angulation AZ=| ScaleY*90 |, then Z=R*Sin
(AZ);Ratio calculated ScaleX=P2.X/W,Vectorial VT (TX, 0, Z) is built, calculates VT with vector
(0,0,1) (Z axis) anglec of rotation is the vectorial VC after ScaleX*360 degree;The three-dimensional coordinate obtained if P2.Y is more than H/2
For P3 (VC.X, VC.Y ,-Z);Three-dimensional coordinate P3 (VC.X, VC.Y, Z) is obtained if P2.Y is less than H/2.By the coordinate of acquisition
P3 and corresponding label substance are added in Hash list L3 (see Fig. 5,6).
It should be noted that when the central point of three-dimensional sphere is not when on (0,0,0), it is assumed that center C, then only need by
The coordinate obtained in above-mentioned steps can obtain correct coordinates plus vectorial V (C.X, C.Y, C.Z).
Fig. 5 is that the mark of target point in two-dimensional development figure to be converted in the methods of exhibiting that Spatial Dimension of the present invention marks shows
It is intended to;Fig. 6 illustrates for the mark of target point in the three-dimensional sphere figure after conversion in the methods of exhibiting of Spatial Dimension of the present invention mark
Figure;As shown in Figure 5, Figure 6, traversal of lists L3, label is generated according to the point coordinates P3 in each and label substance, carries out each target
The displaying of point.
Each embodiment of methods of exhibiting of Spatial Dimension mark of the present invention, opened up according to default Coordinate Conversion rule and after switching
The Spatial Dimension type of diagram, is changed to leading dimension scale designation, the dimension mark after being changed;According to the dimension after conversion
Scale designation, the displaying of corresponding target point is carried out on displaying figure after handover, can solve the problem that the three dimensional indicia in three-dimensional sphere and two
The mutual transfer problem between the two-dimensional marker of expanded view is tieed up, realizes the synchronous change of different spaces dimension mark;Energy of the present invention
The operation of user is enough greatly simplified, only needs to add or change a marked content (i.e. to be switched by user of the present invention
Show on figure, by mouse or touch choose target point during), you can realize two-dimensional marker and three dimensional indicia from turn
Change.
The exhibiting device embodiment 1 of Spatial Dimension mark of the present invention:
In order to solve, when carrying out the switching displaying of different spaces dimension displaying figure, can not to realize that different spaces dimension marks
Mutual conversion and the problem of synchronous change, the invention provides a kind of exhibiting device embodiment 1 of Spatial Dimension mark;Fig. 7
For the structural representation of the exhibiting device embodiment 1 of Spatial Dimension of the present invention mark;As shown in fig. 7, it can include:
Dimension type units 710 are obtained, for obtaining the Spatial Dimension type of to be switched displaying figure;
Point coordinates unit 720 is obtained, for the Spatial Dimension type according to be switched displaying figure, obtains to be switched displaying figure
In each target point current dimension point coordinates;
Indexing unit 730 is generated, for according to current dimension point coordinates, obtaining the mark coordinate of target point;Obtain mark
Content, according to mark content and coordinate is marked, generates the leading dimension scale designation of target point;
Dimension transformation unit 740, for according to the Spatial Dimension class that figure is shown after default Coordinate Conversion rule and switching
Type, leading dimension scale designation is changed, the dimension mark after being changed;
Display unit 750, for being marked according to the dimension after conversion, corresponding target point is carried out on displaying figure after handover
Displaying.
In a specific embodiment, it can also include:
Recording unit 760, for each leading dimension scale designation to be separately recorded in into preset data corresponding to be switched displaying figure
In structure list;And the mark coordinate after conversion is added to after switching in preset data structure list corresponding to displaying figure,
Obtain the mark of the dimension after each conversion;
Dimension transformation unit 740, for preset data structure list corresponding to traveling through to be switched displaying figure, obtain each mark
Coordinate;According to default Coordinate Conversion rule, Coordinate Conversion is carried out to each mark coordinate respectively, the mark after being changed is sat
Mark;
Display unit 750, for showing preset data structure list corresponding to figure after traveling through switching, after obtaining each conversion
Dimension marks;Marked according to the dimension after each conversion, carry out the displaying of each target point on displaying figure after handover.
It should be noted that each unit module in the exhibiting device embodiment 1 of Spatial Dimension mark of the present invention, can be right
The method and step in each embodiment of methods of exhibiting of above-mentioned Spatial Dimension mark should be realized, it is no longer repeated herein.
The exhibiting device of Spatial Dimension mark of the present invention, according to the sky that figure is shown after default Coordinate Conversion rule and switching
Between dimension type, leading dimension scale designation is changed, dimension after being changed mark;Marked according to the dimension after conversion,
The displaying of corresponding target point is carried out on displaying figure after handover, can solve the problem that three dimensional indicia and two-dimensional development figure in three-dimensional sphere
Two-dimensional marker between mutual transfer problem, realize the synchronous change of different spaces dimension mark;The present invention can be significantly simple
Change the operation of user, by user of the present invention only need to add or change marked content (shown to be switched on figure,
During target point being chosen by mouse or touch), you can realize the automatic conversion of two-dimensional marker and three dimensional indicia.
On the other hand, the embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in
Above-mentioned Spatial Dimension mark is realized on memory and the computer program that can run on a processor, during computing device program
Method and step in each embodiment of methods of exhibiting, it is no longer repeated herein.
In addition, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, computer program is stored thereon with
(instruction), it is characterised in that the program (instruction) realizes the methods of exhibiting of above-mentioned Spatial Dimension mark when being executed by processor
Various method steps, it is no longer repeated herein.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.One of ordinary skill in the art will appreciate that realize above-mentioned implementation
All or part of step in example method is by program the hardware of correlation can be instructed to complete, and described program can deposit
Be stored in a computer read/write memory medium, the program upon execution, including the step described in above method, described storage
Medium, such as:ROM/RAM, magnetic disc, CD etc..
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of methods of exhibiting of Spatial Dimension mark, it is characterised in that comprise the following steps:
Obtain the Spatial Dimension type of to be switched displaying figure;
According to the Spatial Dimension type of the to be switched displaying figure, the to be switched leading dimension for showing each target point in figure is obtained
Spend point coordinates;
According to the current dimension point coordinates, the mark coordinate of the target point is obtained;
Mark content is obtained, according to the leading dimension scale designation for marking content and the mark coordinate, generating the target point;
According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, the leading dimension scale designation is carried out
Conversion, the dimension mark after being changed;
Marked according to the dimension after the conversion, carry out the displaying of corresponding target point on displaying figure after the switching.
2. the methods of exhibiting of Spatial Dimension mark according to claim 1, it is characterised in that
The mark content of the mark coordinate is obtained, according to the mark content and the mark coordinate, generates the target point
Leading dimension scale designation the step of after also include step:
Each leading dimension scale designation is separately recorded in preset data structure list corresponding to the to be switched displaying figure;
According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, the leading dimension scale designation is carried out
Conversion, the step of dimension after change marks, include:
Preset data structure list corresponding to the to be switched displaying figure is traveled through, obtains each mark coordinate;
According to default Coordinate Conversion rule, Coordinate Conversion is carried out to each mark coordinate respectively, the mark after conversion is sat
Mark is added to after the switching in preset data structure list corresponding to displaying figure, obtains the mark of the dimension after each conversion;
Marked according to the dimension after the conversion, on displaying figure wrap the step of corresponding to the displaying of target point after the switching
Include:
Preset data structure list corresponding to displaying figure after the switching is traveled through, obtains the dimension mark after each conversion;
Marked according to the dimension after each conversion, carry out the displaying of each target point on displaying figure after the switching.
3. the methods of exhibiting of Spatial Dimension mark according to claim 2, it is characterised in that the preset data structure row
Table is Hash list.
4. the methods of exhibiting of the Spatial Dimension mark according to claims 1 to 3 any one, it is characterised in that described to treat
Switching displaying figure is three-dimensional sphere figure;Show that figure is two-dimensional development figure after the switching;The leading dimension scale is designated as three-dimensional mark
Note;Dimension after the conversion is labeled as two-dimensional marker;
According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, the leading dimension scale designation is carried out
The step of conversion, includes:
Obtain the peak width and region height of the two-dimensional development figure;
According to the mark coordinate of the three dimensional indicia, three-dimensional vector is built;Obtain the three-dimensional vector and the two-dimensional development figure
Render origin coordinates vector angle value;
According to the angle value, the peak width and the region height, the mark coordinate of the two-dimensional marker is obtained.
5. the methods of exhibiting of Spatial Dimension mark according to claim 4, it is characterised in that
According to the Spatial Dimension type of the to be switched displaying figure, the to be switched leading dimension for showing each target point in figure is obtained
The step of spending point coordinates includes:
Obtain the target point of the three-dimensional sphere figure;
Tested according to hit, the target point is mapped in three-dimensional system of coordinate, obtains the three-dimensional point coordinate of the target point.
6. the methods of exhibiting of the Spatial Dimension mark according to claims 1 to 3 any one, it is characterised in that described to treat
Switching displaying figure is two-dimensional development figure;Show that figure is three-dimensional sphere figure after the switching;The leading dimension scale is designated as two-dimentional mark
Note;Dimension after the conversion is labeled as three dimensional indicia;
According to the Spatial Dimension type that figure is shown after default Coordinate Conversion rule and switching, the leading dimension scale designation is carried out
The step of conversion, includes:
Obtain the three-dimensional sphere radius of graph, the peak width and region height of the two-dimensional development figure;
According to the mark coordinate, the peak width and the region height of the two-dimensional marker, the three dimensional indicia is obtained
Mark coordinate and the angulation angle of each reference axis;
According to the angulation angle and institute the three-dimensional sphere radius of graph, the mark coordinate of the three dimensional indicia is obtained.
A kind of 7. exhibiting device of Spatial Dimension mark, it is characterised in that including:
Dimension type units are obtained, for obtaining the Spatial Dimension type of to be switched displaying figure;
Point coordinates unit is obtained, for the Spatial Dimension type according to the to be switched displaying figure, obtains the to be switched displaying
The current dimension point coordinates of each target point in figure;
Indexing unit is generated, for according to the current dimension point coordinates, obtaining the mark coordinate of the target point;Obtain mark
Content, according to the leading dimension scale designation for marking content and the mark coordinate, generating the target point;
Dimension transformation unit, for the Spatial Dimension type according to displaying figure after default Coordinate Conversion rule and switching, to institute
State leading dimension scale designation to be changed, the dimension mark after being changed;
Display unit, for being marked according to the dimension after the conversion, corresponding target point is carried out on displaying figure after the switching
Displaying.
8. the exhibiting device of Spatial Dimension mark according to claim 7, it is characterised in that also include
Recording unit, for each leading dimension scale designation to be separately recorded in into preset data corresponding to the to be switched displaying figure
In structure list;And the mark coordinate after conversion is added to preset data structure list corresponding to displaying figure after the switching
In, obtain the mark of the dimension after each conversion;
The dimension transformation unit, for preset data structure list corresponding to traveling through the to be switched displaying figure, obtain each institute
State mark coordinate;According to default Coordinate Conversion rule, Coordinate Conversion is carried out to each mark coordinate respectively, after obtaining conversion
Mark coordinate;
The display unit, for traveling through preset data structure list corresponding to displaying figure after the switching, obtain each described turn
Dimension mark after changing;Marked according to the dimension after each conversion, carry out each target on displaying figure after the switching
The displaying of point.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, it is characterised in that any one methods described in claim 1-6 is realized during the computing device described program
The step of.
10. a kind of computer-readable recording medium, it is stored thereon with computer program (instruction), it is characterised in that the program (refers to
Make) the step of realizing any one methods described in claim 1-6 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710613091.XA CN107451235B (en) | 2017-07-25 | 2017-07-25 | Display method and device of space dimension mark |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710613091.XA CN107451235B (en) | 2017-07-25 | 2017-07-25 | Display method and device of space dimension mark |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107451235A true CN107451235A (en) | 2017-12-08 |
CN107451235B CN107451235B (en) | 2020-08-14 |
Family
ID=60488197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710613091.XA Active CN107451235B (en) | 2017-07-25 | 2017-07-25 | Display method and device of space dimension mark |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107451235B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108765299A (en) * | 2018-04-26 | 2018-11-06 | 广州视源电子科技股份有限公司 | Three-dimensional graphic marking system and method |
CN112347589A (en) * | 2020-11-26 | 2021-02-09 | 南京玻璃纤维研究设计院有限公司 | Space geometry unfolding method and device and electronic equipment |
CN113157741A (en) * | 2021-04-26 | 2021-07-23 | 上海淇馥信息技术有限公司 | Service state visualization method and device based on dimension conversion and electronic equipment |
CN113342914A (en) * | 2021-06-17 | 2021-09-03 | 重庆大学 | Method for acquiring and automatically labeling data set for globe region detection |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521852A (en) * | 2011-11-24 | 2012-06-27 | 中国船舶重工集团公司第七0九研究所 | Showing method for target label independent of three-dimensional scene space |
CN103399928A (en) * | 2013-08-07 | 2013-11-20 | 中国水电顾问集团成都勘测设计研究院 | Method for achieving linkage between two-dimensional map and three-dimensional map on Web page |
CN104833360A (en) * | 2014-02-08 | 2015-08-12 | 无锡维森智能传感技术有限公司 | Method for transforming two-dimensional coordinates into three-dimensional coordinates |
CN105701828A (en) * | 2016-01-14 | 2016-06-22 | 广州视睿电子科技有限公司 | Image processing method and device |
CN105719334A (en) * | 2015-10-15 | 2016-06-29 | 哈尔滨安天科技股份有限公司 | Three-dimensional sphere drafting method and system |
CN105825551A (en) * | 2016-03-11 | 2016-08-03 | 广州视睿电子科技有限公司 | Three-dimensional label implementation method and device |
-
2017
- 2017-07-25 CN CN201710613091.XA patent/CN107451235B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521852A (en) * | 2011-11-24 | 2012-06-27 | 中国船舶重工集团公司第七0九研究所 | Showing method for target label independent of three-dimensional scene space |
CN103399928A (en) * | 2013-08-07 | 2013-11-20 | 中国水电顾问集团成都勘测设计研究院 | Method for achieving linkage between two-dimensional map and three-dimensional map on Web page |
CN104833360A (en) * | 2014-02-08 | 2015-08-12 | 无锡维森智能传感技术有限公司 | Method for transforming two-dimensional coordinates into three-dimensional coordinates |
CN105719334A (en) * | 2015-10-15 | 2016-06-29 | 哈尔滨安天科技股份有限公司 | Three-dimensional sphere drafting method and system |
CN105701828A (en) * | 2016-01-14 | 2016-06-22 | 广州视睿电子科技有限公司 | Image processing method and device |
CN105825551A (en) * | 2016-03-11 | 2016-08-03 | 广州视睿电子科技有限公司 | Three-dimensional label implementation method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108765299A (en) * | 2018-04-26 | 2018-11-06 | 广州视源电子科技股份有限公司 | Three-dimensional graphic marking system and method |
CN108765299B (en) * | 2018-04-26 | 2022-08-16 | 广州视源电子科技股份有限公司 | Three-dimensional graphic marking system and method |
CN112347589A (en) * | 2020-11-26 | 2021-02-09 | 南京玻璃纤维研究设计院有限公司 | Space geometry unfolding method and device and electronic equipment |
CN113157741A (en) * | 2021-04-26 | 2021-07-23 | 上海淇馥信息技术有限公司 | Service state visualization method and device based on dimension conversion and electronic equipment |
CN113157741B (en) * | 2021-04-26 | 2023-04-07 | 上海淇馥信息技术有限公司 | Service state visualization method and device based on dimension conversion and electronic equipment |
CN113342914A (en) * | 2021-06-17 | 2021-09-03 | 重庆大学 | Method for acquiring and automatically labeling data set for globe region detection |
Also Published As
Publication number | Publication date |
---|---|
CN107451235B (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107451235A (en) | Display method and device of space dimension mark | |
JP7337104B2 (en) | Model animation multi-plane interaction method, apparatus, device and storage medium by augmented reality | |
Rapprich et al. | Application of modern technologies in popularization of the Czech volcanic geoheritage | |
CN108268186B (en) | Selection points on an electroanatomical map | |
CN107861682A (en) | The control method for movement and device of virtual objects | |
Kouřil et al. | Labels on levels: Labeling of multi-scale multi-instance and crowded 3D biological environments | |
CN108038890A (en) | Vector diagram demonstration method, device, equipment and computer storage medium | |
CN110060296A (en) | Estimate method, electronic equipment and the method and apparatus for showing virtual objects of posture | |
Infed et al. | Combined visual/haptic rendering modes for scientific visualization | |
CN105243268B (en) | A kind of map localization method, device and user terminal | |
Ang et al. | A study on the effect of the real-world backgrounds using colour blending technique on optical see-through AR user interface design | |
CN104820584B (en) | Construction method and system of 3D gesture interface for hierarchical information natural control | |
CN105427371B (en) | The method that the elemental areas such as Drawing Object are shown is kept in a kind of three-dimensional perspective projection scene | |
Kuhn et al. | Trajectory Density Projection for Vector Field Visualization. | |
Kraak | Visual exploration of virtual environments | |
Chu et al. | Mobile navigation services with augmented reality | |
CN106408654A (en) | Three-dimensional map creation method and system | |
Becher et al. | Projection grid cues: an efficient way to perceive the depths of underground objects in augmented reality | |
Al Hashimi et al. | Developing a web based interactive 3D virtual environment for novel skin measurement instruments | |
Chen et al. | Research on the augmented reality system without identification markers for home exhibition | |
Sivalaya et al. | Implementation of augmented reality application using unity engine deprived of prefab | |
CN118280229B (en) | Two-dimensional flow field visualization method of self-adaptive LED spherical display device | |
Cardoso | Accessible tangible user interfaces in extended reality experiences for cultural heritage | |
Meyer-Spradow et al. | Illustrating dynamics of time-varying volume datasets in static images | |
CN106095773A (en) | Depth map top sampling method based on the shortest associating path |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |