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

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

Info

Publication number
CN113760463A
CN113760463A CN202111047948.9A CN202111047948A CN113760463A CN 113760463 A CN113760463 A CN 113760463A CN 202111047948 A CN202111047948 A CN 202111047948A CN 113760463 A CN113760463 A CN 113760463A
Authority
CN
China
Prior art keywords
position information
target
model component
sub
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111047948.9A
Other languages
Chinese (zh)
Other versions
CN113760463B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for adjusting positions of submodel 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 the condition that any submodel component in the parent model component starts to drag is detected, first position information of the submodel 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 region to which 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. In the process, the parent model component is updated only by dragging the self model component to the region to which the position information of the rectangular ring of the corresponding container belongs, preview display is carried out, the parent model component does not need to be operated again, and the design efficiency is improved.

Description

Method and device for adjusting positions of sub-model components on each side of parent model component
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for adjusting positions of a sub-model component on each side of a parent model component.
Background
When the model is designed, the position distribution of the sub-model components on the father model determines the size of the combined model to be conveniently connected with other models, and the design of the complex system cannot be planned most reasonably from the beginning of the design.
Adjustment in the design process is inevitable, 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 appropriate, repeated adjustment is needed, the workload of design is increased, and the design efficiency is low.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for adjusting positions of a sub-model component on each side of a parent model component, so as to solve the problem that in the process of adjusting a model, after a position parameter of the sub-model component is modified or the sub-model component is directly dragged to a target position, the result needs to be seen after the sub-model component is operated again, and if the position is not suitable, repeated adjustment is needed, the workload of design is increased, and the design efficiency is low. The specific scheme is as follows:
a method for adjusting the positions of a sub-model component on each side of a parent model component is characterized in that a preset number of containers are established for the parent model component in advance, and the containers comprise: 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 detecting that any sub model component in the parent model component starts to be dragged, acquiring first position information of the sub model component;
comparing the first position information with each rectangular ring position information;
when the first position information is detected to fall into the region of the first target rectangular ring position information, 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 above method, optionally, further includes:
when it is detected that the user releases the mouse at the target position, judging whether the target position belongs to the area to which the second target rectangular ring position information belongs;
and if so, acquiring a second target container corresponding to the second target rectangular ring information, and adding the sub-model assembly into the second target container.
The above method, optionally, further includes:
if not, the sub-model assembly is reinserted into the original container.
The method described above, optionally, the first location information includes: inserting the sub-model component into the first target container for preview display, wherein the process comprises the following steps:
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 assembly in the first target container;
arranging the first target position information and the second target position information in sequence 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 sequencing result.
The above method, optionally, further includes:
when a new sub-model component is detected to be added into the parent model component, acquiring second position information of the new sub-model component;
determining a third target container to which the new sub-model component belongs according to the second position information;
sequentially adding the new sub-model component to the third target container.
A device for adjusting the positions of a sub-model component on each side of a parent model component establishes a preset number of containers for the parent model component in advance, wherein the containers comprise: name of a child model component and position information relative to the parent model component, each container configured with rectangular ring position information, the apparatus comprising:
the first acquisition module is used for acquiring first position information of a sub-model assembly when detecting that any sub-model assembly in the parent model assembly starts to drag;
the comparison module is used for comparing the first position information with the position information of each rectangular ring;
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 region 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 apparatus, optionally, further comprises:
the judging module is used for judging whether the target position belongs to the area to which the second target rectangular ring position information belongs when detecting that the user releases 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 and adding the sub-model assembly into the second target container if the second target container is the first target container.
The above apparatus, optionally, further comprises:
and the inserting module is used for reinserting the sub-model assembly into the original container if the sub-model assembly is not inserted into the original container.
The above apparatus, optionally, the first location information includes: horizontal position information and vertical position information, the update and display module includes:
a first obtaining unit configured to obtain 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 location information that matches the first target location information in each sub-model component in the first target container;
the arrangement unit is used for arranging the first target position information and the second target position information in sequence to obtain a sequencing 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 sequencing result.
The above apparatus, optionally, further comprises:
the second acquisition module is used for acquiring second position information of a new sub-model component when the fact that the new sub-model component is added into the parent model component is detected;
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;
a second adding module for sequentially adding 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 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: the method comprises the following steps that the name of a corresponding sub-model assembly and position information relative to a parent model assembly are obtained, each container is configured with rectangular ring position information, and when the condition that any one sub-model assembly in the parent model assembly starts to be dragged is detected, first position information of the sub-model assembly 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 region to which 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. In the process, the parent model component is updated only by dragging the self model component to the region to which the position information of the rectangular ring of the corresponding container belongs, preview display is carried out, the parent model component does not need to be operated again, and the design efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for adjusting 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 structural diagram of a parent model component according to an embodiment of the present invention;
fig. 3 is a block diagram of an adjusting apparatus 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 technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The invention discloses a method and a device for adjusting positions of submodel components on each side of a parent model component, which are applied to the adjustment process of each submodel component in the parent model component in the model design process. Therefore, in order to solve the above problem, the present invention provides a method for adjusting 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 as follows: establishing a container for each edge of the parent model component, the container comprising: preferably, an index is established for each sub-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 an interval range in which a sub-model component can be added to an edge corresponding to a current container, and 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 execution flow of the method being shown in fig. 1, including the steps of:
s101, when it is detected that any sub model component in the parent model component starts to be dragged, acquiring first position information of the sub model component;
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 container stores the position information of each sub-model component relative to the parent model component, if the position information of the current sub-model component is different from the position information of the sub-model component stored in the container, it is determined that the current sub-model component is dragged, and when it is detected that any sub-model component starts to be dragged, first position information of the sub-model component is acquired, wherein the first position information is the position of the sub-model component relative to the parent model component, and the first position information includes: horizontal position information and vertical position information, preferably, if the sub-model component is dragged, the sub-model component is deleted from the container to which the sub-model component belongs.
S102, comparing the first position information with the position information of each rectangular ring;
in the embodiment of the invention, as the sub-model assembly moves continuously, the first position information is changed continuously to obtain the first position information continuously, and the obtained first position information is compared with the position information of each rectangular ring.
S103, when the first position information is detected to fall into a region to which 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.
In the embodiment of the present invention, when it is determined that 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, and the first position information falls into a region to which first target rectangular ring position information belongs, it is preferable that the horizontal position information or the vertical position information falling into the corresponding proceeding rectangular ring position information is taken as first target position information, a first target container corresponding to the first target rectangular ring position information is acquired, each piece of second target position information matching the first target position information in each sub-model component in the first target container is acquired, for example, if the first target position information is horizontal position information, the horizontal position information of each sub-model component in the first target container is acquired as second target position information, the first target position information and the second target position information are sequentially arranged to obtain a sequencing result, wherein the first target position information and the second target position information can be sequentially arranged or can be arranged in an ascending order or can be arranged in a descending order
The invention discloses a method for adjusting positions of submodel 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, configuring rectangular ring position information for each container, and acquiring first position information of the submodel components when detecting that any submodel component in the parent model component starts to be dragged; comparing the first position information with the position information of each rectangular ring; when the first position information is detected to fall into the region to which 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. In the process, the parent model component is updated only by dragging the self model component to the region to which the position information of the rectangular ring of the corresponding container belongs, preview display is carried out, the parent model component does not need to be operated again, and the design efficiency is improved.
Further, through previewing and displaying the submodel assembly, whether the submodel assembly is suitable at the current position is determined, if not, the submodel assembly is continuously adjusted based on the method of S101-S104, if the current position is suitable, the current position is taken as the target position, the mouse is released at the target position, and when the situation that the user releases the mouse at the target position is detected, whether the target position belongs to the area to which second target rectangular ring position information belongs is judged, wherein the second target rectangular ring position information is the same as the first target rectangular ring position information under the situation that the submodel assembly only carries out the process as in S101-S104 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, and acquiring 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, the sub-model assembly is reinserted 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 obtained, the position information of a rectangular ring to which the second position information belongs is judged, and a third target container to which the new sub-model component belongs is determined based on the position information of the rectangular ring; sequentially adding the new sub-model component to the third target container.
In the embodiment of the present invention, the adjustment method is exemplified, and the specific processing procedure is as follows:
storing sub-components on respective sides of a parent model component in4 ordered containers, thereby determining the location of each sub-component on the parent model component, and updating the appearance of the parent model component and the location of the sub-model component on the parent model component in real time based on the latest sub-model component in the 4 ordered containers, for example, the containers can be represented by topList, bottomList, leftList and rightList
When a certain submodel component is selected by a mouse to start dragging, recording the original position of the submodel component, removing the submodel component from a container which originally stores the submodel component based on a mouseoveEvent mouse moving event, wherein the position of the submodel component belongs to an undetermined state, updating a parent model component to a state without the submodel component, wherein when a certain submodel component is selected by the mouse to start dragging, whether the movable submodel component exists under the mouse or not can be judged in a mouseResEvent mouse pressing event, and if the movable submodel component exists, recording the submodel component as a position undetermined state;
in the process of dragging the sub-model component, calculating the current dragging position in real time, when the position of the sub-model component reaches the target position on each edge of the parent model component, comparing the position with the position of the sub-model component stored in the ordered container on the edge to determine the index of the sub-model component in the ordered container where the edge is located if the sub-model component is placed at the current position, wherein the determination process is as follows: the child model component has an absolute position (x, y) on the parent model component with coordinates increasing downward to the right. Taking the upper boundary of the parent model component as an example, the x-coordinate value of the sub model component with fixed position on the upper boundary is increased from left to right, when the moving sub model component is moved to the upper boundary region, the position of the moving sub model component relative to other sub model components on the edge, namely the index in the ordered container, can be found by comparing the x value of the moving sub model component with the x value of the fixed sub model. And temporarily inserting the sub-model component into the position of the corresponding index of the edge, and updating the parent model component (reserving a vacant position of the dragged sub-model component (the determined position is the sub-model component to be fixed), wherein the specific position of the sub-model component is changed along with dragging).
Further, when the mouse is released after being adjusted to the target position, whether the position released by the subassembly is the effective position allowing the release is judged in the mouseReleaseEvent, and the specific judgment process is as follows: and constructing rectangular ring position information on the basis of four edges of the parent model component, judging whether the current position of the mouse is known when the mouse is released, judging whether the position is in the area to which the rectangular ring position information belongs, if so, indicating that the released position is an effective position, and releasing hands at other positions to be invalid positions, if the current position is the effective position, adding the dragged sub model component into a corresponding container in the dragging process, and at the moment, placing all the sub model components into the container, otherwise, reinserting the currently dragged sub model component into the container before dragging.
The adjusting method of the embodiment of the invention fills the fault from logic design to physical modeling, realizes the continuity of the MBSE technical route on the tool, conveniently and quickly modifies the position of each edge of the sub-model assembly on the parent model assembly, provides real-time preview of modification effect when modifying the position of each edge of the sub-model assembly on the parent model assembly, and realizes the design of quickly selecting a reasonable position.
Based on the foregoing method for adjusting positions of the sub-model component on each side of the parent model component, an embodiment of the present invention further provides an apparatus for adjusting positions of the sub-model component on each side of the parent model component, where a preset number of containers are established for the parent model component in advance, where the containers include: the name of the sub model component and the position information relative to the parent model component, each container is configured with rectangular ring position information, the structural block diagram of the adjusting device is shown in fig. 3, and the adjusting device comprises:
a first acquisition module 201, a comparison module 202 and an update and presentation module 204.
Wherein the content of the first and second substances,
the first obtaining module 201 is configured to obtain first location information of a sub-model component when it is detected that any sub-model component in the parent model component starts to be dragged;
the comparing module 202 is configured to compare the first position information with position information of each rectangular ring;
the updating and displaying module 203 is configured to, when it is detected that the first position information falls into a region to which first target rectangular ring position information belongs, obtain a first target container corresponding to the first target rectangular ring position 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 a sub-model assembly on each side of a parent model assembly, which is used for establishing a preset number of containers for the parent model assembly in advance, wherein the containers comprise: the method comprises the following steps that the name of a corresponding sub-model assembly and position information relative to a parent model assembly are obtained, each container is configured with rectangular ring position information, and when the condition that any one sub-model assembly in the parent model assembly starts to be dragged is detected, first position information of the sub-model assembly 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 region to which 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. In the process, the parent model component is updated only by dragging the self model component to the region to which the position information of the rectangular ring of the corresponding container belongs, preview display is carried out, the parent model component does not need to be operated again, and the design efficiency is improved.
In an embodiment of the present invention, the adjusting apparatus further includes:
a determination module 204 and a first addition module 205.
Wherein the content of the first and second substances,
the judging module 204 is configured to, when it is detected that the user releases the mouse at the target position, judge whether the target position belongs to an area to which the second target rectangular ring position information belongs;
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 submodel component to the second target container.
In an embodiment of the present invention, the adjusting apparatus further includes: a module 206 is inserted.
Wherein the content of the first and second substances,
and the inserting module 206 is used for reinserting the sub-model assembly into the original container if the sub-model assembly is not inserted into the original container.
In an embodiment of the present invention, the first location information includes: horizontal position information and vertical position information, the update and presentation module 203 includes:
a first obtaining unit 207, a second obtaining unit 208, an arranging unit 209 and a showing unit 210.
Wherein the content of the first and second substances,
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 piece of second target location information, which is matched with 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 location information and the second target location information to obtain a sorting result;
the displaying 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 the 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 content of the first and second substances,
the second obtaining module 211 is configured to obtain second location information of a new sub-model component when it is detected that the new sub-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 component to the third target container.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method and the device for adjusting the positions of the sub-model components on the sides of the parent model component provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for adjusting the position of a sub-model component on each side of a parent model component is characterized in that a preset number of containers are established for the parent model component in advance, and the containers comprise: 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 detecting that any sub model component in the parent model component starts to be dragged, acquiring first position information of the sub model component;
comparing the first position information with each rectangular ring position information;
when the first position information is detected to fall into the region of the first target rectangular ring position information, 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.
2. The method of claim 1, further comprising:
when it is detected that the user releases the mouse at the target position, judging whether the target position belongs to the area to which the second target rectangular ring position information belongs;
and if so, acquiring a second target container corresponding to the second target rectangular ring information, and adding the sub-model assembly into the second target container.
3. The method of claim 2, further comprising:
if not, the sub-model assembly is reinserted into the original container.
4. The method of claim 1, wherein the first location information comprises: inserting the sub-model component into the first target container for preview display, wherein the process comprises the following steps:
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 assembly in the first target container;
arranging the first target position information and the second target position information in sequence 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 sequencing result.
5. The method of claim 1, further comprising:
when a new sub-model component is detected to be added into the parent model component, acquiring second position information of the new sub-model component;
determining a third target container to which the new sub-model component belongs according to the second position information;
sequentially adding the new sub-model component to the third target container.
6. The utility model provides an adjusting device of sub-model subassembly in each side position of father model subassembly which characterized in that establishes the container of predetermined quantity for father model subassembly in advance, the container includes: name of a child model component and position information relative to the parent model component, each container configured with rectangular ring position information, the apparatus comprising:
the first acquisition module is used for acquiring first position information of a sub-model assembly when detecting that any sub-model assembly in the parent model assembly starts to drag;
the comparison module is used for comparing the first position information with the position information of each rectangular ring;
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 region 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.
7. The apparatus of claim 6, further comprising:
the judging module is used for judging whether the target position belongs to the area to which the second target rectangular ring position information belongs when detecting that the user releases 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 and adding the sub-model assembly into the second target container if the second target container is the first target container.
8. The apparatus of claim 7, further comprising:
and the inserting module is used for reinserting the sub-model assembly into the original container if the sub-model assembly is not inserted into the original container.
9. The apparatus of claim 6, wherein the first location information comprises: horizontal position information and vertical position information, the update and display module includes:
a first obtaining unit configured to obtain 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 location information that matches the first target location information in each sub-model component in the first target container;
the arrangement unit is used for arranging the first target position information and the second target position information in sequence to obtain a sequencing 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 sequencing result.
10. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring second position information of a new sub-model component when the fact that the new sub-model component is added into the parent model component is detected;
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;
a second adding module for sequentially adding 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 true CN113760463A (en) 2021-12-07
CN113760463B 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 (6)

* 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
WO2016006076A1 (en) * 2014-07-10 2016-01-14 富士機械製造株式会社 Method for producing component placement coordinates and device for producing component placement coordinates
CN105279797A (en) * 2015-11-25 2016-01-27 四川物联亿达科技有限公司 Three-dimensional warehouse component model establishing method
CN110889153A (en) * 2018-08-20 2020-03-17 西安海平方网络科技有限公司 Model adjusting method and device, computer equipment and storage medium
EP3686695A1 (en) * 2019-01-24 2020-07-29 ABB Schweiz AG Modularized model predictive control for industrial plants
CN112424837A (en) * 2020-10-23 2021-02-26 上海亦我信息技术有限公司 Model correction method, device and equipment

Patent Citations (6)

* 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
WO2016006076A1 (en) * 2014-07-10 2016-01-14 富士機械製造株式会社 Method for producing component placement coordinates and device for producing component placement coordinates
CN105279797A (en) * 2015-11-25 2016-01-27 四川物联亿达科技有限公司 Three-dimensional warehouse component model establishing method
CN110889153A (en) * 2018-08-20 2020-03-17 西安海平方网络科技有限公司 Model adjusting method and device, computer equipment and storage medium
EP3686695A1 (en) * 2019-01-24 2020-07-29 ABB Schweiz AG Modularized model predictive control for industrial plants
CN112424837A (en) * 2020-10-23 2021-02-26 上海亦我信息技术有限公司 Model correction method, device and equipment

