CN116467882A - Connection display method and device for model and line in simulation software - Google Patents

Connection display method and device for model and line in simulation software Download PDF

Info

Publication number
CN116467882A
CN116467882A CN202310453133.3A CN202310453133A CN116467882A CN 116467882 A CN116467882 A CN 116467882A CN 202310453133 A CN202310453133 A CN 202310453133A CN 116467882 A CN116467882 A CN 116467882A
Authority
CN
China
Prior art keywords
model
moved
line
connection
existing
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
CN202310453133.3A
Other languages
Chinese (zh)
Other versions
CN116467882B (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.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202310453133.3A priority Critical patent/CN116467882B/en
Publication of CN116467882A publication Critical patent/CN116467882A/en
Application granted granted Critical
Publication of CN116467882B publication Critical patent/CN116467882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method and a device for displaying connection between a model and a line in simulation software. The method for displaying the connection between the model and the line in the simulation software. Determining the positions of existing elements in simulation software, wherein the existing elements comprise an object to be moved and other elements except the object to be moved; and in the process that the object to be moved is moved, controlling the lines corresponding to the object to be moved and other elements to form interval display, wherein the interval is used for avoiding the lines corresponding to the object to be moved from other elements.

Description

Connection display method and device for model and line in simulation software
Technical Field
The invention relates to the technical field of simulation software, in particular to a method and a device for displaying connection between a model and a line in simulation software.
Background
The simulation software is a software commonly used in the engineering field, and in the preprocessing stage of the software, the simulation software builds a schematic diagram by simulating a real object, so that the research and development cost is reduced, and the research and development period is shortened. The software user can effectively verify the accuracy of model construction through the post-processing result, and can also verify the availability of model parameters.
At present, simulation software has a set of mature model and line connection rules, but the models and the lines of the simulation software are mutually shielded, so that the lines and the models are displayed in a crossing manner in the using process, and the visual observation is disordered.
Disclosure of Invention
The application provides a method and a device for displaying connection between a model and lines in simulation software, which reduce confusion among the lines.
The application provides a connection display method of a model and a line in simulation software, which comprises the following steps:
determining the positions of existing elements in simulation software, wherein the existing elements comprise an object to be moved and other elements except the object to be moved;
and in the process that the object to be moved is moved, controlling the lines corresponding to the object to be moved and other elements to form interval display, wherein the interval is used for avoiding the lines corresponding to the object to be moved from the other elements.
Further, the object to be moved comprises a model to be moved without connecting strips, and the other elements comprise other models separated from the model to be moved, wherein the model to be moved is separated from the other models;
In the process that the object to be moved is moved, controlling the line corresponding to the object to be moved to form interval display with other elements, including:
determining whether the model to be moved accords with connection conditions with the other modules in the process that the model to be moved is moved; wherein the determining whether the model to be moved and the other modules meet the connection condition includes: determining whether the model to be moved and the other models are of the same physical domain application type;
under the condition that the model to be moved and the other modules meet the connection conditions, connecting the model to be moved and the other models; the connecting the to-be-moved model with the other models comprises connecting terminals of the to-be-moved model with terminals of the other models, or generating connection strips between the to-be-moved model and the other models according to the fact that pixels between the terminals of the to-be-moved model and the terminals of the other models are smaller than preset connection pixels and the moving direction of the to-be-moved model, and forming interval display between the generated connection strips and other elements.
Further, the minimum distance between the model to be moved and the other models is zero pixels.
Further, the object to be moved comprises a model to be moved with lines; one end of the strip is connected with the model to be moved, the other end of the strip is not connected with other elements, and the other end of the strip is a fixed end;
in the process that the object to be moved is moved, controlling the line corresponding to the object to be moved to form interval display with other elements, including:
and under the condition that the moving position of the model to be moved is not overlapped with the carried line, extending the length of the carried line between the fixed end and the end point of the moving position, and forming interval display between the extended line and other elements.
Further, the moving direction of the model to be moved is perpendicular to the direction in which the initial position of the line is located in the model to be moved.
Further, the object to be moved comprises a model to be moved without connecting wire strips; the existing elements comprise existing lines;
the method for displaying the connection between the model and the line in the simulation software further comprises the following steps:
determining whether the model to be moved and the existing line meet a connection condition or not;
and under the condition that the to-be-moved module and the existing line meet the connection condition, controlling the to-be-moved model to be displayed on the upper layer of the existing line, and hiding the crossed overlapping part of the existing line and the to-be-moved model.
Further, the determining whether the model to be moved and the existing line meet the connection condition includes:
determining whether the existing line is connected with a model;
if the existing line is connected with a model, determining whether the model to be moved and the connected model are of the same physical domain application type;
and under the condition that the to-be-moved module and the existing line meet the connection condition, controlling the to-be-moved model to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the to-be-moved model, wherein the method comprises the following steps:
and under the condition that the model to be moved and the connected model are of the same physical domain application type, controlling the model to be moved to be displayed on the upper layer of the existing line, and hiding the crossed and overlapped part of the existing line and the model to be moved.
Further, the determining whether the model to be moved and the existing line meet the connection condition includes:
determining whether the existing line is connected with a model; if the existing line is not connected with the model, determining whether the center of the model to be moved is intersected with the existing line;
and under the condition that the to-be-moved module and the existing line meet the connection condition, controlling the to-be-moved model to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the to-be-moved model, wherein the method comprises the following steps:
And under the condition that the center of the model to be moved is intersected with the existing line, controlling the model to be moved to be displayed on the upper layer of the existing line, and hiding the intersected and overlapped part of the existing line and the model to be moved.
Further, the object to be moved comprises a line to be moved;
in the process that the object to be moved is moved, controlling the line corresponding to the object to be moved to form interval display with other elements, including:
determining the moving direction of the line to be moved under the condition that the line to be moved is moved and the line to be moved is intersected with other elements;
and controlling the lines to be moved and the other elements to form interval display according to the moving direction and the interval.
Further, the pitch is greater than 1 pixel and less than 30 pixels.
Further, the existing elements comprise a model to be disconnected; the method for displaying the connection between the model and the line in the simulation software further comprises the following steps: and under the condition that the model to be disconnected needs to be disconnected, controlling the lines of the model to be disconnected from other elements.
Further, the existing elements comprise lines to be broken; the method for displaying the connection between the model and the line in the simulation software further comprises the following steps: and under the condition that the line to be moved needs to be disconnected, controlling the line to be moved to be disconnected with other elements.
Further, the existing elements comprise models to be deleted, and the models to be deleted comprise models with lines; the method for displaying the connection between the model and the line in the simulation software further comprises the following steps: and under the condition that the model to be deleted needs to be deleted, controlling the lines of the model to be deleted to be disconnected with other elements, and deleting the model to be deleted and the lines of the model to be deleted.
The embodiment of the application provides a connection display device of a model and a line in simulation software, which comprises:
the processing module is used for determining the positions of existing elements in simulation software, wherein the existing elements comprise an object to be moved and other elements except the object to be moved;
and the control module for interval display is used for controlling the lines corresponding to the object to be moved and other elements to form interval display in the process that the object to be moved is moved, and the interval is used for avoiding the lines corresponding to the object to be moved from the other elements.
Further, the object to be moved comprises a model to be moved without connecting strips, and the other elements comprise other models separated from the model to be moved, wherein the model to be moved is separated from the other models;
The control module for displaying the distance comprises the following specific components: the judging sub-module is used for determining whether the model to be moved accords with the connection conditions with the other modules in the process that the model to be moved is moved; the judging submodule is specifically configured to determine whether the model to be moved and the other models are of the same physical domain application type;
the processing sub-module is used for connecting the model to be moved with the other models under the condition that the model to be moved meets the connection conditions with the other modules; the connecting the to-be-moved model with the other models comprises connecting terminals of the to-be-moved model with terminals of the other models, or generating connection strips between the to-be-moved model and the other models according to the fact that pixels between the terminals of the to-be-moved model and the terminals of the other models are smaller than preset connection pixels and the moving direction of the to-be-moved model, and forming interval display between the generated connection strips and other elements.
Further, the object to be moved comprises a model to be moved with lines; one end of the strip is connected with the model to be moved, the other end of the strip is not connected with other elements, and the other end of the strip is a fixed end;
The control module for displaying the distance is specifically used for: and under the condition that the moving position of the model to be moved is not overlapped with the carried line, extending the length of the carried line between the fixed end and the end point of the moving position, and forming interval display between the extended line and other elements.
Further, the object to be moved comprises a model to be moved without connecting wire strips; the existing elements comprise existing lines;
the device for displaying the connection between the model and the line in the simulation software further comprises:
the judging module is used for determining whether the model to be moved and the existing line meet the connection condition or not;
and the display control module is used for controlling the to-be-moved model to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the to-be-moved model under the condition that the to-be-moved module and the existing line meet the connection condition.
Further, the judging module includes: the first judging unit is used for determining whether the existing line is connected with a model or not; and the first processing unit is used for determining whether the model to be moved and the connected model are of the same physical domain application type or not if the existing line is connected with the model;
The display control module is specifically configured to control the model to be moved to be displayed on an upper layer of the existing line and hide a cross overlapping portion of the existing line and the model to be moved when the model to be moved and the connected model are of a same physical domain application type.
Further, the judging module includes: the second judging unit is used for determining whether the existing line is connected with a model or not; and a second processing unit for determining whether the center of the model to be moved crosses the existing line if the existing line is not connected to the model;
the display control module is specifically configured to: and under the condition that the center of the model to be moved is intersected with the existing line, controlling the model to be moved to be displayed on the upper layer of the existing line, and hiding the intersected and overlapped part of the existing line and the model to be moved.
Further, the object to be moved comprises a line to be moved; the control module for displaying the distance is specifically used for: determining the moving direction of the line to be moved under the condition that the line to be moved is moved and the line to be moved is intersected with other elements; and controlling the lines to be moved and the other elements to form interval display according to the moving direction and the interval.
Further, the existing elements comprise a model to be disconnected; the device for displaying the connection between the model and the line in the simulation software further comprises: and the control module is used for controlling the line of the model to be disconnected from other elements under the condition that the model to be disconnected needs to be disconnected.
Further, the existing elements comprise lines to be broken; the device for displaying the connection between the model and the line in the simulation software further comprises: and the control module is used for controlling the line to be moved to be disconnected with other elements under the condition that the line to be moved needs to be disconnected.
Further, the existing elements comprise models to be deleted, and the models to be deleted comprise models with lines; the device for displaying the connection between the model and the line in the simulation software further comprises: and the control module is used for controlling the lines of the to-be-deleted model to be disconnected with other elements under the condition that the to-be-deleted model needs to be deleted, and deleting the to-be-deleted model and the lines of the to-be-deleted model.
An electronic device is provided comprising one or more processors configured to implement the method as described in any of the above.
There is provided a computer readable storage medium having stored thereon a program which, when executed by a processor, implements a method as claimed in any one of the preceding claims.
In some embodiments, a method for displaying connection between a model and a line in simulation software is disclosed, wherein the method includes determining a position of an existing element in the simulation software, where the existing element includes an object to be moved and other elements except the object to be moved; and in the process that the object to be moved is moved, controlling the lines corresponding to the object to be moved and other elements to form interval display, wherein the interval is used for avoiding the lines corresponding to the object to be moved from other elements. In the embodiment of the application, in the process that the object to be moved is moved, interval display is formed between the line corresponding to the object to be moved and other elements so as to avoid the other elements. Therefore, the interval between the lines and other elements is effectively enhanced, and the confusion among the lines is reduced.
Drawings
FIG. 1 is a schematic flow chart of a method for displaying connection between a model and a line in simulation software according to an embodiment of the present application;
FIG. 2a is a first schematic diagram showing a moving model of the method for displaying the connection between the model and the line in the simulation software and connecting with other models shown in FIG. 1;
FIG. 2b is a second schematic diagram showing a moving model of the method for displaying the connection of the model and the line in the simulation software and connecting with other models shown in FIG. 1;
FIG. 3 is a first schematic diagram showing movement of a model to be moved among a plurality of models of the method for displaying connection between a model and a line in simulation software shown in FIG. 1;
FIG. 4 is a second schematic diagram showing movement of a model to be moved among a plurality of models of the method for displaying connection between a model and a line in simulation software shown in FIG. 1;
FIG. 5 is a third schematic diagram showing movement of a model to be moved among a plurality of models of the method for displaying connection between a model and a line in simulation software shown in FIG. 1;
FIG. 6 is a schematic diagram of a left-hand movement model of the method for displaying the connection of the model and the line in the simulation software shown in FIG. 1;
FIG. 7 is a diagram showing a rightward movement model of the method for displaying the connection of the model and the line in the simulation software shown in FIG. 1;
FIG. 8 is another flow chart of a method for displaying connection between a model and a line in simulation software according to an embodiment of the present application;
FIG. 9 is a schematic diagram showing the insertion of a model in the simulation software for the method of displaying the connection of the model to the line shown in FIG. 8;
Fig. 10 is a schematic diagram showing that a model to be deleted is deleted in a connection display method of a model and a line in simulation software according to an embodiment of the present application;
FIG. 11 is a schematic block diagram of a display device for connecting a model and a line in simulation software according to an embodiment of the present application;
fig. 12 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with aspects of one or more embodiments of the present description as detailed in the accompanying claims.
It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. Furthermore, individual steps described in this specification, in other embodiments, may be described as being split into multiple steps; while various steps described in this specification may be combined into a single step in other embodiments.
In order to solve the technical problem that the lines and the models are displayed in a crossed mode in the using process and are disordered visually, the embodiment of the application provides a method for displaying the connection between the models and the lines in simulation software.
Determining the positions of existing elements in simulation software, wherein the existing elements comprise an object to be moved and other elements except the object to be moved;
and in the process that the object to be moved is moved, controlling the lines corresponding to the object to be moved and other elements to form interval display, wherein the interval is used for avoiding the lines corresponding to the object to be moved from other elements.
In the embodiment of the application, in the process that the object to be moved is moved, interval display is formed between the line corresponding to the object to be moved and other elements so as to avoid the other elements. Therefore, the interval between the lines and other elements is effectively enhanced, the confusion among the lines is reduced, redundant connection pixels are further reduced, the burden of an algorithm for confusing the redundant lines is also reduced, and the actual speed performance of the interface is improved.
The method for displaying the connection between the model and the line in the simulation software can be applied to various simulation software capable of simulating the real object to build the schematic diagram.
Fig. 1 is a flow chart of a method for displaying connection between a model and a line in simulation software according to an embodiment of the present application.
As shown in fig. 1, the method for displaying the connection between the model and the line in the simulation software includes the following steps 110 to 120:
in step 110, the positions of the existing elements in the simulation software are determined, wherein the existing elements include the object to be moved and other elements except the object to be moved.
Wherein the existing elements include models and lines. The object to be moved refers to the model and/or line that needs to be moved. The object to be moved is a model to be moved, and interval display is formed between the model to be moved and other elements so as to avoid lines. Of course, the model to be moved can also be connected with other lines. The object to be moved is a line to be moved, and a space display is formed between the line to be moved and other elements so as to avoid other lines and/or models. For details, please see below.
And 120, controlling the lines corresponding to the object to be moved to form interval display with other elements in the process that the object to be moved is moved, wherein the interval is used for avoiding the other elements by the lines corresponding to the object to be moved.
The above-mentioned interval can make lines and other elements, and/or, the model can not cross with other elements, avoid sheltering from each other. The above-mentioned interval may be a preset interval, or may be calculated temporarily by the position of the existing element. The above-mentioned pitch is larger than 1 pixel (px for short) and smaller than 30 pixels. The pitch is a positive integer of less than 30 pixels and less than 1 pixel. Exemplary, but not limiting, minimum distance between model and line is maintained at 20 pixels and minimum distance between model and model is 0 pixels. Thus, according to the number of different models and the number of different lines, the existing position relation between the models and the lines, the selection of a moving object and the moving direction are dynamically changed; thereby realizing the optimal display of the model and the line.
The display mode may be a display mode through a display screen.
In the embodiment of the application, the minimum distance between the models and the lines is used for enabling the models to be connected, the models and the lines are connected briefly and smoothly, unnecessary connecting lines and redundant nodes are reduced, the practicability is high, and the modeling efficiency of users is improved.
The object to be moved may include, but is not limited to, a model to be moved and/or a line to be moved.
Step 120 may control the line corresponding to the object to be moved to deform and form a spacing display with other elements. In some embodiments of the line to be moved, the step 120 may further include controlling, in a case where the line to be moved is moved, formation of a distance display between the line to be moved and other elements, where the distance is used for the line to be moved to avoid the other elements.
In other embodiments of the line to be moved, the step 120 may further include a step 1 of determining a direction in which the line to be moved moves in a case where the line to be moved is moved and is to be intersected with other elements. And 2, controlling the lines to be moved and other elements to form interval display according to the moving direction and interval. Therefore, under the condition of approaching other elements, the device can form interval display with other elements along the reverse direction of movement of the device, and further avoid other elements.
The embodiment in which the object to be moved is a model to be moved is described in detail as follows:
FIG. 2a is a first schematic diagram showing a moving model of the method for displaying the connection of the model and the line in the simulation software shown in FIG. 1 and connecting with other models. FIG. 2b is a second schematic diagram showing the movement model of the method for displaying the connection of the model and the line in the simulation software shown in FIG. 1 and the connection with other models. The black arrows in fig. 2a and 2b indicate the change from the element before movement to the element during movement and then to the element after movement, and the gray arrows indicate the movement direction.
As shown in fig. 2a and 2b, the object to be moved includes a model to be moved without connection bars, and the other elements include other models separated from the model to be moved. In this way, the separated model to be moved and other models can be connected, and then the model to be moved and the other models are connected under the condition that the connection condition is met.
As shown in connection with fig. 1, the above step 120 may further include the following 3 steps:
and 1, determining whether the model to be moved accords with the connection conditions with other modules in the process that the model to be moved is moved. The determining whether the model to be moved meets the connection condition with other modules comprises the following steps: and determining whether the model to be moved and other models are of the same physical domain application type. And under the condition that the model to be moved and other models are of the same physical domain application type, the model to be moved and other modules are in accordance with the connection condition. And under the condition that the model to be moved and other models are not of the same physical domain application type, the model to be moved and other modules are not in accordance with the connection condition.
And continuing, determining that the model to be moved and other models are of the same physical domain application type if the model to be moved and the other models are electronic elements. Or determining that the model to be moved and other models are of the same physical domain application type if the model to be moved and the other models are mechanical elements. Or, if the model to be moved and the other models are both electrical elements, determining that the model to be moved and the other models are of the same physical domain application type.
Step 2, connecting the model to be moved with other models under the condition that the model to be moved accords with the connection conditions with the other modules; wherein, as shown in fig. 2b, the connecting the to-be-moved model with the other models includes connecting the terminals of the to-be-moved model with the terminals of the other models, or, as shown in fig. 2a, according to the fact that the pixels between the terminals of the to-be-moved model and the terminals of the other models are smaller than the predetermined connection pixels, and the moving direction of the to-be-moved model, connection bars are generated between the to-be-moved model and the other models, and a space display is formed between the generated connection bars and the other elements.
Wherein the predetermined connection pixels may be, but are not limited to, greater than 9 pixels and less than 20 pixels. As shown in fig. 2a, the predetermined connection pixels may be, but are not limited to, 10 pixels, for example.
Continuing with fig. 2a, in the step 2, according to the pixel between the terminal of the to-be-moved model and the terminal of the other model being smaller than the predetermined connection pixel, and the moving direction of the to-be-moved model, generating a connection bar between the to-be-moved model and the other model, and forming a gap display between the generated connection bar and the other element may include determining the moving direction of the to-be-moved model, according to the pixel between the terminal of the to-be-moved model and the terminal of the other model being smaller than the predetermined connection pixel, and the other model being located at an orientation of the to-be-moved model, generating the connection bar between the to-be-moved model and the other model in a direction opposite to the orientation, and forming the gap display between the generated connection bar and the other element. Therefore, according to the connection conditions, the connection wire strip is directly generated, and the operation is convenient.
Of course, other implementation manners of generating a connection strip between the model to be moved and other models directly according to the determined moving direction of the model to be moved and according to pixels between the terminals of the model to be moved and the terminals of the other models being smaller than predetermined connection pixels, all belong to the protection scope of the embodiments of the present application, and are not exemplified here one by one.
Continuing with fig. 2b, the connection of the terminals of the model to be moved with the terminals of the other models includes direct connection of the terminals of the model to be moved itself with the terminals of the other models. The mold to be moved is moved upward, illustratively, until the terminals of the mold itself to be moved and the terminals of the other molds are directly connected. If the model to be moved is to be adjusted, the model to be moved can be moved downwards again, so that connecting strips are generated between the model to be moved and other models, and interval display is formed between the generated connecting strips and other elements.
In the related art, when other computing elements are related to the positions of the lines, it is common practice to modify the positions of the anchor points, that is, if the lines and other models are staggered, the positions of the connection points between the lines and the models are automatically transformed, so that the lines may be disconnected from the models. But this places a burden on computing the relative position of the anchor points, which are incremented by a multiple. The biggest impact is to confuse the operator and not to find the connection point of the line to the model.
However, simulation software such as Matlab and Ansys can ignore the situation that the lines are staggered with the models, and the relative positions of the models are not set, and the relative positions of the models and the lines are not set.
In the embodiment of the application, the connection mode of the model and the line can not change the initial position of the anchor point, so that the line and the model keep a connection relation, and the calculation load of the relative position of the anchor point is reduced.
In the example shown in fig. 2a, where the model to be moved is moved upwards and the other models are located above the model to be moved, a connection stripe is generated between the model to be moved and the other models.
Of course, in some embodiments, the minimum spacing between the model to be moved and other models described above may be greater than zero pixels. In other embodiments, the minimum distance between the model to be moved and other models may be zero pixels. Therefore, the zero pixel distance between the model to be moved and other models can meet the drawing requirement of a user, and the distance between the lines is combined, so that the picture is clearer and tidier. At the same time, the computational load of the system is reduced.
Fig. 3 is a first schematic diagram of movement of a model to be moved among a plurality of models of the method for displaying connection between a model and a line in simulation software shown in fig. 1. Fig. 4 is a second schematic diagram showing movement of a model to be moved among a plurality of models of the method for displaying connection between a model and a line in simulation software shown in fig. 1. Fig. 5 is a third schematic diagram showing movement of a model to be moved among a plurality of models of the method for displaying connection between a model and a line in simulation software shown in fig. 1. Arrows in fig. 3, 4 and 5 indicate the moving direction.
As shown in fig. 3, 4 and 5, the object to be moved includes a model to be moved and a model connected to the model to be moved, when the model to be moved is connected to the connected model, lines corresponding to the model to be moved form a distance display with the connected model and corresponding lines respectively.
In the example shown in fig. 3, when the to-be-moved model 21 is connected to the connected model 22, in the case where the to-be-moved model 21 is moved downward, the lines corresponding to the to-be-moved model 21 are respectively displayed with the spaces 23 formed between the connected model 22 and the corresponding lines thereof, and the left end line corresponding to the to-be-moved model 21 is moved downward to be displayed with the spaces.
In the example shown in fig. 4, when the to-be-moved model 21 is connected to the connected model 22, the lines corresponding to the to-be-moved model 21 are respectively displayed with the spaces 23 formed between the connected model 22 and the corresponding lines, and the left end line corresponding to the to-be-moved model 21 is moved downward and rightward to be displayed with the spaces.
In the example shown in fig. 5, when the to-be-moved model 21 is connected to the connected model 22, in the case that the to-be-moved model 21 moves rightward, one interval 23 or 2 intervals 23 are formed between the corresponding line of the to-be-moved model 21 and the connected model 22 and the corresponding line thereof, respectively, and the line at the upper end corresponding to the to-be-moved model 21 moves rightward in the to-be-moved model 21 to be displayed at intervals.
Fig. 6 is a schematic diagram of a leftward movement model of the method for displaying the connection between the model and the line in the simulation software shown in fig. 1. Fig. 7 is a schematic diagram of a rightward movement model of the method for displaying the connection between the model and the line in the simulation software shown in fig. 1.
As shown in fig. 6, the object to be moved includes a model to be moved 32 with lines; one end of the strip is connected with the model 32 to be moved, the other end of the strip is not connected with other elements, and the other end of the strip is a fixed end 31. The step 120 may further include extending the length of the line between the fixed end 31 and the end point of the moving position, and forming a distance display between the extended line and other elements, in the case that the moving position of the model 32 to be moved is not overlapped with the line.
Further, an included angle is formed between the moving direction of the to-be-moved model 32 and the direction in which the initial position of the line is located in the to-be-moved model 32. In some embodiments, the direction of movement of the model 32 to be moved is perpendicular to the direction in which the initial position of the line is located in the model 32 to be moved. In other embodiments, the moving direction of the to-be-moved model 32 has an included angle of less than 6 degrees with the initial position of the line located in the direction of the to-be-moved model 32.
In an exemplary embodiment, the initial position of the line is located in the direction of the model to be moved, for example, up and down, and the moving direction of the model to be moved is leftward (as shown in fig. 6) and/or rightward (as shown in fig. 7) perpendicular to the up and down direction.
In the second example, the initial position of the line is located in a direction, such as a left-right direction, of the model to be moved, and the moving direction of the model to be moved is an upward and/or downward movement perpendicular to the left-right direction.
In the third example, the initial position of the line is located in a direction of the model to be moved, such as a left-right direction, and the moving direction of the model to be moved is an upward left and/or downward right direction inclined to the left-right direction.
In the fourth example, if the initial position of the line is located in the direction of the model to be moved, for example, in the up-down direction, the moving direction of the model to be moved is the up-left and/or down-right direction inclined to the up-down direction.
Fig. 8 is another flow chart of a method for displaying connection between a model and a line in simulation software according to an embodiment of the present application. FIG. 9 is a schematic diagram showing the insertion of a model in the connection display method of the model and the line in the simulation software shown in FIG. 8. The arrow in fig. 9 indicates the change from the element before movement to the element after movement.
As shown in fig. 8 and 9, the object to be moved includes a model to be moved without connection bars; the existing elements include existing lines. The method for displaying the connection between the model and the line in the simulation software may also include, but is not limited to, the following steps 410 to 420:
step 410, determining whether the model to be moved and the existing line meet the connection condition.
And 420, controlling the model to be moved to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the model to be moved under the condition that the module to be moved and the existing line meet the connection condition.
In some embodiments of step 410 described above, (1) it is determined whether the existing line is connected to the model. If so, that is, the existing line is connected with the model, the following step (2) is performed. If not, i.e. the existing line is not connected to the model, the following step (4) is performed.
(2) And determining whether the model to be moved and the connected model are of the same physical domain application type.
Accordingly, in some embodiments of step 420, in the case that the model to be moved and the connected model are of the same physical domain application type, (3) the model to be moved is controlled to be displayed on top of the existing line, and the overlapping portion of the existing line and the model to be moved is hidden.
The method further comprises the step of determining that the module to be moved does not accord with the connection condition with the existing line under the condition that the module to be moved and the connected module are not of the same physical domain application type.
In other embodiments of step 410 described above, (4) it is determined whether the center of the model to be moved intersects an existing line.
Accordingly, continuing with fig. 9, in some embodiments of step 420, in (5), in the case that the center of the model to be moved intersects the existing line, the model to be moved is controlled to be displayed on top of the existing line, and the intersection overlapping portion of the existing line and the model to be moved is hidden.
The method further comprises the step of determining that the module to be moved does not accord with the connection condition with the existing line under the condition that the center of the module to be moved does not intersect with the existing line.
The method for displaying the connection between the model and the line in the simulation software can also, but is not limited to, forming a spacing display between the module to be moved and the existing line under the condition that the module to be moved and the existing line do not meet the connection condition, wherein the spacing is used for avoiding the existing line by the module to be moved, so that the module to be moved is not connected with the existing line, the existing line is avoided, and the cleanliness of the page is improved.
In the embodiment of the application, the connection and disconnection relation between the model and the line in the connection and display method of the model and the line in the simulation software comprises the following different display conditions:
the existing element includes an object to be disconnected. The connection display method of the model and the line in the simulation software further comprises the following steps: and under the condition that the object to be disconnected needs to be disconnected, controlling the line corresponding to the object to be disconnected from other elements. The object to be disconnected in the embodiment of the present application refers to a model and/or a line that needs to be disconnected. The model to be disconnected may include, but is not limited to, a model to be disconnected and/or a line to be disconnected.
In some embodiments, the existing elements include a model to be broken with lines; one end of the strip is connected with the model to be disconnected, and the other end of the strip of the model to be disconnected is not connected with other elements. Or, the model to be disconnected is connected with other models through connecting wire bars. The method for displaying the connection between the model and the line in the simulation software can also include the following steps: and in the case that the model to be disconnected needs to be disconnected, controlling the lines of the model to be disconnected from other elements.
In other embodiments, the method for displaying the connection between the model and the line in the simulation software may further include, but is not limited to, the following steps: the existing elements include the model to be disconnected and other models connected to the model to be disconnected by connecting strips. In the case where the model to be disconnected is disconnected, the control connection strip maintains connection with the other models.
In still other embodiments, the existing elements include lines to be broken; the method for displaying the connection between the model and the line in the simulation software can also include the following steps: and under the condition that the line to be moved needs to be disconnected, controlling the line to be moved to be disconnected with other elements.
Fig. 10 is a schematic diagram showing that a model to be deleted is deleted in the connection display method of a model and a line in simulation software according to the embodiment of the present application. The connection relation between the model and the line in the simulation software is deleted, and the display conditions are as follows:
the existing elements include objects to be deleted. The connection display method of the model and the line in the simulation software further comprises the following steps: and under the condition that the object to be deleted needs to be deleted, controlling the line corresponding to the object to be deleted to be connected with other elements in a deleting way. As shown in fig. 10, the object to be deleted in the embodiment of the present application refers to a model and/or a line that needs to be deleted. The model to be deleted may include, but is not limited to, a model to be deleted and/or a line to be deleted.
In the example shown in fig. 10, the existing elements include models to be deleted, which include models with lines. The method for displaying the connection between the model and the line in the simulation software can also include the following steps: and under the condition that the model to be deleted needs to be deleted, controlling the lines of the model to be deleted to be disconnected with other elements, and deleting the model to be deleted and the lines of the model to be deleted. The arrow in fig. 10 indicates a change from an element before deletion to an element after deletion.
Of course, in other embodiments, the method further includes controlling the line to be deleted to disconnect from other elements and delete the line to be deleted in case the line to be deleted needs to be deleted. And will not be illustrated in detail herein.
Based on the application concept same as the method, the embodiment of the application further provides a device for displaying connection between a model and a line in simulation software, which is shown in fig. 11, and the device may include the following modules:
a processing module 51, configured to determine a location of an existing element in the simulation software, where the existing element includes an object to be moved and other elements except the object to be moved;
and the control module 52 for interval display is used for controlling the lines corresponding to the object to be moved and other elements to form interval display in the process that the object to be moved is moved, and the interval is used for avoiding the lines corresponding to the object to be moved from other elements.
In some embodiments, the object to be moved includes a model to be moved without connection strips, and the other elements include other models separate from the model to be moved, the model to be moved being separate from the other models;
the control module 52 for pitch display specifically includes: the judging sub-module is used for determining whether the model to be moved accords with the connection conditions with other modules in the process that the model to be moved is moved; the judging submodule is specifically used for determining whether the model to be moved and other models are of the same physical domain application type;
The processing sub-module is used for connecting the model to be moved with other models under the condition that the model to be moved accords with the connection conditions with the other modules; the connecting the to-be-moved model with the other models comprises connecting terminals of the to-be-moved model with terminals of the other models, or generating connection strips between the to-be-moved model and the other models according to the fact that pixels between the terminals of the to-be-moved model and the terminals of the other models are smaller than preset connection pixels and the moving direction of the to-be-moved model, and forming interval display between the generated connection strips and other elements.
In some embodiments, the object to be moved comprises a model to be moved with lines; one end of the strip is connected with the model to be moved, the other end of the strip is not connected with other elements, and the other end of the strip is a fixed end;
the control module 52 for pitch display is specifically configured to: and under the condition that the moving position of the model to be moved is not overlapped with the carried line, the length of the carried line is prolonged between the fixed end and the end point of the moving position, and a distance display is formed between the prolonged line and other elements.
In some embodiments, the object to be moved comprises a model to be moved without connection strips; the existing elements include existing lines;
the connection display device of the model and the line in the simulation software further comprises:
the judging module is used for determining whether the model to be moved and the existing line meet the connection condition or not;
and the displayed control module is used for controlling the model to be moved to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the model to be moved under the condition that the module to be moved and the existing line meet the connection condition.
In some embodiments, the determining module includes: the first judging unit is used for determining whether the existing line is connected with a model; the first processing unit is used for determining whether the model to be moved and the connected model are of the same physical domain application type if the existing line is connected with the model;
the display control module is specifically used for controlling the model to be moved to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the model to be moved under the condition that the model to be moved and the connected model are of the same physical domain application type.
In some embodiments, the determining module includes: the second judging unit is used for determining whether the existing line is connected with a model; and a second processing unit for determining whether the center of the model to be moved crosses the existing line if the existing line is not connected to the model;
The control module is specifically used for: and under the condition that the center of the model to be moved is intersected with the existing line, controlling the model to be moved to be displayed on the upper layer of the existing line, and hiding the intersected and overlapped part of the existing line and the model to be moved.
In some embodiments, the object to be moved comprises a line to be moved;
the control module 52 for pitch display is specifically configured to: determining the moving direction of the line to be moved under the condition that the line to be moved is moved and the line to be moved is intersected with other elements; and controlling the lines to be moved and other elements to form interval display according to the moving direction and interval.
In some embodiments, the existing elements include a model to be disconnected;
the connection display device of the model and the line in the simulation software further comprises: and the control module is used for controlling the lines of the model to be disconnected from other elements under the condition that the model to be disconnected needs to be disconnected.
In some embodiments, the existing elements include lines to be broken;
the connection display device of the model and the line in the simulation software further comprises: the control module is used for controlling the line to be moved to be disconnected with other elements under the condition that the line to be moved needs to be disconnected.
In some embodiments, the existing elements include models to be deleted, the models to be deleted including models with lines;
the connection display device of the model and the line in the simulation software further comprises: and the control module is used for controlling the lines of the model to be deleted to be disconnected with other elements under the condition that the model to be deleted needs to be deleted, and deleting the model to be deleted and the lines of the model to be deleted.
The implementation process of the functions and roles of each module/sub-module/unit in the above device is specifically detailed in the implementation process of the corresponding steps in the above method, and will not be described herein again.
The method for displaying the connection between the model and the line in the simulation software can be applied to electronic equipment. Specifically, the electronic device may be: desktop computers, portable computers, intelligent mobile terminals, etc. The present application is not limited to any specific electronic device capable of implementing the embodiments of the present application, and all electronic devices are within the scope of protection of the present application. The details are as follows.
Fig. 12 is a block diagram of an electronic device 60 according to an embodiment of the present application.
As shown in fig. 12, the electronic device 60 includes one or more processors 61 for implementing the model-to-line connection display method in simulation software as described above. Of course, the electronic device 60 may include, but is not limited to, a display screen, for executing a method for displaying a connection between a model and a line in simulation software, and controlling a line corresponding to an object to be moved to form a distance display with other elements in a process that the object to be moved is moved. And will not be described in detail herein.
In some embodiments, the electronic device 60 may include a computer-readable storage medium 69, and the computer-readable storage medium 69 may store programs that may be invoked by the processor 61 and may include a non-volatile storage medium. In some embodiments, electronic device 60 may include memory 68 and interface 67. In some embodiments, the electronic device 60 may also include other hardware depending on the actual application.
The computer-readable storage medium 69 of the embodiment of the present application has stored thereon a program for implementing the connection display method of the model and the line in the simulation software as described above when executed by the processor 61.
The present application may take the form of a computer program product embodied on one or more computer-readable storage media 69 (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer readable storage media 69 include both permanent and non-permanent, removable and non-removable media, and may be any method or technology for information storage. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer readable storage media 69 include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by the computing device.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.
It should also be noted that 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, the phrase "comprising one … …" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the depicted element.

Claims (25)

1. The connection display method of the model and the line in the simulation software is characterized by comprising the following steps:
determining the positions of existing elements in simulation software, wherein the existing elements comprise an object to be moved and other elements except the object to be moved;
and in the process that the object to be moved is moved, controlling the lines corresponding to the object to be moved and other elements to form interval display, wherein the interval is used for avoiding the lines corresponding to the object to be moved from the other elements.
2. The method for displaying connection between a model and a line in simulation software according to claim 1, wherein the object to be moved includes a model to be moved without a connection line, and the other elements include other models separated from the model to be moved, the model to be moved being separated from the other models;
in the process that the object to be moved is moved, controlling the line corresponding to the object to be moved to form interval display with other elements, including:
determining whether the model to be moved accords with connection conditions with the other modules in the process that the model to be moved is moved; wherein the determining whether the model to be moved and the other modules meet the connection condition includes: determining whether the model to be moved and the other models are of the same physical domain application type;
under the condition that the model to be moved and the other modules meet the connection conditions, connecting the model to be moved and the other models; the connecting the to-be-moved model with the other models comprises connecting terminals of the to-be-moved model with terminals of the other models, or generating connection strips between the to-be-moved model and the other models according to the fact that pixels between the terminals of the to-be-moved model and the terminals of the other models are smaller than preset connection pixels and the moving direction of the to-be-moved model, and forming interval display between the generated connection strips and other elements.
3. The method for displaying the connection between the model and the line in the simulation software according to claim 2, wherein the minimum distance between the model to be moved and the other model is zero pixels.
4. The method for displaying a model and a line connection in simulation software according to claim 1, wherein the object to be moved comprises a model to be moved with a line; one end of the strip is connected with the model to be moved, the other end of the strip is not connected with other elements, and the other end of the strip is a fixed end;
in the process that the object to be moved is moved, controlling the line corresponding to the object to be moved to form interval display with other elements, including:
and under the condition that the moving position of the model to be moved is not overlapped with the carried line, extending the length of the carried line between the fixed end and the end point of the moving position, and forming interval display between the extended line and other elements.
5. The method for displaying the connection between the model and the line in the simulation software according to claim 4, wherein the moving direction of the model to be moved is perpendicular to the direction in which the initial position of the line is located in the model to be moved.
6. The method for displaying connection between a model and a line in simulation software according to claim 1, wherein the object to be moved comprises a model to be moved without a connection line; the existing elements comprise existing lines;
the method for displaying the connection between the model and the line in the simulation software further comprises the following steps:
determining whether the model to be moved and the existing line meet a connection condition or not;
and under the condition that the to-be-moved module and the existing line meet the connection condition, controlling the to-be-moved model to be displayed on the upper layer of the existing line, and hiding the crossed overlapping part of the existing line and the to-be-moved model.
7. The method for displaying connection between a model and a line in simulation software according to claim 6, wherein determining whether the model to be moved and an existing line meet a connection condition comprises:
determining whether the existing line is connected with a model;
if the existing line is connected with a model, determining whether the model to be moved and the connected model are of the same physical domain application type;
and under the condition that the to-be-moved module and the existing line meet the connection condition, controlling the to-be-moved model to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the to-be-moved model, wherein the method comprises the following steps:
And under the condition that the model to be moved and the connected model are of the same physical domain application type, controlling the model to be moved to be displayed on the upper layer of the existing line, and hiding the crossed and overlapped part of the existing line and the model to be moved.
8. The method for displaying connection between a model and a line in simulation software according to claim 6, wherein determining whether the model to be moved and an existing line meet a connection condition comprises:
determining whether the existing line is connected with a model;
if the existing line is not connected with the model, determining whether the center of the model to be moved is intersected with the existing line;
and under the condition that the to-be-moved module and the existing line meet the connection condition, controlling the to-be-moved model to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the to-be-moved model, wherein the method comprises the following steps:
and under the condition that the center of the model to be moved is intersected with the existing line, controlling the model to be moved to be displayed on the upper layer of the existing line, and hiding the intersected and overlapped part of the existing line and the model to be moved.
9. The method for displaying a connection between a model and a line in simulation software according to claim 1, wherein the object to be moved includes a line to be moved;
in the process that the object to be moved is moved, controlling the line corresponding to the object to be moved to form interval display with other elements, including:
determining the moving direction of the line to be moved under the condition that the line to be moved is moved and the line to be moved is intersected with other elements;
and controlling the lines to be moved and the other elements to form interval display according to the moving direction and the interval.
10. The method for displaying a connection between a model and a line in simulation software according to any one of claims 1 to 9, wherein the pitch is greater than 1 pixel and less than 30 pixels.
11. The method for displaying connection of models and lines in simulation software according to any one of claims 1 to 9, wherein the existing elements include models to be disconnected;
the method for displaying the connection between the model and the line in the simulation software further comprises the following steps:
and under the condition that the model to be disconnected needs to be disconnected, controlling the lines of the model to be disconnected from other elements.
12. The method for displaying a connection between a model and a line in simulation software according to any one of claims 1 to 9, wherein the existing element includes a line to be disconnected;
the method for displaying the connection between the model and the line in the simulation software further comprises the following steps:
and under the condition that the line to be moved needs to be disconnected, controlling the line to be moved to be disconnected with other elements.
13. The method for displaying a connection between a model and a line in simulation software according to any one of claims 1 to 9, wherein the existing element includes a model to be deleted, and the model to be deleted includes a model with a line;
the method for displaying the connection between the model and the line in the simulation software further comprises the following steps:
and under the condition that the model to be deleted needs to be deleted, controlling the lines of the model to be deleted to be disconnected with other elements, and deleting the model to be deleted and the lines of the model to be deleted.
14. A connection display device of a model and a line in simulation software, comprising:
the processing module is used for determining the positions of existing elements in simulation software, wherein the existing elements comprise an object to be moved and other elements except the object to be moved;
And the control module for interval display is used for controlling the lines corresponding to the object to be moved and other elements to form interval display in the process that the object to be moved is moved, and the interval is used for avoiding the lines corresponding to the object to be moved from the other elements.
15. The connection display device of a model and a line in simulation software according to claim 14, wherein the object to be moved includes a model to be moved without a connection line, and the other elements include other models separated from the model to be moved, the model to be moved being separated from the other models;
the control module for displaying the distance comprises the following specific components: the judging sub-module is used for determining whether the model to be moved accords with the connection conditions with the other modules in the process that the model to be moved is moved; the judging submodule is specifically configured to determine whether the model to be moved and the other models are of the same physical domain application type;
the processing sub-module is used for connecting the model to be moved with the other models under the condition that the model to be moved meets the connection conditions with the other modules; the connecting the to-be-moved model with the other models comprises connecting terminals of the to-be-moved model with terminals of the other models, or generating connection strips between the to-be-moved model and the other models according to the fact that pixels between the terminals of the to-be-moved model and the terminals of the other models are smaller than preset connection pixels and the moving direction of the to-be-moved model, and forming interval display between the generated connection strips and other elements.
16. The connection display device of a model and a line in simulation software according to claim 14, wherein the object to be moved includes the model to be moved with the line; one end of the strip is connected with the model to be moved, the other end of the strip is not connected with other elements, and the other end of the strip is a fixed end;
the control module for displaying the distance is specifically used for: and under the condition that the moving position of the model to be moved is not overlapped with the carried line, extending the length of the carried line between the fixed end and the end point of the moving position, and forming interval display between the extended line and other elements.
17. The connection display device of a model and a line in simulation software according to claim 14, wherein the object to be moved includes a model to be moved without a connection line; the existing elements comprise existing lines;
the device for displaying the connection between the model and the line in the simulation software further comprises:
the judging module is used for determining whether the model to be moved and the existing line meet the connection condition or not;
and the display control module is used for controlling the to-be-moved model to be displayed on the upper layer of the existing line and hiding the crossed and overlapped part of the existing line and the to-be-moved model under the condition that the to-be-moved module and the existing line meet the connection condition.
18. The device for displaying a connection between a model and a line in simulation software according to claim 17, wherein the judging module comprises: the first judging unit is used for determining whether the existing line is connected with a model or not; and the first processing unit is used for determining whether the model to be moved and the connected model are of the same physical domain application type or not if the existing line is connected with the model;
the display control module is specifically configured to control the model to be moved to be displayed on an upper layer of the existing line and hide a cross overlapping portion of the existing line and the model to be moved when the model to be moved and the connected model are of a same physical domain application type.
19. The device for displaying a connection between a model and a line in simulation software according to claim 17, wherein the judging module comprises: the second judging unit is used for determining whether the existing line is connected with a model or not; and a second processing unit for determining whether the center of the model to be moved crosses the existing line if the existing line is not connected to the model;
the display control module is specifically configured to: and under the condition that the center of the model to be moved is intersected with the existing line, controlling the model to be moved to be displayed on the upper layer of the existing line, and hiding the intersected and overlapped part of the existing line and the model to be moved.
20. The connection display device of a model and a line in simulation software according to claim 14, wherein the object to be moved includes a line to be moved;
the control module for displaying the distance is specifically used for: determining the moving direction of the line to be moved under the condition that the line to be moved is moved and the line to be moved is intersected with other elements; and controlling the lines to be moved and the other elements to form interval display according to the moving direction and the interval.
21. A model and line connection display device in simulation software according to any of claims 14 to 20, wherein the existing elements include a model to be disconnected;
the device for displaying the connection between the model and the line in the simulation software further comprises: and the control module is used for controlling the line of the model to be disconnected from other elements under the condition that the model to be disconnected needs to be disconnected.
22. A model and line connection display device in simulation software according to any of claims 14 to 20, wherein the existing elements include lines to be disconnected;
the device for displaying the connection between the model and the line in the simulation software further comprises: and the control module is used for controlling the line to be moved to be disconnected with other elements under the condition that the line to be moved needs to be disconnected.
23. A model and line connection display device in simulation software according to any one of claims 14 to 20, wherein the existing elements include models to be deleted, the models to be deleted including models with lines;
the device for displaying the connection between the model and the line in the simulation software further comprises: and the control module is used for controlling the lines of the to-be-deleted model to be disconnected with other elements under the condition that the to-be-deleted model needs to be deleted, and deleting the to-be-deleted model and the lines of the to-be-deleted model.
24. An electronic device comprising one or more processors configured to implement the method for displaying a model-to-line connection in simulation software according to any one of claims 1-13.
25. A computer-readable storage medium having stored thereon a program which, when executed by a processor, implements a method for displaying a model and a line connection in simulation software according to any one of claims 1 to 13.
CN202310453133.3A 2023-04-20 2023-04-20 Connection display method and device for model and line in simulation software Active CN116467882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310453133.3A CN116467882B (en) 2023-04-20 2023-04-20 Connection display method and device for model and line in simulation software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310453133.3A CN116467882B (en) 2023-04-20 2023-04-20 Connection display method and device for model and line in simulation software

Publications (2)

Publication Number Publication Date
CN116467882A true CN116467882A (en) 2023-07-21
CN116467882B CN116467882B (en) 2024-05-14

Family

ID=87175148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310453133.3A Active CN116467882B (en) 2023-04-20 2023-04-20 Connection display method and device for model and line in simulation software

Country Status (1)

Country Link
CN (1) CN116467882B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140130062A1 (en) * 2012-11-02 2014-05-08 Airbus Operations (S.A.S.) Methods, systems and computer readable media for establishing a communication link between software simulation models
CN110458959A (en) * 2019-09-04 2019-11-15 京东方科技集团股份有限公司 Body Three-dimensional Display emulation mode, device, equipment and computer readable storage medium
CN112639734A (en) * 2020-12-10 2021-04-09 华为技术有限公司 Simulation task scheduling method, execution method, simulation implementation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140130062A1 (en) * 2012-11-02 2014-05-08 Airbus Operations (S.A.S.) Methods, systems and computer readable media for establishing a communication link between software simulation models
CN110458959A (en) * 2019-09-04 2019-11-15 京东方科技集团股份有限公司 Body Three-dimensional Display emulation mode, device, equipment and computer readable storage medium
CN112639734A (en) * 2020-12-10 2021-04-09 华为技术有限公司 Simulation task scheduling method, execution method, simulation implementation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张维竞;杨剑;李圣军;常广晖;: "面向对象技术在减压器仿真软件设计中的应用", 计算机仿真, no. 11, 28 November 2006 (2006-11-28) *

Also Published As

Publication number Publication date
CN116467882B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN109771951B (en) Game map generation method, device, storage medium and electronic equipment
JP7394977B2 (en) Methods, apparatus, computing equipment and storage media for creating animations
CN113010937B (en) Parametric modeling method of member section steel bar and related device
US9323436B2 (en) Utilizing drawing guides in determining the display of smart guides in a drawing program
CN103177034A (en) Parallel line generation method and generation device in road net
CN105488833A (en) Method and apparatus for realizing 3D transition animation for 2D control
CN114297746A (en) Rendering method and device of building information model, electronic equipment and storage medium
JP2014512597A (en) 3D viewing method
CN111190589A (en) Visual programming method and terminal equipment
CN111290680B (en) List display method, device, terminal and storage medium
AU2022368364A1 (en) Control method, device, equipment and storage medium for interactive reproduction of target object
CN107423366B (en) Carousel graph switching method and device
CN102866883A (en) Determining the display of equal spacing guides between diagram shapes
CN116467882B (en) Connection display method and device for model and line in simulation software
CN113926190A (en) Method and device for controlling three-dimensional model in game editor and storage medium
CN107833227B (en) Drawing method and system for circular cutting area
JP6287498B2 (en) Electronic whiteboard device, electronic whiteboard input support method, and program
CN108021345B (en) Image browsing method, system, equipment and computer storage medium
CN114265583B (en) VR content development optimization method and device, electronic equipment and readable storage medium
CN111833374A (en) Path planning method, system, storage medium and terminal based on video fusion
CN110457030B (en) Mobile adaptive rearrangement method and device for component arrangement
CN115033226A (en) Page display method and device, terminal equipment and computer readable storage medium
CN114913277A (en) Method, device, equipment and medium for three-dimensional interactive display of object
CN110415351B (en) Method, device and system for constructing three-dimensional grid based on single image
CN110215702B (en) Method and device for controlling grouping in game

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