Disclosure of Invention
Therefore, the invention provides a method and a system for quickly adjusting a curve path in a horizontal well guide model, which can quickly and intuitively change the value range of the curve path and solve the problems of low adjustment speed, low interactivity and incapability of quick adjustment in the traditional scheme.
In order to achieve the above purpose, the invention provides the following technical scheme: in a first aspect, a method for quickly adjusting a curve path in a horizontal well steering model is provided, which comprises the following steps:
performing area division on a title area of the curve channel according to the direction, wherein the area division comprises a left area, a middle area and a right area, and determining a target area according to an initial point of a mouse;
judging the position of the target area where the current initial mouse point is located:
if the target area is in the left area, dragging the title area to zoom on the left side of the curve road;
if the target area is in the middle area, dragging the header area to perform curve track translation;
and if the target area is in the right area, dragging the title area to zoom on the right side of the curve path.
And as a preferred scheme of the rapid adjustment method for the curve path in the horizontal well guide model, if the target area is in the left area, dragging the header area to adjust the left value of the curve path, and keeping the right value of the curve path unchanged.
As a preferred scheme of the rapid adjustment method of the curve in the horizontal well guide model, if the target area is in the middle area, the header area is dragged to simultaneously adjust the left value and the right value of the curve.
And as an optimal scheme of the rapid curve path adjusting method in the horizontal well guiding model, if the target area is in the right area, dragging the header area to adjust the right value of the curve path, and keeping the left value of the curve path unchanged.
In a second aspect, a system for quickly adjusting a curve path in a horizontal well steering model is provided, which includes:
the system comprises an azimuth dividing module, a left area dividing module, a middle area dividing module and a right area dividing module, wherein the azimuth dividing module is used for carrying out area division on a header area of a curve road according to azimuth, and the area division comprises the left area, the middle area and the right area;
the target area determining module is used for determining a target area according to the initial point of the mouse;
the target area position judging module is used for judging the position of a target area where the current initial mouse point is located;
the first curve path adjusting submodule is used for dragging the title area to zoom on the left side of the curve path if the target area is in the left area;
the second curve track adjusting submodule is used for dragging the title area to carry out curve track translation if the target area is in the middle area;
and the third curve path adjusting submodule is used for dragging the title area to zoom on the right side of the curve path if the target area is in the right area.
As a preferred scheme of the curve path rapid adjustment system in the horizontal well guiding model, in the first curve path adjustment submodule, if the target area is in the left area, the header area is dragged to adjust the left value of the curve path, and the right value of the curve path is not changed.
As a preferred scheme of the curve path fast adjustment system in the horizontal well guiding model, in the second curve path adjustment submodule, if the target area is in the middle area, the header area is dragged to simultaneously perform the left value and the right value adjustment of the curve path.
As a preferred scheme of the curve path rapid adjustment system in the horizontal well guiding model, in the third curve path adjustment submodule, if the target area is in the right area, the header area is dragged to perform the right value adjustment of the curve path, and the left value of the curve path is unchanged.
In a third aspect, a computer-readable storage medium is provided, in which program code for a method for rapid adjustment of a curved trajectory in a horizontal well steering model is stored, the program code comprising instructions for performing the method for rapid adjustment of a curved trajectory in a horizontal well steering model of the first aspect or any possible implementation thereof.
In a fourth aspect, an electronic device is provided, where the electronic device includes a processor, and the processor is coupled to a storage medium, and when the processor executes instructions in the storage medium, the processor causes the electronic device to perform the method for fast adjusting a curved track in a horizontal well steering model according to the first aspect or any possible implementation manner of the first aspect.
The invention has the following advantages: performing area division on a title area of a curve channel according to the direction, wherein the area division comprises a left area, a middle area and a right area, and determining a target area according to an initial point of a mouse; judging the position of the target area where the current initial mouse point is located: if the target area is in the left area, dragging the title area to zoom to the left side of the curve track; if the target area is in the middle area, dragging the header area to perform curve track translation; and if the target area is in the right area, dragging the title area to zoom on the right side of the curve path. The method can realize that the value range of the curve road is changed rapidly and visually by dragging the title area of the curve road through the mouse, so as to adjust the position of the curve in the road, is convenient, efficient, visual and strong in interactivity, and can assist the relevant work of the guide model rapidly.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Comparing fig. 1, referring to fig. 2 and fig. 3, a method for quickly adjusting a curved path in a horizontal well steering model is provided, which comprises the following steps:
s1, dividing the title area of the curve channel into areas according to the direction, wherein the areas include a left area, a middle area and a right area;
s2, determining a target area according to the initial point of the mouse;
s3, judging the position of the target area where the current mouse initial point is located:
s31, if the target area is in the left area, dragging the title area to zoom on the left side of the curve path;
s32, if the target area is in the middle area, dragging the title area to perform curve track translation;
and S33, if the target area is in the right area, dragging the title area to zoom to the right side of the curve path.
In the embodiment of fig. 4, if the target area is in the left area, the header area is dragged to adjust the left value of the curved track, and the right value of the curved track is not changed. If the initial point of the mouse is in the left area, the size of the left value of the curve path is only modified by dragging the title area, the right value of the curve path is unchanged, and the left zooming effect of the curve path is achieved.
With reference to fig. 5, in this embodiment, if the target area is in the middle area, the header area is dragged to perform the left value and the right value adjustment of the curved track at the same time. If the initial point of the mouse is in the middle area, the left value and the right value of the curve track are modified simultaneously by dragging the title area, so that the translation effect of the curve track is achieved.
In the embodiment of fig. 6, if the target area is in the right area, the header area is dragged to adjust the right value of the curved track, and the left value of the curved track is unchanged. If the initial point of the mouse falls in the right area, the size of the right value of the curve path is only modified by dragging the title area, and the left value of the curve path is unchanged, so that the right zooming effect of the curve path is achieved.
Specifically, in this embodiment, the target curve lane header area, that is, the target curve, is determined according to the initial point (left click position) of the mouse. And simultaneously calculating a curve value ValDown represented by the mouse position. And the left value minVal, the right value maxVal and the dDown of the current curve track are relative X positions of the initial point of the mouse in the title bar.
ValDown=minVal*(1-dDown)+maxVal*dDown;
Specifically, the title area of the curved track is divided into three areas, i.e., a left area (lower area, or low value area), a middle area, and a right area (upper area, high value area) as shown in fig. 4.
When the initial point of the mouse falls in the left area, the dragging only modifies the left value (fig. 5). And achieving the left zooming effect of the curve path. dMove is the relative X position of the current point of the mouse in the title bar.
minVal=maxVal-(maxVal-ValDown)/(1-dMove);
When the initial point of the mouse falls in the middle region, the dragging modifies both the left and right values (fig. 6). The effect of curve track translation is achieved.
dRange=(maxVal-minVal)*(dMove-dDown);
minVal=minVal-dRange;
maxVal=maxVal-dRange;
If the initial point of the mouse falls in the right area, dragging only modifies the right value size (FIG. 7). And the zooming effect on the right side of the curve is achieved. dMove is the relative X position of the current point of the mouse in the title bar.
maxVal=minVal+(ValDown-minVal)/dMove。
In summary, the invention performs area division on the title area of the curved road according to the direction, the area division comprises a left area, a middle area and a right area, and the target area is determined according to the initial point of the mouse; judging the position of the target area where the current initial mouse point is located: if the target area is in the left area, dragging the title area to zoom on the left side of the curve road; if the target area is in the middle area, dragging the title area to perform curve track translation; and if the target area is in the right area, dragging the title area to zoom on the right side of the curve path. The method can realize that the value range of the curve road is changed rapidly and intuitively by dragging the title area of the curve road through the mouse, so that the position of the curve in the road is adjusted, the method is convenient, fast, efficient, intuitive, strong in interactivity, and capable of rapidly assisting the relevant work of the guide model.
Example 2
Referring to fig. 7, an embodiment 2 of the present invention provides a system for quickly adjusting a curved trajectory in a horizontal well steering model, including:
the system comprises an azimuth dividing module 1, a left area, a middle area and a right area, wherein the azimuth dividing module is used for carrying out area division on a title area of a curve channel according to azimuth;
the target area determining module 2 is used for determining a target area according to the initial point of the mouse;
the target area position judging module 3 is used for judging the position of a target area where the current initial mouse point is located;
a first curve path adjusting submodule 31, configured to, if the target area is in the left area, drag the header area to perform left-side scaling of the curve path;
a second curve path adjusting submodule 32, configured to, if the target area is in the middle area, drag the header area to perform curve path translation;
and a third curve path adjusting submodule 33, configured to drag the header area to perform right-side scaling on the curve path if the target area is in the right area.
In this embodiment, in the first curve path adjusting submodule, if the target area is in the left area, the header area is dragged to adjust the left value of the curve path, and the right value of the curve path is not changed. In the second curve path adjusting submodule, if the target area is in the middle area, the header area is dragged to simultaneously adjust the left value and the right value of the curve path. In the third curve path adjusting submodule, if the target area is in the right area, the header area is dragged to adjust the right value of the curve path, and the left value of the curve path is unchanged.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules/units of the apparatus are based on the same concept as the method embodiment in embodiment 1 of the present application, the technical effect brought by the contents is the same as the method embodiment of the present application, and specific contents may refer to the description in the foregoing method embodiment of the present application, and are not described herein again.
Example 3
Embodiment 3 of the present invention further provides a computer-readable storage medium, where a program code for a method for quickly adjusting a curved trajectory in a horizontal well steering model is stored in the computer-readable storage medium, where the program code includes an instruction for executing the method for quickly adjusting a curved trajectory in a horizontal well steering model according to embodiment 1 or any possible implementation manner thereof.
The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Example 4
Embodiment 4 of the present invention provides an electronic device, where the electronic device includes a processor, the processor is coupled with a storage medium, and when the processor executes an instruction in the storage medium, the electronic device is enabled to execute the method for quickly adjusting a curved trajectory in a horizontal well steering model according to embodiment 1 or any possible implementation manner thereof.
Specifically, the processor may be implemented by hardware or software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated in the processor, located external to the processor, or stand-alone.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.).
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.