CN109426684B - 3D model drawing method and device for closed cold channel data center - Google Patents
3D model drawing method and device for closed cold channel data center Download PDFInfo
- Publication number
- CN109426684B CN109426684B CN201710752375.7A CN201710752375A CN109426684B CN 109426684 B CN109426684 B CN 109426684B CN 201710752375 A CN201710752375 A CN 201710752375A CN 109426684 B CN109426684 B CN 109426684B
- Authority
- CN
- China
- Prior art keywords
- cabinet
- target
- parameter value
- cube
- graph
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/08—Volume rendering
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Quality & Reliability (AREA)
- Computer Graphics (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a3D model drawing method and a device of a closed cold channel data center, which are applied to electronic equipment, and the method comprises the following steps: drawing a cubic graph with a set size in a Canvas object; determining the sub-length occupied by each cabinet on the set edge according to the number of the obtained cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge; and marking each corresponding target cube graph according to the acquired data information of each cabinet. In the embodiment of the invention, the browser can carry out Canvas drawing based on the instantiated Canvas object, no additional plug-in is required to be installed, the development difficulty is low, the period is short, the waiting time in the user browsing process is short, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a3D model drawing method and device for a closed cold channel data center.
Background
With the continuous progress of data center informatization construction, the cold channel sealing technology is greatly developed and applied. The ever-increasing information and data put a great deal of pressure on management. Therefore, in order to meet the actual needs of the data center and the requirements for data visualization, the following 3D development technologies are generally used in the prior art to implement 3D visualization of the closed cold aisle data center:
the first is realized by using a view point development technology, the view point is a Web3D technology proposed by meta and Intel, and is constructed on the basis of XML (Extensible Markup Language), and the view point can exchange data with a browser and a database, and can be embedded in various kinds of software for use, so that the application range of the view point is very wide. The client side is required to install the plug-in during browsing to display the streamed 3D model. Triggered by a mouse or browser event, interactive demonstration can be dynamically performed or interactive operation can be performed with a user, such as zooming and panning of an object. The technology runs through all links of the network three-dimensional virtual technology. However, compared with other Web3D technologies, ViewPoint needs to make and process three-dimensional image objects through its own software, rather than importing three-dimensional images through other ways, and thus is a real 3D model and can create photo-level real 3D images.
The second one is realized by utilizing the Cult3D development technology, Cult3D is a3D network technology developed by Cycore corporation in Sweden, is a cross-platform streaming Web3D technology, and the 3D model is constructed by utilizing the existing network technology and a three-dimensional rendering engine, so that the compression rate is high, the 3D model can be rapidly transmitted in a network, and the method is applied to a mainstream operating system and an application program. Cult3D has cross-platform performance, can run in various operating systems such as Windows, Unix and Linux, and does not need hardware support. The cut 3D and the viewport have certain similarity in 3D and three-dimensional display and three-dimensional interaction, the cut 3D needs a client to install a plug-in to display a3D model when a browser runs and can perform interactive demonstration or interactive operation with a user, the cut 3D is constructed based on Java language, more diversified extended functions are provided, and the cut 3D can be imported into common software as an object element, such as Office, Director, Acrobat and the like. Cult3D needs to be introduced after modeling by using three-dimensional modeling software such as 3DMAX and the like, and the development environment is more humanized and organized.
The third is realized by using Java3D development technology, and Java3D essentially combines Java language and three-dimensional technology, so that the functions of the Java language are expanded in the field of three-dimensional images. Sun, Inc. introduced Java3D as an API (application program interface), which included the underlying 3D technologies such as OpenGL and DirectX as the underlying three-dimensional display technology package. Thus, Java3D is an API that provides a Java-language-based upper-level interface that provides users with an organizational structure for three-dimensional entity creation, manipulation, and rendering using high-level tools. Due to the fact that the method enables 3D technology development to be simple, and meanwhile the method can be added into an integral framework such as J2EE and the like, and function expansion is facilitated. The Java language has the advantages of one-time writing and anywhere running, so that the Java3D three-dimensional graphic program also has the characteristic of being capable of being widely run on various platforms. When writing the Java3D program, only an API is required to be called for programming, and a standard Java virtual machine is used on a client side without installing any plug-in to browse. Since Java3D has encapsulated three-dimensional display technologies such as rendering code of the bottom layer, technology developers only need to pay attention to these shapes themselves such as scenes and organizations, and do not need to consider the triangular faces that make up these three-dimensional entities.
The fourth is realized by using an X3D development technology, and VRML (Virtual Reality Modeling Language) as an initial Virtual television development Language has the advantages of low bandwidth, flexibility and high efficiency, but with the development of computer technology, the defects of the VRML also appear as low code reuse rate, poor performance, long plug-in installation time, excessive occupied system resources and the like. The Web3D consortium has thus implemented the Extensible 3D (X3D) new standard. The X3D inherits the latest advanced technology such as Java streaming media technology and the like, is the latest interactive three-dimensional graphic specification facing to the network, and can display a3D model by needing a client to install a plug-in when a browser runs. It has more efficient 3D computing power, three-dimensional rendering capability, and faster network transmission capability. The X3D adopts the structured programming concept and is integrated with the XML, so that the function expansion capability is strong. The X3D adopts a structuring mode of object-oriented theory, which not only reduces the writing difficulty of the X3D program, but also increases the expansibility and interactivity with other languages. Compared with VRML, X3D has the advantages of advanced application program interface, high compatibility, multiple coding modes, high safety reliability and the like.
Since the development technologies are developed by different companies, different methods are used based on different structures, and no unified standard exists, developers need to develop browser plug-ins corresponding to the development technologies, so that the 3D model constructed by the development technologies corresponding to the plug-ins is displayed on the browser with the plug-ins installed, the development difficulty is high for the developers, the development period is long, for a user, when the user uses the browser for browsing for the first time, the user can browse after downloading and installing the corresponding plug-ins, the waiting time in the browsing process is long, and the user experience is low.
Disclosure of Invention
The invention provides a3D model drawing method and device for a closed cold channel data center, which are used for solving the problems of high development difficulty, long development period and long user waiting time in the prior art.
In order to solve the existing problems, the invention provides a3D model drawing method of a closed cold channel data center, which is applied to electronic equipment, and the method comprises the following steps:
drawing a cubic graph with a set size in a Canvas object;
determining the sub-length occupied by each cabinet on the set edge according to the number of the obtained cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge;
and marking each corresponding target cube graph according to the acquired data information of each cabinet.
Further, the marking on each corresponding target cube graphic according to the acquired data information of each cabinet includes:
for each cabinet, determining the capacity display sub-height of the target cube graph corresponding to the cabinet according to the height of the cube graph, the obtained total capacity of the cabinet and the used capacity of the cabinet; and displaying a subcube graph corresponding to the subcube height for the capacity according to the stored corresponding relation between the capacity of the cabinet and the first filling color, and filling the first target filling color corresponding to the capacity of the cabinet.
Further, the marking on each corresponding target cube graphic according to the acquired data information of each cabinet includes:
for each cabinet, acquiring a target parameter value corresponding to a preset parameter of the cabinet from the data information; and determining a target parameter value range in which the target parameter value is located according to each pre-stored parameter value range, determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color, and filling the target cube graph corresponding to the cabinet into the second target filling color.
Further, the preset parameters include: temperature parameters or alarm parameters.
Further, if the preset parameter is an alarm parameter, for each cabinet, acquiring a target parameter value corresponding to the preset parameter of the cabinet includes:
for each cabinet, determining at least one alarm level corresponding to the alarm parameter according to the acquired data information of the cabinet;
and determining the highest alarm level in each alarm level as a target parameter value of the alarm parameter of the cabinet.
Further, the obtaining of the target parameter value corresponding to the preset parameter of the cabinet includes:
acquiring at least two target parameter values corresponding to preset parameters of the cabinet, wherein each target parameter value corresponds to different positions of the cabinet;
the determining the target parameter value range in which the target parameter value is located according to each pre-stored parameter value range includes:
determining a target parameter value range in which each target parameter value is located;
determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color;
determining a second target filling color corresponding to each target parameter value range;
the filling the target cube graph corresponding to the cabinet with the second target filling color includes:
and filling the gradient corresponding to the second target filling colors corresponding to any two adjacent positions on the target cube graph corresponding to the cabinet according to the position of the cabinet corresponding to each second target filling color.
Further, the method further comprises:
the cube graph is inclined according to a set inclination angle, and the stereoscopic vision distance of each target cube in the cube graph from the display interface is different after the cube graph is inclined;
and adjusting the sub-length occupied by each cabinet on the set edge according to the stereoscopic vision distance of each target cube graphic when the target cube graphic is displayed on the screen.
Further, the method further comprises:
adjusting the display position of each target cube graph according to a preset 3D background model;
and fusing and displaying the 3D background model and each target cube graph after the display position is adjusted.
The invention provides a3D model drawing device of a closed cold channel data center, which is applied to electronic equipment and comprises:
the drawing module is used for drawing a cubic graph with a set size in the Canvas object;
the determining module is used for determining the sub-length occupied by each cabinet on the set edge according to the obtained number of the cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge;
and the marking module is used for marking each corresponding target cube graph according to the acquired data information of each cabinet.
Further, the marking module is specifically configured to determine, for each cabinet, a capacity display sub-height of a target cube graph corresponding to the cabinet according to the height of the cube graph, the obtained total capacity of the cabinet and the obtained used capacity of the cabinet; and displaying a subcube graph corresponding to the subcube height for the capacity according to the stored corresponding relation between the capacity of the cabinet and the first filling color, and filling the first target filling color corresponding to the capacity of the cabinet.
Further, the marking module is specifically configured to, for each cabinet, obtain, in the data information, a target parameter value corresponding to a preset parameter of the cabinet; and determining a target parameter value range in which the target parameter value is located according to each pre-stored parameter value range, determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color, and filling the target cube graph corresponding to the cabinet into the second target filling color.
Further, the marking module is specifically configured to, for each cabinet, obtain a target parameter value corresponding to a temperature parameter of the cabinet; or acquiring a target parameter value corresponding to the alarm parameter of each cabinet.
Further, the marking module is specifically configured to determine, for each cabinet, at least one alarm level corresponding to the alarm parameter according to the acquired data information of the cabinet if the preset parameter is the alarm parameter; and determining the highest alarm level in each alarm level as a target parameter value of the alarm parameter of the cabinet.
Further, the marking module is specifically configured to obtain at least two target parameter values corresponding to preset parameters of the cabinet, where each target parameter value corresponds to a different position of the cabinet; the determining the target parameter value range in which the target parameter value is located according to each pre-stored parameter value range includes: determining a target parameter value range in which each target parameter value is located; determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color; determining a second target filling color corresponding to each target parameter value range; and filling the gradient corresponding to the second target filling colors corresponding to any two adjacent positions on the target cube graph corresponding to the cabinet according to the position of the cabinet corresponding to each second target filling color.
Further, the apparatus further comprises:
the inclination adjusting module is used for inclining the cube graph according to a set inclination angle, and the stereoscopic vision distance of each target cube in the cube image to the display interface is different after the cube graph is inclined; and adjusting the sub-length occupied by each cabinet on the set edge according to the stereoscopic vision distance of each target cube graphic when the target cube graphic is displayed on the screen.
Further, the apparatus further comprises:
the adjusting display module is used for adjusting the display position of each target cube graph according to a preset 3D background model; and fusing and displaying the 3D background model and each target cube graph after the display position is adjusted.
The invention provides a3D model drawing method and a device for a closed cold channel data center, wherein the method comprises the following steps: drawing a cubic graph with a set size in a Canvas object; determining the sub-length occupied by each cabinet on the set edge according to the number of the obtained cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge; and marking each corresponding target cube graph according to the acquired data information of each cabinet. In the embodiment of the invention, the electronic equipment draws the cubic graph with the set size on the Canvas object and determines each target cubic graph corresponding to each cabinet, because the browser can carry out Canvas drawing on the basis of the instantiated Canvas object without installing additional plug-ins, the development difficulty is small, the period is short, the waiting time in the browsing process of the user is short, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a3D model drawing process of a closed cold aisle data center according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a cubic graph provided in embodiment 1 of the present invention;
FIG. 3 is a schematic diagram of a target cube graph according to embodiment 1 of the present invention;
fig. 4 is a schematic diagram of a3D model of a closed cold aisle data center according to embodiment 2 of the present invention;
fig. 5 is a3D volume model of a tilt-adjusted data center according to embodiment 5 of the present invention;
fig. 6 is a3D alarm model of a tilt-adjusted data center according to embodiment 5 of the present invention;
fig. 7 is a3D temperature field model of a tilt-adjusted data center according to embodiment 5 of the present invention;
fig. 8 is a3D volume model of a data center fused with a3D background model according to embodiment 6 of the present invention;
fig. 9 is a3D alarm model of a data center fused with a3D background model according to embodiment 6 of the present invention;
fig. 10 is a3D temperature field model of a data center fused with a3D background model according to embodiment 6 of the present invention;
FIG. 11 is a3D volumetric model of a rotated data center provided in embodiment 6 of the present invention;
FIG. 12 is a3D volumetric model of a rotated data center provided in embodiment 6 of the present invention;
fig. 13 is a schematic view of an electronic device according to embodiment 7 of the present invention;
fig. 14 is a schematic view of a3D model drawing device for a closed cold aisle data center according to an embodiment of the present invention.
Detailed Description
In order to reduce the development difficulty of developers and shorten the development period and the waiting time of users during browsing, the embodiment of the invention provides a method and a device for drawing a3D model of a closed cold channel data center.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of a3D model drawing process of a closed cold aisle data center according to an embodiment of the present invention, where the process includes the following steps:
s101: a cube graphic of a set size is drawn in the Canvas object.
The 3D model drawing method of the closed cold channel data center provided by the embodiment of the invention is applied to electronic equipment, and the electronic equipment can be desktop computers, portable computers, smart phones, tablet computers, network side equipment and other electronic equipment capable of drawing 3D display graphics by adopting HTML (Hypertext Markup Language) 5 Canvas objects.
The electronic device may start to draw the 3D model of the closed cold aisle data center when receiving a viewing instruction of the user for the 3D model of the closed cold aisle data center.
The electronic device can draw a cubic graph with a set size in the Canvas object, and the size of the cubic graph can be set in advance by a developer or set by a user on a management interface.
When setting the size of the cube graphic, the developer or the user may directly set and store the size of the cube graphic, or may set and store eight vertex coordinates of the cube graphic to set the size of the cube graphic, or the like. If the set size of the cubic graph is stored in the electronic equipment, the electronic equipment firstly determines any eight vertex coordinates capable of forming the cubic graph with the set size, so that the cubic graph is drawn according to the eight vertex coordinates; if the eight vertex coordinates of the cubic graph are stored in the electronic equipment, the electronic equipment directly draws the cubic graph according to the eight vertex coordinates of the cubic graph.
Specifically, the electronic device draws a cubic graph in a Canvas object according to eight vertex coordinates, the electronic device first locates eight vertices in the Canvas object according to the eight vertex coordinates, and connects the eight vertices in sequence to form a cubic graph, as shown in fig. 2, a1, a2, A3, a4, a5, a6, a7, and A8 are schematic diagrams of a cubic graph according to an embodiment of the present invention, and a cubic graph determined by the eight vertices is shown in fig. 2.
S102: determining the sub-length occupied by each cabinet on the set edge according to the number of the obtained cabinets and the length of the set edge of the cubic graph; and determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge.
After the electronic device draws a cube graph with a set size, the number of cabinets needs to be acquired.
The number of the cabinets stored in the electronic equipment is input by a user in advance according to the actual number of the cabinets in the closed cold channel data center, and the user can input the number of the cabinets when the 3D model is drawn or input the number of the cabinets before the 3D model is drawn.
The set side of the cube graph may be any one selected from the length, width and height of the cube, for example, any one long side of the cube is used as the set side of the cube graph.
The electronic device can determine the sub-length occupied by each cabinet on the set edge according to the obtained number of the cabinets and the length of the set edge of the cubic graph, specifically, the sub-length occupied by each cabinet on the set edge is arbitrary, and only the sum of the sub-lengths occupied by each cabinet on the set edge is ensured to be the length of the set edge. For example, the electronic device may use a ratio of the length of the set edge of the cubic graph to the number of the cabinets as the sub-length occupied by each cabinet on the set edge, that is, the sub-lengths occupied by each cabinet on the set edge are all equal.
After the electronic device determines the sub-length occupied by each cabinet on the set edge, the electronic device may determine vertex coordinates of eight vertices of the target cube graph corresponding to each cabinet according to each vertex of the cube graph, so that each target cube graph corresponding to each cabinet may be determined in the cube graph.
Fig. 3 is a schematic diagram of a target cube graph according to an embodiment of the present invention, where fig. 3 is each target cube graph determined on the basis of fig. 2, where the number of the obtained cabinets is 5, and a set edge of the cube graph is an edge determined by a point a1 and a point a2, the electronic device obtains lengths of the set edges of the cube graph according to a difference between an abscissa a1.x of the point a1 and an abscissa a2.x of the point a2, and divides the lengths of the set edges of the cube graph by the number of cabinets, so that sub-lengths occupied by each cabinet on the set edges are all equal, that is, a sub-length occupied by each cabinet on the set edge is equal to width (a2.x-a1. x)/5. The vertex coordinates of the eight vertices of the target cube graph corresponding to each cabinet can be determined according to the eight vertex coordinates of the cube graph and the sub-length occupied by each cabinet on the set edge, taking the cabinet close to the left side (left and right as shown in fig. 3) of the cube graph as an example, four vertices of the target cube graph corresponding to the cabinet are a1, a2, A3 and a4 of the cube graph, one vertex B1 of the horizontal coordinates B1.x ═ a1.x + width is determined according to a1, the vertical coordinate of the vertex B1 is the same as the vertical coordinate of the vertex a1, accordingly, the remaining vertices B2, B3 and B4 of the target cube graph corresponding to the cabinet can be calculated according to a2, A3 and a4, the target cube graph corresponding to the cabinet can be determined by sequentially connecting B1, B2, B3 and B4, the target cube graph corresponding to the cabinet can be determined, the process of determining the target cube graph corresponding to the cabinet is the target cube corresponding to the cabinet, in the embodiment of the present invention, details are not repeated, and 5 target cube graphics corresponding to 5 cabinets are shown in fig. 3.
S103: and marking each corresponding target cube graph according to the acquired data information of each cabinet.
The electronic equipment can acquire the data information of each cabinet in real time, the data information of each cabinet comprises data information of a closed cold channel data center such as capacity information, temperature information, alarm information and humidity information, and the specific data information acquired by the electronic equipment can be set according to the requirements of users.
When the electronic device marks each corresponding target cube graphic, the data information of each cabinet may be directly displayed on each corresponding target cube graphic, or a color corresponding to the data information of each data may be filled in each corresponding target cube graphic, and so on.
Specifically, when the electronic device acquires the data information of each cabinet, the data information may be acquired through a data center monitoring system installed in the electronic device, the data center monitoring system includes an environment monitoring subsystem, a power distribution monitoring subsystem and a device monitoring subsystem, different subsystems are used for acquiring different data information, the environment monitoring subsystem acquires and stores temperature data information and humidity data information of each cabinet in the closed cold channel data center, the power distribution monitoring subsystem realizes power distribution and supply to each cabinet and acquires and stores capacity information of each cabinet, the device monitoring subsystem realizes monitoring and control of devices in each cabinet and acquires and stores operating states of devices in each cabinet, and the like.
Because the electronic equipment draws the cube graphics with the set size in the Canvas object and determines each target cube graphic corresponding to each cabinet in the embodiment of the invention, the browser can carry out Canvas drawing based on the instantiated Canvas object without developing additional plug-ins, the development difficulty is small, the period is short, the waiting time in the user browsing process is short, and the user experience is improved.
Example 2:
in order to visually display data information on a target cube graphic and further improve user experience, on the basis of the above embodiment, in the embodiment of the present invention, the marking on each corresponding target cube graphic according to the acquired data information of each cabinet includes:
for each cabinet, determining the capacity display sub-height of the target cube graph corresponding to the cabinet according to the height of the cube graph, the obtained total capacity of the cabinet and the used capacity of the cabinet; and displaying a subcube graph corresponding to the subcube height for the capacity according to the stored corresponding relation between the capacity of the cabinet and the first filling color, and filling the first target filling color corresponding to the capacity of the cabinet.
In the embodiment of the present invention, the used capacity of each cabinet may be displayed in the 3D model of the closed cold aisle data center, specifically, the used capacity of each cabinet may be displayed by color, for example, a color corresponding to the used capacity of each cabinet is marked on a target cube graphic corresponding to each cabinet, for more intuition, a sub-cube graphic corresponding to the capacity display sub-height of each cabinet may be determined on the target cube graphic of each cabinet, and a color corresponding to the used capacity of each cabinet is marked on the sub-cube graphic corresponding to each cabinet.
Of course, in the embodiment of the present invention, the 3D model of the closed cold aisle data center may also display the remaining capacity of each cabinet, and a display manner of the remaining capacity of each cabinet is substantially the same as a display manner of the used capacity of each cabinet, which is not described in detail in the embodiment of the present invention.
The capacity of a cabinet generally refers to the electrical energy capacity of the cabinet. The electronic equipment can determine the total capacity and the used capacity of the cabinet in the acquired data information of the cabinet.
Specifically, the electronic device may determine the used capacity ratio of each cabinet according to the obtained total capacity of each cabinet and the used capacity of each cabinet. The electronic equipment can determine the capacity display sub-height of each target cube graph corresponding to each cabinet according to the used capacity ratio of each cabinet and the height of the cube graph.
The electronic device pre-stores the corresponding relationship between the capacity of the cabinet and the first filling color, and the first filling colors of different cabinets with corresponding capacities may be the same or different. The first filling color stored in the electronic device may be a specific color or a gradient of colors.
When the electronic equipment fills the color for each target cube graph of each cabinet, the electronic equipment fills each first target filling color corresponding to the capacity of each cabinet for displaying the subcube graph determined by the sublheight according to the capacity of each cabinet. Specifically, the electronic device fills each of the subcube graphics with a first target fill color using the fill color function of the Canvas.
In addition, the first target filling color is filled in each subcube graph, so that a user can distinguish each target cube graph from each subcube graph more intuitively.
The first target filling color corresponding to the capacity of each cabinet may be one or multiple, when the first target filling color corresponding to the capacity of each cabinet is multiple, the corresponding first filling color may be stored for each used capacity range in the capacity, the first filling colors stored for different used capacity ranges may be the same or different, and the first filling color corresponding to the capacity display sub-height range may be determined according to the first filling color stored in the used capacity range. In order to facilitate the determination of the first target filling color, the corresponding first filling color may be specifically stored for different capacity display sub-height ranges, and after the capacity display sub-height of the cabinet is determined, the target capacity display sub-height range in which the capacity display sub-height is located is determined, and the first filling color corresponding to the target capacity display sub-height range is used as the first target filling color. Preferably, the electronic device fills the first target filling colors corresponding to the target capacity display sub-height ranges for each subcube graph, so that the user can determine the capacity use condition of the cabinet according to the first target filling colors of the subcube graphs to achieve an early warning effect. For example, when the capacity usage condition of the cabinet is that the used capacity of the cabinet reaches the set capacity threshold, the red corresponding to the target capacity display sub-height range may be filled in the sub-cube graph, and the user may determine that the used capacity of the cabinet corresponding to the sub-cube graph reaches the set capacity threshold according to that the first target filling color of the displayed sub-cube graph is red, and guarantee normal operation of the closed cold aisle data center by adopting a corresponding coping strategy.
In the following, a specific embodiment of the present invention is described, with reference to fig. 4, which is a schematic diagram of A3D model of a closed cold aisle data center provided in an embodiment of the present invention, an electronic device obtains a total capacity and a used capacity of each cabinet in the data center, so as to calculate capacity data information of each cabinet, that is, a used capacity ratio of each cabinet, that is, if the capacity data information of a leftmost cabinet (left and right as shown in fig. 4) in fig. 4 is 40%, a difference between an ordinate a1.y of a1 and an ordinate a4.y of a4 is a height of a cube graph, that is, a total height of each cabinet, a capacity display sub-height of a target cube graph corresponding to the leftmost cabinet is 40% of the total height of the left cabinet, specifically, a capacity display sub-height of the target cube graph corresponding to the leftmost cabinet is (a1.y-a4.y) 40%, and obtaining the ordinate of the capacity display sub-height of the target cube graph corresponding to the leftmost cabinet as A4.y + height, so as to determine each vertex of the sub-cube graph corresponding to the capacity display sub-height of the leftmost cabinet, and sequentially connecting each vertex to determine the sub-cube graph corresponding to the capacity display sub-height of the leftmost cabinet. And the electronic equipment displays a sub-cube graph determined by the sub-height according to the capacity of the leftmost cabinet, and fills a first target filling color corresponding to the capacity of the leftmost cabinet.
To better present the 3D effect, the first target fill color corresponding to the capacity of the leftmost cabinet in fig. 4 is a gradient color transitioning from a dark color to a light color to show the shadow effect.
And determining and displaying the subcube graph determined by the sublevel according to the capacities of the other four cabinets, wherein the process of filling the first target filling color corresponding to the capacity of each cabinet is the same as that of the leftmost cabinet, and is not described in detail in the embodiment of the invention.
According to the embodiment of the invention, the electronic equipment determines the capacity display sub-height of the target cube graph corresponding to each cabinet according to the used capacity of each cabinet, and fills the first target filling color corresponding to the capacity of each cabinet with the sub-cube graph corresponding to the capacity display sub-height of each cabinet, so that data information can be visually displayed on the target cube graph, and the user experience is further improved.
Example 3:
in order to visually display data information on a target cube graphic and further improve user experience, on the basis of the above embodiment, in the embodiment of the present invention, the marking on each corresponding target cube graphic according to the acquired data information of each cabinet includes:
for each cabinet, acquiring a target parameter value corresponding to a preset parameter of the cabinet from the data information; and determining a target parameter value range in which the target parameter value is located according to each pre-stored parameter value range, determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color, and filling the target cube graph corresponding to the cabinet into the second target filling color.
In the embodiment of the present invention, the 3D model of the closed cold aisle data center may display a target parameter value corresponding to a preset parameter of each cabinet, and specifically, may display the target parameter value by color, for example, mark a color corresponding to the target parameter value of each cabinet on a target cube corresponding to each cabinet, in order to distinguish the target parameter value of each cabinet more intuitively, a target parameter value range where the target parameter value of each cabinet is located may be determined, and mark a color corresponding to the target parameter value range where the target parameter value of each cabinet is located on a target cube graph corresponding to each cabinet.
The preset parameters include: temperature parameters or alarm parameters. The electronic device may obtain a target parameter value corresponding to the preset parameter from the data information.
The electronic device may obtain a target parameter value corresponding to a preset parameter of each cabinet, and the target parameter value corresponding to which preset parameter of the cabinet is obtained by the electronic device may be selected according to a requirement of a user. For example, if a user needs to check temperature data information, the electronic device obtains a target parameter value corresponding to the temperature parameter of each cabinet; and if the user needs to check the alarm data information, the electronic equipment acquires a target parameter value corresponding to the alarm parameter of each cabinet and the like.
Specifically, when the electronic device obtains a target parameter value corresponding to the temperature parameter, the temperature value may be acquired according to a temperature sensor installed on the cabinet, and the acquired temperature value is used as the target parameter value corresponding to the temperature parameter. The rack can be provided with one temperature sensor or a plurality of temperature sensors, when the rack is provided with one temperature sensor, the target parameter value corresponding to the temperature parameter acquired by the electronic equipment is one, and when the rack is provided with a plurality of temperature sensors, the target parameter value corresponding to the temperature parameter acquired by the electronic equipment is a plurality of.
When the electronic equipment acquires the target parameter value corresponding to the alarm parameter, the electronic equipment can determine at least one of the volume data information, the temperature data information and the humidity data information in the acquired data information, and determine at least one alarm level corresponding to the alarm parameter according to the at least one of the volume data information, the temperature data information and the humidity data information, so as to determine the target parameter value corresponding to the alarm parameter.
If the data information acquired by the electronic equipment is one of the capacity data information, the temperature data information and the humidity data information, determining alarm information corresponding to the data information, determining an alarm level corresponding to the alarm parameter, and directly determining the alarm level corresponding to the alarm parameter as a target parameter value corresponding to the alarm parameter.
If the data information acquired by the electronic equipment is at least two of the capacity data information, the temperature data information and the humidity data information, determining an alarm level corresponding to at least one item of data information, determining at least one alarm level corresponding to the alarm parameter, and determining a target parameter value corresponding to the alarm parameter according to each alarm level.
The electronic device may determine the target parameter value corresponding to the alarm parameter according to each alarm level by using the highest alarm level in each alarm level as the target parameter value of the alarm parameter, or by using the average alarm level of each alarm level as the target parameter value of the alarm parameter.
In order to enable the user to monitor whether the cabinet is abnormal in time according to the target parameter value of the alarm parameter of the cabinet, preferably, the highest alarm level in each alarm level may be used as the target parameter value of the alarm parameter of the cabinet.
Specifically, if the preset parameter is an alarm parameter, for each cabinet, obtaining a target parameter value corresponding to the preset parameter of the cabinet includes:
for each cabinet, determining at least one alarm level corresponding to the alarm parameter according to the acquired data information of the cabinet;
and determining the highest alarm level in each alarm level as a target parameter value of the alarm parameter of the cabinet.
Each parameter value range is stored in the electronic device in advance, and the parameter value range stored for each preset parameter is different. For example, the electronic device obtains a target parameter value corresponding to the temperature parameter of each cabinet, and determines a target parameter value range in which the target parameter value corresponding to the temperature parameter is located; or the electronic equipment acquires the target parameter value corresponding to the alarm parameter of each cabinet and determines the target parameter value range in which the target parameter value corresponding to the alarm parameter is located.
The electronic device maintains a correspondence of each parameter value range to the second fill color. Therefore, the electronic device may determine the second target filling color corresponding to the target parameter range according to the target parameter value range in which the target parameter value corresponding to the preset parameter is located, so as to fill each corresponding second target filling color for each target cube graphic corresponding to each cabinet.
Different second filling colors can be stored in the electronic device for different target parameter ranges of the temperature parameter, for example, the parameter value range is less than 24 ℃ (centigrade), the corresponding second filling color is blue, the parameter value range is between 24 ℃ and 28 ℃, the corresponding second filling color is yellow, the parameter range value is greater than 28 ℃, and the corresponding second filling color is red.
Different second filling colors may be stored in the electronic device for different target parameter ranges of the alarm parameters, for example, the parameter value range may be a general alarm, the corresponding second filling color may be blue, the parameter value range may be an important alarm, the corresponding second filling color may be yellow, the parameter value range may be an emergency alarm, and the corresponding second filling color may be red.
According to the embodiment of the invention, the electronic equipment determines the target parameter value range in which the target parameter value is located according to the target parameter value corresponding to the preset parameter of each cabinet, and fills the second target filling color corresponding to the target parameter value range in the target cube graph corresponding to each cabinet, so that data information can be visually displayed on the target cube graph, and the user experience is further improved.
Example 4:
in order to further visually display data information on a target cube graph, on the basis of the foregoing embodiments, in an embodiment of the present invention, the obtaining a target parameter value corresponding to a preset parameter of the cabinet includes:
acquiring at least two target parameter values corresponding to preset parameters of the cabinet, wherein each target parameter value corresponds to different positions of the cabinet;
the determining the target parameter value range in which the target parameter value is located according to each pre-stored parameter value range includes:
determining a target parameter value range in which each target parameter value is located;
determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color;
determining a second target filling color corresponding to each target parameter value range;
the filling the target cube graph corresponding to the cabinet with the second target filling color includes:
and filling the gradient corresponding to the second target filling colors corresponding to any two adjacent positions on the target cube graph corresponding to the cabinet according to the position of the cabinet corresponding to each second target filling color.
In the embodiment of the invention, at least two target parameter values corresponding to preset parameters of cabinets can be displayed in the 3D model of the closed cold channel data center, specifically, the color corresponding to the target parameter value range where each target parameter value is located can be marked on the target cube graph corresponding to each cabinet, and in order to show the transition change between at least two target parameter values more intuitively, the gradual change color corresponding to the target parameter value range where any two adjacent target parameter values are located can be marked between the positions of the colors corresponding to the target parameter value ranges where any two adjacent target parameter values are located on the target cube graph corresponding to each cabinet.
In order to achieve more accurate monitoring of data information of the cabinets under a normal condition, the electronic device may obtain at least two target parameter values corresponding to the preset parameter of each cabinet, for example, at least two temperature sensors are installed on each cabinet under a normal condition, so the electronic device may obtain at least two target parameter values corresponding to the preset parameter of each cabinet, and positions of the at least two temperature sensors installed on each cabinet are different, so positions of the cabinets corresponding to each target parameter value are also different.
When the electronic equipment obtains at least two target parameter values corresponding to preset parameters of the cabinet, the electronic equipment determines a target parameter value range in which each target parameter value is located according to each target parameter value, and determines each second target filling color corresponding to each target parameter range according to the corresponding relation between each parameter value range and the second filling color.
The electronic device can determine the position of the cabinet corresponding to each second target filling color in the at least two target filling colors according to the position of the cabinet corresponding to each target parameter value in the at least two target parameter values, and any two adjacent positions are determined on the target cube graph corresponding to the cabinet according to the at least two positions of the cabinet corresponding to the at least two target filling colors. If the preset parameter is a temperature parameter, the two adjacent positions can represent the positions of two adjacent temperature sensors mounted on the cabinet.
And the electronic equipment fills the gradient corresponding to the second target filling color between any two adjacent positions on the target cube graph corresponding to the cabinet. If each second target filling color in any two is the same, filling the second target filling color between any two adjacent positions; and if each of the second target filling colors in any two of the two target filling colors is different, filling the gradient color corresponding to the second target filling color corresponding to any two adjacent positions between any two adjacent positions according to each second target filling color, wherein the gradient colors corresponding to two different target filling colors are different.
If the number of the target parameter values corresponding to the preset parameters of the cabinet acquired by the electronic equipment is two, any two adjacent positions on the target cube graph corresponding to the cabinet are the positions of the cabinet corresponding to the two target filling colors.
In the following, the embodiment of the present invention is described with reference to a specific example, assuming that the preset parameter is a temperature parameter, and two temperature sensors are mounted at different positions of each cabinet, for example one of the cabinets, two temperature sensors are arranged at the top and the bottom of the cabinet, two target parameter values corresponding to the temperature parameters of the cabinet acquired by the electronic equipment are respectively 20 ℃ and 25 ℃, the positions of the cabinet corresponding to the two acquired target parameter values are respectively the top and the bottom of the cabinet, three parameter value ranges are stored in the electronic equipment, wherein the three parameter value ranges are respectively that the first target parameter value range is less than 24 ℃, the second target parameter value range is between 24 ℃ and 28 ℃ and the third target parameter value range is more than 28 ℃, the electronic device determines that the target parameter value range of the target parameter value at 20 ℃ is a first target parameter value range, and the target parameter value range of the target parameter value at 25 ℃ is a second target parameter value range. The electronic device stores that the second filling color corresponding to the first parameter value range is blue, the second filling color corresponding to the second parameter value range is yellow, the third filling color corresponding to the third parameter value range is red, the second target filling color corresponding to the first target parameter value range is blue, and the second target filling color corresponding to the second target parameter value range is yellow.
And the electronic equipment fills the gradual colors corresponding to the blue and the yellow in the target cube graph corresponding to the cabinet before the positions of the cabinets corresponding to the two second target filling colors.
The electronic equipment obtains at least two target parameter values corresponding to the preset parameters of the cabinet, and after the second target filling color corresponding to the target parameter value range in which each target parameter value is located is determined, the gradual change color corresponding to the second target filling color is filled between any two adjacent positions on the target cube graph corresponding to the cabinet according to the position of the cabinet corresponding to each second target filling color, so that the difference of the at least two target parameter values of the preset parameters of the cabinet can be visually embodied, and the data information can be further visually displayed on the target cube graph.
Example 5:
in order to more truly realize the 3D effect, on the basis of the foregoing embodiments, in an embodiment of the present invention, the method further includes:
the cube graph is inclined according to a set inclination angle, and the stereoscopic vision distance of each target cube in the cube graph from the display interface is different after the cube graph is inclined;
and adjusting the sub-length occupied by each cabinet on the set edge according to the stereoscopic vision distance of each target cube graphic when the target cube graphic is displayed on the screen.
The electronic equipment inclines the cubic graph, and adjusts the sub-length occupied by each cabinet on the set edge, so that the degree of the stereoscopic vision is large and small, and the 3D effect is more truly embodied.
The electronic device stores the tilt angle at which the cubic graphic is tilted, and specifically, the electronic device tilts the cubic graphic according to the set tilt angle by using the tilt function of Canvas.
After the cubic graph is inclined according to the set inclination angle, the stereoscopic vision distance from each target cubic graph in the cubic graph to the display interface is different, so that the stereoscopic vision is large and small.
In order to reflect the 3D effect more really, the electronic equipment adjusts the sub-length occupied by each cabinet on the set edge. Specifically, the electronic device adjusts the sub-length occupied by each cabinet on the set edge according to the stereoscopic vision distance displayed on the screen by each target cube graphic, so that the sub-length occupied by the cabinet with the closer stereoscopic vision distance displayed on the screen on the set edge is greater than the sub-length occupied by the cabinet with the farther stereoscopic vision distance displayed on the screen on the set edge.
Preferably, the electronic device does not change the length of the set edge of the cube graphic during the adjustment process, and the difference between the sub-lengths occupied by each two adjacent target cube graphics on the set edge is the same.
Specifically, the electronic device may adjust the sub-length occupied by each cabinet on the set edge according to the following stored computer program:
after the algorithm processing is finished, under the condition that the length of the set edge of the cube graph is not changed, the sub-length occupied by each target cube graph on the set edge is gradually changed from small to large.
Fig. 5 is a3D capacity model of the data center after the tilt adjustment, where a capacity of a target cube graph corresponding to each cabinet in the 3D capacity model displays a sub-cube graph corresponding to a sub-height, and each sub-cube graph is filled with a first target filling color corresponding to the capacity of each cabinet.
Fig. 6 is a3D alarm model of the data center after the inclination adjustment, each target cube graph corresponding to each cabinet is displayed in the 3D capacity model, and a second target filling color corresponding to a target parameter value range in which a target parameter value corresponding to the alarm parameter is located is filled in each target cube graph.
Fig. 7 is a3D temperature field model of the data center after the tilt adjustment, each target cube graph corresponding to each cabinet is displayed in the 3D capacity model, a second target filling color corresponding to a target parameter value range where each target parameter value of at least two target parameter values corresponding to the temperature parameter is located is filled in each target cube graph, and a gradient corresponding to the second target filling color is filled between any two adjacent positions in each target cube graph.
As the electronic equipment inclines the cubic graph and adjusts the sub-length occupied by each cabinet on the set edge, the stereoscopic vision is large and small, and the 3D effect is more truly embodied.
Example 6:
in order to more truly realize the 3D effect, on the basis of the foregoing embodiments, in an embodiment of the present invention, the method further includes:
adjusting the display position of each target cube graph according to a preset 3D background model;
and fusing and displaying the 3D background model and each target cube graph after the display position is adjusted.
In the embodiment of the invention, each target cube graph after the display position is adjusted is fused and displayed with the preset 3D background model, so that the 3D effect is reflected more truly.
The electronic equipment draws a background picture of the closed cold channel data center on the basis of the 3D graph, and adjusts the display position of each target cube graph in the 3D background model according to a preset 3D background model. Specifically, the vertex coordinates of each target cube graph are adjusted to be fused with the 3D background model, partial auxiliary lines in the target cube graph are hidden while the background of the data center is used for shielding, and the 3D background model and each target cube graph after the display position is adjusted are fused and displayed.
Fig. 8 is a3D volume model of a data center fused with a3D background model according to an embodiment of the present invention. As shown in fig. 8, each target cube graphic is displayed in a fused manner with the 3D background model, and the capacity of the target cube graphic corresponding to each cabinet displays a sub-cube graphic corresponding to a sub-height, and each sub-cube graphic is filled with a first target filling color corresponding to the capacity of each cabinet.
Fig. 9 is a3D alarm model of a data center fused with a3D background model according to an embodiment of the present invention. As shown in fig. 9, each target cube graphic is displayed in a fused manner with the 3D background model, and each target cube graphic is filled with a second target filling color corresponding to the target parameter value range in which the target parameter value corresponding to the alarm parameter is located.
Fig. 10 is a3D temperature field model of a data center fused with a3D background model according to an embodiment of the present invention. As shown in fig. 10, each target cube graphic is displayed in a fused manner with the 3D background model, and each target cube graphic is filled with a second target filling color corresponding to a target parameter value range in which each target parameter value of the at least two target parameter values corresponding to the temperature parameter is located, and a gradient corresponding to the second target filling color is filled between any two adjacent positions in each target cube graphic.
Fig. 8, 9, and 10 implement 3D display only on one side of the data center, in order to embody a back side, even a full 3D model of the data center, a rotation button may be further disposed on a display interface of the 3D model, and after receiving an operation of the rotation button by a user, the 3D model rotates according to a set rotation angle, specifically, the rotation button may rotate by a set angle in a clockwise direction, thereby implementing a rotation effect of the data center, and embodying the full 3D model of the data center.
Fig. 11 is a3D volume model of a rotated data center according to an embodiment of the present invention. Fig. 12 is a3D volumetric model of a rotated data center according to an embodiment of the present invention.
In the embodiment of the invention, each target cube graph after the display position is adjusted is fused and displayed with the preset 3D background model, so that the 3D effect is reflected more truly.
Example 7:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 13, including: the system comprises a processor 1301, a communication interface 1302, a memory 1303 and a communication bus 1304, wherein the processor 1301, the communication interface 1302 and the memory 1303 complete mutual communication through the communication bus 1304;
the memory 1303 stores therein a computer program that, when executed by the processor 1301, causes the processor 1301 to perform the steps of:
drawing a cubic graph with a set size in a Canvas object;
determining the sub-length occupied by each cabinet on the set edge according to the number of the obtained cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge;
and marking each corresponding target cube graph according to the acquired data information of each cabinet.
Based on the same inventive concept, the embodiment of the invention also provides an electronic device, and as the problem solving principle of the electronic device is similar to the 3D model drawing method of the closed cold channel data center, the implementation of the electronic device can refer to the implementation of the method, and repeated parts are not described again.
The electronic device provided by the embodiment of the invention can be a desktop computer, a portable computer, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a network side device and the like.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 1302 is used for communication between the above-described electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The processor may be a general-purpose processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
When the processor executes the program stored in the memory in the embodiment of the invention, the cubic graph with the set size is drawn on the Canvas object, and each target cubic graph corresponding to each cabinet is determined.
Example 8:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
drawing a cubic graph with a set size in a Canvas object;
determining the sub-length occupied by each cabinet on the set edge according to the number of the obtained cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge;
and marking each corresponding target cube graph according to the acquired data information of each cabinet.
Based on the same inventive concept, embodiments of the present invention further provide a computer-readable storage medium, and since a principle of solving a problem when a processor executes a computer program stored on the computer-readable storage medium is similar to a3D model drawing method for a closed cold aisle data center, the implementation of the computer program stored on the computer-readable storage medium by the processor may refer to implementation of the method, and repeated details are omitted.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MO), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, nonvolatile memories (NANDFLASH), Solid State Disks (SSDs), etc.
The computer program is stored in the computer-readable storage medium provided by the embodiment of the invention, when the computer program is executed by the processor, the effect that the Canvas object draws the cube graph with the set size is realized, and each target cube graph corresponding to each cabinet is determined.
Fig. 14 is a schematic view of a3D model drawing apparatus for a closed cold aisle data center, applied to an electronic device, according to an embodiment of the present invention, where the apparatus includes:
a drawing module 1401, configured to draw a cubic graph with a set size in a Canvas object;
a determining module 1402, configured to determine, according to the obtained number of the cabinets and the length of the set edge of the cube graph, a sub-length occupied by each cabinet on the set edge; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge;
a marking module 1403, configured to mark each corresponding target cube graphic according to the acquired data information of each cabinet.
The marking module 1403 is specifically configured to determine, for each cabinet, a capacity display sub-height of a target cube graph corresponding to the cabinet according to the height of the cube graph, the obtained total capacity of the cabinet and the obtained used capacity of the cabinet; and displaying a subcube graph corresponding to the subcube height for the capacity according to the stored corresponding relation between the capacity of the cabinet and the first filling color, and filling the first target filling color corresponding to the capacity of the cabinet.
The marking module 1403 is specifically configured to, for each cabinet, obtain, in the data information, a target parameter value corresponding to a preset parameter of the cabinet; and determining a target parameter value range in which the target parameter value is located according to each pre-stored parameter value range, determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color, and filling the target cube graph corresponding to the cabinet into the second target filling color.
The marking module 1403 is specifically configured to obtain, for each cabinet, a target parameter value corresponding to a temperature parameter of the cabinet; or acquiring a target parameter value corresponding to the alarm parameter of each cabinet.
The marking module 1403 is specifically configured to determine, for each cabinet, at least one alarm level corresponding to the alarm parameter according to the acquired data information of the cabinet if the preset parameter is the alarm parameter; and determining the highest alarm level in each alarm level as a target parameter value of the alarm parameter of the cabinet.
The marking module 1403 is specifically configured to obtain at least two target parameter values corresponding to preset parameters of the cabinet, where each target parameter value corresponds to a different position of the cabinet; the determining the target parameter value range in which the target parameter value is located according to each pre-stored parameter value range includes: determining a target parameter value range in which each target parameter value is located; determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color; determining a second target filling color corresponding to each target parameter value range;
the marking module 1403 is specifically configured to fill, according to the position of the cabinet corresponding to each second target filling color, the gradient color corresponding to the second target filling color corresponding to any two adjacent positions on the target cube graph corresponding to the cabinet between any two adjacent positions.
The device further comprises:
the inclination adjusting module 1404 is configured to incline the cube graph according to a set inclination angle, where after the cube graph is inclined, the stereoscopic vision distance between each target cube in the cube graph and the display interface is different; and adjusting the sub-length occupied by each cabinet on the set edge according to the stereoscopic vision distance of each target cube graphic when the target cube graphic is displayed on the screen.
The device further comprises:
an adjusting display module 1405, configured to adjust a display position of each target cube graphic according to a preset 3D background model; and fusing and displaying the 3D background model and each target cube graph after the display position is adjusted.
Because the electronic equipment draws the cube graphics with the set size on the Canvas object and determines each target cube graphic corresponding to each cabinet in the embodiment of the invention, the browser can draw the Canvas on the basis of the instantiated Canvas object without installing additional plug-ins, the development difficulty is small, the period is short, the waiting time in the browsing process of the user is short, and the user experience is improved.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, 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 flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may 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 instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may 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 functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (14)
1. A3D model drawing method of a closed cold channel data center is applied to electronic equipment and comprises the following steps:
drawing a cubic graph with a set size in a Canvas object;
determining the sub-length occupied by each cabinet on the set edge according to the number of the obtained cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge;
marking each corresponding target cube graph according to the acquired data information of each cabinet, wherein the data information of each cabinet comprises capacity information, temperature information, alarm information and humidity information;
the method further comprises the following steps:
the cube graph is inclined according to a set inclination angle, and the stereoscopic vision distance of each target cube in the cube graph from the display interface is different after the cube graph is inclined;
and adjusting the sub-length occupied by each cabinet on the set edge according to the stereoscopic vision distance of each target cube graphic when the target cube graphic is displayed on the screen.
2. The method of claim 1, wherein the marking on each corresponding target cube graphic according to the acquired data information of each cabinet comprises:
for each cabinet, determining the capacity display sub-height of the target cube graph corresponding to the cabinet according to the height of the cube graph, the obtained total capacity of the cabinet and the used capacity of the cabinet; and displaying a subcube graph corresponding to the subcube height for the capacity according to the stored corresponding relation between the capacity of the cabinet and the first filling color, and filling the first target filling color corresponding to the capacity of the cabinet.
3. The method of claim 1, wherein the marking on each corresponding target cube graphic according to the acquired data information of each cabinet comprises:
for each cabinet, acquiring a target parameter value corresponding to a preset parameter of the cabinet from the data information; and determining a target parameter value range in which the target parameter value is located according to each pre-stored parameter value range, determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color, and filling the target cube graph corresponding to the cabinet into the second target filling color.
4. The method of claim 3, wherein the preset parameters comprise: temperature parameters or alarm parameters.
5. The method of claim 4, wherein if the preset parameter is an alarm parameter, for each cabinet, obtaining a target parameter value corresponding to the preset parameter of the cabinet comprises:
for each cabinet, determining at least one alarm level corresponding to the alarm parameter according to the acquired data information of the cabinet;
and determining the highest alarm level in each alarm level as a target parameter value of the alarm parameter of the cabinet.
6. The method of claim 3, wherein the obtaining the target parameter value corresponding to the preset parameter of the cabinet comprises:
acquiring at least two target parameter values corresponding to preset parameters of the cabinet, wherein each target parameter value corresponds to different positions of the cabinet;
the determining the target parameter value range in which the target parameter value is located according to each pre-stored parameter value range includes:
determining a target parameter value range in which each target parameter value is located;
determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color;
determining a second target filling color corresponding to each target parameter value range;
the filling the target cube graph corresponding to the cabinet with the second target filling color includes:
and filling the gradient corresponding to the second target filling colors corresponding to any two adjacent positions on the target cube graph corresponding to the cabinet according to the position of the cabinet corresponding to each second target filling color.
7. The method of claim 1, wherein the method further comprises:
adjusting the display position of each target cube graph according to a preset 3D background model;
and fusing and displaying the 3D background model and each target cube graph after the display position is adjusted.
8. The utility model provides a3D model drawing device of closed cold aisle data center which characterized in that, is applied to electronic equipment, and the device includes:
the drawing module is used for drawing a cubic graph with a set size in the Canvas object;
the determining module is used for determining the sub-length occupied by each cabinet on the set edge according to the obtained number of the cabinets and the length of the set edge of the cubic graph; determining each target cube graph corresponding to each cabinet in the cube graphs according to the sub-length occupied by each cabinet on the set edge;
the marking module is used for marking each corresponding target cube graph according to the acquired data information of each cabinet, wherein the data information of each cabinet comprises capacity information, temperature information, alarm information and humidity information;
the device further comprises:
the inclination adjusting module is used for inclining the cube graph according to a set inclination angle, and the stereoscopic vision distance of each target cube in the cube image to the display interface is different after the cube graph is inclined; and adjusting the sub-length occupied by each cabinet on the set edge according to the stereoscopic vision distance of each target cube graphic when the target cube graphic is displayed on the screen.
9. The apparatus according to claim 8, wherein the marking module is specifically configured to determine, for each cabinet, a capacity display sub-height of a target cube graph corresponding to the cabinet according to the height of the cube graph, and the obtained total capacity of the cabinet and the used capacity of the cabinet; and displaying a subcube graph corresponding to the subcube height for the capacity according to the stored corresponding relation between the capacity of the cabinet and the first filling color, and filling the first target filling color corresponding to the capacity of the cabinet.
10. The apparatus according to claim 8, wherein the marking module is specifically configured to, for each cabinet, obtain, in the data information, a target parameter value corresponding to a preset parameter of the cabinet; and determining a target parameter value range in which the target parameter value is located according to each pre-stored parameter value range, determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color, and filling the target cube graph corresponding to the cabinet into the second target filling color.
11. The apparatus according to claim 10, wherein the marking module is specifically configured to, for each cabinet, obtain a target parameter value corresponding to the temperature parameter of the cabinet; or acquiring a target parameter value corresponding to the alarm parameter of each cabinet.
12. The apparatus according to claim 11, wherein the marking module is specifically configured to, for each cabinet, determine, according to the acquired data information of the cabinet, at least one alarm level corresponding to the alarm parameter if the preset parameter is the alarm parameter; and determining the highest alarm level in each alarm level as a target parameter value of the alarm parameter of the cabinet.
13. The apparatus according to claim 10, wherein the marking module is specifically configured to obtain at least two target parameter values corresponding to preset parameters of the cabinet, where each target parameter value corresponds to a different position of the cabinet; the determining the target parameter value range in which the target parameter value is located according to each pre-stored parameter value range includes: determining a target parameter value range in which each target parameter value is located; determining a second target filling color corresponding to the target parameter value range according to the corresponding relation between each parameter value range and the second filling color; determining a second target filling color corresponding to each target parameter value range; and filling the gradient corresponding to the second target filling colors corresponding to any two adjacent positions on the target cube graph corresponding to the cabinet according to the position of the cabinet corresponding to each second target filling color.
14. The apparatus of claim 8, wherein the apparatus further comprises:
the adjusting display module is used for adjusting the display position of each target cube graph according to a preset 3D background model; and fusing and displaying the 3D background model and each target cube graph after the display position is adjusted.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710752375.7A CN109426684B (en) | 2017-08-28 | 2017-08-28 | 3D model drawing method and device for closed cold channel data center |
PCT/CN2018/073798 WO2019041739A1 (en) | 2017-08-28 | 2018-01-23 | Method and device for drawing 3d model of closed cold channel data center |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710752375.7A CN109426684B (en) | 2017-08-28 | 2017-08-28 | 3D model drawing method and device for closed cold channel data center |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109426684A CN109426684A (en) | 2019-03-05 |
CN109426684B true CN109426684B (en) | 2020-04-03 |
Family
ID=65501867
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710752375.7A Active CN109426684B (en) | 2017-08-28 | 2017-08-28 | 3D model drawing method and device for closed cold channel data center |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109426684B (en) |
WO (1) | WO2019041739A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110427142A (en) * | 2019-07-29 | 2019-11-08 | 成都科鸿智信科技有限公司 | A kind of special equipment supervising platform drawing tools based on Html5 canvas forming label |
CN112699145B (en) * | 2019-10-23 | 2024-05-03 | 苏州华兴源创科技股份有限公司 | Data processing system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102608939A (en) * | 2012-01-19 | 2012-07-25 | 山西省电力公司电力通信中心 | Three-dimensional machine room monitoring system and method |
CN102902499A (en) * | 2012-08-22 | 2013-01-30 | 华为技术有限公司 | Partition display method and device of storage device |
CN104239606A (en) * | 2014-08-06 | 2014-12-24 | 北京大学 | UML (Unified Modeling Language) modeling method and device capable of supporting screen touch under web environment |
CN104391776A (en) * | 2014-11-10 | 2015-03-04 | 中兴通讯股份有限公司 | Temperature processing method and device, and temperature displaying method and device of data center |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106384374A (en) * | 2016-09-27 | 2017-02-08 | 郑州云海信息技术有限公司 | Method and device for realizing animation effect |
CN106991151A (en) * | 2017-03-28 | 2017-07-28 | 上海烟草集团有限责任公司 | A kind of graphic method and device managed for calculator room equipment |
-
2017
- 2017-08-28 CN CN201710752375.7A patent/CN109426684B/en active Active
-
2018
- 2018-01-23 WO PCT/CN2018/073798 patent/WO2019041739A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102608939A (en) * | 2012-01-19 | 2012-07-25 | 山西省电力公司电力通信中心 | Three-dimensional machine room monitoring system and method |
CN102902499A (en) * | 2012-08-22 | 2013-01-30 | 华为技术有限公司 | Partition display method and device of storage device |
CN104239606A (en) * | 2014-08-06 | 2014-12-24 | 北京大学 | UML (Unified Modeling Language) modeling method and device capable of supporting screen touch under web environment |
CN104391776A (en) * | 2014-11-10 | 2015-03-04 | 中兴通讯股份有限公司 | Temperature processing method and device, and temperature displaying method and device of data center |
Also Published As
Publication number | Publication date |
---|---|
CN109426684A (en) | 2019-03-05 |
WO2019041739A1 (en) | 2019-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10803561B2 (en) | Systems, methods, and media for hierarchical progressive point cloud rendering | |
CN111754614B (en) | VR-based video rendering method and device, electronic equipment and storage medium | |
US20210019946A1 (en) | System and method for augmented reality scenes | |
US20170278292A1 (en) | Systems and methods for displaying representative images | |
US20170038942A1 (en) | Playback initialization tool for panoramic videos | |
KR102096497B1 (en) | Reduced latency of map interfaces | |
US20230367953A1 (en) | Display rendering method and system | |
CN106331687B (en) | Method and apparatus for processing a portion of immersive video content according to a position of a reference portion | |
US20100265250A1 (en) | Method and system for fast rendering of a three dimensional scene | |
KR20200109315A (en) | 3D displays using electromagnetic field computing | |
US10825234B2 (en) | Previewing 3D content using incomplete original model data | |
US20140184596A1 (en) | Image based rendering | |
CN110930497B (en) | Global illumination intersection acceleration method and device and computer storage medium | |
CN109426684B (en) | 3D model drawing method and device for closed cold channel data center | |
US10708597B2 (en) | Techniques for extrapolating image frames | |
CN113724331B (en) | Video processing method, video processing apparatus, and non-transitory storage medium | |
CN108429905B (en) | Naked eye 3D display method and device, electronic equipment and storage medium | |
US10657705B2 (en) | System and method for rendering shadows for a virtual environment | |
CN117742677A (en) | XR engine low-code development platform | |
CN115830212A (en) | Three-dimensional model display method and related equipment | |
CN114265583A (en) | VR content development optimization method and device, electronic equipment and readable storage medium | |
CN114926616A (en) | Three-dimensional image display method, electronic device and storage medium | |
Schmauder et al. | Distributed visual analytics on large-scale high-resolution displays | |
CN112017101B (en) | Variable rasterization rate | |
EP2767973A1 (en) | User terminal and method of displaying image thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |