CN113760463B - Method and device for adjusting positions of child model components on each side of parent model component - Google Patents

Method and device for adjusting positions of child model components on each side of parent model component Download PDF

Info

Publication number
CN113760463B
CN113760463B CN202111047948.9A CN202111047948A CN113760463B CN 113760463 B CN113760463 B CN 113760463B CN 202111047948 A CN202111047948 A CN 202111047948A CN 113760463 B CN113760463 B CN 113760463B
Authority
CN
China
Prior art keywords
position information
model component
target
sub
rectangular ring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111047948.9A
Other languages
Chinese (zh)
Other versions
CN113760463A (en
Inventor
贝晓狮
张桥
李京燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shi Guan Jin Yang Technology Development Co ltd
Original Assignee
Beijing Shi Guan Jin Yang Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shi Guan Jin Yang Technology Development Co ltd filed Critical Beijing Shi Guan Jin Yang Technology Development Co ltd
Priority to CN202111047948.9A priority Critical patent/CN113760463B/en
Publication of CN113760463A publication Critical patent/CN113760463A/en
Application granted granted Critical
Publication of CN113760463B publication Critical patent/CN113760463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a method and a device for adjusting positions of sub-model components on each side of a parent model component, wherein a preset number of containers are established for the parent model component in advance, each container is configured with rectangular ring position information, and when any sub-model component in the parent model component is detected to start dragging, first position information of the sub-model component is obtained; comparing the first position information with the position information of each rectangular ring; when the first position information is detected to fall into the area where the first target rectangular ring position information belongs, a first target container corresponding to the first target rectangular ring position information is obtained, a parent model component is updated, and a child model component is inserted into the first target container for preview display. According to the process, the parent model component is updated only by dragging the self-model component to the area where the rectangular ring position information of the corresponding container belongs, preview display is performed, the parent model component does not need to be operated again, and design efficiency is improved.

Description

Method and device for adjusting positions of child model components on each side of parent model component
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for adjusting positions of a sub-model component on each side of a parent model component.
Background
The large complex model is formed by combining a plurality of sub-model components, and when the model is designed, the sub-model components are distributed at the position of the parent model Xu Jianshang to determine the size of the combined model so as to be convenient to connect with other models, and as the design of the complex system can not be reasonably planned from the beginning of the design.
The adjustment in the design process is unavoidable, however, the adjustment process is often the most time-consuming, because the conventional adjustment mode is to modify the position parameters of the sub-model assembly or drag the sub-model assembly to the target position directly, and then the sub-model assembly needs to be operated again to see the result, if the position is not suitable, the adjustment is needed repeatedly, so that the design workload is increased, and the design efficiency is low.
Disclosure of Invention
In view of this, the invention provides a method and a device for adjusting the positions of sub-model components on each side of a parent model component, which are used for solving the problems that in the process of adjusting a model, the position parameters of the sub-model components are modified or the sub-model components are directly dragged to a target position, then the sub-model components need to be operated again to see the result, if the positions are not suitable, repeated adjustment is needed, the design workload is increased, and the design efficiency is low. The specific scheme is as follows:
the method for adjusting the positions of the sub-model components on each side of the parent model component comprises the steps of establishing a preset number of containers for the parent model component in advance, wherein the containers comprise: a name of a child model component and location information relative to the parent model component, each container configured with rectangular ring location information, the method comprising:
when any child model component in the parent model components is detected to start dragging, acquiring first position information of the child model components;
comparing the first position information with each rectangular ring position information;
when the first position information is detected to fall into the area where the first target rectangular ring position information belongs, a first target container corresponding to the first target rectangular ring position information is obtained, the parent model component is updated, and the child model component is inserted into the first target container for preview display.
The method, optionally, further comprises:
when the user is detected to loosen the mouse at the target position, judging whether the target position belongs to the area to which the position information of the second target rectangular ring belongs;
if yes, a second target container corresponding to the second target rectangular ring information is obtained, and the sub-model component is added into the second target container.
The method, optionally, further comprises:
if not, reinserting the sub-model component into the original container.
In the above method, optionally, the first location information includes: horizontal position information and vertical position information, insert the sub-model component into the first target container for preview display, including:
acquiring first target position information, wherein the first target position information is one of the horizontal position information and the vertical position information;
acquiring second target position information matched with the first target position information in each sub-model component in the first target container;
sequentially arranging the first target position information and the second target position information to obtain a sequencing result;
and adding the sub-model component to the corresponding position of the first target container for preview display according to the sorting result.
The method, optionally, further comprises:
when the addition of a new child model component to the parent model component is detected, second position information of the new child model component is acquired;
determining a third target container to which the new sub-model component belongs according to the second position information;
the new sub-model components are sequentially added to the third target container.
An adjusting device for positions of sub-model components on each side of a parent model component, wherein a preset number of containers are established for the parent model component in advance, and the containers comprise: a name of a child model component and location information relative to the parent model component, each container configured with rectangular ring location information, the apparatus comprising:
the first acquisition module is used for acquiring first position information of any child model component in the parent model components when the fact that any child model component starts dragging is detected;
a comparison module for comparing the first position information with each rectangular ring position information;
and the updating and displaying module is used for acquiring a first target container corresponding to the first target rectangular ring position information when the first position information is detected to fall into the area to which the first target rectangular ring position information belongs, updating the parent model component and inserting the child model component into the first target container for preview display.
The above device, optionally, further comprises:
the judging module is used for judging whether the target position belongs to the area to which the position information of the second target rectangular ring belongs when the user is detected to loosen the mouse at the target position;
and the first adding module is used for acquiring a second target container corresponding to the second target rectangular ring information if yes, and adding the sub-model component into the second target container.
The above device, optionally, further comprises:
and the inserting module is used for reinserting the sub-model component into the original container if not.
The above apparatus, optionally, the first location information includes: horizontal position information and vertical position information, the updating and displaying module comprising:
a first acquisition unit configured to acquire first target position information, wherein the first target position information is one of the horizontal position information and the vertical position information;
a second obtaining unit, configured to obtain second target position information of each sub-model component in the first target container, where the second target position information matches the first target position information;
the arrangement unit is used for arranging the first target position information and the second target position information in sequence to obtain an ordering result;
and the display unit is used for adding the sub-model component to the corresponding position of the first target container for preview display according to the sorting result.
The above device, optionally, further comprises:
a second obtaining module, configured to obtain second location information of a new child model component when it is detected that the new child model component is added to the parent model component;
the determining module is used for determining a third target container to which the new sub-model component belongs according to the second position information;
and a second adding module, configured to sequentially add the new sub-model components to the third target container.
Compared with the prior art, the invention has the following advantages:
the invention discloses a method and a device for adjusting the positions of sub-model components on each side of a parent model component, which are used for establishing a preset number of containers for the parent model component in advance, wherein the containers comprise: the method comprises the steps that the names of corresponding child model components and the position information relative to a parent model component are provided with rectangular ring position information, and when any child model component in the parent model component is detected to start dragging, first position information of the child model components is obtained; comparing the first position information with the position information of each rectangular ring; when the first position information is detected to fall into the area where the first target rectangular ring position information belongs, a first target container corresponding to the first target rectangular ring position information is obtained, a parent model component is updated, and a child model component is inserted into the first target container for preview display. According to the process, the parent model component is updated only by dragging the self-model component to the area where the rectangular ring position information of the corresponding container belongs, preview display is performed, the parent model component does not need to be operated again, and design efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for adjusting the positions of sub-model components on each side of a parent model component according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a parent model component according to an embodiment of the present invention;
fig. 3 is a block diagram of a device for adjusting positions of sub-model components on each side of a parent model component according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention discloses a method and a device for adjusting the positions of sub-model components on each side of a parent model component, which are applied to the adjustment process of each sub-model component in the parent model component in the model design process, wherein in the prior art, the result can be seen by modifying the position parameters of the sub-model components or directly dragging the sub-model components to target positions and then operating again, if the positions are unsuitable, repeated adjustment is needed, the design workload is increased, and the design efficiency is low. Therefore, in order to solve the above-mentioned problems, the present invention provides a method for adjusting the positions of sub-model components on each side of a parent model component, where the method establishes a preset number of containers for the parent model component in advance, where the preset number is related to the number of sides of the parent model component, and the preset number is equal to the number of sides of the parent model component, and the principle of establishing the containers is that: establishing a container for each edge of the parent model component, wherein the container comprises: the child model component included in each side and the position information of each model component relative to the parent model component preferably index each child model component in a corresponding container, and further, rectangular ring position information is configured for each container, preferably, the rectangular ring position information is used for indicating a range of intervals where child model components can be added on the side corresponding to the current container, preferably, the rectangular ring position information includes: horizontal rectangular ring position information and vertical rectangular ring position information, the rectangular ring position information being position information with respect to the parent model, the method being performed as shown in fig. 1, comprising the steps of:
s101, when any child model component in the parent model components is detected to start dragging, acquiring first position information of the child model components;
in the embodiment of the present invention, a schematic structural diagram of the parent model is shown in fig. 2, where the parent model includes: in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, and in16, since the position information of each child model component with respect to the parent model component is stored in the container, if the position information of the current child model component is different from the position information of the child model component stored in the container, it is determined that the current child model component is dragged, and when any child model component is detected to start dragging, first position information of the child model component is obtained, where the first position information is the position of the child model component with respect to the parent model component, and the first position information includes: the horizontal position information and the vertical position information preferably delete the sub-model component in the container to which the sub-model component belongs if the sub-model component is dragged.
S102, comparing the first position information with position information of each rectangular ring;
in the embodiment of the present invention, since the sub-model component moves continuously, the first position information is transformed continuously, the first position information is continuously acquired, the acquired first position information is compared with the position information of each rectangular ring, and the specific comparison process is as follows, the horizontal position information is compared with the horizontal rectangular ring position information in the position information of each rectangular ring, and the vertical position information is compared with the vertical rectangular ring position information in the position information of each rectangular ring.
And S103, when the fact that the first position information falls into the area where the first target rectangular ring position information belongs is detected, acquiring a first target container corresponding to the first target rectangular ring position information, updating the parent model component, and inserting the child model component into the first target container for preview display.
In the embodiment of the present invention, when the horizontal position information falls into any horizontal rectangular ring position information or when the vertical position information falls into any vertical rectangular ring position information, it is determined that the first position information falls into an area to which the first target rectangular ring position information belongs, preferably, the horizontal position information or the vertical position information that falls into the corresponding rectangular ring position information is used as first target position information, a first target container corresponding to the first target rectangular ring position information is obtained, each second target position information that matches the first target position information in each sub-model component in the first target container is obtained, for example, if the first target position information is the horizontal position information, the horizontal position information of each sub-model component in the first target container is obtained as second target position information, the first target position information and the second target position information are sequentially arranged to obtain a sorting result, wherein the first target position information and the second target position information can be sequentially arranged or can be arranged in a descending order, in the embodiment of the present invention, the preview component is not specifically limited, the preview component is inserted between the first target model component and the adjacent sub-model component is inserted into the adjacent sub-model component, and the adjacent sub-model component is determined, and the adjacent to the first target model component is inserted between the first target model component and the adjacent sub-model component is displayed
The invention discloses a method for adjusting positions of sub-model components on each side of a parent model component, which comprises the steps of establishing a preset number of containers for the parent model component in advance, wherein each container is configured with rectangular ring position information, and acquiring first position information of the sub-model components when any sub-model component in the parent model component is detected to start dragging; comparing the first position information with the position information of each rectangular ring; when the first position information is detected to fall into the area where the first target rectangular ring position information belongs, a first target container corresponding to the first target rectangular ring position information is obtained, a parent model component is updated, and a child model component is inserted into the first target container for preview display. According to the process, the parent model component is updated only by dragging the self-model component to the area where the rectangular ring position information of the corresponding container belongs, preview display is performed, the parent model component does not need to be operated again, and design efficiency is improved.
Further, by performing preview display on the sub-model component, determining whether the current position of the sub-model component is suitable, if not, continuing to perform adjustment based on the method described in S101-S104, if the current position is suitable, taking the current position as the target position, releasing a mouse at the target position, and when it is detected that a user releases the mouse at the target position, determining whether the target position belongs to an area to which second target rectangular ring position information belongs, where the second target rectangular ring position information is the same as the first target rectangular ring position information when the sub-model component performs the process described in S101-S104 only once, otherwise, the first target rectangular ring position information is different from the second target rectangular ring position information, and if the target position belongs to the area to which the second target rectangular ring position information belongs, obtaining a second target container corresponding to the second target rectangular ring information, and adding the sub-model component into the second target container. Otherwise, if the target position does not belong to the area to which the second target rectangular ring position information belongs, reinserting the sub-model component into the original container.
Further, when a new sub-model component is detected to be added into the parent model component, second position information of the new sub-model component is acquired, rectangular ring position information of the second position information is judged, and a third target container of the new sub-model component is determined based on the rectangular ring position information; the new sub-model components are sequentially added to the third target container.
In the embodiment of the invention, the adjustment method is exemplified, and the specific processing procedure is as follows:
storing the child components on each side of the parent model component with 4 ordered containers, respectively, thus determining the location of each child component on the parent model component, and updating the appearance of the parent model component and the location of the child model component on the parent model component in real time based on the latest child model component in the 4 ordered containers, e.g., the containers can be represented by topList, bottomList, leftList and lightlist
When a certain sub-model component is selected by a mouse to start dragging, the original position of the sub-model component is recorded firstly, the sub-model component is removed from a container which originally stores the sub-model component based on a mouseMoveEvent mouse movement event, the position of the sub-model component belongs to a pending state, and a father model component is updated to a state without the sub-model component, wherein when the certain sub-model component is selected by the mouse to start dragging, whether a movable sub-model component exists under the mouse or not can be judged in a mouseResseevent mouse pressing event, and if so, the sub-model component is recorded as a position pending state;
in the process of dragging the child model component, calculating the current dragging position in real time, and when the position of the child model component reaches the target position on each side of the parent model component, comparing the target position with the positions of the child model components stored in the ordered container on the side to determine the index of the child model component in the ordered container where the side is located if the current position is placed, wherein the determining process is as follows: the child model component has an absolute position (x, y) on the parent model component with coordinates pointing downward to the right in the direction of increasing. Taking the upper boundary of the parent model component as an example, the x coordinate values of the child model components whose upper boundary has been fixed are incremented from left to right, and when moving the moving child model components into the upper boundary region, the x values of the moving child model components are compared with the x values of the fixed child model components, so that the positions of the moving child model components on the side relative to other child model components, that is, indexes in the ordered container, can be found. And temporarily inserting the child model component into the corresponding indexed position of the edge, the parent model component updates (reserves the space of the dragged child model component (the determined position of which is to be the child model component), the specific position of the child model component changing with the drag).
Further, when the mouse is released after the target position is adjusted, judging whether the released position of the sub-component is a valid position allowing release in a mouseressevent or not according to the following specific judging process: and constructing rectangular ring position information based on four sides of the parent model component, judging whether the position is in an area where the rectangular ring position information belongs when the mouse is loosened, if so, indicating that the loosened position is a valid position, and if not, loosening hands to be invalid positions, and if the current position is the valid position, adding the dragged child model component into a corresponding container in the dragging process, wherein all the child model components are placed in the container at the moment, otherwise, reinserting the current dragged child model component into the container before dragging.
The adjustment method fills faults from logical design to physical modeling, realizes continuity of MBSE technical routes on tools, is convenient and rapid for modifying positions of all sides of the child model assembly on the parent model assembly, provides real-time preview of modification effects when modifying positions of the child model assembly on all sides of the parent model assembly, and realizes design for rapidly selecting reasonable positions.
Based on the above-mentioned adjustment method for the positions of the sub-model components on each side of the parent model component, in the embodiment of the present invention, there is further provided an adjustment device for the positions of the sub-model components on each side of the parent model component, a preset number of containers are built in advance for the parent model component, where the containers include: the name of the child model component and the position information relative to the parent model component, each container is configured with rectangular ring position information, and the structure block diagram of the adjusting device is shown in fig. 3, and includes:
a first acquisition module 201, a comparison module 202 and an update and presentation module 203.
Wherein, the liquid crystal display device comprises a liquid crystal display device,
the first obtaining module 201 is configured to obtain first location information of any child model component in the parent model components when it is detected that the child model components start dragging;
the comparing module 202 is configured to compare the first position information with each rectangular ring position information;
the updating and displaying module 203 is configured to, when detecting that the first location information falls into an area to which the first target rectangular ring location information belongs, obtain a first target container corresponding to the first target rectangular ring location information, update the parent model component, and insert the child model component into the first target container for preview display.
The invention discloses a device for adjusting the positions of sub-model components on each side of a parent model component, which is used for establishing a preset number of containers for the parent model component in advance, wherein the containers comprise: the method comprises the steps that the names of corresponding child model components and the position information relative to a parent model component are provided with rectangular ring position information, and when any child model component in the parent model component is detected to start dragging, first position information of the child model components is obtained; comparing the first position information with the position information of each rectangular ring; when the first position information is detected to fall into the area where the first target rectangular ring position information belongs, a first target container corresponding to the first target rectangular ring position information is obtained, a parent model component is updated, and a child model component is inserted into the first target container for preview display. According to the process, the parent model component is updated only by dragging the self-model component to the area where the rectangular ring position information of the corresponding container belongs, preview display is performed, the parent model component does not need to be operated again, and design efficiency is improved.
In an embodiment of the present invention, the adjusting device further includes:
a judgment module 204 and a first addition module 205.
Wherein, the liquid crystal display device comprises a liquid crystal display device,
the judging module 204 is configured to judge whether the target position belongs to an area to which the position information of the second target rectangular ring belongs when detecting that the user releases the mouse at the target position;
the first adding module 205 is configured to, if yes, obtain a second target container corresponding to the second target rectangular ring information, and add the sub-model component to the second target container.
In an embodiment of the present invention, the adjusting device further includes: a module 206 is inserted.
Wherein, the liquid crystal display device comprises a liquid crystal display device,
the inserting module 206 is configured to reinsert the sub-model component into the original container if not.
In an embodiment of the present invention, the first location information includes: horizontal position information and vertical position information, the updating and displaying module 203 includes:
a first acquisition unit 207, a second acquisition unit 208, an arrangement unit 209, and a presentation unit 210.
Wherein, the liquid crystal display device comprises a liquid crystal display device,
the first obtaining unit 207 is configured to obtain first target position information, where the first target position information is one of the horizontal position information and the vertical position information;
the second obtaining unit 208 is configured to obtain each second target location information that matches the first target location information in each sub-model component in the first target container;
the arranging unit 209 is configured to sequentially arrange the first target position information and the second target position information to obtain a sorting result;
the display unit 210 is configured to add the sub-model component to a corresponding position of the first target container for preview display according to the sorting result.
In an embodiment of the present invention, the apparatus further includes:
a second acquisition module 211, a determination module 212 and a second addition module 213.
Wherein, the liquid crystal display device comprises a liquid crystal display device,
the second obtaining module 211 is configured to obtain second location information of a new child model component when it is detected that the new child model component is added to the parent model component;
the determining module 212 is configured to determine, according to the second location information, a third target container to which the new sub-model component belongs;
the second adding module 213 is configured to sequentially add the new sub-model components to the third target container.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above describes in detail the method and apparatus for adjusting the position of a sub-model component on each side of a parent model component, and specific examples are applied to describe the principles and embodiments of the present invention, where the description of the above examples is only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (8)

1. The method for adjusting the positions of the sub-model components on each side of the parent model component is characterized by establishing a preset number of containers for the parent model component in advance, wherein the containers comprise: a name of a child model component and location information relative to the parent model component, each container configured with rectangular ring location information, the method comprising:
when any child model component in the parent model components is detected to start dragging, acquiring first position information of the child model components;
comparing the first position information with each rectangular ring position information;
when the first position information is detected to fall into the area where the first target rectangular ring position information belongs, a first target container corresponding to the first target rectangular ring position information is obtained, the parent model component is updated, and the child model component is inserted into the first target container for preview display;
the first location information includes: horizontal position information and vertical position information, insert the sub-model component into the first target container for preview display, including:
acquiring first target position information, wherein the first target position information is one of the horizontal position information and the vertical position information;
acquiring second target position information matched with the first target position information in each sub-model component in the first target container;
sequentially arranging the first target position information and the second target position information to obtain a sequencing result;
and adding the sub-model component to the corresponding position of the first target container for preview display according to the sorting result.
2. The method as recited in claim 1, further comprising:
when the user is detected to loosen the mouse at the target position, judging whether the target position belongs to the area to which the position information of the second target rectangular ring belongs;
if yes, a second target container corresponding to the second target rectangular ring position information is obtained, and the sub-model component is added into the second target container.
3. The method as recited in claim 2, further comprising:
if not, reinserting the sub-model component into the original container.
4. The method as recited in claim 1, further comprising:
when the addition of a new child model component to the parent model component is detected, second position information of the new child model component is acquired;
determining a third target container to which the new sub-model component belongs according to the second position information;
the new sub-model components are sequentially added to the third target container.
5. An adjusting device for positions of a sub-model component on each side of a parent model component, wherein a preset number of containers are established for the parent model component in advance, and the containers comprise: a name of a child model component and location information relative to the parent model component, each container configured with rectangular ring location information, the apparatus comprising:
the first acquisition module is used for acquiring first position information of any child model component in the parent model components when the fact that any child model component starts dragging is detected;
a comparison module for comparing the first position information with each rectangular ring position information;
the updating and displaying module is used for acquiring a first target container corresponding to the first target rectangular ring position information when the first position information is detected to fall into the area where the first target rectangular ring position information belongs, updating the parent model component and inserting the child model component into the first target container for preview display;
the first location information includes: horizontal position information and vertical position information, the updating and displaying module comprising:
a first acquisition unit configured to acquire first target position information, wherein the first target position information is one of the horizontal position information and the vertical position information;
a second obtaining unit, configured to obtain second target position information of each sub-model component in the first target container, where the second target position information matches the first target position information;
the arrangement unit is used for arranging the first target position information and the second target position information in sequence to obtain an ordering result;
and the display unit is used for adding the sub-model component to the corresponding position of the first target container for preview display according to the sorting result.
6. The apparatus as recited in claim 5, further comprising:
the judging module is used for judging whether the target position belongs to the area to which the position information of the second target rectangular ring belongs when the user is detected to loosen the mouse at the target position;
and the first adding module is used for acquiring a second target container corresponding to the second target rectangular ring position information if yes, and adding the sub-model component into the second target container.
7. The apparatus as recited in claim 6, further comprising:
and the inserting module is used for reinserting the sub-model component into the original container if not.
8. The apparatus as recited in claim 5, further comprising:
a second obtaining module, configured to obtain second location information of a new child model component when it is detected that the new child model component is added to the parent model component;
the determining module is used for determining a third target container to which the new sub-model component belongs according to the second position information;
and a second adding module, configured to sequentially add the new sub-model components to the third target container.
CN202111047948.9A 2021-09-08 2021-09-08 Method and device for adjusting positions of child model components on each side of parent model component Active CN113760463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111047948.9A CN113760463B (en) 2021-09-08 2021-09-08 Method and device for adjusting positions of child model components on each side of parent model component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111047948.9A CN113760463B (en) 2021-09-08 2021-09-08 Method and device for adjusting positions of child model components on each side of parent model component

Publications (2)

Publication Number Publication Date
CN113760463A CN113760463A (en) 2021-12-07
CN113760463B true CN113760463B (en) 2023-07-28

Family

ID=78793811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111047948.9A Active CN113760463B (en) 2021-09-08 2021-09-08 Method and device for adjusting positions of child model components on each side of parent model component

Country Status (1)

Country Link
CN (1) CN113760463B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3686695A1 (en) * 2019-01-24 2020-07-29 ABB Schweiz AG Modularized model predictive control for industrial plants

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9043742B1 (en) * 2013-03-15 2015-05-26 Cadence Design Systems, Inc. Methods, systems, and articles of manufacture for implementing physical design using force models with custom connectivity
JP6502937B2 (en) * 2014-07-10 2019-04-17 株式会社Fuji Method of creating part mounting coordinates and device for creating part mounting coordinates
CN105279797B (en) * 2015-11-25 2018-08-31 四川物联亿达科技有限公司 A kind of three-dimensional warehouse component method for establishing model
CN110889153A (en) * 2018-08-20 2020-03-17 西安海平方网络科技有限公司 Model adjusting method and device, computer equipment and storage medium
CN112424837B (en) * 2020-10-23 2021-09-28 上海亦我信息技术有限公司 Model correction method, device and equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3686695A1 (en) * 2019-01-24 2020-07-29 ABB Schweiz AG Modularized model predictive control for industrial plants

Also Published As

Publication number Publication date
CN113760463A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN109806592B (en) Game resource monitoring method and device
CN107292042A (en) A kind of BIM modeling methods
CN110766775A (en) BIM model dynamic display method and device
CN110146035A (en) Built-in fitting detection method, device, equipment and the system of component production line
CN104217059A (en) System and method for automatically generating virtual factory model
CN109344214A (en) Management map method and robot
JP2018128510A (en) Education support system, education support method, and education support program
CN113760463B (en) Method and device for adjusting positions of child model components on each side of parent model component
US11663680B2 (en) Method and system for automatic work instruction creation
US20160283950A1 (en) Storage medium, facility inspection support method, and facility inspection support apparatus
CN110163580B (en) Creation method of multitask VR training scene, VR training system and storage medium
CN109887054B (en) Method and device for displaying map
JP2006259940A (en) Statistical information presentation device
KR101199955B1 (en) Method for Input and Look up Damage Information of Facility using 3-Dimension Space Model
CN113722781B (en) Heterogeneous engineering file display processing device
CN111414447A (en) Map circle selection method and device
KR101722610B1 (en) Amount calcuration apparatus of subregion unit at offshore structure and amount calcuration method of the same
JP2010182215A (en) Time series map data management system, terminal device, time series map data management method, and time series map data management program
CN111507861A (en) Power utilization data processing and visualization method and system
CN114168062B (en) Game resource processing method and device, electronic equipment and storage medium
CN113052474B (en) Cross-crossing key part early warning method and system based on power grid
JP2004295566A (en) Graphic element selection program
JP4408055B2 (en) Drawing management system
JPH0935103A (en) Device for managing production planning information
JP2005284386A (en) Project planning support method and project planning support program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant