WO2015058595A1 - 拓扑图中图形的放大方法、装置与计算机存储介质 - Google Patents

拓扑图中图形的放大方法、装置与计算机存储介质 Download PDF

Info

Publication number
WO2015058595A1
WO2015058595A1 PCT/CN2014/086313 CN2014086313W WO2015058595A1 WO 2015058595 A1 WO2015058595 A1 WO 2015058595A1 CN 2014086313 W CN2014086313 W CN 2014086313W WO 2015058595 A1 WO2015058595 A1 WO 2015058595A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic object
graphic
enlarged
network element
enlarged area
Prior art date
Application number
PCT/CN2014/086313
Other languages
English (en)
French (fr)
Inventor
张靖波
刘成军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP14855753.1A priority Critical patent/EP3062247B1/en
Publication of WO2015058595A1 publication Critical patent/WO2015058595A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Definitions

  • the invention relates to a zooming technology of a topology diagram, in particular to a method, a device and a computer storage medium for amplifying a graphic in a topology diagram.
  • the network topology diagram graphically shows the connection relationship between network devices, so that network maintenance personnel can clearly see the device distribution and device status information.
  • the maintenance personnel can view the local network topology of the topology map by using a magnifying glass configured for the topology map.
  • This viewing mode is suitable for a network with a simple topology, and for the topology.
  • some of the network element devices displayed in the same magnifying glass often have a device stack display situation, which in turn causes the device to be difficult to be distinguished, device icons, tags, alarms, and operating states. Information is not easy to view.
  • the conventional magnifying glass enlarges the graphic objects such as the network element device and the link included in the local topology map. Although most of the time, the position distribution of the network element can be discerned, but sometimes the enlarged graphic display content will be displayed. There are varying degrees of distortion.
  • an embodiment of the present invention provides a method, a device, and a computer storage medium for amplifying a graphic in a topology diagram, which can avoid distortion of the displayed content and display of the device stack, and ensure the topology map. A clear display of the enlarged graphic in the middle.
  • An embodiment of the present invention provides a method for amplifying a graphic in a topology diagram, where the method includes:
  • An enlarged reference point is determined in the enlarged area, a distance of the graphic object in the enlarged area from the reference point is enlarged, and a graphic object in the enlarged enlarged area is displayed.
  • the method further includes:
  • the method before the determining the graphic object in the enlarged area, the method further includes:
  • the determining the graphic objects in the enlarged area includes:
  • the same graphic object and the graphic object different from the previous time are determined as the graphic object in the enlarged area at the current time.
  • the determining the graphic object in the enlarged area includes:
  • a full or partial icon of the network element device in the enlarged area and/or a full or partial icon of the link between the network element devices, and/or an icon corresponding to the network element device attribute information, and/or An icon corresponding to the link attribute information between the network element devices is used as a graphic object in the enlarged area.
  • the embodiment of the present invention further provides a device for amplifying a graphic in a topology diagram, the device comprising: a first determining unit, a second determining unit, an amplifying unit, and a display unit; wherein
  • the first determining unit is configured to determine an enlarged area of a current moment of the topology map
  • the second determining unit is configured to determine a graphic object in the enlarged area
  • the third determining unit is configured to determine an enlarged reference point in the enlarged area
  • the amplifying unit is configured to enlarge a distance of the graphic object in the enlarged area from the reference point;
  • the display unit is configured to display a graphic object in the enlarged enlarged area.
  • the device further includes:
  • the storage unit is configured to store the graphic object in the enlarged area at the current time.
  • the device further includes:
  • the comparing unit is configured to compare whether the graphic object of the enlarged area at the current time and the stored graphic object of the previous time have different graphic objects; when the comparison is that there are different graphic objects, triggering the second determining unit;
  • the second determining unit is configured to determine the same graphic object and the graphic object different from the previous time as the graphic object in the enlarged area at the current time.
  • the second determining unit is configured to: complete or partially icon of the network element device in the enlarged area, and/or a full or partial icon of the link between the network element devices, and/or An icon corresponding to the attribute information of the network element device and/or an icon corresponding to the link attribute information between the network element devices is used as a graphic object in the enlarged area.
  • the method and apparatus for amplifying a graphic in a topology diagram provided by the embodiment of the present invention, and the computer storage medium, the method includes: determining an enlarged area of a current time of the topology map; determining a graphic object in the enlarged area; and in the enlarged area
  • the enlargement reference point is determined, the distance of the graphic object in the enlarged area from the reference point is enlarged, and the enlarged graphic object in the enlarged area is displayed.
  • FIG. 1 is a schematic flowchart of a method for enlarging a graphic in a topology diagram according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a specific implementation process of a method for enlarging a graphic in a topology diagram according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for amplifying a graphic in a topology diagram according to an embodiment of the present invention.
  • the embodiment of the invention describes a method for amplifying a graphic in a topology diagram. As shown in FIG. 1 , the method includes:
  • Step 11 Determine an enlarged area of the current time of the topology map
  • Embodiments of the present invention are implemented based on a topology map having a particular scaling ratio.
  • the network management system may obtain a click operation on the current area, and use the current area as a topology map.
  • the enlarged area of the current time in the middle; here, the enlarged area is referred to as the visible area of the magnifying glass, that is, the area where the magnifying glass is required to be enlarged.
  • Step 12 Determine a graphic object in the enlarged area
  • the graphic object includes: a complete icon of the network element device in the enlarged area or a partial icon thereof, and/or an icon of a complete icon of a link between the network element devices or a portion thereof, and/or the An icon corresponding to the network element device attribute information, and/or an icon corresponding to the link attribute information between the network element devices; wherein the attribute information includes: a label, an alarm, an operation status, and the like of the network element device;
  • the icons corresponding to the attribute information include: a label icon, an alarm icon, and an operation status icon.
  • the network element device that appears in the visible area is called the first type of network element device; because the network element device is usually connected to both ends of the link, there is a link appearing in the visible area and the chain The network element device at both ends of the road appears outside the visible area.
  • the network element device is called the second network element device.
  • Determining the graphic object of the first type of network element device includes: using the icon, label, alarm, running status, and the like of the network element device as a graphic object of the network element device;
  • the shape object is a complete graphic object of the network element device;
  • Determining the graphic object of the second network element device includes: using the icon of the network element device as a graphic object of the network element device; and saying that the graphic object of the network element device is a reduced graphic object of the network element device;
  • Determining the graphical object of the link appearing in the visible area includes: icon, label, alarm, running status, etc. of the link as a graphic object of the network element device. There are no complete graphical objects and reduced graphical objects for the graphical objects of the link.
  • the graphic object of the second network element device is not displayed in an enlarged manner, and the purpose of the determination is to conveniently determine the position and orientation of the link connected thereto.
  • this step is equivalent to drawing a complete graphic object to the first type of network element device appearing in the visible area, thereby facilitating maintenance personnel to view the information of the network element device;
  • the second network element device outside the visible area performs the drawing of the reduced graphic object, thereby conveniently determining the position and orientation of the link; thus, the network management system can improve the drawing speed of the graphic object in the enlarged area and reduce the drawing process.
  • Step 13 Determine an enlarged reference point in the enlarged area, enlarge a distance of the graphic object in the enlarged area from the reference point, and display the enlarged graphic object in the enlarged area.
  • the magnifying glass in the topography is made into a circle
  • the enlarged area enlarged by the magnifying glass is also circular
  • the center point of the enlarged area that is, the center of the enlarged area is the enlarged reference point of the enlarged area
  • a coordinate system is established, in which the lateral distance and the longitudinal distance of each graphic object in the current time enlarged area with respect to the reference point are adjusted according to the zoom ratio of the magnifying glass.
  • the graphic object of the network element device D such as the icon of the network element device D
  • the graphic object of the network element device D is included in the current zoom-in area;
  • the horizontal distance between the icon of the network element device D and the reference point is a
  • the longitudinal distance is b (a, b are positive integers)
  • the zoom ratio of the magnifying glass is C (C is a positive integer)
  • the enlarged distance of the icon of the network element device D from the reference point is Ca
  • the longitudinal distance is Cb.
  • the adjustment of the horizontal and vertical distances of each of the graphic objects in the visible area from the reference point is equivalent to a magnification of C times between the graphic objects in the visible area, thus avoiding The stack display of the network element device; at the same time, the embodiment of the present invention can achieve clear display of the content of the enlarged area by adjusting the scaling parameter of the magnifying glass.
  • the embodiment of the present invention is also applicable to a shape in which the magnifying glass has a rectangular shape or an elliptical shape.
  • the position of the center point of the enlarged area does not appear the graphic object of the network element device and the object of the link; in addition, the enlarged reference point may be not only the center point of the enlarged area, but also other objects having no graphic object in the enlarged area. any position.
  • the method further includes:
  • the method of the embodiment of the present invention further includes:
  • the new network element device that appears in the visible area of the current time is compared with the graphic object that appears in the enlarged area at the previous moment. If the new network element device is stored in the previous time, The reduced graphic object is deleted, and the label, alarm, running status, and the like of the new network element device are determined together with the icon of the new network element device as the current time for the new network element device.
  • a complete graphical object; for the new link that appears in the visible area at the current time, the icon, label, alarm, running status, etc. of the link are taken as the complete graphical object of the link at the current time.
  • the complete graphic object of the network element device is deleted, and only the network element is deleted.
  • the icon of the device is used as a reduced graphic object for the network element device; if the previous moment is not in the visible area and the current time is in the visible area, the reduced graphic object about the network element device at the previous moment is deleted, and the network element is deleted.
  • the label, alarm, running status, and the like of the device together with the icon of the network element device serve as a complete graphical object for the network element device.
  • the network element device that does not appear in the visible area at the current moment, and the network element device that appears in the visible area at the previous moment deletes the complete graphic object about the network element device at the previous moment of storage; if the current time is visible If there is a link connecting the network element device, the icon of the network element device needs to be a reduced graphic object about the network element device; and the link-related graphic object appears in the visible area of the previous time.
  • the graphic object related to the link does not appear in the visible area at the current time, the graphic object stored on the link stored at the previous time is deleted, and any network element device located at both ends of the link connected by the link is deleted. If there is a reduced graphic object associated with the network element device at the previous moment, the reduced graphic object is deleted.
  • Figure 2 (a) is a network topology diagram
  • Figure 2 (b) is a partial display of the magnifying glass to the network topology diagram at time 1
  • Figure 2 (c) is a partial display of the magnifying glass to the network topology diagram at time 2;
  • Step 301 At time 1, when the click on the current area (area A) is acquired, it is determined that the area A is the current enlarged area of the magnifying glass, as shown in FIG. 2(b);
  • the first type of network element device that appears in area A includes an Ethernet switch and a local backup. Storage; the emerging link includes link 0, link 1, link 2, and link 3; the second type of network element device that appears includes server 1, server 2, and switch.
  • Step 302 Determine a graphic object in the area A
  • the icon, label, alarm, and running status of the Ethernet switch are used as graphic objects for the Ethernet switch;
  • the icon, label, alarm, and running status of the local backup storage are used as graphic objects for local backup storage;
  • the icon, label, alarm, and running status of each of 0 to 3 are the graphic objects of the corresponding link;
  • the icon of the server 1 is used as the graphic object of the server 1;
  • the icon of the server 2 is used as the graphic object of the server 2;
  • a graphical object that acts as a switch due to the limitation of space, the icons of Figure 2(b) representing the alarm and the running status are not shown.
  • Step 303 Select a center point of the area A as an enlarged reference point, and adjust a distance of the graphic object relative to the reference point according to a zoom ratio of the magnifying glass.
  • the zoom ratio is enlarged for the horizontal and vertical distances of the graphic object related to the Ethernet switch and the local backup storage with respect to the reference point;
  • the icon of the meta device is also magnified by the magnifying glass by a magnification ratio, and the icons of the link 0 to the link 3 connected between the network element devices are also enlarged by a zoom ratio.
  • the absolute distance between the network element devices is enlarged, so that when the network element device in the area A is viewed with a magnifying glass, the network element device is not stacked, and the icon of the network element device is also enlarged to avoid content distortion display.
  • Step 304 Store the graphic object in the area A of the time 1.
  • the graphic objects stored at time 1 include: graphic objects regarding Ethernet switches, local backup storage, link 0, link 1, link 2, and link 3; graphical objects of server 1, server 2, and switch .
  • Step 305 At time 2, when the click on the current area (area B) is acquired, the area B is determined to be the current enlarged area of the magnifying glass, as shown in FIG. 2(c);
  • the first type of network element device that appears in the area B includes an Ethernet switch and a switch; the emerging link includes the link 2, the link 3, the link 4, the link 5, and the link 6;
  • the network element device includes a server 1, a server 2, and a storage switch.
  • Step 306 Comparing the graphic objects related to the network element device and the link appearing in the area B of the time 2 with the image objects related to the network element device and the link appearing in the area A of the time 1 are compared, and the comparison is different. Step 307 is performed; otherwise, the graphic object stored at time 1 is taken as the graphic object of area B at time 2, and step 308 is continued;
  • the switch is a new network element device appearing in area B; link 4, link 5 and link 6 are new links appearing in area B; local backup storage is present in area A and area B The network element device does not appear.
  • Step 307 The same graphic object related to the network element device and the link is used together with different graphic objects as the graphic object in the area B at time 2;
  • the graphic object related to the link 0, 1 and the graphic object stored in the local backup stored at time 1 are deleted; the Ethernet switch graphic object stored at time 1 is reserved as the graphic object of the Ethernet switch at time 2;
  • the graphic object of the link 2 stored at time 1 is the graphic object of the link 2 at time 2;
  • the graphic object of the link 3 stored at time 1 is reserved as the graphic object of the link 3 at time 2;
  • the retention time 1 The graphic object of the server 1 stored as the graphic object of the server 1 at time 2;
  • the graphic object of the server 2 stored at time 1 is retained as the graphic object of the server 2 at time 2;
  • the icon, label, alarm, and running status of the switch are used as the graphical objects of the switch at time 2; the respective icons, labels, alarms, and running states of links 4 to 6 are used as graphic objects of the corresponding link;
  • the icon of the storage switch acts as a graphical object about the switch;
  • Step 308 Select the center point of the area B as a reference point, and adjust the distance of the graphic object in the area B relative to the reference point according to the zoom ratio of the magnifying glass.
  • a coordinate system is established, in which the lateral distance and the longitudinal distance of the graphic object of the enlarged region B from the origin are obtained; the network element device in the region B and Based on the connection relationship between the links and the relative position of the links, according to the zoom ratio of the magnifying glass, the horizontal and vertical distances of the graphic objects related to the Ethernet switch and the switch are zoomed by a magnification ratio.
  • the icons of the Ethernet switches and switches are also magnified by the magnifying glass by a magnification ratio, and the icons of the links 2 to 6 connected between the network element devices are also enlarged by a zoom ratio.
  • Step 309 Store the graphic object of the area B of the time 2 so as to be compared with the graphic object of the visible area at the subsequent time.
  • the network element device and the link appearing in the area A of the comparison time 1 and the area B of the time 2 are different, that is, the enlarged area changes when the time is 1, 2; when the time is 1, 2 is enlarged.
  • the graphic object stored at time 1 is used as the graphic object of area B at time 2; At time 2, the distance of the graphic object stored at time 1 from the enlarged reference point of the region B is enlarged and displayed according to the zoom ratio of the magnifying glass.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute a method for amplifying a graphic in the foregoing topology diagram.
  • the embodiment of the present invention further describes a device for amplifying a graphic in a topology map, as shown in FIG. 4, the device includes: a first determining unit 41, a second unit 42, and a a third determining unit 43, an amplifying unit 44, and a display unit 45; wherein
  • the first determining unit 41 is configured to determine an enlarged area of a current moment of the topology map
  • the second determining unit 42 is configured to determine a graphic object in the enlarged area
  • the third determining unit 43 is configured to determine an enlarged reference point in the enlarged area
  • the amplifying unit 44 is configured to enlarge and display the distance of the graphic object from the reference point.
  • the display unit 45 is configured to display a graphic object in the enlarged enlarged area.
  • the apparatus further includes a storage unit 46 configured to store the graphical object within the zoomed in area at the current time.
  • the second determining unit 42 is configured to: complete or partially icon of the network element device in the enlarged area, and/or a full or partial icon of the link between the network element devices, and/or the The icon corresponding to the network element attribute information and/or the icon corresponding to the link attribute information between the network element devices is used as the graphic object in the enlarged area.
  • the maintenance personnel will perform at least one partial graph view on the topology map.
  • the zoom region determined by the first determining unit 41 is different each time, thereby making the second determination.
  • the graphic objects in the enlarged area determined by the unit 42 are also different; therefore, after each time the enlarged graphic object is viewed, the graphic object is stored by the storage unit 46, and the storage is performed under the adjacent viewing times.
  • the graphic objects in the enlarged area under the adjacent viewing times may be the same or different.
  • the device further includes: a comparison unit 47 configured to compare whether the graphic object of the enlarged area at the current time and the stored graphic object of the previous time have different graphic objects; when there is a different graphic object , triggering the second determining unit 42;
  • the second determining unit 42 is configured to determine the same graphic object and the graphic object different from the previous moment as the graphic object in the enlarged area;
  • the third determining unit 43 is configured to determine that a center point of the enlarged area is an enlarged area of the enlarged area;
  • the amplifying unit 44 is further configured to establish a point with the determined enlarged reference point as an origin a coordinate system that adjusts a lateral and longitudinal distance of the graphic object in the enlarged area relative to the reference point according to the set zoom ratio;
  • the display unit 45 is configured to display a graphic object in the enlarged enlarged area.
  • the second determining unit 42 deletes the reduced graphic object, if the new network element device that appears in the visible area of the current time, stores the reduced graphic object about the new network element device at a previous time, and Determining the label, alarm, running status, and the like of the new network element device together with the icon of the new network element device as a complete graphical object of the new network element device at the current moment;
  • the second determining unit 42 uses the icon, the label, the alarm, the running status, and the like of the link as the complete graphical object of the link at the current time.
  • the complete graphic object of the network element device is deleted, and the second determining unit is deleted. 42: The icon of the network element device is only used as a reduced graphic object for the network element device; if the previous moment is not in the visible area and the current time is in the visible area, the second determining unit 42 deletes the previous moment.
  • the reduced graphic object of the network element device the label, alarm, running status, and the like of the network element device are taken together with the icon of the network element device as a complete graphic object about the network element device.
  • the second determining unit 42 deletes the complete graphic object about the network element device at the previous moment of the storage. If the visible area of the current time has a link connected to the network element device, the second determining unit 42 uses the icon of the network element device as a reduced graphic object for the network element device; When the view-related graphic object appears in the viewport and the graphic object related to the link does not appear in the visible area at the current time, the second determining unit 42 deletes the graphic object stored on the link at the previous time. If the network element device at both ends of the link connected by the link has a reduced graphics object associated with the network element device at a previous moment, the reduced graphics object is deleted.
  • FIG. 2(a) is a network topology diagram.
  • the first determining unit 41 acquires a click on the current area (area A)
  • the area A is determined to be the current enlarged area of the magnifying glass, as shown in FIG. 2(b).
  • the first type of network element device that appears in the area A includes an Ethernet switch, local backup storage; the link that appears includes link 0, link 1, link 2, and link 3;
  • the second network element device includes a server 1, a server 2, and a switch; the first determining unit 41 triggers the second determining unit 42.
  • the second determining unit 42 uses the icon, the label, the alarm, and the running status of the Ethernet switch as a graphic object about the Ethernet switch; the icon, the label, the alarm, and the running status of the local backup storage are used as the graphic object for the local backup storage.
  • the icon, the label, the alarm, and the running status of the link 0 to the link 3 are used as the graphic objects of the corresponding link; the icon of the server 1 is used as the graphic object of the server 1; and the icon of the server 2 is used as the graphic object of the server 2;
  • the icon of the switch is used as a graphic object of the switch; after that, the second determining unit 42 notifies the third determining unit 43.
  • the third determining unit 43 selects the center point of the current zoomed area, that is, the center of the area A as an enlarged reference point; and triggers the amplifying unit 44;
  • the amplifying unit 44 uses the enlarged reference point as an origin to establish a coordinate system, and adjusts the horizontal and vertical distances of the graphic object of the A in the enlarged area with respect to the reference point according to the set zoom ratio; the display unit 45 displays the enlarged graphic Object.
  • the amplifying unit 44 respectively respectively refers to the graphic object related to the Ethernet switch and the local backup storage according to the scaling ratio.
  • the storage unit 46 stores the graphic objects at time 1 including: graphic objects related to the Ethernet switch, the local backup storage, the link 0, the link 1, the link 2, and the link 3, and the server 1, the server 2, and the switch Graphic object.
  • the determining area B is the current enlarged area of the magnifying glass, as shown in FIG. 2(c); wherein, the area B
  • a network element device includes an Ethernet switch and a switch; the emerging link includes a link 2, a link 3, a link 4, a link 5, and a link 6.
  • the second network element device includes a server 1, a server 2, and Storage switch.
  • the comparing unit 47 compares whether the graphic object about the network element device and the link appearing in the area B of the time 2 is different from the graphic object about the network element device and the link appearing in the area A of the time 1 When there is a difference, the second determining unit 42 is triggered; here, the comparing unit 47 can determine by comparison that the switch is a new network element device that appears in the area B; the link 4, the link 5, and the link 6 Is the new link that appears in area B; the local backup storage is the network element device that appears in area A and does not appear in area B.
  • the second determining unit 42 deletes the graphic object about the link 0, 1 stored at the time 1 and the graphic object stored in the local backup; the Ethernet switch graphic object stored at the time 1 is reserved as the time 2 for the Ethernet switch a graphic object; a graphic object of link 2 stored at time 1 is reserved as a graphic object of link 2 at time 2; a graphic object of link 3 stored at time 1 is reserved as a graphic object of link 2 at time 2; The graphic object of the server 1 stored at time 1 is reserved as the graphic object of the server 1 at time 2; the graphic object of the server 2 stored at time 1 is reserved as the graphic object of the server 2 at time 2;
  • the second determining unit 42 uses the icon, the label, the alarm, and the running status of the switch as the graphic object of the switch at time 2; and the respective icons, labels, alarms, and running states of the links 4 to 6 are used as corresponding chains.
  • the graphical object of the road; and the icon of the storage switch as a graphical object about the switch.
  • the third determining unit 43 selects a center point of the current enlarged area, that is, a center of the area B as an enlarged reference point; the amplifying unit 44 uses the enlarged reference point as an origin to establish a coordinate system, and adjusts the enlarged area according to the zoom ratio.
  • the zoom ratio of the magnifying glass based on the connection relationship and relative position between the network element device and the link in the area B, according to the zoom ratio of the magnifying glass, the horizontal direction of the graphic object with respect to the Ethernet switch and the switch is relative to the reference point. Enlarging the scaling ratio with the vertical distance; the icon of the Ethernet switch, the icon of the switch is also enlarged by the magnifying glass by the zoom ratio, and the icons of the links 2 to 6 connected between the network element devices are also The zoom ratio is magnified.
  • the storage unit 46 stores the graphic objects about the network element device and the link in the enlarged area of the time 2 to compare with the network element devices and the graphic objects of the link existing in the visible area at the subsequent time.
  • the first determining unit 41, the second determining unit 42, the third determining unit 43, the amplifying unit 44, and the display unit 45, the storage unit 46, and the comparing unit 47 may all be configured by a central processing unit (CPU, Central Processing). Unit, or digital signal processing (DSP), or Field Programmable Gate Array (FPGA), etc.; the CPU, DSP, and FPGA can be built into the network management system.
  • CPU Central Processing
  • DSP digital signal processing
  • FPGA Field Programmable Gate Array
  • the method and device for amplifying a graphic in a topology diagram provided by the embodiment of the present invention, and a computer storage medium, determining an enlarged area of a current time of the topology map; determining a graphic object in the enlarged area; and determining an enlarged reference point in the enlarged area And magnifying the distance of the graphic object in the enlarged area from the reference point, and displaying the enlarged graphic object in the enlarged area.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the computer is readable and stored
  • the instructions in the reservoir produce an article of manufacture comprising an instruction device that implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the method and device for amplifying a graphic in a topology diagram provided by the embodiment of the present invention, and a computer storage medium, determining an enlarged area of a current time of the topology map; determining a graphic object in the enlarged area; and determining an enlarged reference point in the enlarged area And magnifying the distance of the graphic object in the enlarged area from the reference point, and displaying the enlarged graphic object in the enlarged area.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种拓扑图中图形的放大方法,所述方法包括:确定拓扑图的当前时刻的放大区域;确定所述放大区域内的图形对象;在所述放大区域中确定放大基准点,放大所述放大区域内的图形对象距离所述基准点的距离,并显示放大后的所述放大区域内的图形对象;还包括一种拓扑图中图形的放大装置。

Description

拓扑图中图形的放大方法、装置与计算机存储介质 技术领域
本发明涉及到拓扑图的放大技术,具体涉及一种拓扑图中图形的放大方法、装置与计算机存储介质。
背景技术
网络管理系统中,网络拓扑图以图形化的方式展示了网络设备之间的连接关系,使网络维护人员对设备分布和设备状态信息一目了然。
基于特定缩放比率的拓扑图,维护人员可通过为拓扑图配置的放大镜对该拓扑图的局部网络拓扑结构进行查看,这种查看方式对于拓扑结构比较简单的网络来说比较适合,而对于拓扑结构比较复杂的网络,在有限的可视空间内,在同一个放大镜中展示的部分网元设备,往往会出现设备堆叠显示的情形,进而造成设备不易被分辨,设备图标、标签、告警及运行状态等信息不易被查看。
况且传统的放大镜是将局部拓扑图中包括的网元设备及链路等图形对象均进行等比例放大,虽然多数时候能够辨清网元的位置分布,但有时放大后的图形所显示的内容会出现不同程度的失真。
发明内容
为解决现有存在的技术问题,本发明实施例的在于提供一种拓扑图中图形的放大方法、装置与计算机存储介质,可避免放大后的显示内容出现失真及设备堆叠显示,保证对拓扑图中的放大图形的清晰显示。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种拓扑图中图形的放大方法,所述方法包括:
确定拓扑图的当前时刻的放大区域;
确定所述放大区域内的图形对象;
在所述放大区域中确定放大基准点,放大所述放大区域内的图形对象距离所述基准点的距离,并显示放大后的所述放大区域内的图形对象。
上述方案中,在所述显示放大后的所述放大区域内的图形对象之后,所述方法还包括:
存储当前时刻放大区域内的图形对象。
上述方案中,在所述确定所述放大区域内的图形对象之前,所述方法还包括:
比较当前时刻所述放大区域的图形对象与存储的前一时刻的图形对象是否存在有不相同的图形对象;
比较为存在有不相同的图形对象时,所述确定所述放大区域内的图形对象,包括:
将相同的图形对象及与不同于前一时刻的图形对象一并确定为当前时刻所述放大区域内的图形对象。
上述方案中,所述确定所述放大区域内的图形对象,包括:
将所述放大区域内的网元设备的完整或部分图标、和/或网元设备之间的链路的完整或部分图标、和/或所述网元设备属性信息对应的图标、和/或网元设备之间的链路属性信息对应的图标作为所述放大区域内的图形对象。
本发明实施例还提供了一种拓扑图中图形的放大装置,所述装置包括:第一确定单元、第二确定单元、放大单元以及显示单元;其中,
所述第一确定单元,配置为确定拓扑图的当前时刻的放大区域;
所述第二确定单元,配置为确定所述放大区域内的图形对象;
所述第三确定单元,配置为在所述放大区域中确定放大基准点;
所述放大单元,配置为放大所述放大区域内的图形对象距离所述基准点的距离;
所述显示单元,配置为显示放大后的所述放大区域内的图形对象。
上述方案中,所述装置还包括:
存储单元,配置为存储当前时刻放大区域内的图形对象。
上述方案中,所述装置还包括:
比较单元,配置为比较当前时刻所述放大区域的图形对象与存储的前一时刻的图形对象是否存在有不相同的图形对象;比较为存在有不相同的图形对象时,触发所述第二确定单元;
相应的,所述第二确定单元,配置为将相同的图形对象及与不同于前一时刻的图形对象一并确定为当前时刻所述放大区域内的图形对象。
上述方案中,所述第二确定单元,配置为将所述放大区域内的网元设备的完整或部分图标、和/或网元设备之间的链路的完整或部分图标、和/或所述网元设备属性信息对应的图标、和/或网元设备之间的链路属性信息对应的图标作为所述放大区域内的图形对象。
本发明实施例提供的拓扑图中图形的放大方法、装置与计算机存储介质,所述方法包括:确定拓扑图的当前时刻的放大区域;确定所述放大区域内的图形对象;在所述放大区域中确定放大基准点,放大所述放大区域内的图形对象距离所述基准点的距离,并显示放大后的所述放大区域内的图形对象。利用本发明实施例的技术方案,在对拓扑图的局部图形进行放大时,保持了图形对象之间的相对位置不变,放大了图形对象之间的绝对距离,如此,避免了放大后的显示内容出现失真及设备堆叠,保证了对拓扑图中的局部图形的清晰显示。
附图说明
图1为本发明实施例的拓扑图中图形的放大方法的流程示意图;
图2(a)~2(c)为本发明一具体实施例示意图;
图3为本发明实施例的拓扑图中图形的放大方法的一具体实现流程示意图;
图4为本发明实施例拓扑图中图形的放大装置的组成结构示意图。
具体实施方式
本发明实施例记载了一种拓扑图中图形的放大方法,如图1所示,所述方法包括:
步骤11:确定拓扑图的当前时刻的放大区域;
本发明实施例是基于具有特定缩放比率的拓扑图而实现的。当网络维护人员想要查看拓扑图中的某一区域时,通过输入设备如鼠标对该当前区域进行点击时,网络管理系统可获取对该当前区域的点击操作,并将该当前区域作为拓扑图中的当前时刻的放大区域;这里,将该放大区域称之为放大镜的可视区,即需要放大镜进行放大的区域。
步骤12:确定所述放大区域内的图形对象;
这里,所述图形对象包括:所述放大区域内的网元设备的完整图标或其部分图标、和/或网元设备之间的链路的完整图标或其部分的图标、和/或所述网元设备属性信息对应的图标、和/或网元设备之间的链路属性信息对应的图标;其中,所述属性信息包括:网元设备的标签、告警、运行状态等;相应的,所述属性信息对应的图标包括:标签图标、告警图标、运行状态图标。
需要说明的是:将出现在可视区内的网元设备称之为第一种网元设备;因链路两端通常连接有网元设备,存在有链路出现在可视区内而链路两端的网元设备出现在可视区外这种情况,称此类网元设备为第二种网元设备;
确定第一种网元设备的图形对象包括:将该网元设备的图标、标签、告警、运行状态等作为该网元设备的图形对象;并称此时该网元设备的图 形对象为该网元设备的完整图形对象;
确定第二种网元设备的图形对象包括:将该网元设备的图标作为该网元设备的图形对象;并称此时该网元设备的图形对象为该网元设备的精简图形对象;
确定出现在可视区的链路的图形对象包括:将该链路的图标、标签、告警、运行状态等作为该网元设备的图形对象。对于链路的图形对象没有完整图形对象与精简图形对象之分。
由于第二种网元设备出现在可视区外,所以第二种网元设备的图形对象不被放大显示,而确定的目的在于方便确定与之相连接的链路的位置和走向。
这里,对于网络管理系统而言,此步骤相当于对出现在可视区内的第一种网元设备进行完整图形对象的绘制进而方便了维护人员对网元设备信息的查看;而对出现在可视区外的第二种网元设备进行精简图形对象的绘制,进而方便确定链路的位置和走向;如此便可提高网络管理系统对放大区域的图形对象的绘制速度及减少该绘制过程对网络管理系统内存资源的占用。
步骤13:在所述放大区域中确定放大基准点,放大所述放大区域内的图形对象距离所述基准点的距离,并显示放大后的所述放大区域内的图形对象。
这里,当拓扑图中的放大镜制作成圆形时,由放大镜放大显示的放大区域也为圆形,那么就可选定放大区域的中心点即放大区域的圆心为该放大区域的放大基准点;并以该放大基准点为坐标原点,建立一个坐标系,在所述坐标系中,根据放大镜的缩放比率调整当前时刻放大区域中的每一个图形对象相对于基准点的横向距离和纵向距离。例如:当前时刻放大区域内包括有网元设备D的图形对象如网元设备D的图标;在以放大基准点 为原点建立的坐标系中,网元设备D的图标距离基准点的横向距离为a、纵向距离为b(a、b均为正整数),放大镜的缩放比例为C(C为正整数)时,经调整即放大后的网元设备D的图标距离基准点的横向距离为Ca、纵向距离为Cb。由此可见,对可视区内的每一个图形对象距离所述基准点的横纵向距离的调整,也就相当于可视区内的图形对象之间的距离被放大C倍,如此,避免了网元设备的堆叠显示;同时,本发明实施例可通过对放大镜的缩放比例参数的调整实现对放大区域内容的清晰显示。
上述说明,是以放大镜为圆形,放大区域的圆心为放大基准点为例进行的说明,此外,本发明实施例也适用于放大镜为矩形、椭圆等形状。同时,放大区域的中心点所处位置没有出现网元设备的图形对象及链路的对象;此外,放大基准点的不仅可以是放大区域的中心点,还可以是放大区域内没有图形对象的其它任何位置。
如图1所示,所述方法还包括:
存储当前时刻放大区域内的图形对象。
这里,进行存储的目的在于因为在实际应用中,维护人员将对拓扑图进行至少一次的局部图形的查看,在多次查看过程中,由于确定的放大区域不同,进而确定的放大区域内的图形对象也存在有不同;所以,本发明实施例的方法还包括:
比较当前时刻所述放大区域的图形对象与存储的前一时刻的图形对象是否存在有不相同的图形对象;比较为存在有不相同的图形对象时,所述确定所述放大区域内的图形对象,包括:将相同的图形对象及与不同于前一时刻的图形对象一并确定为所述放大区域内的图形对象;然后放大所述图形对象距离基准点的距离并显示所述图形对象。
其中,与前一时刻的放大区域内出现的图形对象相比较,对于当前时刻可视区出现的新的网元设备,如果前一时刻存储有关于该新的网元设备 的精简图形对象,则删除该精简图形对象,并确定该新的网元设备的标签、告警、运行状态等连同该新的网元设备的图标一并作为当前时刻关于该新的网元设备的完整图形对象;对于当前时刻可视区出现的新的链路,将该链路的图标、标签、告警、运行状态等作为当前时刻关于该链路的完整图形对象。对于由链路连接的位于链路两端的任意一个网元设备,如果前一时刻出现在可视区,当前时刻不在可视区则删除该网元设备的完整图形对象,仅将所述网元设备的图标作为关于该网元设备的精简图形对象;如果前一时刻不在可视区,当前时刻在可视区,则删除前一时刻的关于该网元设备的精简图形对象,将该网元设备的标签、告警、运行状态等连同该网元设备的图标一并作为关于该网元设备的完整图形对象。
对于当前时刻没有出现在可视区的网元设备,而前一时刻出现在可视区的网元设备,删除存储的前一时刻关于该网元设备的完整图形对象;如果当前时刻的可视区存在有与该网元设备连接的链路,则需要将该网元设备的图标作为关于该网元设备的精简图形对象;对于前一时刻可视区出现的与链路有关的图形对象而当前时刻可视区没有出现的与该链路有关的图形对象时,删除前一时刻存储的关于该链路的图形对象,如果由该链路连接的位于该链路两端的任一网元设备在前一时刻存在有与该网元设备有关的精简图形对象,则删除该精简图形对象。
图2(a)为一网络拓扑图,图2(b)为时刻1时放大镜对网络拓扑图的局部显示;图2(c)为时刻2时放大镜对网络拓扑图的局部显示;图3为本发明实施例的拓扑图中图形的放大方法的实现流程示意图;下面结合图2(a)~图2(c)、图3对本发明实施例的技术方案作进一步说明。
步骤301:时刻1时,获取到对当前区域(区域A)的点击时,确定区域A为放大镜的当前放大区域,如图2(b)所示;
其中,区域A内出现的第一种网元设备包括以太网交换机、本地备份 存储;出现的链路包括链路0、链路1、链路2及链路3;出现的第二种网元设备包括服务器1、服务器2及交换机。
步骤302:确定区域A内的图形对象;
这里,需将以太网交换机的图标、标签、告警及运行状态作为关于以太网交换机的图形对象;将本地备份存储的图标、标签、告警及运行状态作为关于本地备份存储的图形对象;将链路0~链路3各自的图标、标签、告警及运行状态作为对应链路的图形对象;将服务器1的图标作为服务器1图形对象;将服务器2的图标作为服务器2的图形对象;将交换机的图标作为交换机的图形对象。其中,由于篇幅的限制,图2(b)代表着告警及运行状态的图标均未示意出。
步骤303:选取区域A的中心点为放大基准点,根据放大镜的缩放比率调整图形对象相对于基准点的距离。
这里,以基准点为原点,建立一个坐标系,并在该坐标系中,放大所有图形对象距离所述基准点的横向距离与纵向距离;在放大区域内的网元设备及链路之间的连接关系及相对位置不变的基础上,依据放大镜的缩放比率,分别对与以太网交换机、本地备份存储有关的图形对象相对于基准点的横向和纵向距离进行所述缩放比率倍的放大;网元设备的图标也被放大镜放大了缩放比率倍,连接网元设备之间的链路0~链路3的图标也被放大了缩放比率倍。网元设备之间的绝对距离被放大,使得在用放大镜查看区域A内的网元设备时,不会出现网元设备堆叠的情况,而且网元设备的图标也被放大避免了内容失真显示的情况。
步骤304:存储时刻1的区域A内的图形对象。
这里,在时刻1时存储的图形对象包括:关于以太网交换机、本地备份存储、链路0、链路1、链路2及链路3的图形对象;服务器1、服务器2以及交换机的图形对象。
步骤305:时刻2时,获取到对当前区域(区域B)的点击时,确定区域B为放大镜的当前放大区域,如图2(c)所示;
其中,区域B内的出现的第一种网元设备包括以太网交换机、交换机;出现的链路包括链路2、链路3、链路4、链路5及链路6;出现的第二种网元设备包括服务器1、服务器2及存储交换机。
步骤306:比较时刻2的区域B内出现的有关网元设备及链路的图形对象与时刻1的区域A内出现的有关网元设备及链路的图像对象是否有不同,比较为有不同时,执行步骤307;否则,将时刻1时存储的图形对象作为时刻2时区域B的图形对象,继续执行步骤308;
这里,交换机为出现在区域B中新的网元设备;链路4、链路5及链路6为出现在区域B中的新的链路;本地备份存储是出现在区域A且区域B中没有出现的网元设备。
步骤307:将有关网元设备及链路的相同的图形对象与不同的图形对象一并作为时刻2时区域B内的图形对象;
具体的,删除时刻1时存储的关于链路0、1的图形对象以及本地备份存储的图形对象;保留时刻1时存储的以太网交换机图形对象作为时刻2的关于以太网交换机的图形对象;保留时刻1时存储的链路2的图形对象作为时刻2的关于链路2的图形对象;保留时刻1时存储的链路3的图形对象作为时刻2的关于链路3的图形对象;保留时刻1时存储的服务器1的图形对象作为时刻2的关于服务器1的图形对象;保留时刻1时存储的服务器2的图形对象作为时刻2的关于服务器2的图形对象;
并将交换机的图标、标签、告警及运行状态作为时刻2的关于交换机的图形对象;将链路4~链路6各自的图标、标签、告警及运行状态作为对应链路的图形对象;并将存储交换机的图标作为关于交换机的图形对象;
其中,由于篇幅的限制,图2(c)中代表告警及运行状态的图标均未 示意出。
步骤308:选取区域B的中心点为基准点,根据放大镜的缩放比率调整区域B内的图形对象相对于基准点的距离。
这里,以区域B的中心点即圆心为原点,建立一个坐标系,在该坐标系中,放大区域B的图形对象距离所述原点的横向距离与纵向距离;在区域B内的网元设备及链路之间的连接关系及相对位置不变的基础上,依据放大镜的缩放比率,分别对与太网交换机、交换机的有关的图形对象相对于基准点的横向和纵向距离进行缩放比率倍的放大;以太网交换机、交换机的图标也被放大镜放大了缩放比率倍,连接网元设备之间的链路2~链路6的图标也被放大了缩放比率倍。
步骤309:存储时刻2的区域B的图形对象,以便与后续时刻可视区的图形对象作比较。
上述实施例中,比较时刻1的区域A与时刻2的区域B出现的网元设备与链路为不同,即时刻1、2时放大区域发生了变化;当比较出时刻1、2时的放大区域内出现的网元设备与链路没有发生变化时,即时刻1、2时确定的放大区域没有发生变化时,将时刻1时存储的图形对象作为时刻2时区域B的图形对象;并在时刻2时依据放大镜的缩放比率,放大并显示时刻1时存储的图形对象距离区域B的放大基准点的距离。
同时,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的拓扑图中图形的放大方法。
基于上述拓扑图中图形的放大方法,本发明实施例还记载了一种拓扑图中图形的放大装置,如图4所示,所述装置包括:第一确定单元41、第二单元42、第三确定单元43、放大单元44以及显示单元45;其中,
所述第一确定单元41,配置为确定拓扑图的当前时刻的放大区域;
所述第二确定单元42,配置为确定所述放大区域内的图形对象;
所述第三确定单元43,配置为在所述放大区域中确定放大基准点;
所述放大单元44,配置为放大所述图形对象距离所述基准点的距离并显示。
所述显示单元45,配置为显示放大后的所述放大区域内的图形对象。
所述装置还包括:存储单元46,配置为存储当前时刻放大区域内图形对象。
其中,所述第二确定单元42,配置为将所述放大区域内的网元设备的完整或部分图标、和/或网元设备之间的链路的完整或部分图标、和/或所述网元设备属性信息对应的图标、和/或网元设备之间的链路属性信息对应的图标作为所述放大区域内的图形对象。
这里,在实际应用中,维护人员将对拓扑图进行至少一次的局部图形的查看,在多次查看过程中,由于每一次所述第一确定单元41确定的放大区域不同,进而使得第二确定单元42确定的放大区域内的图形对象也存在有不同;所以,在每次查看完放大后的图形对象后,由存储单元46对图形对象进行存储,存储的目的在于在相邻查看次数下,该相邻查看次数下的放大区域内的图形对象可能存在有相同,也可能存在有不同。
所述装置还包括:比较单元47,配置为比较当前时刻所述放大区域的图形对象与存储的前一时刻的图形对象是否存在有不相同的图形对象;比较为存在有不相同的图形对象时,触发所述第二确定单元42;
相应的,所述第二确定单元42,配置为将相同的图形对象及与不同于前一时刻的图形对象一并确定为所述放大区域内的图形对象;
所述第三确定单元43,配置为确定放大区域的中心点为所述放大区域的放大区域;
所述放大单元44,还配置为以所确定的放大基准点为原点,建立一个 坐标系,根据设置的缩放比率调整所述放大区域内的图形对象相对于基准点的横向和纵向距离;
所述显示单元45,配置为显示放大后的所述放大区域内的图形对象。
具体的,所述第二确定单元42对于当前时刻可视区出现的新的网元设备,如果前一时刻存储有关于该新的网元设备的精简图形对象,则删除该精简图形对象,并确定该新的网元设备的标签、告警、运行状态等连同该新的网元设备的图标一并作为当前时刻关于该新的网元设备的完整图形对象;对于当前时刻可视区出现的新的链路,所述第二确定单元42将该链路的图标、标签、告警、运行状态等作为当前时刻关于该链路的完整图形对象。对于由链路连接的位于链路两端的任意一个网元设备,如果前一时刻出现在可视区,当前时刻不在可视区则删除该网元设备的完整图形对象,所述第二确定单元42仅将所述网元设备的图标作为关于该网元设备的精简图形对象;如果前一时刻不在可视区,当前时刻在可视区,则所述第二确定单元42删除前一时刻的关于该网元设备的精简图形对象,将该网元设备的标签、告警、运行状态等连同该网元设备的图标一并作为关于该网元设备的完整图形对象。
对于当前时刻没有出现在可视区的网元设备,而前一时刻出现在可视区的网元设备,所述第二确定单元42删除存储的前一时刻关于该网元设备的完整图形对象;如果当前时刻的可视区存在有与该网元设备连接的链路,所述第二确定单元42将该网元设备的图标作为关于该网元设备的精简图形对象;对于前一时刻可视区出现的与链路有关的图形对象而当前时刻可视区没有出现的与该链路有关的图形对象时,所述第二确定单元42删除前一时刻存储的关于该链路的图形对象;如果由该链路连接的位于该链路两端的任一网元设备在前一时刻存在有与该网元设备有关的精简图形对象,则删除该精简图形对象。
在本实施例中,所涉及到的完整图形对象、精简图形对象、第一种网元设备、第二种网元设备等概念请参见前述方法中的说明,这里不再赘述。
下面结合图2(a)~2(c)对本发明实施例作进一步说明。
图2(a)为一网络拓扑图,时刻1时,所述第一确定单元41获取到对当前区域(区域A)的点击时,确定区域A为放大镜的当前放大区域,如图2(b)所示;其中,所述区域A内出现的第一种网元设备包括以太网交换机、本地备份存储;出现的链路包括链路0、链路1、链路2及链路3;出现的第二种网元设备包括服务器1、服务器2及交换机;所述第一确定单元41触发所述第二确定单元42。
所述第二确定单元42将以太网交换机的图标、标签、告警及运行状态作为关于以太网交换机的图形对象;将本地备份存储的图标、标签、告警及运行状态作为关于本地备份存储的图形对象;将链路0~链路3各自的图标、标签、告警及运行状态作为对应链路的图形对象;将服务器1的图标作为服务器1图形对象;将服务器2的图标作为服务器2的图形对象;将交换机的图标作为交换机的图形对象;之后,所述第二确定单元42通知所述第三确定单元43。
所述第三确定单元43选取当前放大区域的中心点即区域A的圆心为放大基准点;并触发所述放大单元44;
所述放大单元44以放大基准点为原点,建立一个坐标系,根据设置的缩放比率调整放大区域内A的图形对象相对于基准点的横向和纵向距离;所述显示单元45显示放大后的图形对象。
这里,在放大区域内的网元设备及链路之间的连接关系及相对位置不变的基础上,所述放大单元44依据缩放比率,分别对与以太网交换机、本地备份存储有关的图形对象相对于基准点的横向和纵向距离进行所述缩放比率倍的放大;网元设备的图标也被放大镜放大了所述缩放比率倍,连接 网元设备之间的链路0~链路3的图标也被放大了所述缩放比率倍。由此可见,网元设备之间的绝对距离被放大,使得在查看区域A内的网元设备时,不会出现网元设备堆叠的情况,而且网元设备也被放大避免了内容失真显示的情况。
所述存储单元46,在时刻1时存储图形对象包括:关于以太网交换机、本地备份存储、链路0、链路1、链路2及链路3的图形对象以及服务器1、服务器2、交换机的图形对象。
时刻2时,所述第一确定单元41获取到对当前区域(区域B)的点击时,确定区域B为放大镜的当前放大区域,如图2(c)所示;其中,区域B内的第一种网元设备包括以太网交换机、交换机;出现的链路包括链路2、链路3、链路4、链路5及链路6;第二种网元设备包括服务器1、服务器2及存储交换机。
所述比较单元47,比较时刻2的区域B内出现的关于网元设备及链路的图形对象与时刻1的区域A内出现的关于网元设备及链路的图形对象是否有不同,比较为有不同时,触发所述第二确定单元42;这里,所述比较单元47通过比较可确定出:交换机为出现在区域B中新的网元设备;链路4、链路5及链路6为出现在区域B中的新的链路;本地备份存储是出现在区域A且区域B中没有出现的网元设备。
所述第二确定单元42删除时刻1时存储的关于链路0、1的图形对象、本地备份存储的图形对象;保留时刻1时存储的以太网交换机图形对象作为时刻2的关于以太网交换机的图形对象;保留时刻1时存储的链路2的图形对象作为时刻2的关于链路2的图形对象;保留时刻1时存储的链路3的图形对象作为时刻2的关于链路3的图形对象;保留时刻1时存储的服务器1的图形对象作为时刻2的关于服务器1的图形对象;保留时刻1时存储的服务器2的图形对象作为时刻2的关于服务器2的图形对象;
所述第二确定单元42并将交换机的图标、标签、告警及运行状态作为时刻2的关于交换机的图形对象;将链路4~链路6各自的图标、标签、告警及运行状态作为对应链路的图形对象;并将存储交换机的图标作为关于交换机的图形对象。
所述第三确定单元43,选取当前放大区域的中心点即区域B的圆心为放大基准点;所述放大单元44以放大基准点为原点,建立一个坐标系,根据缩放比率调整所述放大区域内的图形对象相对于基准点的横向和纵向距离;所述显示单元45显示被放大与所述基准点之间距离的图形对象。
这里,在区域B内的网元设备及链路之间的连接关系及相对位置不变的基础上,依据放大镜的缩放比率,分别对关于以太网交换机、交换机的图形对象相对于基准点的横向和纵向距离进行所述缩放比率倍的放大;以太网交换机的图标、交换机的图标也被放大镜放大了所述缩放比率倍,连接网元设备之间的链路2~链路6的图标也被放大了所述缩放比率倍。
所述存储单元46,存储时刻2的放大区域内的关于网元设备及链路的图形对象,以便与后续时刻可视区内存在的网元设备及链路的图形对象作比较。
在实际应用中,所述第一确定单元41、第二确定单元42、第三确定单元43、放大单元44以及显示单元45、存储单元46及比较单元47均可由中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现;所述CPU、DSP、FPGA均可内置于网络管理系统中。
本领域技术人员应当理解,图4中所示的拓扑图中图形的放大装置中的各处理单元的实现功能可参照前述拓扑图中图形的放大方法的相关描述而理解。本领域技术人员应当理解,图4中示的拓扑图中图形的放大装置 中各处理单元的功能可通过运行于处理器上的程序而实现,也可通过具体的逻辑电路而实现。
本发明实施例提供的拓扑图中图形的放大方法、装置及计算机存储介质,确定拓扑图的当前时刻的放大区域;确定所述放大区域内的图形对象;在所述放大区域中确定放大基准点,放大所述放大区域内的图形对象距离所述基准点的距离,并显示放大后的所述放大区域内的图形对象。利用本发明实施例的技术方案,在对拓扑图的局部图形进行放大时,保持了图形对象之间的相对位置不变,放大了图形对象之间的绝对距离,如此,避免了放大后的显示内容出现失真及设备堆叠显示,保证了对拓扑图中的局部图形的清晰显示。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例提供的拓扑图中图形的放大方法、装置及计算机存储介质,确定拓扑图的当前时刻的放大区域;确定所述放大区域内的图形对象;在所述放大区域中确定放大基准点,放大所述放大区域内的图形对象距离所述基准点的距离,并显示放大后的所述放大区域内的图形对象。利用本发明实施例的技术方案,在对拓扑图的局部图形进行放大时,保持了图形对象之间的相对位置不变,放大了图形对象之间的绝对距离,如此,避免了放大后的显示内容出现失真及设备堆叠显示,保证了对拓扑图中的局部图形的清晰显示。

