Device visualization processing method, apparatus and device

By aggregating device textures and dynamically adjusting the rendering scaling ratio in device visualization processing, the problem of low operation and maintenance efficiency in the management of massive devices is solved. It realizes low-cost, high appearance recognition and adaptive scaling device visualization rendering, thereby improving operation and maintenance efficiency.

CN114612630BActive Publication Date: 2025-11-18CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011396519.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-03
Publication Date
2025-11-18
Estimated Expiration
2040-12-03

AI Technical Summary

Technical Problem

In scenarios with a large number of devices and virtualization, existing technologies struggle to effectively manage and monitor the real-time operating status and logical location of devices, resulting in low operational efficiency and high network I/O and image processing costs during device visualization rendering.

Method used

By pre-aggregating textures of various device types into a single file and specifying the position and range of the device's visual identifier pattern based on model configuration parameters, the frequency of page image loading is reduced. By using device shape geometry parameters and device arrangement configuration parameters of functional areas, the rendering scaling ratio is dynamically adjusted to achieve efficient arrangement and rendering of devices within functional areas.

Benefits of technology

It reduces network I/O and image processing consumption during device visualization rendering, improves device appearance recognition and layout diversity, and enhances the efficiency of maintenance personnel and the practicality of data center visualization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114612630B_ABST
    Figure CN114612630B_ABST
Patent Text Reader

Abstract

The specification provides a device visualization processing method, device and apparatus. The method comprises: pre-aggregating various device types of maps in a single file, and configuring parameters of a configuration model to specify a position and range of a visual identification pattern corresponding to a device in the aggregated picture file, and then determining a rendering scaling ratio of a to-be-arranged device instance in a functional partition based on device contour geometry parameters and device arrangement configuration parameters of the functional partition, the device arrangement configuration parameters being used to represent an arrangement manner of the device in the functional partition; and rendering the to-be-arranged device instance in the range of the functional partition according to the rendering scaling ratio based on the model configuration parameters and the device arrangement configuration parameters. Thus, only one file loading is performed, the frequency of page loading images is reduced, and then network IO consumption and image processing consumption in the device visualization rendering process are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present document relates to the technical field of computer technology, and particularly relates to a device visualization processing method, device and apparatus. BACKGROUND

[0002] With the gradual maturity of cloud technology of network function virtualization (NFV) core network elements, communication special device clusters are gradually replaced by cloud resource pools. At present, there are hundreds of cluster nodes for cloud core network in the country, and the device scale in each node room reaches 10,000 computing servers, 20PB storage clusters, and thousands of network switches. In order to provide telecommunication-level high-availability cloud services for upper-layer 5G communication network element applications, operation and maintenance personnel need to manage and monitor the real-time running state of hardware devices, and also need to master the logical location and association relationship of a large number of virtual machines, logical volumes, virtual networks and other virtual devices.

[0003] Due to the work pressure of resource management, fault analysis, performance optimization and other daily operations in the massive device and virtualization scenarios, the implementation and commissioning of the three-dimensional visualization function of the room equipment can greatly improve the efficiency of the operation and maintenance personnel to obtain device status, device association and other information, and is one of the necessary means of intelligent operation and maintenance. The practicality of the three-dimensional visualization function of the room equipment requires high performance in massive device rendering, high recognition of different equipment appearances, stack adaptation, and functional partition reflecting the association of the equipment cluster.

[0004] Therefore, it is necessary to provide a more reliable device visualization processing scheme. SUMMARY

[0005] The device visualization processing method, device and equipment provided by the embodiments of the present specification can reduce the network IO consumption and image processing consumption in the device visualization rendering process.

[0006] The device visualization processing method provided by the embodiments of the present specification comprises:

[0007] obtaining model configuration parameters of a device instance to be arranged, the model configuration parameters comprising device shape geometric body parameters, visual identification map parameters and geometric face parameters of the visual identification map, the visual identification map parameters being used to specify the position and range of the visual identification pattern corresponding to the device type of the device to be arranged in an aggregated picture file, the aggregated picture file storing maps of various device types, and the geometric face parameters being used to represent the correspondence between the faces of the geometric body and the visual identification patterns displayed on the faces;

[0008] determine a rendering scale ratio of the device instance to be arranged in the functional partition based on the device shape geometry parameter and a device arrangement configuration parameter of the functional partition, the device arrangement configuration parameter being used to represent an arrangement manner of the device in the functional partition;

[0009] render the device instance to be arranged in the functional partition according to the rendering scale ratio based on the model configuration parameter and the device arrangement configuration parameter.

[0010] The embodiments of the present specification further provide a device visualization processing apparatus, comprising:

[0011] a obtaining module configured to obtain a model configuration parameter of a device instance to be arranged, the model configuration parameter comprising a device shape geometry parameter, a visual identification map parameter, and a geometry face parameter of a visual identification map, the visual identification map parameter being used to specify a position and a range of a visual identification pattern corresponding to a device type to which the device instance to be arranged belongs in an aggregated picture file, the aggregated picture file storing maps of various device types, and the geometry face parameter being used to represent a corresponding relationship between a face of a geometry and a visual identification pattern displayed on the face;

[0012] a first processing module configured to determine a rendering scale ratio of the device instance to be arranged in the functional partition based on the device shape geometry parameter and a device arrangement configuration parameter of the functional partition, the device arrangement configuration parameter being used to represent an arrangement manner of the device in the functional partition;

[0013] a second processing module configured to render the device instance to be arranged in the functional partition according to the rendering scale ratio based on the model configuration parameter and the device arrangement configuration parameter.

[0014] The embodiments of the present specification further provide an electronic device, comprising a communication interface, a processor, and a memory;

[0015] The processor invokes program instructions in the memory to perform the following actions:

[0016] obtain a model configuration parameter of a device instance to be arranged, the model configuration parameter comprising a device shape geometry parameter, a visual identification map parameter, and a geometry face parameter of a visual identification map, the visual identification map parameter being used to specify a position and a range of a visual identification pattern corresponding to a device type to which the device instance to be arranged belongs in an aggregated picture file, the aggregated picture file storing maps of various device types, and the geometry face parameter being used to represent a corresponding relationship between a face of a geometry and a visual identification pattern displayed on the face;

[0017] determine a rendering scale ratio of the device instance to be arranged in the functional partition based on the device appearance geometry parameter and a device arrangement configuration parameter of the functional partition, the device arrangement configuration parameter being used to represent an arrangement manner of the device in the functional partition;

[0018] render the device instance to be arranged in the functional partition according to the rendering scale ratio based on the model configuration parameter and the device arrangement configuration parameter.

[0019] The embodiments of the present specification further provide a computer readable storage medium storing one or more programs, the one or more programs, when executed by a network device comprising a plurality of applications, causing the network device to perform the following actions:

[0020] obtain a model configuration parameter of a device instance to be arranged, the model configuration parameter comprising a device appearance geometry parameter, a visual identification map parameter and a geometry face parameter of a visual identification map, the visual identification map parameter being used to specify a position and a range of a visual identification pattern corresponding to a device type to which the device instance to be arranged belongs in an aggregated picture file, the aggregated picture file storing maps of various device types, and the geometry face parameter being used to represent a corresponding relationship between a face of a geometry and a visual identification pattern displayed on the face;

[0021] determine a rendering scale ratio of the device instance to be arranged in the functional partition based on the device appearance geometry parameter and a device arrangement configuration parameter of the functional partition, the device arrangement configuration parameter being used to represent an arrangement manner of the device in the functional partition;

[0022] render the device instance to be arranged in the functional partition according to the rendering scale ratio based on the model configuration parameter and the device arrangement configuration parameter.

[0023] Any of the above embodiments of the present specification pre-aggregate maps of various device types in a single file, and specify a position and a range of a visual identification pattern corresponding to a device in an aggregated picture file by configuring a model configuration parameter, so that file loading is performed only once, the frequency of page loading images is reduced, and network IO consumption and image processing consumption in the device visualization rendering process are further reduced. BRIEF DESCRIPTION OF DRAWINGS

[0024] The drawings described herein are used to provide further understanding of the present specification, form a part of the present specification, and the illustrative embodiments of the present specification and the description thereof are used to explain the present specification, and do not constitute an improper limitation on the present specification. In the drawings:

[0025] Figure 1A flowchart of a device visualization processing method provided by an embodiment of the present specification is shown in FIG. 1.

[0026] Figure 2 A flowchart of a specific example of device visualization processing provided by an embodiment of the present specification is shown in FIG. 2.

[0027] Figure 3 A structural diagram of a device visualization processing apparatus provided by an embodiment of the present specification is shown in FIG. 3.

[0028] Figure 4 A structural diagram of an electronic device provided by an embodiment of the present specification is shown in FIG. 4. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present specification clearer, the technical solutions of the present specification will be described clearly and completely below in combination with the specific embodiments of the present specification and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present specification, but not all the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present document.

[0030] The technical solutions provided by the embodiments of the present specification will be described in detail below in combination with the drawings.

[0031] Figure 1 A flowchart of a device visualization processing method provided by an embodiment of the present specification is shown in FIG. 1. Figure 1 , the method can specifically include the following steps:

[0032] In step 102, a model configuration parameter of a device instance to be arranged is acquired, the model configuration parameter including a device shape geometry parameter, a visual identification map parameter and a geometry face parameter of a visual identification map, the visual identification map parameter being used to specify a position and a range of a visual identification pattern corresponding to a device type to which the device to be arranged belongs in an aggregated picture file, the aggregated picture file storing maps of various device types, and the geometry face parameter being used to represent a corresponding relationship between a face of a geometry and a visual identification pattern displayed on the face.

[0033] Further, the model configuration parameter further includes an appearance color of a model, a surface texture map parameter and a geometry face parameter of a surface texture map.

[0034] The device type is used to represent a business type of the device, the surface texture mapping parameter is used to specify a position and a range of a surface texture pattern of the device to be arranged in an aggregated picture file, the aggregated picture file stores surface texture patterns of various device types, and the geometric surface parameter of the surface texture mapping is used to represent a corresponding relationship between a surface of a geometric body and a surface texture pattern displayed on the surface.

[0035] Based on this, the embodiment discloses a scheme of supporting different device types to specify different types of geometric bodies, different visual identification maps, and different appearance colors.

[0036] Step 104: determining a rendering scaling ratio of the device instance to be arranged in the functional partition based on the device appearance geometric body parameter and the device arrangement configuration parameter of the functional partition, the device arrangement configuration parameter being used to represent an arrangement manner of the device in the functional partition.

[0037] The device arrangement configuration parameter includes a growth priority, an initial maximum growth value, and an arrangement interval parameter. The growth priority is used to represent a device arrangement priority of each dimension in the three-dimensional dimension of the functional partition. The initial maximum growth value is used to represent an upper limit of a number of device instances arranged in each dimension in the three-dimensional dimension of the functional partition. The arrangement interval parameter is used to represent an interval of a previous device instance when the device instance is extended and arranged in each dimension. The arrangement interval parameter is an externally specified value, or, when there is no externally specified value, is a default value generated based on the range of the functional partition and the initial maximum growth value.

[0038] Based on this, the embodiment describes the arrangement manner of the device in the functional partition from three aspects of the growth priority, the initial maximum growth value, and the arrangement interval parameter, provides data support for subsequent rendering, and can effectively improve the diversity of the arrangement manner of the device.

[0039] Step 106: rendering the device instance to be arranged in the range of the functional partition according to the rendering scaling ratio based on the model configuration parameter and the device arrangement configuration parameter.

[0040] Before step 104 is performed, the method further includes:

[0041] determining a position planning configuration parameter of the functional partition, the position planning configuration parameter including a partition name, a midpoint coordinate, and a partition range, and the midpoint coordinate being a position of a midpoint of the functional partition in a spatial coordinate system.

[0042] Correspondingly, one implementation manner of step 106 can be:

[0043] According to the midpoint coordinates, the to-be-arranged device instance is rendered in the range of the functional partition according to the rendering size ratio from the minimum coordinate.

[0044] In another possible embodiment, a scheme of adaptive capacity expansion arrangement is further provided, specifically:

[0045] In the process of rendering the to-be-arranged device instance, when it is detected that the number of to-be-arranged device instances is greater than the initial maximum growth value, the upper limit of the number of device instances arranged in the target dimension is updated, and the upper limit of the number of device instances arranged in the target dimension is the minimum.

[0046] Based on the device shape geometry parameter and the updated device arrangement configuration parameter, the rendering scaling ratio of the to-be-arranged device instance is updated, and the to-be-arranged device instance is re-rendered according to the updated rendering scaling ratio.

[0047] Based on this, the embodiment discloses a dynamic arrangement strategy based on the number of devices. In the scenario of unloading in batches, the device arrangement configuration parameter and the rendering scaling ratio can be updated for re-rendering, without the need of repeated investment of additional time cost to automatically generate a new arrangement scheme, thereby improving the practicability of the machine room visualization.

[0048] Therefore, it can be known that, Figure 1 Corresponding embodiments aggregate the maps of various device types in a single file in advance, and specify the position and range of the visual identification pattern corresponding to the device in the aggregated picture file through the configuration model configuration parameter. Therefore, only one file loading is needed, the frequency of page loading images is reduced, and then the network IO consumption and image processing consumption in the device visualization rendering process are reduced.

[0049] Figure 2 The flowchart of the specific example of the device visualization processing provided by an embodiment of the present specification is shown in the following Figure 2 The steps 102 to 106 are described in detail as follows:

[0050] Step 1, device model configuration parameter input

[0051] According to the presentation needs, the type type, color color, device shape geometry, visual identification map logo, visual identification map geometry face list logoFaces, surface texture map pattern, and surface texture map geometry face patternFaces of the device are specified. Among them:

[0052] The type type of the device is used to describe the device business type represented by the model, such as switch, firewall, computing server, storage server, etc.

[0053] Color: specifies the default appearance color of the model, described by 16 hexadecimal.

[0054] Device geometry: specifies the geometry of the model and its edge vectors. In order to save space, it is recommended to use geometries such as cylinders, cuboids, etc. that have stacking and tiling stability. The edges of the geometry are described by vectors, and each edge is denoted as k = 1, 2, 3,..., and the lengths of the three axes of the circumscribed cuboid of the geometry are denoted as (L x , L y , L z ).

[0055] Logo: specifies the visual logo pattern of the model. This parameter is a four-tuple (x, y, w, h) that specifies the position and range of the pattern in the aggregated picture file. x and y are the starting horizontal and vertical coordinates of the top-left corner of the picture in the aggregated picture, and w and h are the length and width of the picture, respectively. The algorithm locates and cuts the aggregated picture according to the four-tuple, obtains the pixels within the range of [x, x+w] in the horizontal direction and [y, y+h] in the vertical direction, and recombines them into a picture to obtain the visual logo pattern of the model.

[0056] Logo faces: specifies which face of the geometry the visual logo pattern appears on. This parameter is an array [f1, f2,...], and the length of the array can be determined as needed, where each element represents a geometry face number.

[0057] Pattern: specifies the surface texture pattern of the model, which can be some button, port, signal light, etc. decorative pattern, which describes the device features through a simple pattern. This parameter is a four-tuple (x, y, w, h), and the detailed algorithm is the same as the visual logo logo.

[0058] Pattern faces: specifies which face of the geometry the surface texture pattern appears on. This parameter is an array [f1, f2,...], and the detailed algorithm is the same as the visual logo logo.

[0059] Step 2, input of machine room location planning parameters

[0060] According to the functional zoning of the machine room, specify the location planning configuration parameters of each functional zone. The planning configuration parameters of each functional zone are denoted as {Z j}, j = 0, 1, 2,..., then Z j is composed of the following fields:

