[go: up one dir, main page]

CN106951625A - A kind of Real-time windows target generation method and device - Google Patents

A kind of Real-time windows target generation method and device Download PDF

Info

Publication number
CN106951625A
CN106951625A CN201710151918.XA CN201710151918A CN106951625A CN 106951625 A CN106951625 A CN 106951625A CN 201710151918 A CN201710151918 A CN 201710151918A CN 106951625 A CN106951625 A CN 106951625A
Authority
CN
China
Prior art keywords
function
ship
current time
vega
scene graph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710151918.XA
Other languages
Chinese (zh)
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.)
Fuling Waterway Management Office Of Yangtze River
Original Assignee
Fuling Waterway Management Office Of Yangtze River
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 Fuling Waterway Management Office Of Yangtze River filed Critical Fuling Waterway Management Office Of Yangtze River
Priority to CN201710151918.XA priority Critical patent/CN106951625A/en
Publication of CN106951625A publication Critical patent/CN106951625A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention provides a kind of Real-time windows target generation method and device.Methods described includes:Create a single document engineering based on MFC;The zsVegaView classes that one Vega is provided are imported in the single document engineering, and the zsVegaView classes are corresponding with the Virtual Marine cabin model pre-established;It is invoked at the zsVegaView in MFC application program CView classes::RunVega () function opens thread;Call vgInitWinSys () function, vgDefineSys () function and vgConfigSys () function that Vega systems are initialized, defined and configured respectively;Vega primitive recursive functions are called, the ship what comes into a driver's figure at current time is obtained in each circulation of the Vega primitive recursive functions, the ship what comes into a driver's figure at the current time is corresponding with multiple nodes in the model of the Virtual Marine cabin.Methods described generates the Real-time windows target figure of ship by using MFC with the Vega modes being combined, due to providing the powerful application framework based on Windows in MFC, and abundant window and incident management function, the need for can fully meeting ship Scene wandering system.

Description

A kind of Real-time windows target generation method and device
Technical field
The present invention relates to vision simulation field, in particular to a kind of Real-time windows target generation method and device.
Background technology
With developing rapidly for computer technology, the communication technology and other correlation techniques, navigation channel is entered with digital navigation channel Based on the intelligent navigation channel High Speed Construction of modernization and developing stage, information visuallization turns into new application development direction, base Turn into the focus of current research in the scene walkthrough technology of virtual reality.Prior art is typically to utilize MultiGen Creator The model of Virtual Marine cabin environment is set up, and the what comes into a driver's figure of Virtual Marine cabin environment is generated in real time using Vega softwares, it is real The roaming of spot oceangoing ship virtual engine room environment.However, Vega softwares only contain the collection of functions of ten several disparate modules, although The function of some windows and incident management is provided in Vega function library, but these functions are difficult to meet need in actual applications Will.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of Real-time windows target generation method and device, to solve Above mentioned problem.
To achieve these goals, the technical scheme that the embodiment of the present invention is used is as follows:
In a first aspect, the embodiments of the invention provide a kind of Real-time windows target generation method, applied to ship Scene wandering system System, methods described includes:Create a single document engineering based on MFC;The zsVegaView classes that one Vega is provided are imported In the single document engineering, the zsVegaView classes are corresponding with the Virtual Marine cabin model pre-established;Being invoked at MFC should With the zsVegaView in program CView classes::RunVega () function opens thread;Call vgInitWinSys () function, VgDefineSys () function and vgConfigSys () function are initialized, defined and configured to Vega systems respectively;Call Vega primitive recursive functions, the ship what comes into a driver's figure at current time is obtained in each circulation of the Vega primitive recursive functions, described The ship what comes into a driver's figure at current time is corresponding with multiple nodes in the model of the Virtual Marine cabin.
Second aspect, the embodiments of the invention provide a kind of Real-time windows target generating means, applied to ship Scene wandering system System, described device includes:Creation module, for creating a single document engineering based on MFC;Import modul, for by one The zsVegaView classes that Vega is provided are imported in the single document engineering, and the zsVegaView classes and the ship pre-established are empty Intend engine room model correspondence;First calling module, for the zsVegaView being invoked in MFC application program CView classes:: RunVega () function opens thread;Second calling module, for calling vgInitWinSys () function, vgDefineSys () Function and vgConfigSys () function are initialized, defined and configured to Vega systems respectively;3rd calling module, is used for Vega primitive recursive functions are called, the ship what comes into a driver's figure at current time is obtained in each circulation of the Vega primitive recursive functions, The ship what comes into a driver's figure at the current time is corresponding with multiple nodes in the model of the Virtual Marine cabin.
Compared with prior art, a kind of Real-time windows target generation method provided in an embodiment of the present invention and device, by creating Single document engineering based on MFC, and by Vega provide it is corresponding with the Virtual Marine cabin model pre-established ZsVegaView classes are imported in the single document engineering, are then invoked at the zsVegaView in MFC application program CView classes:: RunVega () function opens thread, calls vgInitWinSys () function, vgDefineSys () function and vgConfigSys () function is initialized, defined and configured to Vega systems respectively, finally calls Vega primitive recursive functions, in the Vega The ship what comes into a driver's figure at current time is obtained during each circulation of primitive recursive function.Methods described is tied by using MFC and Vega phases The mode of conjunction generates the Real-time windows target figure of ship, due to providing the powerful application framework based on Windows in MFC, and Abundant window and incident management function, the need for can fully meeting ship Scene wandering system.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that or by implementing embodiment of the present invention understanding.The purpose of the present invention and other advantages can be by saying for being write Specifically noted structure is realized and obtained in bright book, claims and accompanying drawing.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore is not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the structural representation of server provided in an embodiment of the present invention.
Fig. 2 is a kind of flow chart for Real-time windows target generation method that first embodiment of the invention is provided.
Fig. 3 is one kind stream in detail of step S340 in a kind of Real-time windows target generation method that first embodiment of the invention is provided Cheng Tu.
Fig. 4 is a kind of structured flowchart for Real-time windows target generating means that second embodiment of the invention is provided.
Fig. 5 is one of the second calling module 440 in a kind of Real-time windows target generating means that second embodiment of the invention is provided Plant detailed block diagram.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing.Meanwhile, the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Real-time windows target generation method provided in an embodiment of the present invention can apply in server.Fig. 1 shows server 100 structural representation, referring to Fig. 1, the server 100 includes memory 110, processor 120 and mixed-media network modules mixed-media 130。
The Real-time windows target generation side that memory 110 can be used in storage software program and module, such as embodiment of the present invention Method and the corresponding programmed instruction/module of device, processor 120 by operation be stored in software program in memory 110 and Module, so as to perform various function application and data processing, that is, realizes the Real-time windows target generation method in the embodiment of the present invention. Memory 110 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic storage dress Put, flash memory or other non-volatile solid state memories.Further, the software program and module in above-mentioned memory 110 It may also include:Operating system 111 and service module 112.Wherein operating system 111, for example can for LINUX, UNIX, WINDOWS, it may include various for management system task (such as memory management, storage device control, power management) Component software and/or driving, and can mutually be communicated with various hardware or component software, so as to provide the operation of other software component Environment.Service module 112 is operated on the basis of operating system 111, and is come from by the network service monitoring of operating system 111 The request of network, completes corresponding data processing, and return to result to client according to request.That is, service mould Block 112 is used to provide network service to client.Mixed-media network modules mixed-media 130 is used to receiving and sending network signal.Above-mentioned network letter Number it may include wireless signal or wire signal.
It is appreciated that the structure shown in Fig. 1 is only signal, server 100 may also include more more than shown in Fig. 1 or more Few component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software or its group Close and realize.In addition, the server in the embodiment of the present invention can also include the server of multiple specific difference in functionalitys.
Fig. 2 shows a kind of flow chart for Real-time windows target generation method that first embodiment of the invention is provided, and refers to figure 2, methods described includes:
Step S310, creates a single document engineering based on MFC.
Wherein, the MFC is the abbreviation of Microsoft Foundation class libraries, is the c++ class libraries that Microsoft realizes, predominant package Most windows api functions.MFC in addition to being a class libraries, or a framework there is provided it is powerful based on Windows application framework, and abundant window and incident management function.
Step S320, the zsVegaView classes that a Vega is provided are imported in the single document engineering, described ZsVegaView classes are corresponding with the Virtual Marine cabin model pre-established.
Because Vega provides the application programming interfaces with C language, provided for software designer soft to greatest extent Part is controlled and flexibility, therefore designer is usually entered using standard Win32 Console programs (Console Application) Row programming.
Wherein, the zsVegaView classes are the derived class of MFC application program CView classes, the zsVegaView classes Basic function is to open a thread, and Vega colorings are put into the View windows based on MFC application programs.
Step S330, is invoked at the zsVegaView in MFC application program CView classes::RunVega () function opens line Journey.
Step S340, calls vgInitWinSys () function, vgDefineSys () function and vgConfigSys () function Vega systems are initialized, defined and configured respectively.
As a kind of specific embodiment, referring to Fig. 3, step S340 can include:
Step S341, calls vgInitWinSys () function, and by creating, shared memory field and signaling zone are to Vega systems System is initialized.
Step S342, calls vgDefineSys () function, by call definition file, reads described define in file Data and the database for loading correlation, create the class needed and event is defined to Vega systems.
Step S343, calls vgConfigSys () function to configure the example of the class of the needs.
Step S350, calls Vega primitive recursive functions, obtains current in each circulation of the Vega primitive recursive functions The ship what comes into a driver's figure at moment, ship what comes into a driver's figure and multiple nodes pair in the model of the Virtual Marine cabin at the current time Should.
Wherein, Virtual Marine cabin model can be the three-dimensional in the Virtual Marine cabin set up by Creator instruments Model, Virtual Marine cabin model can be stored using OpenFLight forms and with the structure of stratification, Therefore many nodes, such as root node, group node, body node, face node, point node are included in the model of the Virtual Marine cabin Deng.By taking watercraft engine room as an example, watercraft engine room is body node, and two main frame merger are host groups node, and all pipeline merger are pipe Road group node.
As a kind of specific embodiment, step S350 can include:
Vega primitive recursive functions are called, vgSyncFrame () is called in each circulation of the Vega primitive recursive functions Flag bit is exited in function, inquiry, if the application process processing for exiting progress current time if flag bit is 0, obtains current The ship scene graph at moment, the application process processing procedure at the current time is synchronous with default frame rate, calls vgFrame The ship scene graph at current time described in () function pair is rejected and drawn, and obtains the ship what comes into a driver's figure at current time.
It is understood that in order that the Real-time windows target figure smooth flow of display, the refreshing frequency of what comes into a driver's figure, namely described Default frame rate should take larger value, and it is per second that the usual default frame rate should be greater than 24 frames.In addition, the current time Application process processing procedure synchronous with default frame rate can be realized by each homochronousness call back function.
Wherein, it is described if the application process processing for exiting progress current time if flag bit is 0, obtain current time Ship scene graph, can include:
The input information that input equipment is sent is received if flag bit is 0 if described exit, according to the input information updating Current view information, the ship scene graph at current time is obtained according to the current view information, wherein, it is described current View information includes current view point the position and direction in the model of the Virtual Marine cabin, and the ship scene graph is a kind of The directed acyclic graph being made up of multiple nodes in the model of the Virtual Marine cabin.
The input information, can be the click information of mouse, the key information of keyboard or the corresponding gesture letter of touch-screen Breath etc..
In addition, can no longer carry out the acquisition of follow-up Real-time windows target figure if described exit if flag bit is 1, directly exit The ship Scene wandering system.
Wherein, the vgFrame () function includes pfCull () function and pfDraw () function, described to call The ship scene graph at current time is rejected and drawn described in vgFrame () function pair, obtains the ship what comes into a driver's at current time Figure, can include:
PfCull () function is called, is rejected in the ship scene graph at the current time in the current view information pair The node outside visual line of sight answered, and by each node in the ship scene graph at the remaining current time and its corresponding Render instruction associated storage;PfDraw () function is called, the related data difference wash with watercolours in the render instruction and database Contaminate corresponding node in the ship scene graph at the remaining current time, and the ship at the current time after rendering Scape figure is plotted on display device as the ship what comes into a driver's figure at the current time.
Wherein, reject in the ship scene graph at the current time in the corresponding visual line of sight of the current view information During outer node, each node of the ship scene graph at the current time can be traveled through, by judging the current time Whether the node in ship scene graph is in observation body (being used for the imaginary solid for representing the corresponding visual line of sight of view information) Portion, to determine which node is visible for current view point, rejects and adjusts sightless node in current view point visual line of sight .In addition, each node in the ship scene graph at the remaining current time and its corresponding render instruction are associated During storage, it can be stored in the form of a list in internal memory, and the list is only effective in this circulation, is performing next time It is eliminated during circulation.It is understood that the mode of storage does not constitute the limitation to the embodiment of the present invention.
Related data in the database can include corresponding with each node in the model of the Virtual Marine cabin The data such as polygon, texture, color, the effect of shadow of storage.
Real-time windows target generation method provided in an embodiment of the present invention, by creating the single document engineering based on MFC, and by one The zsVegaView classes corresponding with the Virtual Marine cabin model pre-established that individual Vega is provided import the single document engineering In, then it is invoked at the zsVegaView in MFC application program CView classes::RunVega () function opens thread, calls VgInitWinSys () function, vgDefineSys () function and vgConfigSys () function are carried out just to Vega systems respectively Beginningization, definition and configuration, finally call Vega primitive recursive functions, obtain and work as in each circulation of the Vega primitive recursive functions The ship what comes into a driver's figure at preceding moment.Methods described generates the Real-time windows target figure of ship by using MFC with the Vega modes being combined, , can due to providing the powerful application framework based on Windows, and abundant window and incident management function in MFC The need for fully meeting ship Scene wandering system.
Fig. 4 is a kind of structured flowchart for Real-time windows target generating means 400 that second embodiment of the invention is provided, and refers to figure 4, the Real-time windows target generating means 400 are called including creation module 410, import modul 420, the first calling module 430, second The calling module 450 of module 440 and the 3rd.
The creation module 410, for creating a single document engineering based on MFC.
The import modul 420, the zsVegaView classes for a Vega to be provided are imported in the single document engineering, The zsVegaView classes are corresponding with the Virtual Marine cabin model pre-established.
First calling module 430, for the zsVegaView being invoked in MFC application program CView classes:: RunVega () function opens thread.
Second calling module 440, for call vgInitWinSys () function, vgDefineSys () function and VgConfigSys () function is initialized, defined and configured to Vega systems respectively.
As a kind of specific embodiment, referring to Fig. 5, second calling module 440 can include initialization mould Block 441, definition module 442 and configuration module 443.
The initialization module 441, for calling vgInitWinSys () function, by creating shared memory field and letter Number area is initialized to Vega systems.
The definition module 442, for calling vgDefineSys () function, by call definition file, it is described fixed to read Data in adopted file and the database for loading correlation, create the class needed and event is defined to Vega systems.
The configuration module 443, the example of the class for calling vgConfigSys () function configuration needs.
3rd calling module 450, for calling Vega primitive recursive functions, in each of the Vega primitive recursive functions The ship what comes into a driver's figure at current time, ship what comes into a driver's figure and the Virtual Marine cabin model at the current time are obtained during circulation In multiple nodes correspondence.
As a kind of specific embodiment, the 3rd calling module, specifically for calling Vega primitive recursive functions, VgSyncFrame () function is called during each circulation of the Vega primitive recursive functions, flag bit is exited in inquiry, if described move back Go out application process processing of the flag bit for 0 progress current time, obtain the ship scene graph at current time, the current time Application process processing procedure it is synchronous with default frame rate, call the ship at current time described in vgFrame () function pair Scape figure is rejected and drawn, and obtains the ship what comes into a driver's figure at current time.
As another specific embodiment, the 3rd calling module, be additionally operable to if it is described exit flag bit for 0 if The input information that input equipment is sent is received, according to the current view information of the input information updating, according to described current View information obtains the ship scene graph at current time, wherein, the current view information includes current view point in the ship Position and direction in oceangoing ship virtual engine room model, the ship scene graph is many in a kind of model by the Virtual Marine cabin The directed acyclic graph of individual node composition.
As another specific embodiment, the vgFrame () function includes pfCull () function and pfDraw () function, the 3rd calling module is additionally operable to call pfCull () function, rejects the ship scene graph at the current time In node outside the corresponding visual line of sight of the current view information, and by the ship scene at the remaining current time Each node and its corresponding render instruction associated storage in figure;Call pfDraw () function, according to the render instruction and Related data in database renders corresponding node in the ship scene graph at the remaining current time respectively, and will render The ship scene graph at the current time afterwards is plotted on display device as the ship what comes into a driver's figure at the current time.
Each module can be that now, above-mentioned each module can be stored in depositing for server 100 by software code realization above In reservoir 110.Each module can equally be realized by hardware such as IC chip above.
The technique effect of the Real-time windows target generating means 400 that the embodiment of the present invention is provided, its realization principle and generation and Preceding method embodiment is identical, to briefly describe, and device embodiment part does not refer to part, refers in preceding method embodiment Corresponding contents.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show according to the device of multiple embodiments of the present invention, the architectural framework in the cards of method and computer program product, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part a, part for the module, program segment or code is used to realize holding for defined logic function comprising one or more Row instruction.It should also be noted that in some implementations as replacement, the function of being marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, can use the special base for performing defined function or action Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized using in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are make it that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation there is any this reality The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including Other key elements being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, article or equipment in also there is other identical element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent, improvement etc., should be included within the scope of the present invention.Therefore, protection scope of the present invention should be described It is defined by scope of the claims.It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, because This, once being defined in a certain Xiang Yi accompanying drawing, then need not carry out further definition to it in subsequent accompanying drawing and conciliate Release.

Claims (10)

1. a kind of Real-time windows target generation method, applied to ship Scene wandering system, it is characterised in that methods described includes:
Create a single document engineering based on MFC;
The zsVegaView classes that one Vega is provided are imported in the single document engineering, and the zsVegaView classes with building in advance Vertical Virtual Marine cabin model correspondence;
It is invoked at the zsVegaView in MFC application program CView classes::RunVega () function opens thread;
VgInitWinSys () function, vgDefineSys () function and vgConfigSys () function are called respectively to Vega systems System is initialized, defined and configured;
Vega primitive recursive functions are called, the ship what comes into a driver's at current time is obtained in each circulation of the Vega primitive recursive functions Figure, the ship what comes into a driver's figure at the current time is corresponding with multiple nodes in the model of the Virtual Marine cabin.
2. according to the method described in claim 1, it is characterised in that it is described call vgInitWinSys () function, VgDefineSys () function and vgConfigSys () function are initialized, defined and configured to Vega systems respectively, specifically Including:
VgInitWinSys () function is called, shared memory field and signaling zone are initialized to Vega systems by creating;
VgDefineSys () function is called, by call definition file, the data defined in file is read and loads correlation Database, create need class and event Vega systems are defined;
VgConfigSys () function is called to configure the example of the class of the needs.
3. according to the method described in claim 1, it is characterised in that described to call Vega primitive recursive functions, in the Vega master The ship what comes into a driver's figure at current time is obtained during each circulation of cyclical function, is specifically included:
Vega primitive recursive functions are called, vgSyncFrame () function is called in each circulation of the Vega primitive recursive functions, Flag bit is exited in inquiry, if the application process processing for exiting progress current time if flag bit is 0, obtains current time Ship scene graph, the application process processing procedure at the current time is synchronous with default frame rate, calls vgFrame () letter Several ship scene graph to the current time are rejected and drawn, and obtain the ship what comes into a driver's figure at current time.
4. method according to claim 3, it is characterised in that it is described if it is described exit flag bit for 0 if carry out current when The application process processing at quarter, obtains the ship scene graph at current time, specifically includes:
The input information that input equipment is sent is received if flag bit is 0 if described exit, it is current according to the input information updating View information, the ship scene graph at current time is obtained according to the current view information, wherein, the current viewpoint Information includes current view point the position and direction in the model of the Virtual Marine cabin, and the ship scene graph is one kind by institute State the directed acyclic graph of multiple nodes composition in the model of Virtual Marine cabin.
5. method according to claim 4, it is characterised in that the vgFrame () function includes pfCull () function And pfDraw () function, the ship scene graph for calling current time described in vgFrame () function pair rejected and painted System, obtains the ship what comes into a driver's figure at current time, specifically includes:
PfCull () function is called, rejects corresponding in the current view information in the ship scene graph at the current time Node outside visual line of sight, and by each node in the ship scene graph at the remaining current time and its corresponding render Instruct associated storage;
Call pfDraw () function, the related data in the render instruction and database render respectively it is remaining described in work as Corresponding node in the ship scene graph at preceding moment, and the ship scene graph at the current time after rendering works as described The ship what comes into a driver's figure at preceding moment is plotted on display device.
6. a kind of Real-time windows target generating means, applied to ship Scene wandering system, it is characterised in that described device includes:
Creation module, for creating a single document engineering based on MFC;
Import modul, the zsVegaView classes for a Vega to be provided are imported in the single document engineering, described ZsVegaView classes are corresponding with the Virtual Marine cabin model pre-established;
First calling module, for the zsVegaView being invoked in MFC application program CView classes::RunVega () function is opened Open thread;
Second calling module, for calling vgInitWinSys () function, vgDefineSys () function and vgConfigSys () Function is initialized, defined and configured to Vega systems respectively;
3rd calling module, for calling Vega primitive recursive functions, is obtained in each circulation of the Vega primitive recursive functions The ship what comes into a driver's figure at current time, ship what comes into a driver's figure and multiple sections in the model of the Virtual Marine cabin at the current time Point correspondence.
7. device according to claim 6, it is characterised in that second calling module includes initialization module, definition Module and configuration module,
The initialization module, for calling vgInitWinSys () function, by creating shared memory field and signaling zone pair Vega systems are initialized;
The definition module, for calling vgDefineSys () function, by call definition file, reads the definition file In data and load correlation database, create need class and event Vega systems are defined;
The configuration module, the example of the class for calling vgConfigSys () function configuration needs.
8. device according to claim 6, it is characterised in that the 3rd calling module, specifically for calling Vega master Cyclical function, vgSyncFrame () function is called in each circulation of the Vega primitive recursive functions, and mark is exited in inquiry Position, if the application process processing for exiting progress current time if flag bit is 0, obtains the ship scene graph at current time, The application process processing procedure at the current time is synchronous with default frame rate, calls current described in vgFrame () function pair The ship scene graph at moment is rejected and drawn, and obtains the ship what comes into a driver's figure at current time.
9. device according to claim 8, it is characterised in that the 3rd calling module, if being additionally operable to described exit mark The input information that will position sends for 0 reception input equipment, according to the current view information of the input information updating, according to institute The ship scene graph that current view information obtains current time is stated, wherein, the current view information includes current view point Position and direction in the model of the Virtual Marine cabin, the ship scene graph is one kind by Virtual Marine cabin mould The directed acyclic graph of multiple nodes composition in type.
10. device according to claim 9, it is characterised in that the vgFrame () function includes pfCull () letter Number and pfDraw () function,
3rd calling module, is additionally operable to call in pfCull () function, the ship scene graph at the rejecting current time Node outside the corresponding visual line of sight of the current view information, and by the ship scene graph at the remaining current time Each node and its corresponding render instruction associated storage;PfDraw () function is called, according to the render instruction and data Related data in storehouse renders corresponding node in the ship scene graph at the remaining current time respectively, and after rendering The ship scene graph at the current time is plotted on display device as the ship what comes into a driver's figure at the current time.
CN201710151918.XA 2017-03-14 2017-03-14 A kind of Real-time windows target generation method and device Pending CN106951625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710151918.XA CN106951625A (en) 2017-03-14 2017-03-14 A kind of Real-time windows target generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710151918.XA CN106951625A (en) 2017-03-14 2017-03-14 A kind of Real-time windows target generation method and device

Publications (1)

Publication Number Publication Date
CN106951625A true CN106951625A (en) 2017-07-14

Family

ID=59467979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710151918.XA Pending CN106951625A (en) 2017-03-14 2017-03-14 A kind of Real-time windows target generation method and device

Country Status (1)

Country Link
CN (1) CN106951625A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187910A (en) * 2019-05-30 2019-08-30 腾讯科技(上海)有限公司 A hot update method, device, equipment and computer-readable storage medium
CN113591212A (en) * 2021-07-14 2021-11-02 中国舰船研究设计中心 Ship equipment arrangement method based on packaging unit and information association
CN116564153A (en) * 2023-05-04 2023-08-08 中国兵器科学研究院 Combat simulation engine based on three-dimensional architecture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120271758A1 (en) * 2010-07-01 2012-10-25 Daniel Jammer Real-time system and method for tracking, locating and recharging electric vehicles in transit
CN104090497A (en) * 2014-07-23 2014-10-08 大连海事大学 Dynamic positioning system simulation platform and working method used in ocean engineering field
CN105354355A (en) * 2015-09-28 2016-02-24 中国人民解放军辽宁省军区装备部军械修理所 Three-dimensional motion scene based simulation system design and realization method
CN105718643A (en) * 2016-01-19 2016-06-29 武汉理工大学 Optimization view angle based ship production design drawing-inspection device implementation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120271758A1 (en) * 2010-07-01 2012-10-25 Daniel Jammer Real-time system and method for tracking, locating and recharging electric vehicles in transit
CN104090497A (en) * 2014-07-23 2014-10-08 大连海事大学 Dynamic positioning system simulation platform and working method used in ocean engineering field
CN105354355A (en) * 2015-09-28 2016-02-24 中国人民解放军辽宁省军区装备部军械修理所 Three-dimensional motion scene based simulation system design and realization method
CN105718643A (en) * 2016-01-19 2016-06-29 武汉理工大学 Optimization view angle based ship production design drawing-inspection device implementation method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
商蕾: "基于视景仿真的船舶驾驶舱人机工程设计评价研究", 《武汉理工大学学报(交通科学与工程版)》 *
蔡礼塬: "船舶机舱建模与视景仿真系统研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
邓飙等: "MFC框架下的Vega应用程序设计研究", 《2010系统仿真技术及其应用学术会议》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187910A (en) * 2019-05-30 2019-08-30 腾讯科技(上海)有限公司 A hot update method, device, equipment and computer-readable storage medium
CN110187910B (en) * 2019-05-30 2023-09-05 腾讯科技(上海)有限公司 Thermal updating method, device, equipment and computer readable storage medium
CN113591212A (en) * 2021-07-14 2021-11-02 中国舰船研究设计中心 Ship equipment arrangement method based on packaging unit and information association
CN113591212B (en) * 2021-07-14 2024-04-09 中国舰船研究设计中心 A method for arranging ship equipment based on encapsulation units and information association
CN116564153A (en) * 2023-05-04 2023-08-08 中国兵器科学研究院 Combat simulation engine based on three-dimensional architecture

Similar Documents

Publication Publication Date Title
AU2021101142A4 (en) Method and System for Constructing Digital Rock
US7002583B2 (en) Display of images and image transitions
RO123609B1 (en) System for processing graphical information and other video information to be displayed by computer systems
CN106198049A (en) Real vehicles is at ring test system and method
CN105701851B (en) A kind of 3 d rendering engine system based on geography information
CN108958241A (en) Control method, device, server and the storage medium of robot path
CN116036604B (en) Data processing method, device, computer and readable storage medium
CN106951625A (en) A kind of Real-time windows target generation method and device
CN110046677B (en) Data preprocessing method, map construction method, loop closure detection method and system
CN101882321A (en) System and method for rendering animation user interface
CN102682150A (en) Designing a navigation scene
Lim et al. A proposed methodology of bringing past life in digital cultural heritage through crowd simulation: a case study in George Town, Malaysia
Behzadan et al. Integrated information modeling and visual simulation of engineering operations using dynamic augmented reality scene graphs
Günther et al. Decoupled opacity optimization for points, lines and surfaces
US20140347355A1 (en) Ray tracing core and method for processing ray tracing
JP2007188502A (en) Particle rendering method and system
US8639023B2 (en) Method and system for hierarchically matching images of buildings, and computer-readable recording medium
CN114491779B (en) Method for generating sketch through intelligent planning and related equipment
CN104573140A (en) Layered dynamic path planning method applied to virtual simulation
CN110132296A (en) Method and system for multi-agent sub-goal division path planning based on dissolution potential field
CN103164864A (en) Triangularization method of polygon in computer image processing and system using the same
CN103631261B (en) Information processing method and device
Xu et al. FLEX: Adaptive Task Batch Scheduling with Elastic Fusion in Multi-Modal Multi-View Machine Perception
KR20250061796A (en) Q-PathFinder™: Parallel Spacetime Navigation and Pathfinding System Based on Q-Block
US12488065B2 (en) System and method of clustering machine learning flows

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170714

RJ01 Rejection of invention patent application after publication