Claims (9)

  1. 一种拓扑图中图形的放大方法,所述方法包括:
    确定拓扑图的当前时刻的放大区域;
    确定所述放大区域内的图形对象;
    在所述放大区域中确定放大基准点,放大所述放大区域内的图形对象距离所述基准点的距离,并显示放大后的所述放大区域内的图形对象。
  2. 根据权利要求1所述的拓扑图中图形的放大方法,其中,在所述显示放大后的所述放大区域内的图形对象之后,所述方法还包括:
    存储当前时刻放大区域内的图形对象。
  3. 根据权利要求2所述的拓扑图中图形的放大方法,其中,在所述确定所述放大区域内的图形对象之前,所述方法还包括:
    比较当前时刻所述放大区域的图形对象与存储的前一时刻的图形对象是否存在有不相同的图形对象;
    比较为存在有不相同的图形对象时,所述确定所述放大区域内的图形对象,包括:
    将相同的图形对象及与不同于前一时刻的图形对象一并确定为当前时刻所述放大区域内的图形对象。
  4. 根据权利要求1至3任一项所述的拓扑图中图形的放大方法,其中,所述确定所述放大区域内的图形对象,包括:
    将所述放大区域内的网元设备的完整或部分图标、和/或网元设备之间的链路的完整或部分图标、和/或所述网元设备属性信息对应的图标、和/或网元设备之间的链路属性信息对应的图标作为所述放大区域内的图形对象。
  5. 一种拓扑图中图形的放大装置,所述装置包括:第一确定单元、第 二确定单元、放大单元以及显示单元;其中,
    所述第一确定单元,配置为确定拓扑图的当前时刻的放大区域;
    所述第二确定单元,配置为确定所述放大区域内的图形对象;
    所述第三确定单元,配置为在所述放大区域中确定放大基准点;
    所述放大单元,配置为放大所述放大区域内的图形对象距离所述基准点的距离;
    所述显示单元,配置为显示放大后的所述放大区域内的图形对象。
  6. 根据权利要求5所述的拓扑图中图形的放大装置,其中,所述装置还包括:
    存储单元,配置为存储当前时刻放大区域内的图形对象。
  7. 根据权利要求6所述的拓扑图中图形的放大装置,其中,所述装置还包括:
    比较单元,配置为比较当前时刻所述放大区域的图形对象与存储的前一时刻的图形对象是否存在有不相同的图形对象;比较为存在有不相同的图形对象时,触发所述第二确定单元;
    相应的,所述第二确定单元,配置为将相同的图形对象及与不同于前一时刻的图形对象一并确定为当前时刻所述放大区域内的图形对象。
  8. 根据权利要求5至7任一项所述的拓扑图中图形的放大装置,其中,
    所述第二确定单元,配置为将所述放大区域内的网元设备的完整或部分图标、和/或网元设备之间的链路的完整或部分图标、和/或所述网元设备属性信息对应的图标、和/或网元设备之间的链路属性信息对应的图标作为所述放大区域内的图形对象。
  9. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至4任一项所述的方法。
PCT/CN2014/086313 2013-10-24 2014-09-11 拓扑图中图形的放大方法、装置与计算机存储介质 WO2015058595A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP14855753.1A EP3062247B1 (en) 2013-10-24 2014-09-11 Method and device for magnifying graphic within topology diagram, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310508689.4 2013-10-24
CN201310508689.4A CN104573158A (zh) 2013-10-24 2013-10-24 一种拓扑图中图形的放大方法与装置

Publications (1)

Publication Number Publication Date
WO2015058595A1 true WO2015058595A1 (zh) 2015-04-30

Family

ID=52992227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086313 WO2015058595A1 (zh) 2013-10-24 2014-09-11 拓扑图中图形的放大方法、装置与计算机存储介质

Country Status (3)

Country Link
EP (1) EP3062247B1 (zh)
CN (1) CN104573158A (zh)
WO (1) WO2015058595A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930118B (zh) * 2016-04-15 2020-07-21 广东威创视讯科技股份有限公司 拼接墙系统网络拓扑图的绘制方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101813487A (zh) * 2009-02-24 2010-08-25 阿尔派株式会社 导航装置以及导航装置的显示方法
CN102214054A (zh) * 2010-04-01 2011-10-12 英业达股份有限公司 提供于放大显示区域中执行输入操作的系统及其方法
CN102415096A (zh) * 2009-04-23 2012-04-11 本田技研工业株式会社 车辆周围监测装置
WO2013139123A1 (zh) * 2012-03-19 2013-09-26 华为技术有限公司 处理3d拓扑视图中网元对象信息的方法及设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100505562C (zh) * 2003-11-07 2009-06-24 英华达(南京)科技有限公司 画面的局部区域放大显示的方法
US8386593B1 (en) * 2008-07-17 2013-02-26 NetBrain Technologies Inc. Computer aided network engineering system, apparatus, and method
CN101674197B (zh) * 2009-09-30 2012-01-25 华为技术有限公司 一种网络拓扑图的显示方法、显示装置及系统
KR101836381B1 (ko) * 2011-01-28 2018-03-08 삼성전자주식회사 터치스크린 단말기에서 화면 디스플레이 제어 방법 및 장치
CN103176993B (zh) * 2011-12-21 2016-08-24 北京神州绿盟信息安全科技股份有限公司 一种内容呈现设备和方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101813487A (zh) * 2009-02-24 2010-08-25 阿尔派株式会社 导航装置以及导航装置的显示方法
CN102415096A (zh) * 2009-04-23 2012-04-11 本田技研工业株式会社 车辆周围监测装置
CN102214054A (zh) * 2010-04-01 2011-10-12 英业达股份有限公司 提供于放大显示区域中执行输入操作的系统及其方法
WO2013139123A1 (zh) * 2012-03-19 2013-09-26 华为技术有限公司 处理3d拓扑视图中网元对象信息的方法及设备

Also Published As

Publication number Publication date
EP3062247A4 (en) 2016-12-21
EP3062247A1 (en) 2016-08-31
CN104573158A (zh) 2015-04-29
EP3062247B1 (en) 2019-03-20

Similar Documents

Publication Publication Date Title
JP6323954B2 (ja) 地図ラベルのためのローディング方法及び装置
WO2016201915A1 (zh) 一种报警方法及其装置
JP2021166049A (ja) 人顔の超解像度の実現方法、装置、電子設備、記憶媒体、及びプログラム
US20150138203A1 (en) Visualizing large graphs
TWI601020B (zh) 圖表分析系統及圖表分析方法
CN105930118B (zh) 拼接墙系统网络拓扑图的绘制方法及系统
US20210334986A1 (en) Method for detecting vehicle lane change, roadside device, and cloud control platform
CN113368492A (zh) 渲染的方法、装置
WO2022252675A1 (zh) 道路标注生成方法、装置、设备以及存储介质
EP4160386A1 (en) Efficient communication interface for casting interactively controlled visual content
CN111061381A (zh) 屏幕全局输入控制系统及方法
US20130016116A1 (en) Reflecting changes to graph-structured data
CN112066997A (zh) 高清航线地图的导出方法及系统
US10891319B2 (en) Easy clustering of graphs of nodes preserving node relationships
WO2015058595A1 (zh) 拓扑图中图形的放大方法、装置与计算机存储介质
CN110119270B (zh) 网页搭建方法、装置、设备和框架
US11929881B2 (en) 3D visualization of multi-layer networks including network topology and encapsulation
WO2023098576A1 (zh) 图像处理方法、装置、设备及介质
CN115866211A (zh) 一种设备位置跟踪方法、装置、电子设备及介质
WO2011157011A1 (zh) 一种绘制拓扑图的方法及装置
JP5862223B2 (ja) パーツカタログ作成装置、プログラム、およびパーツカタログ作成方法
US20240064179A1 (en) Highly scalable four-dimensional geospatial data system for simulated worlds
US20230359184A1 (en) Scada operator decision support using integrated engineering and operational data server system and method
WO2024119565A1 (zh) 一种地理信息系统矢量数据绘制的方法、装置及电子设备
JP6754336B2 (ja) 動画広告生成方法、動画広告生成装置及び動画広告生成プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14855753

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014855753

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014855753

Country of ref document: EP