[0061] name j , the name of the partition.

[0062] midpoint coordinates (x j , y j , z j ), the position of the midpoint of the partition in the spatial coordinate system.

[0063] partition range (w j , h j , d j ), the size of the space occupied by the partition.

[0064] Step 3, input of device arrangement configuration parameters in the partition

[0065] In each functional partition, specify the configuration parameters related to the arrangement of devices. Let the device arrangement configuration parameters of each functional partition be denoted as {A i}, i = 0, 1, 2, …, then A i is composed of the following fields:

[0066] name i of the partition, specifying the business name of the partition.

[0067] growth priority (ax i , ay i , az i ), indicating the coordinate offset when adding an instance of the device, and indicating the priority in which coordinate axis is embodied. The three-dimensional dimensions can be filled with 0, 1, and 2 without repetition, and the smaller the value, the higher the priority. For example, if the device arrangement growth priority of the partition is (2, 0, 1), then when multiple device entities are stacked and arranged, it is arranged according to the order of “first in the y-axis direction, then in the z-axis direction, and finally in the x-axis direction”.

[0068] initial maximum growth value (mx i , my i , mz i ), specifying the upper limit of the number of devices in each direction in the initial state of the partition. When the actual number of devices is less than or equal to mx i *my i *mz i , the actual maximum growth value of the arrangement is (mx i , my i , mz i ). When the actual number of devices is greater than mx i *my i *mz i , mx i , my i , mz ithe minimum value in {m i * , my i * , mz i *} + 1, update as the new maximum growth value (mx

[0069] Step 4, input the number of device instances and arrangement interval

[0070] Let the arranged number of devices in each functional area be {m ij}, for an empty functional area, the arranged number of devices m ij = 0.

[0071] Let the arranged number of devices in each functional area be {n ij}.

[0072] When the device instance extends in the xyz coordinate axis, the interval with the previous device instance is recorded as (gx ij , gy ij , gz ij ), which can be obtained from the input. If not specified in the input, the default length ratio of the item to the interval in the three directions is 6:1, that is where w j , h j , d j are the inputs of step 2, mx i , my i , mz i are the inputs of step 3.

[0073] Step 5, calculate the rendering scale of the output geometry

[0074] Let the device instance geometry rendering scaling factor be This value is a three-dimensional vector (sx ij , sy ij , sz ij ), and its calculation process is as follows:

[0075] 1) x-axis direction scaling factor

[0076] 2) y-axis direction scaling factor

[0077] 3) z-axis direction scaling factor

[0078] The scale of the device instance geometry in space is described by vectors of each side. Each vector is multiplied by the rendering scaling factor vector to get the actual rendering vector, that is k = 1, 2, 3,...

[0079] Step 6, Calculate the output arrangement scheme

[0080] Let the arranged device number of each functional area be denoted as {m ij}, for an empty functional area, its arranged device number m ij = 0.

[0081] Let the arranged device number of each functional area be denoted as {n ij}, for an empty functional area, its arranged device number n i = 0.

[0082] 1) Arrange the first device entity. From the range of the functional area, arrange the first device entity from the minimum coordinate.

[0083] 2) Arrange the second and later entities. Arrange the later device entities according to the growth priority (ax i , ay i , az i ) input in step 3. For example, if the device arrangement growth priority of the area is (2, 0, 1), then when arranging multiple device entities in a stack, arrange them in the order of "first fill in the y-axis direction, then in the z-axis direction, and finally in the x-axis direction".

[0084] 3) (Optional) When the entity number reaches the initial maximum growth value (mx i , my i , mz i ), update the minimum value + 1 in {mx i , my i , mz i} to the new maximum growth value (mx i * , my i * , mz i * ).

[0085] 4) When "3)" is executed, update the rendering scale of the geometry. According to step 5, input the new maximum growth value (mx i * , my i * , mz i * ), and recalculate the new actual rendering vector, i.e. k = 1, 2, 3,...

[0086] 5) Continue to execute "2)", until all devices are arranged. Output the device arrangement scheme.

[0087] It is not difficult to understand that the application has four characteristics of low-cost rendering, high appearance recognition, adaptive expansion and rearrangement, and parameterized configuration in the three-dimensional visualization rendering task of the massive device scene, and realizes intuitive, friendly and practical data room three-dimensional visualization. In the daily operation and maintenance tasks such as resource management, fault analysis and performance optimization in the massive device and virtualization scene, the efficiency of the operation and maintenance personnel in obtaining device status and device association information can be greatly improved, and it is an essential means of intelligent operation and maintenance. Moreover, the application has at least the following technical effects:

[0088] 1) Low-cost rendering: this feature is reflected in the device model rendering scheme of the application, which discloses a single file aggregation multi-map scheme and a face grouping scheme of geometric body (see technical scheme step 1). The frequency of loading images and the frequency of texture rendering are reduced, and the network IO consumption and image processing consumption in the visualization rendering process are reduced.

[0089] 2) High appearance recognition: this feature is reflected in the appearance support of the device model of the application, which discloses a scheme of supporting different types of geometric bodies, different visual identification maps and different appearance colors for different types of devices (see technical scheme step 1). In the massive device scene, the appearance recognition between two different devices is greatly enhanced.

