CN109426684A - A kind of 3D modeling rendering method and device for closing cold passage data center - Google Patents

A kind of 3D modeling rendering method and device for closing cold passage data center Download PDF

Info

Publication number
CN109426684A
CN109426684A CN201710752375.7A CN201710752375A CN109426684A CN 109426684 A CN109426684 A CN 109426684A CN 201710752375 A CN201710752375 A CN 201710752375A CN 109426684 A CN109426684 A CN 109426684A
Authority
CN
China
Prior art keywords
cabinet
cube
parameter value
targeted
fill color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710752375.7A
Other languages
Chinese (zh)
Other versions
CN109426684B (en
Inventor
郭浩龙
谢虎
颜泽波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vertiv Tech Co Ltd
Original Assignee
Vertiv Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vertiv Tech Co Ltd filed Critical Vertiv Tech Co Ltd
Priority to CN201710752375.7A priority Critical patent/CN109426684B/en
Priority to PCT/CN2018/073798 priority patent/WO2019041739A1/en
Publication of CN109426684A publication Critical patent/CN109426684A/en
Application granted granted Critical
Publication of CN109426684B publication Critical patent/CN109426684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/08Volume 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 a kind of 3D modeling rendering method and devices for closing cold passage data center, are applied to electronic equipment, this method comprises: drawing the cube figure being sized in painting canvas Canvas object;According to the quantity of the cabinet got and the length on the setting side of the cube figure, the sub- length that each cabinet occupies on the setting side is determined;According to the sub- length that each cabinet occupies on the setting side, the corresponding each targeting cube figure of each cabinet is determined in the cube figure;According to the data information of each cabinet got, it is marked on corresponding each targeting cube figure.The Canvas object that browser itself is capable of Case-based Reasoning in embodiments of the present invention carries out Canvas drawing, does not need to install additional plug-in unit, development difficulty is small, and the period is short, and the waiting time is short in user's navigation process, improves user experience.

Description

A kind of 3D modeling rendering method and device for closing cold passage data center
Technical field
The present invention relates to technical field of data processing more particularly to a kind of 3D modeling renderings for closing cold passage data center Method and device.
Background technique
With being constantly progressive for data center informationization construction, cold passage sealing technique has also obtained biggish development and has answered With.Ever-increasing information and data, to bringing biggish pressure in management.So in order to meet the actual needs of data center And the demand to data visualize, realize that closing is cold logical usually using following several 3D development technique in the prior art The 3D at track data center is visualized:
The first is to realize that ViewPoint is mentioned by metacreation and Intel using ViewPoint development technique A kind of Web3D technology out passes through the base in XML (Extensible Markup Language, extensible markup language) It is constructed on plinth, ViewPoint can carry out data exchange with browser and database, a variety of soft due to that can be embedded in It is used in part, so that its application range is very extensive.Need client installation plug-in unit that can show with the side of stream in browsing The 3D model of formula transmission.By mouse, perhaps browser event interacts demonstration or and user with being triggered dynamic Interact operation, such as the zooming and panning of object.This technology runs through the links of Network Three-dimensional virtual technology.But with Other Web3D technologies compare, and ViewPoint needs software development and processing three-dimensional image object by oneself, without It is to import 3-D image by other means, therefore is real 3D model, can be created that the 3D image of Photorealistic.
Second is realized using Cult3D development technique, and Cult3D is a kind of 3D net of the Cycore company exploitation of Sweden Network technology is cross-platform streaming Web3D technology, by carrying out 3D model using existing network technology and 3 d rendering engine Building has very high compression ratio, can rapidly transmit, be applied in mainstream operation system and application program in a network. Cult3D has professional platform independence, can run in the various operating systems such as Windows, Unix and Linux, not need hardware branch It holds.Although Cult3D and Viewpoint has certain similitude in 3D and Three-dimensional Display and three-dimension interaction, Cult3D is clear Device of looking at needs client installation plug-in unit that can show 3D model when running, and is able to carry out interactive demonstration or carries out with user Interactive operation, but Cult3D is constructed based on Java language, provides more diversified extension function, and Cult3D can make It is imported into common software for object elements, such as Office, Director and Acrobat etc..Cult3D needs to utilize 3DMAX Equal 3 d modeling softwares import after being modeled, exploitation environment more hommization and methodization.
The third be using Java3D development technique realize, Java3D be substantially by Java language in conjunction with 3-D technology, The function of Java language is set to be expanded in 3-D image field.Sun Microsystems are pushed away Java3D as application program api interface Out, it is included the 3D technology of the bottoms such as OpenGL and DirectX, and the dimension display technologies as bottom encapsulate.Therefore, Java3D is exactly the API of a high-level interface of the offer based on Java language, it is provided for user and is carried out using high-rise tool 3D solid creation, operation and the institutional framework for colouring and rendering.Just because of this, so that 3D technology exploitation becomes simple, simultaneously It can be also added in the general frames such as J2EE, be convenient for Function Extension.Java language, which has, once to be write, and what is run everywhere is excellent Point, therefore Java3D 3-D graphic program also has the characteristics that run extensively in various platforms.When writing Java3D program, We only need that API is called to be programmed, and use the Java Virtual Machine of standard can without installing any plug-in unit in client With browsing.Since Java 3D encapsulates the dimension display technologies such as the rendering code of bottom, technology developer only needs to pay close attention to field These bodies itself such as scape and tissue, the triangular facet without considering these 3D solids of composition.
4th kind is realized using X3D development technique, and VRML (Virtual Reality Modeling Language, it is empty Quasi- display modeling language) as initial virtual TV development language, have the advantages that low bandwidth and flexible and efficient, but with meter The development of calculation machine technology, its deficiency are also revealed as that reuse of code is low, and performance is bad, and the plug-in unit set-up time is long and occupies System resource is excessive etc..Therefore Web3D association performs Extensible 3D (X3D) new standard.X3D inherits Java stream matchmaker The newest advanced technology such as body technique is the interactivity 3-D graphic specification of newest network-oriented, needs in browser execution Client installation plug-in unit can show 3D model.It has more efficient 3D computing capability, three-dimensional rendering ability and more Fast network capacity.X3D uses the programming thought of buildingization and integrates with XML, therefore has very strong function Extended capability.X3D uses the building mode of object-oriented theory, this not only makes the reduction of X3D programming difficulty, and Increase its scalability and the interactivity with other language.Compared with its predecessor VRML, X3D has advanced application program circle Many advantages, such as face, the compatibility of height, a variety of coding modes of permission, safety reliability.
Since above-mentioned several development technique are all different the exploitation that company voluntarily carries out, based on different structures, use Different methods, ununified standard make pacifying so developer is needed to develop the corresponding browser plug-in of development technique The 3D model that development technique building corresponding with plug-in unit is shown on browser equipped with plug-in unit, so explaining clearly for developer Degree of raising difficult questions is big, and the development cycle is long, for a user, when browsing using first browser, needs to download and install corresponding insert It just can be carried out browsing after part, waiting for a long time in navigation process, user experience is lower.
Summary of the invention
The present invention provides a kind of 3D modeling rendering method and device for closing cold passage data center, to solve existing skill There is a problem of that development difficulty is big, the development cycle is long in art and period of reservation of number is long.
To solve the above problems, the present invention provides a kind of 3D modeling renderings for closing cold passage data center Method is applied to electronic equipment, this method comprises:
The cube figure being sized is drawn in painting canvas Canvas object;
According to the quantity of the cabinet got and the length on the setting side of the cube figure, determine that each cabinet exists The sub- length occupied on the setting side;According to the sub- length that each cabinet occupies on the setting side, in the cube The corresponding each targeting cube figure of each cabinet is determined in figure;
According to the data information of each cabinet got, in corresponding each enterprising rower of targeting cube figure Note.
Further, the data information for each cabinet that the basis is got, in corresponding each target cube It is marked on volume graphic and includes:
For each cabinet, according to the height of the cube figure, and the total capacity of the cabinet that gets and should Cabinet has used capacity, determines the capacity display son height of the corresponding targeting cube figure of the cabinet;According to the machine of preservation The corresponding relationship of the capacity of cabinet and the first fill color, for the corresponding sub-cube figure of capacity display son height, filling should The corresponding first object fill color of the capacity of cabinet.
Further, the data information for each cabinet that the basis is got, in corresponding each target cube It is marked on volume graphic and includes:
For each cabinet, the corresponding targeted parameter value of parameter preset of the cabinet is obtained in data information;According to pre- The each range of parameter values first saved determines the targeted parameter value range where the targeted parameter value, and according to each parameter It is worth the corresponding relationship of range and the second fill color, the corresponding second target fill color of the targeted parameter value range is determined, by this The corresponding targeting cube filling graph of cabinet is the second target fill color.
Further, the parameter preset includes: temperature parameter or alarm parameter.
Further, if the parameter preset is alarm parameter, it is directed to each cabinet, obtains the default ginseng of the cabinet Counting corresponding targeted parameter value includes:
For each cabinet, according to the data information of the cabinet got, determine alarm parameter it is corresponding at least one Alert grade;
Each is alerted into the highest in grade and alerts grade, is determined as the targeted parameter value of the alarm parameter of the cabinet.
Further, the corresponding targeted parameter value of parameter preset for obtaining the cabinet includes:
Corresponding at least two targeted parameter value of parameter preset for obtaining the cabinet, wherein each targeted parameter value pair Should cabinet different location;
Each range of parameter values that the basis pre-saves determines the targeted parameter value model where the targeted parameter value It encloses and includes:
For each targeted parameter value, the targeted parameter value range where the targeted parameter value is determined;
According to the corresponding relationship of each range of parameter values and the second fill color, determine that the targeted parameter value range is corresponding Second target fill color;
For each targeted parameter value range, the corresponding second target fill color of the targeted parameter value range is determined;
It is described to include: for the second target fill color by the corresponding targeting cube filling graph of the cabinet
According to the position of the corresponding cabinet of each second target fill color, in the corresponding targeting cube figure of the cabinet On, it is corresponding gradually that the corresponding second target fill color in the adjacent position of any two is filled between the adjacent position of any two Discoloration.
Further, the method also includes:
By the cube figure according to the inclination overturning angle of setting, each target is vertical in the cube figure after inclination Stereoscopic vision distance of the cube apart from display interface is different;
Stereoscopic vision distance when being shown on the screen according to each targeting cube figure adjusts each cabinet described The sub- length occupied on setting side.
Further, the method also includes:
According to preset 3D background model, the display position of each targeting cube figure is adjusted;
Each targeting cube Graphics Fusion after the 3D background model and adjustment display position is shown.
The present invention provides a kind of 3D modeling rendering devices for closing cold passage data center, are applied to electronic equipment, should Device includes:
Drafting module, for drawing the cube figure being sized in painting canvas Canvas object;
Determining module, for the length according to the setting side of the quantity of cabinet and the cube figure got, really The sub- length that fixed each cabinet occupies on the setting side;According to each cabinet on the setting side the sub- length that occupies, The corresponding each targeting cube figure of each cabinet is determined in the cube figure;
Mark module, for the data information according to each cabinet got, in corresponding each target cube It is marked on volume graphic.
Further, the mark module is specifically used for being directed to each cabinet, according to the height of the cube figure, And the total capacity of the cabinet got and the cabinet have used capacity, determine the corresponding targeting cube figure of the cabinet Capacity display son height;According to the corresponding relationship of the capacity of the cabinet of preservation and the first fill color, for capacity display Highly corresponding sub-cube figure fills the corresponding first object fill color of capacity of the cabinet.
Further, the mark module is specifically used for being directed to each cabinet, the pre- of the cabinet is obtained in data information The corresponding targeted parameter value of setting parameter;According to each range of parameter values pre-saved, where determining the targeted parameter value Targeted parameter value range, and according to the corresponding relationship of each range of parameter values and the second fill color, determine the targeted parameter value The corresponding targeting cube filling graph of the cabinet is second target filling by the corresponding second target fill color of range Color.
Further, the mark module is specifically used for being directed to each cabinet, and the temperature parameter for obtaining the cabinet is corresponding Targeted parameter value;Or it is directed to each cabinet, obtain the corresponding targeted parameter value of alarm parameter of the cabinet.
Further, the mark module, if being specifically used for the parameter preset is alarm parameter, for each machine Cabinet determines at least one corresponding alarm grade of alarm parameter according to the data information of the cabinet got;Each is accused Highest in alert grade alerts grade, is determined as the targeted parameter value of the alarm parameter of the cabinet.
Further, the mark module, corresponding at least two targets of parameter preset specifically for obtaining the cabinet Parameter value, wherein each targeted parameter value corresponds to the different location of the cabinet;Each parameter that the basis pre-saves It is worth range, the targeted parameter value range where determining the targeted parameter value includes: to determine the mesh for each targeted parameter value Mark the targeted parameter value range where parameter value;According to the corresponding relationship of each range of parameter values and the second fill color, institute is determined State the corresponding second target fill color of targeted parameter value range;For each targeted parameter value range, the targeted parameter value is determined The corresponding second target fill color of range;It is corresponding in the cabinet according to the position of the corresponding cabinet of each second target fill color Targeting cube figure on, corresponding second mesh in the adjacent position of any two is filled between the adjacent position of any two Mark the corresponding gradient color of fill color.
Further, described device further include:
Tilt adjustments module, for the inclination overturning angle by the cube figure according to setting, described cube after inclination Stereoscopic vision distance of each targeting cube apart from display interface is different in body image;Existed according to each targeting cube figure Stereoscopic vision distance when showing on screen adjusts the sub- length that each cabinet occupies on the setting side.
Further, described device further include:
Display module is adjusted, for adjusting the display position of each targeting cube figure according to preset 3D background model It sets;Each targeting cube Graphics Fusion after the 3D background model and adjustment display position is shown.
The present invention provides a kind of 3D modeling rendering method and devices for closing cold passage data center, this method comprises: The cube figure being sized is drawn in painting canvas Canvas object;According to the quantity of the cabinet got and described cube The length on the setting side of volume graphic determines the sub- length that each cabinet occupies on the setting side;According to each cabinet in institute The sub- length occupied on setting side is stated, the corresponding each targeting cube figure of each cabinet is determined in the cube figure Shape;According to the data information of each cabinet got, it is marked on corresponding each targeting cube figure.? The cube figure that electronic equipment is sized in Canvas objects draw in the embodiment of the present invention, and determine that each cabinet is corresponding Each targeting cube figure because browser itself be capable of Case-based Reasoning Canvas object carry out Canvas drawing, Without installing additional plug-in unit, development difficulty is small, and the period is short, and the waiting time is short in user's navigation process, improves user Experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of signal of the 3D modeling rendering process for closing cold passage data center that the embodiment of the present invention 1 provides Figure;
Fig. 2 is a kind of schematic diagram for cube figure that the embodiment of the present invention 1 provides;
Fig. 3 is a kind of schematic diagram for targeting cube figure that the embodiment of the present invention 1 provides;
Fig. 4 is a kind of schematic diagram of the 3D model for closing cold passage data center that the embodiment of the present invention 2 provides;
Fig. 5 is the 3D capacity model of the data center after a kind of tilt adjustments that the embodiment of the present invention 5 provides;
Fig. 6 is that the 3D of the data center after a kind of tilt adjustments that the embodiment of the present invention 5 provides alerts model;
Fig. 7 is the 3D thermal field model of the data center after a kind of tilt adjustments that the embodiment of the present invention 5 provides;
Fig. 8 is a kind of 3D capacity model for the and fused data center of 3D background model that the embodiment of the present invention 6 provides;
Fig. 9 is that a kind of 3D for the and fused data center of 3D background model that the embodiment of the present invention 6 provides alerts model;
Figure 10 is a kind of 3D thermal field mould for the and fused data center of 3D background model that the embodiment of the present invention 6 provides Type;
Figure 11 is a kind of 3D capacity model for postrotational data center that the embodiment of the present invention 6 provides;
Figure 12 is the 3D capacity model for the postrotational data center of another kind that the embodiment of the present invention 6 provides;
Figure 13 is a kind of electronic equipment schematic diagram that the embodiment of the present invention 7 provides;
Figure 14 is a kind of 3D modeling rendering schematic device for closing cold passage data center provided in an embodiment of the present invention.
Specific embodiment
In order to reduce the development difficulty of developer, shorten waiting time when development cycle and user's browsing, the present invention Embodiment provides a kind of method and device of 3D modeling rendering for closing cold passage data center.
To make the objectives, technical solutions, and advantages of the present invention clearer, make below in conjunction with the attached drawing present invention into one Step ground detailed description, it is clear that described embodiment is only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts Every other embodiment, shall fall within the protection scope of the present invention.
Embodiment 1:
Fig. 1 is a kind of signal of 3D modeling rendering process for closing cold passage data center provided in an embodiment of the present invention Figure, the process the following steps are included:
S101: the cube figure being sized is drawn in painting canvas Canvas object.
The 3D modeling rendering method of closing cold passage data center provided in an embodiment of the present invention is applied to electronic equipment, should Electronic equipment can use for desktop computer, portable computer, smart phone, tablet computer, network side equipment etc. The Canvas objects draw 3D present graphical of HTML (HyperText Markup Language, HyperText Markup Language) 5 Electronic equipment.
Electronic equipment, which can be, receives user to when the checking instruction of 3D model of closing cold passage data center, starts Draw the 3D model of closing cold passage data center.
Electronic equipment can draw the cube figure being sized in Canvas object, and the size of cube figure can To be that developer is configured in advance, it is also possible to what user was configured in administration interface.
Developer or user can be when the size of cube figure is arranged and are directly arranged and save cube figure Size, be also possible to be arranged and save eight apex coordinates of cube figure, so that the size etc. of cube figure be arranged. If preserving being sized for cube figure in electronic equipment, electronic equipment is determined to what composition was sized first Any eight apex coordinates of cube figure, to draw cube figure according to eight apex coordinates;If electronic equipment In preserve eight apex coordinates of cube figure, then electronic equipment is directly drawn according to the eight of cube figure apex coordinates Cube figure processed.
Specifically, it is that electronics is set that electronic equipment, which draws cube figure according to eight apex coordinates in Canvas object, For according to eight apex coordinates, eight vertex are oriented in Canvas object first, are successively attached eight vertex, structure At a cube figure, it is illustrated in figure 2 a kind of schematic diagram of cube figure provided in an embodiment of the present invention, A1, A2, A3, A4, A5, A6, A7 and A8 are eight vertex of cube figure, and the cube graph determined by eight vertex is shaped like Fig. 2 institute Show.
S102: according to the quantity of the cabinet got and the length on the setting side of the cube figure, each machine is determined The sub- length that cabinet occupies on the setting side;According to the sub- length that each cabinet occupies on the setting side, described vertical The corresponding each targeting cube figure of each cabinet is determined in cube figure.
Electronic equipment needs to obtain the quantity of cabinet after drawing the cube figure being sized.
The quantity of cabinet is preserved in electronic equipment, the quantity of the cabinet saved in electronic equipment is user previously according to envelope The practical cabinet quantity input of cold passage data center is closed, user can be input cabinet when carrying out 3D modeling rendering Quantity is also possible to input the quantity of cabinet before drawing 3D model.
The setting side of cube figure can be the one side arbitrarily chosen in the length of cube, such as by cube Setting side of any one long side as cube figure.
Electronic equipment can determine every according to the length on the setting side of the quantity and cube figure of the cabinet got The sub- length that a cabinet occupies on setting side, specifically, the sub- length that each cabinet occupies on setting side are any, as long as protecting Demonstrate,prove length of each cabinet in setting when the sum of upper sub- length occupied is setting.For example, electronic equipment can be by The ratio of the quantity of the length and cabinet on the setting side of cube figure, the son occupied on setting side as each cabinet are long Degree, that is, the son that each cabinet occupies on setting side are equal in length.
It, can be according to each of cube figure after electronic equipment determines the sub- length that each cabinet occupies on setting side Vertex determines the apex coordinate on eight vertex of the corresponding targeting cube figure of each cabinet, so as in cube graph The corresponding each targeting cube figure of each cabinet is determined in shape.
It is illustrated in figure 3 a kind of schematic diagram of targeting cube figure provided in an embodiment of the present invention, Fig. 3 is Fig. 2's On the basis of determine each targeting cube figure, electronic equipment get cabinet quantity be 5, the setting of cube figure While for A1 point and A2 point determine while, then electronic equipment is according to the difference of the abscissa A2.x of abscissa A1.x and the A2 point of A1 point The length on the setting side as cube figure is then obtained by the length on the setting side of cube figure divided by the quantity of cabinet The son that each cabinet occupies on the setting side is equal in length, i.e., the sub- length that each cabinet occupies on setting side is Width=(A2.x-A1.x)/5.The son occupied on setting side according to the eight of cube figure apex coordinates and each cabinet Length can determine the apex coordinate on eight vertex of the corresponding targeting cube figure of each cabinet, close to cube graph On the left of shape for the cabinet of (left and right as shown in Figure 3), wherein four vertex of the corresponding targeting cube figure of the cabinet are A1, A2, A3 and A4 of cube figure determine one of vertex B1 abscissa B1.x=A1.x+width, vertex according to A1 The ordinate of B1 is identical as the ordinate of vertex A1, correspondingly, the corresponding target of the cabinet can be calculated according to A2, A3 and A4 Remaining vertex B2, B3 and B4 of cube figure, being sequentially connected B1, B2, B3 and B4 can determine that the corresponding target of the cabinet is vertical Cube figure determines the process of the targeting cube figure of remaining four cabinet targeting cube figure corresponding with the cabinet is determined Shape is identical, does not repeat them here in embodiments of the present invention, and the corresponding 5 targeting cube figures of 5 cabinets are as shown in Figure 3.
S103: according to the data information of each cabinet got, on corresponding each targeting cube figure It is marked.
Electronic equipment can get the data information of each cabinet in real time, and the data information of each cabinet includes capacity letter Breath, temperature information, warning information, humidity information etc. close the data information of cold passage data center, and specific electronic equipment obtains Which kind of take data information can be to be configured according to the demand of user.
Electronic equipment can be when being marked on corresponding each targeting cube figure by the data of each cabinet Information is directly displayed on corresponding each targeting cube figure, can be the corresponding color of the data information of each data Be filled on corresponding each targeting cube figure etc..
Specifically, it when electronic equipment obtains the data information of each cabinet, can be by installing in the electronic device What data center's monitoring system was realized, data center's monitoring system includes environmental monitoring subsystem, monitoring power distribution subsystem and sets Standby Monitor And Control Subsystem, different subsystems is for obtaining different data informations, and wherein environmental monitoring subsystem is realized to obtain and be protected The temperature data information and humidity data information of each cabinet in closing cold passage data center are deposited, monitoring power distribution subsystem is realized Distribution power supply to each cabinet, and the capacity information for saving each cabinet is obtained, monitoring of tools subsystem is realized to each machine The monitoring and control of equipment in cabinet, and obtain the operating status etc. for saving equipment in each cabinet.
Since electronic equipment draws the cube figure being sized in Canvas object in the embodiment of the present invention, and really The corresponding each targeting cube figure of fixed each cabinet because browser itself be capable of the Canvas object of Case-based Reasoning into Row Canvas draws, and without developing additional plug-in unit, development difficulty is small, and the period is short, the waiting time in user's navigation process It is short, improve user experience.
Embodiment 2:
For exhibiting data information intuitive on targeting cube figure, user experience is further increased, in above-mentioned implementation On the basis of example, in the embodiment of the present invention, the data information for each cabinet that the basis is got, corresponding each It is marked on targeting cube figure and includes:
For each cabinet, according to the height of the cube figure, and the total capacity of the cabinet that gets and should Cabinet has used capacity, determines the capacity display son height of the corresponding targeting cube figure of the cabinet;According to the machine of preservation The corresponding relationship of the capacity of cabinet and the first fill color, for the corresponding sub-cube figure of capacity display son height, filling should The corresponding first object fill color of the capacity of cabinet.
Can show each cabinet in the embodiment of the present invention in the 3D model of closing cold passage data center has used appearance Amount, specifically, can be shown, such as mark each cabinet on the corresponding targeting cube figure of each cabinet by color Used the corresponding color of capacity, in order to more intuitive, each machine can be determined on the targeting cube figure of each cabinet The corresponding sub-cube figure of capacity display son height of cabinet, marks each machine on the corresponding sub-cube figure of each cabinet Cabinet has used the corresponding color of capacity.
Certainly, the 3D model that cold passage data center is closed in the embodiment of the present invention can also show the residue of each cabinet Capacity, the display mode of the residual capacity of each cabinet and the display mode for having used capacity of each cabinet are essentially identical, It is not repeated them here in the embodiment of the present invention.
The capacity of cabinet typically refers to the power capacity of cabinet.Electronic equipment can be in the data information of the cabinet got It determines the total capacity of cabinet and has used capacity.
Specifically, electronic equipment has used capacity according to the total capacity of each cabinet got and each cabinet, can Capacity accounting has been used with each cabinet of determination.Electronic equipment has used capacity accounting and cube graph according to each cabinet The height of shape can determine the capacity display son height of the corresponding each targeting cube figure of each cabinet.
The capacity of cabinet and the corresponding relationship of the first fill color are pre-saved in electronic equipment, different cabinets correspond to capacity The first fill color may be the same or different.The first fill color saved in electronic equipment can be a certain specific face Color is also possible to the gradient color of color.
Electronic equipment is when for each targeting cube filling graph color of each cabinet, for according to the appearance of each cabinet The sub-cube figure that amount display son height determines, fills the corresponding each first object fill color of capacity of each cabinet.Tool Body, electronic equipment uses the Fill Color function of Canvas, is each sub-cube filling graph first object fill color.
In addition, being each sub-cube filling graph first object fill color, user can also be made more intuitively to distinguish Each targeting cube figure and each sub-cube figure.
The first object fill color that each cabinet corresponds to capacity can be one, or it is multiple, when each cabinet pair When the first object fill color of capacity being answered to be multiple, it can be corresponding for each having used the range of capacity to save in capacity First fill color may be the same or different using the first fill color that the range of capacity saves for different, according to The first fill color for having used the range of capacity to save can determine that capacity shows corresponding first fill color of sub- altitude range. In order to facilitate the determination of first object fill color, it is corresponding can specifically to show that sub- altitude range is saved for different capacity First fill color, when for cabinet, it is determined that after its capacity shows sub- height, determine that the capacity shows the target where sub- height Capacity shows sub- altitude range, which is shown that corresponding first fill color of sub- altitude range is filled as first object Color.Preferably, electronic equipment is each sub-cube figure, filling target capacity shows the corresponding first object of sub- altitude range Fill color is different, so that first object fill color of the user according to sub-cube figure, determines the capacity service condition of cabinet, reach To forewarning function.It, can such as when the capacity service condition of cabinet is the capacity threshold for reaching setting using capacity of cabinet Think that sub-cube filling graph target capacity shows the corresponding red of sub- altitude range, user is according to the sub-cube figure of display The first object fill color of shape is red, and can determine the corresponding cabinet of sub-cube figure reaches setting using capacity Capacity threshold, by taking corresponding countermeasure, come guarantee close cold passage data center normal operation.
The embodiment of the present invention is described with a specific embodiment below, Fig. 4 is provided in an embodiment of the present invention A kind of schematic diagram of 3D model that closing cold passage data center, electronic equipment get total appearance of each cabinet in data center Amount and capacity is used, to calculate the capacity data information of each cabinet, i.e., each cabinet has used capacity accounting, such as The capacity data information of leftmost side cabinet (left and right as shown in Figure 4) is 40%, A1 ordinate A1.y and A4 ordinate in Fig. 4 The difference of A4.y is the height of cube figure, that is, the total height of each cabinet, then the corresponding target of leftmost side cabinet The capacity display height of cube figure is just the 40% of the total height of left side cabinet, and specifically, leftmost side cabinet is corresponding The capacity of targeting cube figure shows sub- height height=(A1.y-A4.y) * 40%, obtains the corresponding mesh of leftmost side cabinet The capacity of mark cube figure shows that the ordinate of sub- height is A4.y+height, so that it is determined that the capacity of leftmost side cabinet is aobvious The each vertex for showing the corresponding sub-cube figure of sub- height, is sequentially connected each vertex, can determine the appearance of leftmost side cabinet The corresponding sub-cube figure of amount display son height.Electronic equipment is to show that son height is determined according to the capacity of leftmost side cabinet Sub-cube figure fills the corresponding first object fill color of capacity of leftmost side cabinet.
In order to which 3D effect is preferably presented, the corresponding first object fill color of the capacity of leftmost side cabinet is from depth in Fig. 4 Color shows hatching effect to the gradient color of light transition.
The sub-cube figure that the capacity display son height of other four cabinets determines according to determining simultaneously, fills each machine The process of the corresponding first object fill color of the capacity of cabinet is identical as leftmost side cabinet, does not repeat them here in embodiments of the present invention.
Since electronic equipment according to each cabinet has used capacity in the embodiment of the present invention, determine that each cabinet is corresponding The capacity display son height of targeting cube figure, and be the corresponding sub-cube figure of the capacity of each cabinet display son height Fill cabinet the corresponding first object fill color of capacity, can on targeting cube figure intuitive exhibiting data information, into One step improves user experience.
Embodiment 3:
For exhibiting data information intuitive on targeting cube figure, user experience is further increased, in above-mentioned implementation On the basis of example, in the embodiment of the present invention, the data information for each cabinet that the basis is got, corresponding each It is marked on targeting cube figure and includes:
For each cabinet, the corresponding targeted parameter value of parameter preset of the cabinet is obtained in data information;According to pre- The each range of parameter values first saved determines the targeted parameter value range where the targeted parameter value, and according to each parameter It is worth the corresponding relationship of range and the second fill color, the corresponding second target fill color of the targeted parameter value range is determined, by this The corresponding targeting cube filling graph of cabinet is the second target fill color.
The 3D model that cold passage data center is closed in the embodiment of the present invention can show the parameter preset pair of each cabinet The targeted parameter value answered can specifically be shown by color, such as be marked on the corresponding targeting cube of each cabinet The corresponding color of the targeted parameter value of each cabinet can in order to which the targeted parameter value to each cabinet more intuitively distinguishes With the targeted parameter value range where the targeted parameter value of each cabinet of determination, in the corresponding targeting cube figure of each cabinet The corresponding color of targeted parameter value range where the targeted parameter value of the upper each cabinet of label.
The parameter preset includes: temperature parameter or alarm parameter.Electronic equipment can obtain default in data information The corresponding targeted parameter value of parameter.
The corresponding targeted parameter value of parameter preset of the available each cabinet of electronic equipment, electronic equipment obtain cabinet The corresponding targeted parameter value of which parameter preset can be to be selected according to the demand of user.For example, if user needs to check temperature Data information is spent, then electronic equipment obtains the corresponding targeted parameter value of temperature parameter of each cabinet;If user needs to check Alarm data information, then electronic equipment obtains corresponding targeted parameter value of alarm parameter of each cabinet etc..
Specifically, electronic equipment can be basis and be mounted on cabinet in the corresponding targeted parameter value of acquisition temperature parameter On the collected temperature value of temperature sensor, as the corresponding targeted parameter value of temperature parameter.One can be equipped on cabinet A temperature sensor or multiple temperature sensors, when being equipped with a temperature sensor on cabinet, the temperature of electronic equipment acquisition Spending the corresponding targeted parameter value of parameter is one, when being equipped with multiple temperature sensors on cabinet, the temperature of electronic equipment acquisition It is multiple for spending the corresponding targeted parameter value of parameter.
For electronic equipment in the corresponding targeted parameter value of acquisition alarm parameter, electronic equipment can be in the data information of acquisition At least one of middle determining capacity data information, temperature data information and humidity data information, according to capacity data information, temperature At least one of data information and humidity data information determine at least one corresponding alarm grade of alarm parameter, so that it is determined that The corresponding targeted parameter value of alarm parameter.
If the data information that electronic equipment obtains is in capacity data information, temperature data information and humidity data information One, it is determined that the corresponding warning information of item data information, and determine the corresponding alarm grade of alarm parameter, directly It connects the corresponding alarm grade of the alarm parameter, is determined as the corresponding targeted parameter value of alarm parameter.
If the data information that electronic equipment obtains is in capacity data information, temperature data information and humidity data information At least two, determine at least one of the corresponding alarm grade of data information, and determine alarm parameter it is corresponding at least one announcement Alert grade alerts grade according to each, determines the corresponding targeted parameter value of alarm parameter.
Electronic equipment alerts grade according to each, and can be when determining the corresponding targeted parameter value of alarm parameter will be each Alert targeted parameter value of the highest alarm grade as alarm parameter in grade, or by each average announcement for alerting grade Targeted parameter value etc. of the alert grade as alarm parameter.
In order to which the targeted parameter value for allowing users to according to the alarm parameter of cabinet monitors cabinet with the presence or absence of different in time Often, then preferably, can be using the highest alarm grade in each alarm grade as the targeted parameter value of the alarm parameter of cabinet.
Specifically, if the parameter preset is alarm parameter, it is directed to each cabinet, obtains the parameter preset of the cabinet Corresponding targeted parameter value includes:
For each cabinet, according to the data information of the cabinet got, determine alarm parameter it is corresponding at least one Alert grade;
Each is alerted into the highest in grade and alerts grade, is determined as the targeted parameter value of the alarm parameter of the cabinet.
Each range of parameter values is pre-saved in electronic equipment, and for the parameter value model that each parameter preset saves It encloses and is different.For example, electronic equipment gets the corresponding targeted parameter value of temperature parameter of each cabinet, temperature parameter Targeted parameter value range where corresponding targeted parameter value;Or electronic equipment gets the alarm parameter correspondence of each cabinet Targeted parameter value, determine the targeted parameter value range where the corresponding targeted parameter value of alarm parameter.
Electronic equipment preserves the corresponding relationship of each range of parameter values Yu the second fill color.Therefore electronic equipment can root According to the targeted parameter value range where the corresponding targeted parameter value of parameter preset, corresponding second target of target component range is determined Fill color fills corresponding each second target fill color to be the corresponding each targeting cube figure of each cabinet.
Different target parameter area in electronic equipment for temperature parameter can save the second different fill colors, such as Can be range of parameter values is less than 24 DEG C (degree Celsius), and corresponding second fill color is blue, and range of parameter values is 24 DEG C and arrives Between 28 DEG C, corresponding second fill color is yellow, and parameter area value is greater than 28 DEG C, and corresponding second fill color is red.
Different target parameter area in electronic equipment for alarm parameter can save the second different fill colors, such as Can be range of parameter values is minor alarm, and corresponding second fill color is blue, and range of parameter values is significant alarm, corresponding Second fill color is yellow, and range of parameter values is critical alarm, and corresponding second fill color is red.
Since electronic equipment is determined according to the corresponding targeted parameter value of parameter preset of each cabinet in the embodiment of the present invention Targeted parameter value range where targeted parameter value, and be the corresponding targeting cube filling graph targeted parameter value of each cabinet The corresponding second target fill color of range, can on targeting cube figure intuitive exhibiting data information, further improve User experience.
Embodiment 4:
For the further intuitive exhibiting data information on targeting cube figure, on the basis of the various embodiments described above, In the embodiment of the present invention, the corresponding targeted parameter value of parameter preset for obtaining the cabinet includes:
Corresponding at least two targeted parameter value of parameter preset for obtaining the cabinet, wherein each targeted parameter value pair Should cabinet different location;
Each range of parameter values that the basis pre-saves determines the targeted parameter value model where the targeted parameter value It encloses and includes:
For each targeted parameter value, the targeted parameter value range where the targeted parameter value is determined;
According to the corresponding relationship of each range of parameter values and the second fill color, determine that the targeted parameter value range is corresponding Second target fill color;
For each targeted parameter value range, the corresponding second target fill color of the targeted parameter value range is determined;
It is described to include: for the second target fill color by the corresponding targeting cube filling graph of the cabinet
According to the position of the corresponding cabinet of each second target fill color, in the corresponding targeting cube figure of the cabinet On, it is corresponding gradually that the corresponding second target fill color in the adjacent position of any two is filled between the adjacent position of any two Discoloration.
Closing in the embodiment of the present invention can show that the parameter preset of cabinet is corresponding in the 3D model of cold passage data center At least two targeted parameter values specifically can mark each target on the corresponding targeting cube figure of each cabinet The corresponding color of targeted parameter value range where parameter value, in order to more intuitively show the mistake between at least two targeted parameter values Variation is crossed, it can be where two targeted parameter values on the corresponding targeting cube figure of each cabinet in position arbitrary neighborhood Between the position of the corresponding color of targeted parameter value range, target ginseng where two targeted parameter values of mark position arbitrary neighborhood The corresponding gradient color of the corresponding color of numberical range.
Under normal conditions in order to realize the more accurate monitoring to the data information of cabinet, electronic equipment is available each Corresponding at least two targeted parameter value of the parameter preset of cabinet, such as the temperature sensing installed on each cabinet under normal conditions Device is at least two, so electronic equipment can get corresponding at least two targeted parameter value of parameter preset of each cabinet, The position at least two temperature sensors installed on each cabinet is different, so the position of the corresponding cabinet of each targeted parameter value It sets also different.
When corresponding at least two targeted parameter value of the parameter preset that electronic equipment gets cabinet, electronic equipment according to Each targeted parameter value, determines the targeted parameter value range where each targeted parameter value, and according to each range of parameter values with The corresponding relationship of second fill color determines the corresponding each second target fill color of each target component range.
Electronic equipment, can be true according to the position of the corresponding cabinet of targeted parameter value each at least two targeted parameter values The position of the corresponding cabinet of each second target fill color in fixed at least two target fill colors, in the corresponding target cube of cabinet On volume graphic, according at least two positions of the corresponding cabinet of at least two target fill colors, the adjacent position of any two is determined It sets.If parameter preset is temperature parameter, the adjacent position of any two can be characterized in any two installed on cabinet The position of a adjacent temperature sensor.
It is any to fill this on the corresponding targeting cube figure of cabinet for electronic equipment between the adjacent position of any two The corresponding gradient color of the corresponding second target fill color in two adjacent positions.If each second target filling in any two Color is identical, then fills the second target fill color between the adjacent position of any two;If each second target in any two Fill color is different, then according to each second target fill color, filling any two are adjacent between any two adjacent positions The corresponding gradient color of the corresponding second target fill color in position, wherein the different corresponding gradient colors of two target fill colors is not Together.
If the corresponding targeted parameter value of the parameter preset for the cabinet that electronic equipment is got is two, cabinet is corresponding Any two adjacent positions are the position of the corresponding cabinet of two target fill colors on targeting cube figure.
The embodiment of the present invention is illustrated for a specific example below, it is assumed that parameter preset is temperature parameter, and And installation is there are two temperature sensor on the different location of each cabinet, by taking one of cabinet as an example, the top of the cabinet and There are two temperature sensor, electronic equipment obtains the corresponding two targets ginseng of temperature parameter of the cabinet for installation on the position of bottom Numerical value is respectively 20 DEG C and 25 DEG C, and the position of the corresponding cabinet of two targeted parameter values got is respectively the top of cabinet Portion and bottom, saving in electronic equipment there are three range of parameter values is respectively first object range of parameter values less than the 24, second mesh Between 24 DEG C to 28 DEG C of range of parameter values of mark and third targeted parameter value range is greater than 28 DEG C, then electronic equipment determines target component Targeted parameter value range where 20 DEG C of value is first object range of parameter values, the targeted parameter value where 25 DEG C of targeted parameter value Range is the second targeted parameter value range.Corresponding second fill color of the first range of parameter values is preserved in electronic equipment as indigo plant Color, corresponding second fill color of the second range of parameter values are yellow, and the corresponding third fill color of third parameter area value is red, Then the corresponding second target fill color of first object range of parameter values is blue, corresponding second mesh of the second targeted parameter value range Mark fill color is yellow.
Electronic equipment is on the corresponding targeting cube figure of the cabinet, the corresponding cabinet of this two the second target fill colors Position before fill corresponding with the yellow gradient color of blue.
Due to corresponding at least two targeted parameter value of parameter preset that electronic equipment gets cabinet, each target is determined It is corresponding according to each second target fill color after the corresponding second target fill color of targeted parameter value range where parameter value The position of cabinet is filled the second target between the adjacent position of any two on the corresponding targeting cube figure of cabinet and is filled out The corresponding gradient color of color is filled, the difference of at least two targeted parameter values of the parameter preset of cabinet can be intuitively embodied, thus The further intuitive exhibiting data information on targeting cube figure.
Embodiment 5:
In order to more realistically embody 3D effect, on the basis of the various embodiments described above, in the embodiment of the present invention, the method Further include:
By the cube figure according to the inclination overturning angle of setting, each target is vertical in the cube figure after inclination Stereoscopic vision distance of the cube apart from display interface is different;
Stereoscopic vision distance when being shown on the screen according to each targeting cube figure adjusts each cabinet described The sub- length occupied on setting side.
Electronic equipment tilts cube figure, adjusts the sub- length that each cabinet occupies on setting side, causes vertical It is near big and far smaller on body vision, more realistically embody 3D effect.
Inclination angle when canted cubes figure is preserved in electronic equipment, specifically, electronic equipment is using Canvas's Tilt function, by cube figure according to the inclination overturning angle of setting.
After cube figure is according to the inclination overturning angle of setting, each targeting cube Graph Distance is aobvious in cube figure Show that the stereoscopic vision distance at interface is different, to cause near big and far smaller in stereoscopic vision.
In order to more really embody 3D effect, electronic equipment adjusts the sub- length that each cabinet occupies on setting side.Tool Body, the stereoscopic vision distance that electronic equipment is shown on the screen according to each targeting cube figure adjusts each cabinet and exists The sub- length occupied on setting side, the son that the cabinet for being closer the stereoscopic vision shown on the screen occupies on setting side Length, the sub- length occupied on setting side greater than the stereoscopic vision shown on the screen apart from farther away cabinet.
Preferably, electronic equipment does not change the length on cube figure setting side, and each adjacent two during the adjustment The difference for the sub- length that targeting cube figure occupies on setting side is identical.
Specifically, electronic equipment can occupy each cabinet according to the following computer program of preservation on setting side Sub- length adjustment:
After algorithm above is disposed, in the case where the length on cube figure setting side remains unchanged, make each mesh The sub- length that mark cube figure occupies on setting side becomes gradual change from small to large.
Fig. 5 is the 3D capacity model of the data center after tilt adjustments, shows that each cabinet is corresponding in 3D capacity model The corresponding sub-cube figure of capacity display son height of targeting cube figure, and be filled in each sub-cube figure The corresponding first object fill color of the capacity of each cabinet.
Fig. 6 is that the 3D of the data center after tilt adjustments alerts model, shows that each cabinet is corresponding in 3D capacity model Each targeting cube figure, and filled with where the corresponding targeted parameter value of alarm parameter in each targeting cube figure The corresponding second target fill color of targeted parameter value range.
Fig. 7 is the 3D thermal field model of the data center after tilt adjustments, shows that each cabinet is corresponding in 3D capacity model Each targeting cube figure, and corresponding at least two target component of filling temp parameter in each targeting cube figure The corresponding second target fill color of the targeted parameter value range where each targeted parameter value in value, in each targeting cube The corresponding gradient color of the second target fill color is filled in figure between the adjacent position of any two.
Since electronic equipment tilts cube figure, the sub- length that each cabinet occupies on setting side is adjusted, is caused It is near big and far smaller in stereoscopic vision, more realistically embody 3D effect.
Embodiment 6:
In order to more realistically embody 3D effect, on the basis of the various embodiments described above, in the embodiment of the present invention, the method Further include:
According to preset 3D background model, the display position of each targeting cube figure is adjusted;
Each targeting cube Graphics Fusion after the 3D background model and adjustment display position is shown.
In the embodiment of the present invention, by adjust display position after each targeting cube figure and preset 3D background model Fusion display, more realistically embodies 3D effect.
Electronic equipment draws the background picture of closing cold passage data center on the basis of 3D figure, according to preset 3D Background model adjusts each targeting cube figure in the display position of 3D background model.Specifically, each target cube is adjusted The apex coordinate of volume graphic enables it to merge with 3D background model, is blocked using the background of data center, while hiding mesh The part auxiliary line in cube figure is marked, 3D background model and each targeting cube figure behind adjustment display position are melted Close display.
Fig. 8 is a kind of 3D capacity model with the fused data center of 3D background model provided in an embodiment of the present invention. As described in Figure 8, each targeting cube figure merges display, and the corresponding targeting cube of each cabinet with 3D background model The corresponding sub-cube figure of capacity display son height of figure, and each cabinet is filled in each sub-cube figure The corresponding first object fill color of capacity.
Fig. 9 is that a kind of 3D with the fused data center of 3D background model provided in an embodiment of the present invention alerts model. As described in Figure 9, each targeting cube figure merges display with 3D background model, and fills in each targeting cube figure The corresponding second target fill color of targeted parameter value range where having the corresponding targeted parameter value of alarm parameter.
Figure 10 is a kind of 3D thermal field model with the fused data center of 3D background model provided in an embodiment of the present invention. As described in Figure 10, each targeting cube figure merges display with 3D background model, and fills out in each targeting cube figure Targeted parameter value range where filling each targeted parameter value in corresponding at least two targeted parameter value of temperature parameter is corresponding The second target fill color, filled between the adjacent position of any two in each targeting cube figure the second target filling The corresponding gradient color of color.
Fig. 8, Fig. 9 and Figure 10 realize 3D display to a side of data center, even complete in order to embody the back side The 3D model of the data center in face can also be on the display interface of 3D model one spin button of setting, when receiving user After the operation of the spin button, 3D model is rotated according to the rotation angle of setting, specifically, can be according to side clockwise To the angle of rotation setting, to realize the rotates effe of data center, the aobvious of the 3D model of comprehensive data center is embodied Show.
Figure 11 is a kind of 3D capacity model of postrotational data center provided in an embodiment of the present invention.Figure 12 is the present invention The 3D capacity model for the postrotational data center of another kind that embodiment provides.
Due in the embodiment of the present invention, each targeting cube figure behind display position and preset 3D background will be adjusted Model Fusion is shown, more realistically embodies 3D effect.
Embodiment 7:
On the basis of the various embodiments described above, a kind of electronic equipment is additionally provided in the embodiment of the present invention, as shown in figure 13, It include: processor 1301, communication interface 1302, memory 1303 and communication bus 1304, wherein processor 1301, communication connects Mouth 1302, memory 1303 complete mutual communication by communication bus 1304;
It is stored with computer program in the memory 1303, when described program is executed by the processor 1301, is made It obtains the processor 1301 and executes following steps:
The cube figure being sized is drawn in painting canvas Canvas object;
According to the quantity of the cabinet got and the length on the setting side of the cube figure, determine that each cabinet exists The sub- length occupied on the setting side;According to the sub- length that each cabinet occupies on the setting side, in the cube The corresponding each targeting cube figure of each cabinet is determined in figure;
According to the data information of each cabinet got, in corresponding each enterprising rower of targeting cube figure Note.
Based on the same inventive concept, a kind of electronic equipment is additionally provided in the embodiment of the present invention, due to above-mentioned electronic equipment The principle solved the problems, such as is similar to the closing 3D modeling rendering method of cold passage data center, therefore the implementation of above-mentioned electronic equipment It may refer to the implementation of method, overlaps will not be repeated.
Electronic equipment provided in an embodiment of the present invention be specifically as follows desktop computer, portable computer, smart phone, Tablet computer, personal digital assistant (Personal Digital Assistant, PDA), network side equipment etc..
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface 1302 is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit, network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), dedicated collection At circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hard Part component etc..
When processor executes the program stored on memory in embodiments of the present invention, realize in Canvas objects draw The cube figure being sized, and determine the corresponding each targeting cube figure of each cabinet, because of browser itself energy The Canvas object of enough Case-based Reasonings carries out Canvas drawing, and without installing additional plug-in unit, development difficulty is small, the period Short, the waiting time is short in user's navigation process, improves user experience.
Embodiment 8:
On the basis of the various embodiments described above, the embodiment of the invention also provides a kind of computers to store readable storage medium Matter is stored with the computer program that can be executed by electronic equipment in the computer readable storage medium, when described program is in institute It states when being run on electronic equipment, so that the electronic equipment realizes following steps when executing:
The cube figure being sized is drawn in painting canvas Canvas object;
According to the quantity of the cabinet got and the length on the setting side of the cube figure, determine that each cabinet exists The sub- length occupied on the setting side;According to the sub- length that each cabinet occupies on the setting side, in the cube The corresponding each targeting cube figure of each cabinet is determined in figure;
According to the data information of each cabinet got, in corresponding each enterprising rower of targeting cube figure Note.
Based on the same inventive concept, a kind of computer readable storage medium is additionally provided in the embodiment of the present invention, due to place The principle and close cold logical that reason device is solved the problems, such as in the computer program stored on executing above-mentioned computer readable storage medium The 3D modeling rendering method at track data center is similar, therefore processor is in the meter for executing above-mentioned computer-readable recording medium storage The implementation of calculation machine program may refer to the implementation of method, and overlaps will not be repeated.
Above-mentioned computer readable storage medium can be any usable medium that the processor in electronic equipment can access Or data storage device, including but not limited to magnetic storage such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc., optical memory Such as CD, DVD, BD, HVD and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid state hard disk (SSD) etc..
Computer program, computer program quilt are provided in the computer readable storage medium provided in embodiments of the present invention The cube figure being sized in Canvas objects draw is realized when processor executes, and determines that each cabinet is corresponding each Targeting cube figure, because the Canvas object that browser itself is capable of Case-based Reasoning carries out Canvas drawing, without Additional plug-in unit is installed, development difficulty is small, and the period is short, and the waiting time is short in user's navigation process, improves user experience.
Figure 14 is a kind of 3D modeling rendering schematic device for closing cold passage data center provided in an embodiment of the present invention, Applied to electronic equipment, which includes:
Drafting module 1401, for drawing the cube figure being sized in painting canvas Canvas object;
Determining module 1402, for according to the quantity of the cabinet got and the length for setting side of the cube figure Degree determines the sub- length that each cabinet occupies on the setting side;The son occupied on the setting side according to each cabinet Length determines the corresponding each targeting cube figure of each cabinet in the cube figure;
Mark module 1403, for the data information according to each cabinet got, in corresponding each target The enterprising line flag of cube figure.
The mark module 1403 is specifically used for being directed to each cabinet, according to the height of the cube figure, and obtain The total capacity for the cabinet got has used capacity with the cabinet, determines the capacity of the corresponding targeting cube figure of the cabinet Display son height;It is right for capacity display son height according to the corresponding relationship of the capacity of the cabinet of preservation and the first fill color The sub-cube figure answered fills the corresponding first object fill color of capacity of the cabinet.
The mark module 1403 is specifically used for being directed to each cabinet, the default ginseng of the cabinet is obtained in data information The corresponding targeted parameter value of number;According to each range of parameter values pre-saved, the target where the targeted parameter value is determined Range of parameter values, and according to the corresponding relationship of each range of parameter values and the second fill color, determine the targeted parameter value range The corresponding targeting cube filling graph of the cabinet is the second target fill color by corresponding second target fill color.
The mark module 1403 is specifically used for being directed to each cabinet, obtains the corresponding target of temperature parameter of the cabinet Parameter value;Or it is directed to each cabinet, obtain the corresponding targeted parameter value of alarm parameter of the cabinet.
The mark module 1403, if being specifically used for the parameter preset is alarm parameter, for each cabinet, according to The data information of the cabinet got determines at least one corresponding alarm grade of alarm parameter;Each is alerted into grade In highest alert grade, be determined as the targeted parameter value of the alarm parameter of the cabinet.
The mark module 1403, corresponding at least two target components of parameter preset specifically for obtaining the cabinet Value, wherein each targeted parameter value corresponds to the different location of the cabinet;Each parameter value model that the basis pre-saves It encloses, the targeted parameter value range where determining the targeted parameter value includes: to determine that the target is joined for each targeted parameter value Targeted parameter value range where numerical value;According to the corresponding relationship of each range of parameter values and the second fill color, the mesh is determined Mark the corresponding second target fill color of range of parameter values;For each targeted parameter value range, the targeted parameter value range is determined Corresponding second target fill color;
The mark module 1403, specifically for the position according to the corresponding cabinet of each second target fill color, at this On the corresponding targeting cube figure of cabinet, it is corresponding that the adjacent position of any two is filled between the adjacent position of any two The corresponding gradient color of the second target fill color.
Described device further include:
Tilt adjustments module 1404, it is described after inclination for the inclination overturning angle by the cube figure according to setting Stereoscopic vision distance of each targeting cube apart from display interface is different in cube graph picture;According to each targeting cube figure Stereoscopic vision distance when shape is shown on the screen adjusts the sub- length that each cabinet occupies on the setting side.
Described device further include:
Display module 1405 is adjusted, for adjusting the aobvious of each targeting cube figure according to preset 3D background model Show position;Each targeting cube Graphics Fusion after the 3D background model and adjustment display position is shown.
Due to the cube figure that electronic equipment is sized in Canvas objects draw in the embodiment of the present invention, and determine The corresponding each targeting cube figure of each cabinet, because the Canvas object that browser itself is capable of Case-based Reasoning carries out Canvas draws, and without installing additional plug-in unit, development difficulty is small, and the period is short, and the waiting time is short in user's navigation process, Improve user experience.
For systems/devices embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (16)

1. a kind of 3D modeling rendering method for closing cold passage data center, which is characterized in that be applied to electronic equipment, this method Include:
The cube figure being sized is drawn in painting canvas Canvas object;
According to the quantity of the cabinet got and the length on the setting side of the cube figure, determine each cabinet described The sub- length occupied on setting side;According to the sub- length that each cabinet occupies on the setting side, in the cube figure The corresponding each targeting cube figure of the middle each cabinet of determination;
According to the data information of each cabinet got, it is marked on corresponding each targeting cube figure.
2. the method as described in claim 1, which is characterized in that the data for each cabinet that the basis is got are believed Breath, is marked on corresponding each targeting cube figure and includes:
For each cabinet, according to the height of the cube figure, and the total capacity of the cabinet got and the cabinet Used capacity, determine the corresponding targeting cube figure of the cabinet capacity display son height;According to the cabinet of preservation The corresponding relationship of capacity and the first fill color fills the cabinet for the corresponding sub-cube figure of capacity display son height The corresponding first object fill color of capacity.
3. the method as described in claim 1, which is characterized in that the data for each cabinet that the basis is got are believed Breath, is marked on corresponding each targeting cube figure and includes:
For each cabinet, the corresponding targeted parameter value of parameter preset of the cabinet is obtained in data information;It is protected according to preparatory The each range of parameter values deposited determines the targeted parameter value range where the targeted parameter value, and according to each parameter value model The corresponding relationship with the second fill color is enclosed, the corresponding second target fill color of the targeted parameter value range is determined, by the cabinet Corresponding targeting cube filling graph is the second target fill color.
4. method as claimed in claim 3, which is characterized in that the parameter preset includes: temperature parameter or alarm parameter.
5. method as claimed in claim 4, which is characterized in that if the parameter preset is alarm parameter, for each Cabinet, the corresponding targeted parameter value of parameter preset for obtaining the cabinet include:
At least one corresponding alarm of alarm parameter is determined according to the data information of the cabinet got for each cabinet Grade;
Each is alerted into the highest in grade and alerts grade, is determined as the targeted parameter value of the alarm parameter of the cabinet.
6. method as claimed in claim 3, which is characterized in that the corresponding target component of parameter preset for obtaining the cabinet Value includes:
Corresponding at least two targeted parameter value of parameter preset of the cabinet is obtained, it should wherein each targeted parameter value is corresponding The different location of cabinet;
Each range of parameter values that the basis pre-saves determines the targeted parameter value range packet where the targeted parameter value It includes:
For each targeted parameter value, the targeted parameter value range where the targeted parameter value is determined;
According to the corresponding relationship of each range of parameter values and the second fill color, the targeted parameter value range corresponding second is determined Target fill color;
For each targeted parameter value range, the corresponding second target fill color of the targeted parameter value range is determined;
It is described to include: for the second target fill color by the corresponding targeting cube filling graph of the cabinet
According to the position of the corresponding cabinet of each second target fill color, on the corresponding targeting cube figure of the cabinet, appoint It anticipates and fills the corresponding gradient color of the corresponding second target fill color in the adjacent position of any two between two adjacent positions.
7. as the method according to claim 1 to 6, which is characterized in that the method also includes:
By the cube figure according to the inclination overturning angle of setting, each targeting cube in the cube figure after inclination Stereoscopic vision distance apart from display interface is different;
Stereoscopic vision distance when being shown on the screen according to each targeting cube figure adjusts each cabinet in the setting The sub- length occupied on side.
8. the method for claim 7, which is characterized in that the method also includes:
According to preset 3D background model, the display position of each targeting cube figure is adjusted;
Each targeting cube Graphics Fusion after the 3D background model and adjustment display position is shown.
9. a kind of 3D modeling rendering device for closing cold passage data center, which is characterized in that be applied to electronic equipment, the device Include:
Drafting module, for drawing the cube figure being sized in painting canvas Canvas object;
Determining module, for determining every according to the quantity of the cabinet got and the length for setting side of the cube figure The sub- length that a cabinet occupies on the setting side;According to the sub- length that each cabinet occupies on the setting side, in institute It states and determines the corresponding each targeting cube figure of each cabinet in cube figure;
Mark module, for the data information according to each cabinet got, in corresponding each targeting cube figure It is marked in shape.
10. device as claimed in claim 9, which is characterized in that the mark module is specifically used for being directed to each cabinet, root According to the height of the cube figure, and the total capacity of the cabinet that gets and the cabinet use capacity, determine this The capacity display son height of the corresponding targeting cube figure of cabinet;According to pair of the capacity of the cabinet of preservation and the first fill color It should be related to, for the corresponding sub-cube figure of capacity display son height, fill the corresponding first object of capacity of the cabinet Fill color.
11. device as claimed in claim 9, which is characterized in that the mark module is specifically used for being directed to each cabinet, The corresponding targeted parameter value of parameter preset of the cabinet is obtained in data information;According to each range of parameter values pre-saved, Determine the targeted parameter value range where the targeted parameter value, and corresponding with the second fill color according to each range of parameter values Relationship determines the corresponding second target fill color of the targeted parameter value range, by the corresponding targeting cube figure of the cabinet It is filled with the second target fill color.
12. device as claimed in claim 11, which is characterized in that the mark module is specifically used for being directed to each cabinet, obtain Take the corresponding targeted parameter value of the temperature parameter of the cabinet;Or it is directed to each cabinet, the alarm parameter for obtaining the cabinet is corresponding Targeted parameter value.
13. device as claimed in claim 12, which is characterized in that the mark module, if being specifically used for the default ginseng Number, according to the data information of the cabinet got, determines that alarm parameter is corresponding at least for each cabinet for alarm parameter One alarm grade;Each is alerted into the highest in grade and alerts grade, is determined as the target ginseng of the alarm parameter of the cabinet Numerical value.
14. device as claimed in claim 11, which is characterized in that the mark module, specifically for obtaining the pre- of the cabinet Corresponding at least two targeted parameter value of setting parameter, wherein each targeted parameter value corresponds to the different location of the cabinet;Institute It states according to each range of parameter values pre-saved, the targeted parameter value range where determining the targeted parameter value includes: needle To each targeted parameter value, the targeted parameter value range where the targeted parameter value is determined;According to each range of parameter values and the The corresponding relationship of two fill colors determines the corresponding second target fill color of the targeted parameter value range;Join for each target Numberical range determines the corresponding second target fill color of the targeted parameter value range;It is corresponding according to each second target fill color The position of cabinet it is any that this is filled between the adjacent position of any two on the corresponding targeting cube figure of the cabinet The corresponding gradient color of the corresponding second target fill color in two adjacent positions.
15. such as the described in any item devices of claim 9-14, which is characterized in that described device further include:
Tilt adjustments module, for the inclination overturning angle by the cube figure according to setting, the cube graph after inclination Stereoscopic vision distance of each targeting cube apart from display interface is different as in;According to each targeting cube figure in screen Stereoscopic vision distance when upper display adjusts the sub- length that each cabinet occupies on the setting side.
16. device as claimed in claim 15, which is characterized in that described device further include:
Display module is adjusted, for adjusting the display position of each targeting cube figure according to preset 3D background model;It will Each targeting cube Graphics Fusion after the 3D background model and adjustment display position is shown.
CN201710752375.7A 2017-08-28 2017-08-28 3D model drawing method and device for closed cold channel data center Active CN109426684B (en)

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 true CN109426684A (en) 2019-03-05
CN109426684B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN112699145A (en) * 2019-10-23 2021-04-23 苏州华兴源创科技股份有限公司 Data processing system

Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN112699145A (en) * 2019-10-23 2021-04-23 苏州华兴源创科技股份有限公司 Data processing system
CN112699145B (en) * 2019-10-23 2024-05-03 苏州华兴源创科技股份有限公司 Data processing system

