Summary of the invention
Technical matters to be solved by this invention is to provide a kind of three-dimensional power station graphic platform, improves the dirigibility and the actual effect of three-dimensional system station process.
For solving the problems of the technologies described above, the embodiment of the invention adopts following technical scheme:
A kind of three-dimensional power station graphic platform comprises: equipment editing machine, scene editing machine and browser control part, wherein,
The equipment editing machine is used for through the form of tool software device resource being managed, and comprising: the model resource is imported,, and the user is provided basic equipment control ability resource packing management, and the resource packet after said scene editing machine output packing;
Said scene editing machine is used for form through tool software to comprehensive control of scene layout, and uses the resource packet that receives from said equipment editing machine to carry out the layout of scene, and output map;
Said browser control part is used to offer the upper-layer service program and embeds access three-dimensional scenic system, and second development interface is provided, so that realize loading and the unloading map function, and utilize interface to show various interactive effects.
Said equipment editing machine comprises:
The modelling module is used to generate source model;
The editorial management module is carried out the secondary editor to said source model;
Resource packing administration module saves as a resource bundle to source model after carrying out the secondary editor.
Said editorial management module comprises:
Scene operation editorial management module is used to provide translation, and rotation is chosen, and basic operations such as deletion are so that the direct operate source model of user;
Graphic attribute editorial management module is used to provide appearance management such as color, material, and flicker, bulletin, special efficacy such as smolder management;
Animation special efficacy submodule is used to provide the management of animation special efficacy;
State predefine administration module, state predefine is used to supply a model.
Said equipment editing machine also comprises:
The window management module is used to provide the basic sequencing management of window;
Source model is checked module, is used to provide the observation to the model each several part to check;
Document management module is used for basic I/O input and output.
Said scene editing machine comprises:
The file management system module is used for the loading of equipment library, and unloading also is used for the newly-built of said map, and storage is deposited with other;
The editorial management module is used for the editorial management to scene and device model;
The device attribute editor module is used to the device attribute that provides complete, so that accurate location.
The administration module of editing machine comprises:
The scene management module is used to rotate scene, translation scene, convergent-divergent scene;
Device model editorial management module is used for the layout scene.
Said scene editing machine also comprises:
The environment editor module is used to provide the editor of landform;
The observing pattern module is used to provide the observation scene.
Said scene editing machine also comprises:
Overall situation labeling system module is used to provide the mark ability to equipment;
The data binding module is used for equipment in the virtual scene and real database facility are articulated;
The tool box module, the instrument that is used to provide commonly used supplies the editorial staff to use.
Said browser control part comprises:
Document management module is used for map and loads, unloads and switch, and the access of three-dimensional scenic is provided;
The basic index display module is used for the facility information that transmits immediately through business procedure, represents the base attribute of equipment;
The special efficacy display module is used to carry out special efficacy and shows;
The operational management module is used to carry out the displaying of real time data;
The observing pattern module is used to provide various visual angles to represent scene.
In the technical scheme of the embodiment of the invention; Only provide terminal service different with the VT scheme, this three-dimensional power station graphic platform mainly provides the instrument service, through equipment control its with these two instruments of scene management device; Source model is carried out saving as the importing of resource bundle confession scene editing machine behind the secondary editor; Equipment is carried out layout, because the cost of instrument and dirigibility will be significantly less than business softwares such as VT, so improved the dirigibility and the actual effect of three-dimensional system station process.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of three-dimensional power station graphic platform, improves the dirigibility and the actual effect of three-dimensional system station process.
Come for the making of scene can be decomposed, as shown in Figure 1, three-dimensional power station provided by the invention graphic platform will be divided into two instruments and a secondary development control is formed; Come task resolution targetedly through these several sub-products; Thereby can avoid the drawback of software integration making such as VT, these two instruments are respectively: equipment editing machine 1 and scene editing machine 2, and single control is a browser control part 3; Wherein
Equipment editing machine 1 is used for through the form of tool software device resource being managed, and comprising: the model resource is imported,, and the user is provided basic equipment control ability resource packing management, and the resource packet after said scene editing machine 2 output packings;
Said scene editing machine 2 is used for form through tool software to comprehensive control of scene layout, and uses the resource packet that receives from said equipment editing machine 1 to carry out the layout of scene, and output map;
Said browser control part 3 is used to offer the upper-layer service program and embeds access three-dimensional scenic system, and second development interface is provided, so that realize loading and the unloading map function, and utilize interface to show various interactive effects.
Browser control part can use and BS/CS upper-layer service program with ACTIVEX control form issue, also can be suitable for multiple different development language bag like c/c++, c#, java etc.
In the technical scheme of the embodiment of the invention; Only provide terminal service different with the VT scheme, this three-dimensional power station graphic platform mainly provides the instrument service, through equipment control its with these two instruments of scene management device; Source model is carried out saving as the importing of resource bundle confession scene editing machine behind the secondary editor; Equipment is carried out layout, because the cost of instrument and dirigibility will be significantly less than business softwares such as VT, so improved the dirigibility and the actual effect of three-dimensional system station process.
Discuss in detail below and how to utilize graphic platform to carry out the making in three-dimensional power station, and the use of each instrument.
The overall flow summary
At first, carry out material collection, go to the scene to take necessary photo material by the modeling personnel; Carrying out independent model then makes; The independent model here refers to the modeling personnel and only makes to basic field station equipment, and other aspect, like landform; Environment etc. are all built-in by software, can reduce the workload and the fabrication cycle of modelling like this; Secondly, the source model that current initial modeling software is derived carries out the secondary editor with access arrangement editing machine 1, and the secondary editor here can simply revise source model, like pattern etc.; Can also articulate some special efficacys in advance, be convenient to interactive display, after handling via the equipment editing machine, preserve into a resource bundle; Next, 2 li of scene editing machines, we are provided with environmental system according to actual conditions; Through importing resource packet; Equipment is carried out layout, and the multiple quick layout tool that the layout here can utilize Software tool to provide is raised the efficiency, and accomplishing via scene editing machine 2 layouts derives document scene.When the upper-layer service program is carried out the three-dimensional virtual scene access, only the control installation kit need be installed, a large amount of interface that provides via control then, the loading scenario file, and carry out real-time, interactive.Said process promptly is the flow process in a complete making virtual three-dimensional power station; Can see to incorporate system station flow process; Here multistep has been decomposed; And the completion that can walk abreast of this multistep, not wait process but a process of carrying out synchronously, the brief construction cycle so greatly of a linearity between enforcement personnel and the developer.
The overall technology framework
As shown in Figure 2, this platform is based on the C/C++ exploitation, and the graphics engine of bottom is to utilize the OpenScenegraph engine of increasing income, and the bottom most software basic framework is divided into: the basic data module; Graph rendering module; The data communication module; General GUI module; The interface utilizes the powerful GUI of increasing income QT to realize; The basic data module comprises the definition of various basic data structures, and the definition of various abstract elements is basic composition elements of product; Graph rendering module has comprised that the 3D to three-dimensional virtual scene plays up ability, and has defined the basic operation in the various three-dimensional scenics; The data communication module has comprised the message transmission between each module of product, and and background data base between the plug-in unit system that articulates; General GUI module then is various base attribute elements, and the basis of showing interface element; These several modules are general basics of product, have made up the support of multiple instrument and control together.
The equipment editing machine
The equipment editing machine is one of them of tools section in the three-dimensional scenic editing system, mainly is through the form of tool software device resource to be managed.Here comprise the model resource is imported,, and the user is provided basic equipment control ability resource packing management: interpolation equipment, sweep equipment, and device tree represents; Also has a management to the base attribute of equipment; Wherein resource packing function is the most important output function of equipment editing machine; The resource packet of the output of equipment editing machine will offer the scene editing machine and use, and the scene editing machine just can directly use these resources to carry out the layout work of scene like this.
The equipment editing machine comprises:
The modelling module is used to generate source model.The modelling that the equipment editing machine provides is different from the modelling of 3DMAX; MAX needs art designing modeling teacher of specialty to make; And the making in the equipment editing machine only is to enforcement personnel and O&M personnel, and the equipment in the station possibly upgrade change along with the age variation, if per 1 variation all needs the modeling personnel to participate in; Maintenance cost will be improved greatly; So the modelling module provides some common equipment O&M personnel to go out simple pinup picture through PS and changes, thereby generates new model,, reply seems more efficient when changing like this.
Resource packing administration module saves as a resource bundle to source model after carrying out the secondary editor.
For the source model that MAX provides, only be the loose model file of a pile, the art designing personnel can not provide the functional thing of any additivity; The equipment editing machine then on this further, like grouping management, device attribute editor, resource consolidation output.Equipment has just had business information putting into follow-up control systems like this, thereby can let the 3D model become real power station scene equipment.
The editorial management module is carried out the secondary editor to said source model.
Editorial management is all indispensable basic function of each tool software, in the equipment editing machine, mainly is divided into several bulks.
Scene operation editorial management module is used to provide translation, and rotation is chosen, and basic operations such as deletion are so that the direct operate source model of user.
Since the operation of 3D scene will be far away many than the complicacy of 2D scene, this is because many causes of a basic axle in the 3d space, the various operations in the 2D all can be limited in (X, Y) in the plane, then can be in that (Z) conversion be carried out in the space for X, Y in the 3D.The scene operation module provides basic translation, and rotation is chosen, and the basic operation of deletion lets directly operate source model of user.
Graphic attribute editorial management module is used to provide appearance management such as color, material, and flicker, bulletin, special efficacy such as smolder management.
The editorial management of graphic attribute is an important step; The user can be through revising color, and the attribute that editing machines such as material come out directly changes the outward appearance of source model; Even can revise the pinup picture (do not recommend certainly so, may destroy art designing's model like this) of source model file; It is the special efficacy management that an important content is arranged in the graphic attribute management, and the equipment editing machine provides many built-in special efficacy definition here, as: flicker, bulletin is smoldered etc., and the user can observe the effect that model is bound special efficacy through the attribute of these special efficacys of editor.
Animation special efficacy submodule, state predefine is used to supply a model.
The animation special efficacy is a kind of special special efficacy, so here propose separately, the animation special efficacy is divided into 2 kinds, and the programme controlled animation special efficacy of the first is if model flicker etc. all are to change through the special efficacy that realizes; Another kind is to need 3D modeling teacher to build up animation model at MAX in advance, in graphics edition in the animation special efficacy attribute; System can provide the frame animation preview; And simple Play Control, the user is with regard to ability preview animation effect, actual motion like this; Monitor And Control Subsystem can call corresponding animation immediately according to different operation states, also can move through state predefine.
State predefine administration module, state predefine is used to supply a model.
If model does not carry out the state definition, model only is exactly a model, in case but model carries out the state definition; It just can carry out related with business; Such as: we carry out the definition of alarm condition and normal state to an equipment, and the normal state definition keeps original appearance, and alarm condition can let and dodges red special efficacy on this hanging equipment; In a single day judge that at Monitor And Control Subsystem this equipment gets into alert levels, then can get into predefined alarm condition like this.
The equipment editing machine also comprises other basic modules:
The window management module is used to provide the basic sequencing management of window;
Source model is checked module, is used to provide the observation to the model each several part to check;
Document management module is used for basic I/O input and output.
The scene editing machine
The scene editing machine is to be subordinate to and another big tool software of plateform system, the different and equipment editing machine of scene editing machine, and the latter mainly stresses the management to resource, and the former is exactly the comprehensive control to the scene layout; The output of equipment editing machine is the device resource storehouse; The output of scene editing machine then is map; This map is with the layout change of this actual station; Can be adjusted according to actual conditions by the O&M personnel, thereby the renewal that lets the client can face actual environment easily changes, the scene editing machine comprises the module of several cores:
The file management system module is used for the loading of equipment library, and unloading also is used for the newly-built of said map, and storage is deposited with other.
The file management of scene editing machine is more complicated than equipment editing machine, and it not only will be to the loading of equipment library, and unloading also need be directed against the newly-built of map, storage, and other deposits or the like, and file management promptly is the Basic Input or Output System (BIOS) of scene editing machine.
The editorial management module is used for the editorial management to scene and device model.
The administration module of editing machine mainly is divided into:
The scene management module is used to rotate scene, translation scene, convergent-divergent scene.
Similar devices editing machine, scene management module mainly provide the ability of controlling to whole scene, like the rotation scene, and the translation scene, convergent-divergent scene etc., the user can get into each position of scene easily.
Device model editorial management module is used for the layout scene.
The main function that scene is collected device is exactly a layout, thus powerful to the management of device model by need, comprised here:
The Dan Xuan of model, multiselect, CTRL choosing, anti-choosing
Moving of model, the direction rotation
The monomer of model duplicates, and the colony of model duplicates
Aliging of model by axle, the interval alignment of model
The UNDO/REDO of model manipulation
These all are to make user's layout more easily quick, efficient.
Device attribute edit capability, the operation in the three-dimensional scenic are accurate inadequately in some cases, so providing of device attribute offers the accurate station-keeping ability of user fully, certain attribute has not only comprised position, direction; Also comprised some advanced propertys, such as: the opening and closing of collision detection, can experience real physical world when letting the user get into roaming state and experience.
The environment editor module is used to provide the editor of landform.
The environment editor module mainly provides the edit capability to landform, through the original text that draws to ground, reduces and various texture brush, makes the scene environment near true environment.
The observing pattern module is used to provide the observation scene.
Observing pattern mainly provides the user just can switch the visual angle ability in editing machine reason so that observe scene more easily, such as the entering roaming state, the user can actual experience under current finding scene browse sensation.
Overall situation labeling system module is used to provide the mark ability to equipment.
The scene editing machine provides the mark ability to equipment; Can mark definition in advance to equipment, as: to the definition of all equipment of the same type, with a workspace device definition; Get into like this control systems directly calling interface represent, make things convenient for the user to observe targetedly.
The data binding module is used for equipment in the virtual scene and real database facility are articulated.
The data binding module is a nucleus module important in the scene editing machine; Data binding is through webservice interface and backstage agreement; Equipment in the virtual scene and real database facility are articulated; We read real facility information with regard to connecting through virtual unit like this, do down the basis for the equipment real time data represents.
The tool box module provides some instruments commonly used to supply the editorial staff to use, as: area marking, roaming point definition or the like, the editorial staff can utilize these existing instruments to carry out finding and gained is controlled.
Browser control part
In the present embodiment, control systems is based on the issue of ACTIVEX control form, offers the upper-layer service program and embeds the three-dimensional scenic system that inserts; Control provides a large amount of second development interfaces, and the business development personnel not only can use basic loading and unloading map function; The scene map of front tool making is written into; And can utilize interface to show various interactive effects, the special efficacy that directly defines in advance in the calls tool also can be called instant special efficacy; Include following interactive module:
Document management module is used for map and loads, unloads and switch, and the access of three-dimensional scenic is provided.
This module realizes that map loads, and unloading is switched, and the access capability of three-dimensional scenic is provided.
The basic index display module is used for the facility information that transmits immediately through business procedure, represents the base attribute of equipment;
The special efficacy display module is used to carry out special efficacy and shows.The special efficacy display module is special efficacy immediately, also can the predefine special efficacy, depend on and the definition of business module that if the definition of reporting to the police, flicker or variable color special efficacy etc. can intuitively give the client with prompting, carry out the equipment location simultaneously, check the problem place rapidly.
The operational management module is used to carry out the displaying of real time data.
When in edit tool, inserting background data base, virtual unit can articulate real equipment, thereby can carry out the displaying of real time data, the running status that the client can the Direct observation virtual scene.
The observing pattern module is used to provide various visual angles to represent scene.
The observing pattern module class provides various visual angles to represent the ability of scene with the Observation Blocks in the editing machine, and the client can observe whole virtual scene through obstructed video camera.
In the technical scheme of the embodiment of the invention, can't tackle the variation of scene fast to the VT scheme, because all there is pilot process in each step of platform; In case so variation has taken place the layout of scene, implement personnel's Open Scene editing machine and can revise immediately, need not get into modeling software again from the source and revise; The model resource modifying can directly be opened the equipment editing machine and make amendment, the each change only to pilot process; And do not influence the next stage, and editor tool also can offer user's use simultaneously, and the user just has the self ability fully like this; Greatly reduce maintenance cost, also reduce and revise the risk of bringing repeatedly; Aspect the real time data displaying; Because the interface of control subsystem is customizable fully; Through the issue of subclass form, business procedure can carry out secondary development easily and fast, and because be based on ACTIVEX control form; But not transmit through tool software message, business procedure can more effective integrated application; The parallel application because integration system station process has effectively been separated through instrument and control, also can non-linearly be carried out so make flow process; Such as: the making of model and the layout of station can be carried out synchronously, and the station can take a cover java standard library to carry out the layout construction earlier, and the modeling personnel carry out analogue formation according to material; Both sides need not wait for, wait for that the model evaluation is qualified, and the introducing equipment editing machine is packaged into new resources bank; In the scene editing machine, replace java standard library, new again resource just can be used, and the control exploitation also need not be waited for map; Business development is also parallel simultaneously, and fabrication cycle can significantly reduce like this.
Through the description of above embodiment, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product, and this computer software product is stored in the storage medium that can read, like the floppy disk of computing machine; Hard disk or CD etc.; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of said claim.