CN107451235B - Display method and device of space dimension mark - Google Patents

Display method and device of space dimension mark Download PDF

Info

Publication number
CN107451235B
CN107451235B CN201710613091.XA CN201710613091A CN107451235B CN 107451235 B CN107451235 B CN 107451235B CN 201710613091 A CN201710613091 A CN 201710613091A CN 107451235 B CN107451235 B CN 107451235B
Authority
CN
China
Prior art keywords
mark
dimension
dimensional
switched
display diagram
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
Application number
CN201710613091.XA
Other languages
Chinese (zh)
Other versions
CN107451235A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710613091.XA priority Critical patent/CN107451235B/en
Publication of CN107451235A publication Critical patent/CN107451235A/en
Application granted granted Critical
Publication of CN107451235B publication Critical patent/CN107451235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical 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

Display method and device of space dimension mark
Technical Field
The present invention relates to information processing technologies, and in particular, to a method and an apparatus for displaying a spatial dimension mark.
Background
For a product needing to mutually convert coordinates in a three-dimensional sphere and a corresponding plane (two-dimensional) area, such as a virtual globe, when a user uses the virtual globe, the label needs to be converted on a two-dimensional display diagram and a three-dimensional display diagram so as to accurately position and display additional information during different displays; and the traditional technology only can carry out the mode of adding labels on two-dimensional and three-dimensional display diagrams or manually modifying the two sides.
In the implementation process, the inventor finds that at least the following problems exist in the conventional technology: the traditional technology adds or modifies the mark on the display diagrams with different spatial dimensions separately, so that the mutual conversion and synchronous change of the marks with different spatial dimensions can not be realized during the switching display of the display diagrams with different spatial dimensions, and the operation is complicated.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for displaying a space dimension mark, aiming at the problem that mutual conversion and synchronous change of different space dimension marks cannot be realized when switching and displaying different space dimension display diagrams.
In order to achieve the above object, in one aspect, an embodiment of the present invention provides a method for displaying a spatial dimension mark, including 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.
On one hand, the embodiment of the invention also provides a display device of the space dimension mark, which comprises:
the dimension type obtaining unit is used for obtaining the space dimension type of the display diagram to be switched;
the acquisition point coordinate unit is used for acquiring the current dimensional point coordinate of each target point in the display diagram to be switched according to the space dimensional type of the display diagram to be switched;
the generating and marking unit is used for obtaining the marking coordinates of the target point according to the current dimension point coordinates; acquiring mark content, and generating a current dimension mark of a target point according to the mark content and the mark coordinates;
the dimension conversion unit is used for 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 the display unit is used for displaying the corresponding target point on the switched display graph according to the converted dimension mark.
In another aspect, an embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for displaying the spatial dimension mark when executing the program.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (instructions) is stored, where the program (instructions), when executed by a processor, implement the steps of the above method for displaying a spatial dimension mark.
The invention has the following advantages and beneficial effects:
according to the display method and the display device of the space dimension marks, the current dimension marks are converted according to a preset coordinate conversion rule and the space dimension types of the display pictures after switching, and the converted dimension marks are obtained; according to the converted dimension marks, displaying corresponding target points on the switched display graph, so that the problem of mutual conversion between the three-dimensional marks on the three-dimensional sphere and the two-dimensional marks of the two-dimensional expansion graph can be solved, and synchronous change of the marks with different spatial dimensions can be realized; the invention can greatly simplify the operation of the user, and the user can automatically convert and display the space dimension marks in the display diagram only by adding or modifying the marking content once.
Drawings
FIG. 1 is a schematic flow chart of an embodiment 1 of a method for displaying a spatial dimension mark according to the present invention;
FIG. 2 is a schematic flow chart of an embodiment 2 of a method for displaying a spatial dimension mark according to the present invention;
FIG. 3 is a schematic diagram illustrating the labeling of target points in a three-dimensional spherical image to be transformed according to the method for displaying a spatial dimension marker of the present invention;
FIG. 4 is a schematic diagram illustrating the labeling of target points in a two-dimensional unfolded image after transformation in the method for displaying a spatial dimension label according to the present invention;
FIG. 5 is a schematic diagram of the marking of target points in a two-dimensional unfolded graph to be transformed in the method for displaying a spatial dimension marker of the present invention;
FIG. 6 is a schematic diagram illustrating the labeling of target points in a transformed three-dimensional spherical image according to the method for displaying a spatial dimension marker of the present invention;
fig. 7 is a schematic structural diagram of a display device 1 of the space dimension mark of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The invention discloses an application scene description and related technical term explanation of a display method and a device of a space dimension mark, which are characterized in that:
the traditional technology can not realize the mutual conversion and synchronous change of the space position marks, and has complex operation; the method and the device can facilitate the operation of the user, and the user can automatically convert and display the space dimension marks in the display diagram only by adding or modifying the marking content once. For example, a user adds a three-dimensional mark on the three-dimensional earth, and when the user switches to the two-dimensional open earth's expanded view, the three-dimensional added mark should be automatically switched over and displayed to the correct position and the correct content. And vice versa.
Preferably, the present invention can be applied to products requiring the mutual transformation of coordinates between a three-dimensional sphere and a corresponding plane (two-dimensional) area, such as a virtual globe; spatial location markers in embodiments of the present invention may include three-dimensional markers and two-dimensional markers; the present invention defines that the mark comprises two characteristics: 1. indicating a position; 2. indicating the content.
The three-dimensional mark may be a mark added with three dimensions in a three-dimensional object or scene, that is, a three-dimensional label in a label style or a bubble style, and records information that needs to be added. The three-dimensional mark is equivalent to a label, and any form of content such as characters, pictures, videos and the like can be added.
A two-dimensional marker may refer to a UI (User Interface) tag added to a two-dimensional scene to indicate the location of the marker and additional information. The two-dimensional tags correspond to labels to which any form of content, such as text, pictures, video, etc., can be added.
Embodiment 1 of the display method of the spatial dimension mark of the present invention:
in order to solve the problem that mutual conversion and synchronous change of different spatial dimension marks cannot be realized when switching display of different spatial dimension display diagrams is performed, the present invention provides a display method embodiment 1 of spatial dimension marks, and fig. 1 is a flowchart of the display method embodiment 1 of spatial dimension marks of the present invention, and as shown in fig. 1, the method may include the following steps:
step S110: acquiring the space dimension type of a display diagram to be switched;
specifically, the display diagram to be switched, i.e. the currently displayed display diagram, may be a two-dimensional expansion diagram or a three-dimensional sphere diagram; the spatial dimension type, that is, the spatial dimension type of the currently displayed presentation graph, may correspond to two dimensions or three dimensions. Furthermore, the space dimension state where the display diagram to be switched is located at present can be recorded through the variable Type inside the program, and then the space dimension Type of the display diagram to be switched is obtained.
Step S120: 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;
specifically, the target point is a point on the to-be-switched display diagram, and the user can mark content or write position information on the target point by clicking or touching the point with a mouse, for example, the user clicks a position to which the user wants to add a mark with the mouse, and a tag can be automatically generated and pointed to the position by the present invention, and the user fills in related content through the tag. The current dimension point coordinates of each target point, namely the point coordinates of the target point on the display diagram to be switched; when the display diagram to be switched is a three-dimensional sphere diagram, the current dimensional point coordinate of the target point is a three-dimensional point coordinate; when the display diagram to be switched is a two-dimensional unfolded diagram, the current dimensional point coordinate of the target point is a two-dimensional point coordinate;
step S130: 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;
specifically, the tag includes two characteristics: indicating the location and indicating the content. In each embodiment of the invention, a corresponding mark can be generated according to the point coordinate and the mark content input by the user; for example, a mark without content is generated from three-dimensional point coordinates, a position is indicated, coordinates (i.e., mark coordinates) are generated from the position, and the style of the coordinates and the like are independent of the coordinates, and the content is filled in by the user.
Step S140: 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;
specifically, according to the space dimension type of the switched display diagram, converting the mark coordinates in the current dimension marks into the mark coordinates of the converted dimension marks through a preset coordinate conversion rule; and the space dimension type of the coordinate points in the converted dimension marks is the same as that of the display graph after switching. The preset coordinate conversion rule can be realized by establishing a one-to-one correspondence relationship between two coordinate systems according to different space types of the coordinate systems before and after conversion.
Step S150: and displaying the corresponding target point on the switched display diagram according to the converted dimension mark.
Specifically, a corresponding label may be generated according to the point coordinates in the converted dimension mark and the mark content, and then the corresponding target point (which may be a plurality of target points) is displayed on the switched display diagram.
In a specific embodiment, the step of obtaining the mark content of the mark coordinate and generating the current dimension mark of the target point according to the mark content and the mark coordinate further includes the following steps:
respectively recording each current dimension mark in a preset data structure list corresponding to the display diagram to be switched;
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, wherein the step of converting the converted dimension mark comprises the following steps:
traversing a preset data structure list corresponding to the display graph to be switched to obtain each marked coordinate;
respectively carrying out coordinate conversion on each mark coordinate according to a preset coordinate conversion rule, and adding the converted mark coordinates into a preset data structure list corresponding to the switched display diagram to obtain each converted dimension mark;
according to the converted dimension marks, the step of displaying the corresponding target points on the switched display diagram comprises the following steps:
traversing a preset data structure list corresponding to the switched display graph, and acquiring each converted dimension mark;
and displaying the target points on the switched display diagram according to the converted dimension marks.
Specifically, the invention can realize the rapid acquisition of the marking data (such as marking coordinates and marking contents) in the spatial dimension marking conversion through the preset data structure list, can improve the accuracy and speed of the dimension marking coordinate conversion, and is convenient for the operation of a user.
In a specific embodiment, the preset data structure list is a hash list.
Specifically, the relevant functions of the preset data structure list can be realized through the hash list; preferably, other data structures may be used to implement the above-described functions, such as two list correspondence records.
The display method of the space dimension mark can solve the problem of mutual conversion between the three-dimensional mark on the three-dimensional sphere and the two-dimensional mark of the two-dimensional expansion map, and realize the synchronous change of the marks with different space dimensions; the invention can greatly simplify the operation of the user, and the user can realize the automatic conversion of the two-dimensional mark and the three-dimensional mark only by adding or modifying the marking content once (namely, in the process of selecting the target point on the display picture to be switched by a mouse or touch).
Embodiment 2 of the method for displaying a spatial dimension mark of the present invention:
based on the technical scheme of the display method embodiment 1 of the spatial dimension mark, meanwhile, in order to solve the problem that mutual conversion and synchronous change of different spatial dimension marks cannot be realized when switching display of different spatial dimension display diagrams is performed, the invention also provides a display method embodiment 2 of the spatial dimension mark, and compared with the technical scheme of the display method embodiment 1 of the spatial dimension mark, the embodiment 2 discusses in detail the process of realizing mutual conversion between a three-dimensional mark on a three-dimensional sphere and a two-dimensional mark of a two-dimensional expansion diagram based on a hash list; fig. 2 is a schematic flow chart of a method for displaying a spatial dimension mark according to embodiment 2 of the present invention.
On one hand, in the process of converting the three-dimensional mark on the three-dimensional sphere into the two-dimensional mark of the two-dimensional unfolded graph, the display graph to be converted is a three-dimensional sphere graph; the switched display diagram is a two-dimensional expansion diagram; marking the current dimension as a three-dimensional mark; the converted dimension mark is a two-dimensional mark;
in a specific embodiment, the step of obtaining the current dimensional point coordinates of each target point in the to-be-switched display drawing according to the spatial dimensional type of the to-be-switched display drawing includes:
acquiring a target point of the three-dimensional sphere image;
and mapping the target point into a three-dimensional coordinate system according to the hit test to obtain the three-dimensional point coordinate of the target point.
Specifically, if the current display is a three-dimensional sphere (i.e., the display to be switched is a three-dimensional sphere): from the mouse or the touched point (i.e., the target points), the nearest three-dimensional point coordinate P3 can be obtained by hit test, and a three-dimensional tag is generated from P3, and the tagged coordinate and content are recorded in the hash list L3.
It should be noted that, for the above-mentioned nearest three-dimensional point coordinate P3, due to the display diagram currently displayed on the screen, regardless of the three-dimensional or two-dimensional display, the two-dimensional pixel points are rendered substantially, for example, the display diagram to be switched is a three-dimensional sphere diagram, which is a pseudo three-dimensional sphere diagram drawn by using two dimensions. The target point obtained by mouse or touch is two-dimensional in nature; the invention maps two-dimensional points (target points) into a three-dimensional coordinate system rendered by two-dimensional pixel points, and can acquire the nearest three-dimensional coordinate point through related calculation (such as hit test).
The mark coordinate of the three-dimensional mark can refer to a space coordinate system (x, y, z), and the mark content of the three-dimensional mark can refer to content added by a user, and the data is recorded in a corresponding hash list.
In a specific embodiment, the step of converting the current dimension mark according to a preset coordinate conversion rule and a space dimension type of the switched display diagram to obtain a converted dimension mark comprises:
the step of converting the current dimension mark according to a preset coordinate conversion rule and the space dimension type of the switched display diagram comprises the following steps:
acquiring the area width and the area height of the two-dimensional expansion map;
constructing a three-dimensional vector according to the mark coordinates of the three-dimensional mark; obtaining an angle value of a rendering initial coordinate vector of the three-dimensional vector and the two-dimensional expansion map;
and obtaining the marking coordinates of the two-dimensional mark according to the angle value, the area width and the area height.
Specifically, when it is detected that the user clicks the switch button, the radius R of the three-dimensional sphere (i.e., the sphere of the three-dimensional sphere map), the width W of the two-dimensional map (i.e., the two-dimensional expansion map) region, and the height H of the two-dimensional map region may be acquired.
When the current type of the display graph is a three-dimensional sphere and needs to be switched to a two-dimensional map, traversing the Hash list L3, obtaining the coordinate P3 of each item (namely the list item in the Hash list), and constructing a three-dimensional vector Vw(P3.X, P3.Y, 0), the AND vector V (1, 0, 0) is calculated (becauseThe two-dimensional map starts from the angular value a1 of V (1, 0, 0) start rendering, i.e., the rendering start coordinate vector of the two-dimensional expansion map); calculating a ratio ScaleX of A1 to 360 degrees according to A1, namely the ScaleX is the ratio of x where the two-dimensional coordinates are located to W of the two-dimensional map area;
further, vector V is calculated according to P3h(P3.X, P3.Y, P3.Z), and vector Vxy(P3.X, P3.Y, 0) to calculate VhAnd VxyAngle a 2; according to the ratio ScaleY of A2 to 90 degrees, namely ScaleY is the ratio of the Y value of the two-dimensional coordinate to the two-dimensional map area H/2. If the Z value of P3 is greater than 0, then the Y value of the point is greater than H/2, and the calculated two-dimensional coordinates are: p2(scalex W, H/2-ScaleY H/2); if the Z value of P3 is less than 0, then the point Y value is greater than H/2, and the calculated two-dimensional coordinates are: p2(Scale X W, H/2+ Scale Y H/2). The calculated coordinates P2, and the corresponding tag content are added to the hash list L2. (see FIGS. 3 and 4)
It should be noted that, when the center point of the three-dimensional sphere is not located at (0, 0, 0), assuming the center point is C, it is only necessary to shift the vector by V (c.x, c.y, c.z).
FIG. 3 is a schematic diagram illustrating the labeling of target points in a three-dimensional spherical image to be transformed according to the method for displaying a spatial dimension marker of the present invention; FIG. 4 is a schematic diagram illustrating the labeling of target points in a two-dimensional unfolded image after transformation in the method for displaying a spatial dimension label according to the present invention; as shown in fig. 3 and 4, the converted hash list L2 is obtained according to the above steps, the list L2 is traversed, and a label is generated according to the point coordinate P2 in each item and the label content, so as to display each target point.
On the other hand, in the process of converting the two-dimensional marks of the two-dimensional unfolded drawing into the three-dimensional marks on the three-dimensional sphere, the to-be-converted display drawing is a two-dimensional unfolded drawing; the switched display diagram is a three-dimensional sphere diagram; marking the current dimension as a two-dimensional mark; marking the converted dimension as a three-dimensional mark;
specifically, if the currently displayed display diagram to be switched is a two-dimensional map (i.e., a two-dimensional expanded diagram), the added two-dimensional coordinates P2 are obtained according to a mouse or a touched point (i.e., each target point), a two-dimensional marker is generated according to P2, and the marked coordinates and content are recorded in the hash list L2. Preferably, a marked UI class may be generated and its location placed on P2.
In a specific embodiment, the step of converting the current dimension mark according to a preset coordinate conversion rule and a space dimension type of the switched display diagram includes:
acquiring the radius of the three-dimensional spherical image, and the area width and the area height of the two-dimensional unfolded image;
acquiring the angle between the marking coordinate of the three-dimensional mark and each coordinate axis according to the marking coordinate, the area width and the area height of the two-dimensional mark;
and obtaining the mark coordinates of the three-dimensional mark according to the angulation angle and the radius of the three-dimensional sphere graph.
Specifically, when it is detected that the user clicks the switch button, the radius R of the three-dimensional sphere, the width W of the two-dimensional map (i.e., two-dimensional expansion map) region, and the height H of the two-dimensional map region may be obtained.
Traversing the hash list L2, obtaining the coordinate P2 of each item, and calculating a ratio ScaleY ═ (P2.y-H/2)/(H/2), that is, ScaleY is a ratio of a three-dimensional coordinate to 90 degrees, so that an angle AZ ═ ScaleY ═ 90|, between the three-dimensional coordinate and the Z axis is obtained, and then Z ═ R × sin (AZ); the ratio ScaleX is calculated to be p2.x/W,
Figure BDA0001359984940000091
constructing a vector VT (TX, 0, Z), and calculating a vector VC after the rotation angle of the VT is scaleX 360 degrees by taking the vector (0, 0, 1) (Z axis); if P2.Y is greater than H/2, the three-dimensional coordinate obtained is P3(VC.X, VC.Y, -Z); if P2.Y is less than H/2, the three-dimensional coordinate P3(VC.X, VC.Y, Z) is obtained. The obtained coordinates P3 and the corresponding tag content are added to the hash list L3 (see fig. 5, 6).
Note that when the center point of the three-dimensional sphere is not (0, 0, 0), if the center is C, the correct coordinates can be obtained by simply adding the vector V (c.x, c.y, c.z) to the coordinates obtained in the above step.
FIG. 5 is a schematic diagram of the marking of target points in a two-dimensional unfolded graph to be transformed in the method for displaying a spatial dimension marker of the present invention; FIG. 6 is a schematic diagram illustrating the labeling of target points in a transformed three-dimensional spherical image according to the method for displaying a spatial dimension marker of the present invention; as shown in fig. 5 and 6, the list L3 is traversed, and a tag is generated according to the point coordinate P3 in each item and the tag content, so as to display each target point.
According to the embodiment of the display method of the space dimension mark, the current dimension mark is converted according to a preset coordinate conversion rule and the space dimension type of the display graph after switching, and the converted dimension mark is obtained; according to the converted dimension marks, displaying corresponding target points on the switched display graph, so that the problem of mutual conversion between the three-dimensional marks on the three-dimensional sphere and the two-dimensional marks of the two-dimensional expansion graph can be solved, and synchronous change of the marks with different spatial dimensions can be realized; the invention can greatly simplify the operation of the user, and the user can realize the automatic conversion of the two-dimensional mark and the three-dimensional mark only by adding or modifying the marking content once (namely, in the process of selecting the target point on the display picture to be switched by a mouse or touch).
Embodiment 1 of the display device of the spatial dimension mark of the present invention:
in order to solve the problem that the mutual conversion and synchronous change of different space dimension marks cannot be realized when the display diagrams with different space dimensions are switched and displayed, the invention provides an embodiment 1 of a display device of the space dimension marks; FIG. 7 is a schematic structural diagram of a display apparatus 1 of the present invention marked by spatial dimension; as shown in fig. 7, may include:
a dimension type obtaining unit 710, configured to obtain a spatial dimension type of the display diagram to be switched;
the obtaining point coordinate unit 720 is used for obtaining the current dimensional point coordinates of each target point in the display diagram to be switched according to the spatial dimensional type of the display diagram to be switched;
a generating marking unit 730, configured to obtain a marking coordinate of the 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;
the dimension conversion unit 740 is configured to convert the current dimension mark according to a preset coordinate conversion rule and a space dimension type of the switched display diagram to obtain a converted dimension mark;
and a display unit 750, configured to display the corresponding target point on the switched display diagram according to the converted dimension mark.
In a specific embodiment, the method may further include:
a recording unit 760, configured to record each current dimension mark in a preset data structure list corresponding to the to-be-switched display diagram; adding the converted mark coordinates into a preset data structure list corresponding to the switched display diagram to obtain converted dimension marks;
the dimension conversion unit 740 is used for traversing a preset data structure list corresponding to the display diagram to be switched to obtain each marked coordinate; respectively carrying out coordinate conversion on each mark coordinate according to a preset coordinate conversion rule to obtain a converted mark coordinate;
the display unit 750 is configured to traverse a preset data structure list corresponding to the switched display graph, and obtain each converted dimension mark; and displaying the target points on the switched display diagram according to the converted dimension marks.
It should be noted that each unit module in the display apparatus for displaying a spatial dimension mark in embodiment 1 of the present invention can correspondingly implement the method steps in each embodiment of the display method for displaying a spatial dimension mark, and details are not repeated here.
The display device of the space dimension mark converts the current dimension mark according to a preset coordinate conversion rule and the space dimension type of the display graph after switching to obtain the converted dimension mark; according to the converted dimension marks, displaying corresponding target points on the switched display graph, so that the problem of mutual conversion between the three-dimensional marks on the three-dimensional sphere and the two-dimensional marks of the two-dimensional expansion graph can be solved, and synchronous change of the marks with different spatial dimensions can be realized; the invention can greatly simplify the operation of the user, and the user can realize the automatic conversion of the two-dimensional mark and the three-dimensional mark only by adding or modifying the marking content once (namely, in the process of selecting the target point on the display picture to be switched by a mouse or touch).
On the other hand, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, where the processor implements the method steps in each embodiment of the above-mentioned method for displaying a spatial dimension mark when executing the program, and details are not repeated here.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (instructions) is stored, where the computer program (instructions) is executed by a processor to implement the method steps of the above-mentioned method for displaying a spatial dimension mark, and details are not repeated here.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features. Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware instructions related to a program, the program may be stored in a computer-readable storage medium, and when executed, the program includes the steps of the above method, and the storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A display method of a space dimension mark is characterized by comprising the following steps:
acquiring the space dimension type of a display diagram to be switched;
acquiring the 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 the marking coordinates of the target point according to the current dimension point coordinates;
acquiring mark content, and generating a current dimension mark of the 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;
displaying a corresponding target point on the switched display graph according to the converted dimension mark;
wherein, according to the converted dimension mark, the step of displaying the corresponding target point on the switched display diagram comprises:
and generating a corresponding label according to the point coordinates and the mark content in the converted dimension mark, and displaying a corresponding target point on the switched display diagram.
2. The method for displaying spatial dimension marks according to claim 1,
the step of obtaining the marking content of the marking coordinate and generating the current dimension mark of the target point according to the marking content and the marking coordinate further comprises the following steps:
recording each current dimension mark in a preset data structure list corresponding to the display diagram to be switched respectively;
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, wherein the step of converting the converted dimension mark comprises the following steps:
traversing a preset data structure list corresponding to the display diagram to be switched to obtain each mark coordinate;
according to a preset coordinate conversion rule, coordinate conversion is respectively carried out on the mark coordinates, the converted mark coordinates are added into a preset data structure list corresponding to the switched display diagram, and the converted dimension marks are obtained;
according to the converted dimension mark, the step of displaying the corresponding target point on the switched display diagram comprises the following steps:
traversing a preset data structure list corresponding to the switched display graph to obtain each converted dimension mark;
and displaying the target points on the switched display diagram according to the converted dimension marks.
3. The method for displaying the spatial dimension mark as claimed in claim 2, wherein the preset data structure list is a hash list.
4. The method for displaying the spatial dimension marks according to any one of claims 1 to 3, wherein the display diagram to be switched is a three-dimensional sphere diagram; the switched display diagram is a two-dimensional expansion diagram; the current dimension mark is a three-dimensional mark; the converted dimension mark is a two-dimensional mark;
the step of converting the current dimension mark according to a preset coordinate conversion rule and the space dimension type of the switched display diagram comprises the following steps:
acquiring the area width and the area height of the two-dimensional expansion map;
constructing a three-dimensional vector according to the mark coordinates of the three-dimensional mark; obtaining an angle value of the three-dimensional vector and a rendering initial coordinate vector of the two-dimensional expansion map;
and obtaining the marking coordinates of the two-dimensional mark according to the angle value, the area width and the area height.
5. The method for displaying spatial dimension marks according to claim 4,
the step of obtaining the 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 comprises the following steps:
acquiring a target point of the three-dimensional sphere image;
and mapping the target point into a three-dimensional coordinate system according to the hit test to obtain the three-dimensional point coordinate of the target point.
6. The method for displaying a spatial dimension mark according to any one of claims 1 to 3, wherein the display diagram to be switched is a two-dimensional development diagram; the switched display diagram is a three-dimensional sphere diagram; the current dimension is marked as a two-dimensional mark; the converted dimension mark is a three-dimensional mark;
the step of converting the current dimension mark according to a preset coordinate conversion rule and the space dimension type of the switched display diagram comprises the following steps:
acquiring the radius of the three-dimensional spherical image, and the area width and the area height of the two-dimensional unfolded image;
acquiring the angle between the marking coordinate of the three-dimensional mark and each coordinate axis according to the marking coordinate of the two-dimensional mark, the area width and the area height;
and obtaining the mark coordinates of the three-dimensional mark according to the angulation angle and the radius of the three-dimensional sphere graph.
7. A display device of spatial dimension marks, comprising:
the dimension type obtaining unit is used for obtaining the space dimension type of the display diagram to be switched;
the acquisition point coordinate unit is used for acquiring the current dimensional point coordinate of each target point in the display diagram to be switched according to the space dimensional type of the display diagram to be switched;
a generating marking unit, configured to obtain a marking coordinate of the target point according to the current dimension point coordinate; acquiring mark content, and generating a current dimension mark of the target point according to the mark content and the mark coordinates;
the dimension conversion unit is used for 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;
the display unit is used for displaying the corresponding target point on the switched display graph according to the converted dimension mark;
the display unit is configured to generate a corresponding label according to the point coordinates and the mark content in the converted dimension mark, and display a corresponding target point on the switched display diagram.
8. The display apparatus of claim 7, further comprising
The recording unit is used for respectively recording each current dimension mark in a preset data structure list corresponding to the display diagram to be switched; adding the converted mark coordinates into a preset data structure list corresponding to the switched display diagram to obtain each converted dimension mark;
the dimension conversion unit is used for traversing a preset data structure list corresponding to the display diagram to be switched to obtain each mark coordinate; according to a preset coordinate conversion rule, respectively carrying out coordinate conversion on each mark coordinate to obtain a converted mark coordinate;
the display unit is used for traversing a preset data structure list corresponding to the switched display graph and acquiring each converted dimension mark; and displaying the target points on the switched display diagram according to the converted dimension marks.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-6 are implemented when the program is executed by the processor.
10. A computer-readable storage medium, on which a computer program (instructions) is stored, characterized in that the program (instructions), when executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201710613091.XA 2017-07-25 2017-07-25 Display method and device of space dimension mark Active CN107451235B (en)

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 CN107451235A (en) 2017-12-08
CN107451235B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN113157741B (en) * 2021-04-26 2023-04-07 上海淇馥信息技术有限公司 Service state visualization method and device based on dimension conversion and electronic equipment
CN113342914B (en) * 2021-06-17 2023-04-25 重庆大学 Data set acquisition and automatic labeling method for detecting terrestrial globe area

Citations (6)

* Cited by examiner, † Cited by third party
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 tag realization method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
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 tag realization method and apparatus

Also Published As

Publication number Publication date
CN107451235A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107451235B (en) Display method and device of space dimension mark
JP5724544B2 (en) Image processing apparatus, image processing method, and program
US9304651B2 (en) Method of real-time incremental zooming
JP7337104B2 (en) Model animation multi-plane interaction method, apparatus, device and storage medium by augmented reality
EP2812770B1 (en) Image processing device, and computer program product
US10521468B2 (en) Animated seek preview for panoramic videos
EP2814000B1 (en) Image processing apparatus, image processing method, and program
JP5592011B2 (en) Multi-scale 3D orientation
US11893702B2 (en) Virtual object processing method and apparatus, and storage medium and electronic device
US20070064018A1 (en) Detail-in-context lenses for online maps
KR20220035380A (en) System and method for augmented reality scenes
Sandor et al. Egocentric space-distorting visualizations for rapid environment exploration in mobile mixed reality
US9213422B2 (en) Method of automatically moving a cursor within a map viewport and a device incorporating the method
JP7032451B2 (en) Dynamically changing the visual properties of indicators on digital maps
US20050264894A1 (en) Graphical user interfaces and occlusion prevention for fisheye lenses with line segment foci
Tatzgern et al. Exploring real world points of interest: Design and evaluation of object-centric exploration techniques for augmented reality
KR20120054901A (en) Apparatus and method for providing augmented reality user interface
CN107329671B (en) Model display method and device
CN112991556B (en) AR data display method and device, electronic equipment and storage medium
US8570329B1 (en) Subtle camera motions to indicate imagery type in a mapping system
Al Rabbaa et al. MRsive: An augmented reality tool for enhancing wayfinding and engagement with art in museums
CN109587031A (en) Data processing method
Trapp et al. Strategies for visualising 3D points-of-interest on mobile devices
CN104820584B (en) Construction method and system of 3D gesture interface for hierarchical information natural control
CN115115812A (en) Virtual scene display method and device and storage medium

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