Also Published As

Publication number Publication date
CN109426684B (en) 2020-04-03
WO2019041739A1 (en) 2019-03-07

Similar Documents

Publication Publication Date Title
CN105913478A (en) 360-degree panorama display method and display module, and mobile terminal
CN109598795A (en) Enterprise's production three-dimensional visualization method and device are realized based on WebGL
CN108227916A (en) For determining the method and apparatus of the point of interest in immersion content
US20170193689A1 (en) Efficient Computation of Shadows for Circular Light Sources
CN104461573B (en) A kind of control process method of view level
CN106681512A (en) Virtual reality device and corresponding display method
CN104854622B (en) The method for forming the shell grid of the polygon based on optimization
CN108335367A (en) A kind of threedimensional model processing method for terminal display
CN109844820A (en) The hand that hologram is modified based on contextual information is blocked
CN104766274A (en) Method and device for rotating 3D energy consumption display model
CN109426684A (en) A kind of 3D modeling rendering method and device for closing cold passage data center
CN110120087A (en) The label for labelling method, apparatus and terminal device of three-dimensional sand table
US10708597B2 (en) Techniques for extrapolating image frames
CN111221514B (en) OsgEarth-based three-dimensional visualization component implementation method and system
CN109741431A (en) A kind of two three-dimensional integratedization electronic map frames
CN106340051B (en) 3D world subdivision loading method and its system
Choi et al. k-MART: Authoring tool for mixed reality contents
CN108429905B (en) Naked eye 3D display method and device, electronic equipment and storage medium
CN110543236A (en) Machine room monitoring system and method based on virtual reality technology
CN109427094A (en) A kind of method and system obtaining mixed reality scene
CN107426601A (en) The display methods and device of UI controls in a kind of intelligent television
US10262631B1 (en) Large scale highly detailed model review using augmented reality
CN102880470A (en) Three-dimensional game engine kernel structure
Zhao et al. Visual analysis of three-dimensional flow field based on WebVR
WO2018086960A1 (en) Method and device for transmitting data representative of an image

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