[0090] 3) Adaptive expansion and rearrangement: this feature is reflected in the device arrangement scheme of the application, which discloses a dynamic arrangement strategy based on the number of devices (see technical scheme step 6). In the scene of putting on and taking off in batches, a new arrangement scheme can be automatically generated without repeated investment of additional time cost, which improves the practicability of the computer room visualization.

[0091] 4) Parameterized configuration: this feature is reflected in the overall algorithm design of the application, which discloses a design mode of establishing standardized input (see technical scheme steps 1 to 4), which ensures the robustness of the algorithm result and reduces the cost of users using the application.

[0092] Figure 3 A structural schematic diagram of a device visualization processing device provided by an embodiment of the present application is shown in Figure 3 , which can specifically include:

[0093] The acquisition module 301 is configured to acquire model configuration parameters of a device instance to be arranged, wherein the model configuration parameters include device shape geometric body parameters, visual identification map parameters and geometric face parameters of the visual identification map, the visual identification map parameters are used to specify the position and range of the visual identification pattern corresponding to the device type of the device to be arranged in an aggregated picture file, the aggregated picture file stores maps of various device types, and the geometric face parameters are used to represent the correspondence between the faces of the geometric body and the visual identification pattern displayed on the faces. The device model rendering module 302 is configured to render the device instance to be arranged according to the model configuration parameters, and output a device model image of the device instance to be arranged. The device arrangement module 303 is configured to arrange the device instance to be arranged according to the model configuration parameters, and output a device arrangement image of the device instance to be arranged. The device parameter configuration module 304 is configured to configure the model configuration parameters of the device instance to be arranged according to the device model image of the device instance to be arranged, and output the model configuration parameters of the device instance to be arranged. The device parameter configuration module 304 is configured to configure the model configuration parameters of the device instance to be arranged according to the device model image of the device instance to be arranged, and output the model configuration parameters of the device instance to be arranged.

[0094] The first processing module 302 is configured to determine a rendering scale ratio of the device instance to be arranged in the functional partition based on the device shape geometry parameter and a device arrangement configuration parameter of the functional partition, and the device arrangement configuration parameter is used to represent an arrangement manner of the device in the functional partition.

[0095] The second processing module 303 is configured to render the device instance to be arranged in the functional partition according to the rendering scale ratio based on the model configuration parameter and the device arrangement configuration parameter.

[0096] Optionally, the model configuration parameter further includes an appearance color of the model, a surface texture mapping parameter, and a geometry face parameter of the surface texture mapping.

[0097] The device type is used to represent a service type of the device, the surface texture mapping parameter is used to specify a position and a range of the surface texture pattern of the device to be arranged in an aggregated picture file, the aggregated picture file stores surface texture patterns of various device types, and the geometry face parameter of the surface texture mapping is used to represent a corresponding relationship between a face of the geometry and the surface texture pattern displayed on the face.

[0098] Optionally, the apparatus further includes:

[0099] The determining module is configured to determine a position planning configuration parameter of the functional partition, and the position planning configuration parameter includes a partition name, a midpoint coordinate, and a partition range, and the midpoint coordinate is a position of a midpoint of the functional partition in a spatial coordinate system.

[0100] Optionally, the second processing module 303 is specifically configured to:

[0101] According to the midpoint coordinate, the device instance to be arranged is rendered in the range of the functional partition starting from a minimum coordinate according to the rendering size ratio.

[0102] Optionally, the device arrangement configuration parameter includes a growth priority, an initial maximum growth value, and an arrangement interval parameter.

[0103] The growth priority is used to represent a device arrangement priority of each dimension in the three-dimensional dimension of the functional partition, the initial maximum growth value is used to represent an upper limit of a number of device instances arranged in each dimension of the three-dimensional dimension of the functional partition, and the arrangement interval parameter is used to represent an interval of a previous device instance when the device instance is extended and arranged in each dimension.

[0104] Optionally, the arrangement interval parameter is an externally specified value, or, when there is no externally specified value, the arrangement interval parameter is a default value, and the default value is generated based on the range of the functional partition and the initial maximum growth value.

[0105] Optionally, the device further comprises:

[0106] an adaptive updating module, configured to, during the process of rendering the device instances to be arranged, when detecting that the number of the device instances to be arranged is greater than the initial maximum growth value, update the upper limit of the number of the device instances arranged in the target dimension, the upper limit of the number of the device instances arranged in the target dimension being the minimum; and based on the device shape geometry parameter and the updated device arrangement configuration parameter, update the rendering scaling ratio of the device instances to be arranged and re-render the device instances to be arranged according to the updated rendering scaling ratio.

[0107] Therefore, it can be known that, Figure 3 Corresponding embodiments aggregate the maps of various device types in a single file in advance, and configure the position and range of the visual identification pattern corresponding to the device in the aggregated picture file by configuring the model configuration parameter, so that only one file loading is performed, the frequency of page loading images is reduced, and then the network IO consumption and image processing consumption in the device visualization rendering process are reduced.

[0108] In addition, for the device embodiment described above, since it is basically similar to the method embodiment, the description is relatively simple, and the related parts can be referred to the part of the method embodiment. It should be noted that, in each component of the device in the present specification, the components are logically divided according to the functions to be achieved, but the present specification is not limited thereto, and each component can be re-divided or combined as needed.

[0109] Figure 4 A structural schematic diagram of a network device provided by an embodiment of the present specification is shown in FIG. 1. Figure 4 The network device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course can also include other hardware required by the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs, and forms a device visualization processing device on the logical level. Of course, in addition to the software implementation, the present specification does not exclude other implementation manners, such as logic devices or a combination of software and hardware, and so on, that is, the execution subject of the following processing flow is not limited to each logical unit, but can also be hardware or a logic device.

[0110] The network interface, the processor and the memory can be connected with each other through a bus system. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 4 Only one bidirectional arrow is used to represent the bus, but it does not mean that there is only one bus or only one type of bus.

[0111] The memory is used to store programs. Specifically, the program can include program code, which includes computer operation instructions. The memory can include read-only memory and random access memory, and provide instructions and data to the processor. The memory can include high-speed random access memory (RAM), and can also include non-volatile memory, such as at least one disk memory.

[0112] The processor is configured to execute the program stored in the memory, and specifically execute:

[0113] Obtain the model configuration parameter of the device instance to be arranged, the model configuration parameter including device shape geometry parameter, visual identification map parameter and geometry face parameter of the visual identification map, the visual identification map parameter being used to specify the position and range of the visual identification pattern corresponding to the device type to which the device instance to be arranged belongs in the aggregated picture file, the aggregated picture file storing maps of various device types, and the geometry face parameter being used to represent the correspondence between the face of the geometry and the visual identification pattern displayed on the face;

[0114] Determine the rendering scaling ratio of the device instance to be arranged in the functional partition based on the device shape geometry parameter and the device arrangement configuration parameter of the functional partition, the device arrangement configuration parameter being used to represent the arrangement mode of the device in the functional partition;

[0115] Render the device instance to be arranged in the range of the functional partition according to the rendering scaling ratio based on the model configuration parameter and the device arrangement configuration parameter.

[0116] The above as described in the specification Figure 3The method performed by the device visualization processing apparatus or the master node disclosed in the embodiments shown can be applied in a processor or implemented by the processor. The processor can be an integrated circuit chip with processing capability. In implementation process, each step of the above method can be completed by integrated logic circuit of hardware in the processor or by instructions in form of software. The processor can be a general-purpose processor, including central processing unit (CPU), network processor (NP), etc.; or can be a digital signal processor (DSP), application specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. Each method, step and logic block in the embodiments of the present specification can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present specification can be directly embodied in a hardware code processor for execution, or be executed by a combination of hardware and software modules in the code processor. The software module can be located in a random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, register, etc. The storage medium in the memory is read by the processor, and the hardware thereof is combined to complete the steps of the above method.

[0117] The device visualization processing apparatus can also perform the method and implement the method performed by the master node. Figures 1-2

[0118] Based on the same invention, the embodiments of the present specification also provide a computer readable storage medium storing one or more programs, which, when executed by a network device including a plurality of application programs, cause the network device to perform the device visualization processing method. Figures 1-2 The corresponding embodiments provide the device visualization processing method.

[0119] Each of the embodiments in the present specification is described in a progressive manner, and the same or similar parts between each of the embodiments can be referred to each other. Each of the embodiments focuses on the difference from other embodiments. In particular, for the system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiments.

[0120] ​The above-described embodiments of the application can be implemented in any of hardware, software, or a combination of hardware and software. The embodiments can be implemented in one or more computer programs or program modules, which comprise program instructions that execute on or are implemented by an apparatus such as the computer program product coupled to an apparatus. The computer program product includes a computer readable medium having stored

[0121] Those skilled in the art will appreciate that embodiments of the present description can be devised for a method, a system, or a computer program product. Accordingly, embodiments of the present description can be embodied in a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description can take the form of a computer program product on one or more computer readable storage media (including, but not limited to, disk memory, CD-ROMs, optical storage devices, etc.) embodying computer readable program code.

[0122] The present description is described in reference to flow diagrams and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present description. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing machine, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 The flow diagram and / or block diagram in the flow diagrams and / or block diagrams can also represent code modules, segments, or the like, which can include one or more executable instructions for implementing specific functions (e.g., given software Figure 1 Apparatuses for carrying out the functions specified in the flow diagrams and / or block diagrams block or blocks.

[0123] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow diagrams and / or block diagrams flow or flows and / or block or blocks. Figure 1 The flow diagram and / or block diagram in the flow diagrams and / or block diagrams can also represent code modules, segments, or the like, which can include one or more executable instructions for implementing specific functions (e.g., given software Figure 1 Apparatuses for carrying out the functions specified in the flow diagrams and / or block diagrams block or blocks.

[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow diagrams and / or block diagrams flow or flows and / or block or blocks. Figure 1 The flow diagram and / or block diagram in the flow diagrams and / or block diagrams can also represent code modules, segments, or the like, which can include one or more executable instructions for implementing specific functions (e.g., given software Figure 1 Apparatuses for carrying out the functions specified in the flow diagrams and / or block diagrams block or blocks.

[0125] In one typical arrangement, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0126] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) having a common memory space employing banks of dynamic RAM (DRAM) or static RAM (SRAM) that can be used to store information and instructions to be executed by the processor. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), or flash memory having a predefined memory space to store information and instructions for use by or caching of the processor. The memory is thus an example of computer readable storage media.

[0127] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media such as modulated data signals and carrier waves.

[0128] It should also be noted that the terms "comprising," "including," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements recited, but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the recited element.

[0129] Those skilled in the art will appreciate that embodiments of the present specification can be devised for use with various computer system configurations, including hand-held devices, micro-computers, mainframe computers, and the like. Embodiments of the present specification can be embodied as a method, system or computer program product. Accordingly, the present specification can take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that can all generally be referred to herein as a "circuit," "module" or "system." Furthermore, embodiments of the present specification can take the form of a computer program product embodied in one or more computer readable medium(s) having computer usable program code embodied thereon.

[0130] The above merely provides the example of the present application, but does not serve to limit the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application should be included in the scope of claims of the present application.

Claims

1. A method for visualizing equipment, characterized in that, include: Obtain the model configuration parameters of the device instance to be arranged. The model configuration parameters include the device shape geometry parameters, visual identifier texture parameters, and geometric surface parameters of the visual identifier texture. The visual identifier texture parameters are used to specify the position and range of the visual identifier pattern corresponding to the device type to which the device to be arranged belongs in the aggregated image file. The aggregated image file stores textures of various device types and is a single file. The geometric surface parameters are used to characterize the correspondence between the face of the geometry and the visual identifier pattern displayed on the face. Based on the device's external geometric parameters and the device arrangement configuration parameters of the functional partitions, the rendering scaling ratio of the device instance to be arranged in the functional partition is determined. The device arrangement configuration parameters are used to characterize the arrangement of the devices in the functional partitions. Based on the model configuration parameters and the device arrangement configuration parameters, the device instance to be arranged is rendered within the scope of the functional partition according to the rendering scaling ratio; The rendering of the device instance to be arranged within the functional partition according to the rendering scaling ratio includes: Based on the midpoint coordinates of the functional partition, within the range of the functional partition, the device instance to be arranged is rendered starting from the smallest coordinate according to the rendering size ratio; The equipment arrangement configuration parameters include: growth priority, initial maximum growth value, and arrangement interval parameters; Wherein, the growth priority is used to characterize the device arrangement priority of each dimension in the three-dimensional dimension of the functional partition, the initial maximum growth value is used to characterize the upper limit of the number of device instances arranged in each dimension in the three-dimensional dimension of the functional partition, and the arrangement interval parameter is used to characterize the interval between the device instance and the previous device instance when the device instance is extended in each dimension. Also includes: During the rendering of device instances to be arranged, if it is detected that the number of device instances to be arranged is greater than the initial maximum growth value, the upper limit of the number of device instances to be arranged in the target dimension is updated, and the upper limit of the number of device instances to be arranged in the target dimension is minimized. Based on the device's external geometric parameters and the updated device arrangement configuration parameters, the rendering scaling ratio of the device instance to be arranged is updated, and the device instance to be arranged is re-rendered according to the updated rendering scaling ratio.

2. The method according to claim 1, characterized in that, The model configuration parameters also include: the model's appearance color, surface texture mapping parameters, and surface texture mapping geometric parameters; The device type is used to characterize the service type of the device, the surface texture mapping parameters are used to specify the position and range of the surface texture pattern of the device to be arranged in the aggregated image file, the aggregated image file stores surface texture patterns of various device types, and the geometric surface parameters of the surface texture mapping are used to characterize the correspondence between the face of the geometry and the surface texture pattern displayed on the face.

3. The method according to claim 1, characterized in that, Before determining the rendering scaling ratio of the device instance to be arranged in the functional partition, the method further includes: The location planning configuration parameters of the functional partition are determined. The location planning configuration parameters include the partition name, midpoint coordinates and partition range. The midpoint coordinates are the position of the midpoint of the functional partition in the spatial coordinate system.

4. The method according to claim 1, characterized in that, The arrangement interval parameter is an externally specified value, or a default value when no externally specified value is available. The default value is generated based on the range of the functional partition and the initial maximum growth value.

5. A device for visualizing equipment, characterized in that, include: The acquisition module is used to acquire the model configuration parameters of the device instance to be arranged. The model configuration parameters include the device shape geometry parameters, visual identifier texture parameters, and geometric surface parameters of the visual identifier texture. The visual identifier texture parameters are used to specify the position and range of the visual identifier pattern corresponding to the device type to which the device to be arranged belongs in the aggregated image file. The aggregated image file stores textures of various device types and is a single file. The geometric surface parameters are used to characterize the correspondence between the face of the geometry and the visual identifier pattern displayed on the face. The first processing module is used to determine the rendering scaling ratio of the device instance to be arranged in the functional partition based on the device's external geometric parameters and the device arrangement configuration parameters of the functional partition. The device arrangement configuration parameters are used to characterize the arrangement of the devices in the functional partition. The second processing module is used to render the device instance to be arranged within the functional partition according to the rendering scaling ratio based on the model configuration parameters and the device arrangement configuration parameters. The second processing module renders the device instance to be arranged according to the rendering scaling ratio within the scope of the functional partition, including: Based on the midpoint coordinates of the functional partition, within the range of the functional partition, the device instance to be arranged is rendered starting from the smallest coordinate according to the rendering size ratio; The equipment arrangement configuration parameters include: growth priority, initial maximum growth value, and arrangement interval parameters; Wherein, the growth priority is used to characterize the device arrangement priority of each dimension in the three-dimensional dimension of the functional partition, the initial maximum growth value is used to characterize the upper limit of the number of device instances arranged in each dimension in the three-dimensional dimension of the functional partition, and the arrangement interval parameter is used to characterize the interval between the device instance and the previous device instance when the device instance is extended in each dimension. The device is also used for: During the rendering of device instances to be arranged, if it is detected that the number of device instances to be arranged is greater than the initial maximum growth value, the upper limit of the number of device instances to be arranged in the target dimension is updated, and the upper limit of the number of device instances to be arranged in the target dimension is minimized. Based on the device's external geometric parameters and the updated device arrangement configuration parameters, the rendering scaling ratio of the device instance to be arranged is updated, and the device instance to be arranged is re-rendered according to the updated rendering scaling ratio.

6. An electronic device, characterized in that, include: Communication interface, processor, and memory; The processor invokes program instructions from the memory to perform the following actions: Obtain the model configuration parameters of the device instance to be arranged. The model configuration parameters include the device shape geometry parameters, visual identifier texture parameters, and geometric surface parameters of the visual identifier texture. The visual identifier texture parameters are used to specify the position and range of the visual identifier pattern corresponding to the device type to which the device to be arranged belongs in the aggregated image file. The aggregated image file stores textures of various device types and is a single file. The geometric surface parameters are used to characterize the correspondence between the face of the geometry and the visual identifier pattern displayed on the face. Based on the device's external geometric parameters and the device arrangement configuration parameters of the functional partitions, the rendering scaling ratio of the device instance to be arranged in the functional partition is determined. The device arrangement configuration parameters are used to characterize the arrangement of the devices in the functional partitions. Based on the model configuration parameters and the device arrangement configuration parameters, the device instance to be arranged is rendered within the scope of the functional partition according to the rendering scaling ratio; The rendering of the device instance to be arranged within the functional partition according to the rendering scaling ratio includes: Based on the midpoint coordinates of the functional partition, within the range of the functional partition, the device instance to be arranged is rendered starting from the smallest coordinate according to the rendering size ratio; The equipment arrangement configuration parameters include: growth priority, initial maximum growth value, and arrangement interval parameters; Wherein, the growth priority is used to characterize the device arrangement priority of each dimension in the three-dimensional dimension of the functional partition, the initial maximum growth value is used to characterize the upper limit of the number of device instances arranged in each dimension in the three-dimensional dimension of the functional partition, and the arrangement interval parameter is used to characterize the interval between the device instance and the previous device instance when the device instance is extended in each dimension. Also includes: During the rendering of device instances to be arranged, if it is detected that the number of device instances to be arranged is greater than the initial maximum growth value, the upper limit of the number of device instances to be arranged in the target dimension is updated, and the upper limit of the number of device instances to be arranged in the target dimension is minimized. Based on the device's external geometric parameters and the updated device arrangement configuration parameters, the rendering scaling ratio of the device instance to be arranged is updated, and the device instance to be arranged is re-rendered according to the updated rendering scaling ratio.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which, when executed by a network device including multiple applications, cause the network device to perform the following actions: Obtain the model configuration parameters of the device instance to be arranged. The model configuration parameters include the device shape geometry parameters, visual identifier texture parameters, and geometric surface parameters of the visual identifier texture. The visual identifier texture parameters are used to specify the position and range of the visual identifier pattern corresponding to the device type to which the device to be arranged belongs in the aggregated image file. The aggregated image file stores textures of various device types and is a single file. The geometric surface parameters are used to characterize the correspondence between the face of the geometry and the visual identifier pattern displayed on the face. Based on the device's external geometric parameters and the device arrangement configuration parameters of the functional partitions, the rendering scaling ratio of the device instance to be arranged in the functional partition is determined. The device arrangement configuration parameters are used to characterize the arrangement of the devices in the functional partitions. Based on the model configuration parameters and the device arrangement configuration parameters, the device instance to be arranged is rendered within the scope of the functional partition according to the rendering scaling ratio; The rendering of the device instance to be arranged within the functional partition according to the rendering scaling ratio includes: Based on the midpoint coordinates of the functional partition, within the range of the functional partition, the device instance to be arranged is rendered starting from the smallest coordinate according to the rendering size ratio; The equipment arrangement configuration parameters include: growth priority, initial maximum growth value, and arrangement interval parameters; Wherein, the growth priority is used to characterize the device arrangement priority of each dimension in the three-dimensional dimension of the functional partition, the initial maximum growth value is used to characterize the upper limit of the number of device instances arranged in each dimension in the three-dimensional dimension of the functional partition, and the arrangement interval parameter is used to characterize the interval between the device instance and the previous device instance when the device instance is extended in each dimension. Also includes: During the rendering of device instances to be arranged, if it is detected that the number of device instances to be arranged is greater than the initial maximum growth value, the upper limit of the number of device instances to be arranged in the target dimension is updated, and the upper limit of the number of device instances to be arranged in the target dimension is minimized. Based on the device's external geometric parameters and the updated device arrangement configuration parameters, the rendering scaling ratio of the device instance to be arranged is updated, and the device instance to be arranged is re-rendered according to the updated rendering scaling ratio.

Citation Information

Patent Citations

  • IDC machine room equipment presenting method

    CN105787568A

  • Metro station three-dimensional model automatic generation method

    CN108335356A

  • BIM-based machine room arrangement and construction guidance method

    CN111339598A