Also Published As

Publication number Publication date
CN113760463B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN109806592B (en) Game resource monitoring method and device
CN110134752B (en) Three-dimensional large-scene modeling data processing method and device
CN103023016B (en) Repeating and simulating method for automatic generation control of power grid
CN110765015B (en) Method for testing tested application and electronic equipment
CN114037097A (en) BIM model-based equipment operation and maintenance management method
CN111383444B (en) Method, device, server and storage medium for predicting road condition state
CN109344214A (en) Management map method and robot
CN111105150A (en) Project risk analysis system
JP2003296383A (en) Three-dimensional modeling system
CN109840087A (en) Interface system and method, computer readable storage medium
JP2018106306A (en) Game development system
CN113760463A (en) Method and device for adjusting positions of sub-model components on each side of parent model component
CN114332439A (en) Three-dimensional data editing and generating system
JP7341581B1 (en) Architectural drawing creation support system
CN102147797A (en) Method and device for managing element files in content management system
CN116050775A (en) Method, device, processor and readable storage medium for realizing patrol, prevention and control and resident service route design based on space kernel density algorithm
CN112364219A (en) Content distribution method and device, electronic equipment and storage medium
CN112308688A (en) Size meter detection method suitable for e-commerce platform
CN112434650A (en) Multi-spectral image building change detection method and system
CN107977372B (en) Labeling method and device for face element notes
JP7341580B1 (en) Architectural drawing creation support system
CN117132718B (en) Scenic spot virtual model construction system based on multi-mode large model
CN108228985B (en) Drawing method based on building information model and related equipment
CN115081417A (en) Engineering data table generation method and device
US20230228647A1 (en) Information processing apparatus and information processing method

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