CN113495663B - Method and device for drawing rectangular layout, storage medium and electronic equipment - Google Patents

Method and device for drawing rectangular layout, storage medium and electronic equipment Download PDF

Info

Publication number
CN113495663B
CN113495663B CN202110758885.1A CN202110758885A CN113495663B CN 113495663 B CN113495663 B CN 113495663B CN 202110758885 A CN202110758885 A CN 202110758885A CN 113495663 B CN113495663 B CN 113495663B
Authority
CN
China
Prior art keywords
rectangular
layout
detected
touch operation
orthogonal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110758885.1A
Other languages
Chinese (zh)
Other versions
CN113495663A (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 Empyrean Technology Co Ltd
Original Assignee
Beijing Empyrean Technology 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 Empyrean Technology Co Ltd filed Critical Beijing Empyrean Technology Co Ltd
Priority to CN202110758885.1A priority Critical patent/CN113495663B/en
Publication of CN113495663A publication Critical patent/CN113495663A/en
Application granted granted Critical
Publication of CN113495663B publication Critical patent/CN113495663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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
    • 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/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method, a device, a storage medium and electronic equipment for drawing a rectangular layout, wherein the method comprises the following steps: detecting an orthogonal edge in the target graph; determining the detected orthogonal side as a rectangular side of the rectangular layout; and drawing a rectangular area of the rectangular layout according to the rectangular side. The method, the device, the storage medium and the electronic equipment for drawing the rectangular layout, provided by the embodiment of the application, can solve the problems that the operation for drawing the rectangular layout is complex and laborious and dislocation is easy to occur, avoid layout drawing errors and improve the accuracy of the drawing layout.

Description

Method and device for drawing rectangular layout, storage medium and electronic equipment
Technical Field
The application belongs to the field of circuit design, and particularly relates to a method and a device for drawing a rectangular layout, a storage medium and electronic equipment.
Background
In the design of integrated circuit layout, rectangles are the most basic graphs forming the layout, so drawing rectangles is one of the more frequent operations of the layout. Under the general condition, drawing of the rectangle is completed according to the size of the existing graph in the layout, so that the creation of the accurate rectangle graph is completed quickly and conveniently, and the efficiency of layout design is greatly improved.
In an Electronic Design Automation (EDA) tool, two points usually define a rectangle, so that when a desired rectangle is to be drawn according to the size of an existing pattern, the current window needs to be continuously enlarged to a suitable state until the vertex of the existing pattern can be seen clearly, and then the vertex is used as the starting point of the rectangle, and the same operation needs to be performed as the ending point of the rectangle. Or the dimension of the existing graph is measured firstly, and then the drawn rectangle is continuously adjusted according to the dimension, so that the operation is complex and laborious, the problem of dislocation is easy to occur, and the layout is in error.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device, a storage medium and electronic equipment for drawing a rectangular layout, which can solve the problems that the operation for drawing the rectangular layout is complex and laborious and dislocation is easy to occur.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for drawing a rectangular layout, including: detecting an orthogonal edge in the target graph; determining the detected orthogonal side as a rectangular side of the rectangular layout; and drawing a rectangular area of the rectangular layout according to the rectangular side.
In a second aspect, an embodiment of the present application provides an apparatus for drawing a rectangular layout, including: a detection module for detecting an orthogonal edge in a target graph; the determining module is used for determining the detected orthogonal side as a rectangular side of the rectangular layout; and the drawing module is used for drawing the rectangular area of the rectangular layout according to the rectangular side.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the orthogonal edges are detected in the target graph; determining the detected orthogonal side as a rectangular side of the rectangular layout; according to the rectangular side, the rectangular area of the rectangular layout is drawn, the problems that the operation of drawing the rectangular layout is complex and laborious and dislocation is easy to occur can be solved, drawing errors of the layout are avoided, and the accuracy of drawing the layout is improved.
Drawings
Fig. 1 is an exemplary flowchart of a method for drawing a rectangular layout according to an embodiment of the present application.
Fig. 2a-2b show schematic diagrams of the orthogonal edges detected in this step.
Fig. 3 is an exemplary flowchart of a method for drawing a rectangular layout according to an embodiment of the present application.
Fig. 4 is a schematic diagram of an apparatus for drawing a rectangular layout according to an embodiment of the present application.
Fig. 5 is a schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
Fig. 1 is an exemplary flowchart of a method for drawing a rectangular layout according to an embodiment of the present application. As shown in fig. 1, a method for drawing a rectangular layout provided in the embodiment of the present application includes the following steps:
s110: orthogonal edges are detected in the target pattern.
In one implementation, orthogonal edges of the mouse vicinity may be detected. The step may detect the orthogonal edge in any graph, for example, a rectangle or a polygon, where the orthogonal edge is at least one of two mutually perpendicular line segments. Fig. 2a-2b show schematic diagrams of the orthogonal edges detected in this step. The step is described by taking the edge AB as the detected orthogonal edge in the figure, but as another implementation, the edge perpendicular to the edge AB shown in the figure may be detected as the orthogonal edge.
In one implementation, the detected orthogonal edge may be marked when the orthogonal edge is detected, so as to improve the recognition degree of the detected orthogonal edge, and facilitate user recognition and operation. For example, edge AB in the figure is highlighted.
S120: and determining the detected orthogonal side as a rectangular side of the rectangular layout.
For example, the edge AB in the figure is determined as one rectangular edge of the rectangular layout.
In one implementation, in a case that an orthogonal edge is detected, the layer in which the orthogonal edge is detected may be used as a target layer. And drawing a rectangular area of the rectangular layout according to the rectangular side in the target layer. Specifically, the layout may have a plurality of operable layers, and generally, a user needs to manually select which layer to draw the rectangular layout, which is troublesome to operate. However, in this step, the layer in which the orthogonal edge is detected may be automatically determined as the target layer, and the drawing operation may be performed on the target layer, so as to avoid the trouble caused by manual selection by the user, facilitate the user operation, improve the drawing efficiency, and simultaneously avoid the misoperation possibly caused by the manual operation, and improve the drawing accuracy.
S130: and drawing a rectangular area of the rectangular layout according to the rectangular side.
For example, according to the side AB in the figure, a rectangular area of the rectangular layout is drawn.
In an implementation manner, the width of the rectangular side may be used as a starting side of the rectangular layout, a first touch operation is received, the touch operation direction is perpendicular to the starting side, and a second touch operation is received, where the second touch operation is used to determine that the drawing of the rectangular area is completed.
For example, the side AB in fig. 2a may be used as a starting side of the rectangular layout, a first touch operation may be received, the direction of the touch operation is perpendicular to the starting side, the first touch operation is, for example, a mouse dragging operation that is perpendicular to the starting side AB by a user, and a second touch operation may be received, the second touch operation is used to determine that the drawing of the rectangular area is completed, for example, when the user drags the mouse to reach a required rectangular length, for example, to reach the side CD shown in fig. 2b, the mouse is clicked to determine that the drawing of the rectangular area ABCD is completed. The operation process of drawing the rectangular layout is simple, convenient and fast, and the accuracy is high.
Therefore, according to the method for drawing the rectangular layout, provided by the embodiment of the application, the orthogonal edges are detected in the target graph; determining the detected orthogonal side as a rectangular side of the rectangular layout; according to the rectangular side, the rectangular area of the rectangular layout is drawn, the orthogonal side can be automatically detected, the rectangular layout is drawn based on the detected orthogonal side, the problems that the operation of drawing the rectangular layout is complex and laborious, and dislocation is easy to occur can be solved, the drawing mistake of the layout is avoided, and the accuracy of the drawing layout is improved.
According to the method for drawing the rectangular layout, the detected orthogonal sides are marked under the condition that the orthogonal sides are detected, so that the identification degree of the detected orthogonal sides can be improved, and convenience is brought to users for identification and operation.
The method for drawing the rectangular layout provided by the embodiment of the application detects the layer of the orthogonal edge as the target layer under the condition of detecting the orthogonal edge, the target layer is drawn according to the rectangular edge, the rectangular area of the rectangular layout avoids the trouble caused by manual selection of a user, the operation of the user is facilitated, the drawing efficiency is improved, meanwhile, the misoperation possibly caused by the manual operation is avoided, and the drawing accuracy is improved.
According to the method for drawing the rectangular layout, the width of the rectangular side is used as the starting side of the rectangular layout, the first touch operation is received, the touch operation direction is perpendicular to the starting side, the second touch operation is received, the second touch operation is used for determining and completing drawing of the rectangular area, the operation process for drawing the rectangular layout is simple and convenient, and accuracy is high.
Fig. 3 is an exemplary flowchart of a method for drawing a rectangular layout according to an embodiment of the present application. As shown in fig. 3, a method for drawing a rectangular layout provided in the embodiment of the present application includes the following steps:
s300: receiving a switching operation, and detecting the orthogonal edge in the target graph in response to the switching operation.
In one implementation, an option, such as an Auto Detect Edge (Auto Detect Edge) option, may be provided to control whether to perform the following steps to draw a rectangle, when the option is turned on, to perform a conventional scheme of drawing a rectangular layout, for example, determining a rectangle by two points, or measuring the size of an existing pattern first, and then adjusting the drawn rectangle continuously according to the size. Therefore, based on the switching options provided in the step, the user can freely select whether to draw the rectangular layout based on the orthogonal sides detected automatically, and the user operation is convenient and flexible.
S310: orthogonal edges are detected in the target pattern.
S320: and determining the detected orthogonal side as a rectangular side of the rectangular layout.
S330: and drawing a rectangular area of the rectangular layout according to the rectangular side.
Steps S310-S330 may be described as identical or similar to steps S110-S130, and are not repeated herein to avoid repetition.
Therefore, according to the method for drawing the rectangular layout, provided by the embodiment of the application, the orthogonal edges are detected in the target graph; determining the detected orthogonal side as a rectangular side of the rectangular layout; according to the rectangular side, the rectangular area of the rectangular layout is drawn, the orthogonal side can be automatically detected, the rectangular layout is drawn based on the detected orthogonal side, the problems that the operation of drawing the rectangular layout is complex and laborious, and dislocation is easy to occur can be solved, the drawing mistake of the layout is avoided, and the accuracy of the drawing layout is improved.
According to the method for drawing the rectangular layout, the switching operation is received, the orthogonal edge is detected in the target graph in response to the switching operation, whether the rectangular layout is drawn based on the automatically detected orthogonal edge or not can be freely selected by a user based on the switching option, and the user operation is convenient and flexible.
Fig. 4 is a schematic diagram of an apparatus for drawing a rectangular layout according to an embodiment of the present application. As shown in fig. 4, an apparatus 400 for drawing a rectangular layout provided in the embodiment of the present application includes the following: a detection module 410, a determination module 420, and a rendering module 430.
The detection module 410 is used to detect orthogonal edges in the target graph. The determining module 420 is configured to determine the detected orthogonal edge as a rectangular edge of the rectangular layout. The drawing module 430 is configured to draw a rectangular region of the rectangular layout according to the rectangular edge.
In one implementation, the determining module 420 is further configured to mark the detected orthogonal edge if the orthogonal edge is detected.
In one implementation, the drawing module 430 is further configured to, in a case that an orthogonal edge is detected, take a layer in which the orthogonal edge is detected as a target layer; and drawing a rectangular area of the rectangular layout according to the rectangular side in the target layer.
In one implementation, the detection module 410 is further configured to receive a handover operation; in response to the switching operation, the orthogonal edge is detected in a target graph.
In one implementation, the rendering module 430 is configured to: taking the width of the rectangular side as the initial side of the rectangular layout; receiving a first touch operation, wherein the touch operation direction is perpendicular to the initial edge; and receiving a second touch operation, wherein the second touch operation is used for determining that the drawing of the rectangular area is completed.
The device for drawing the rectangular layout in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The device for drawing the rectangular layout in the embodiment of the application can be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The device for drawing the rectangular layout provided by the embodiment of the application can realize each process realized by the method embodiments of fig. 1 to 3, and is not repeated here to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in an embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of being executed on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the above-mentioned method for drawing a rectangular layout, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 110 is configured to detect an orthogonal edge in the target graph; determining the detected orthogonal side as a rectangular side of the rectangular layout; and drawing a rectangular area of the rectangular layout according to the rectangular side.
In one implementation, the processor 110 is further configured to mark the detected orthogonal edge if the orthogonal edge is detected.
In one implementation, the processor 110 is further configured to, in a case that an orthogonal edge is detected, take the layer in which the orthogonal edge is detected as a target layer; and drawing a rectangular area of the rectangular layout according to the rectangular side in the target layer.
In one implementation, the processor 110 is further configured to receive a switching operation before the detecting of the orthogonal edge in the target graph; in response to the switching operation, the orthogonal edge is detected in a target graph.
In one implementation, the processor 110 is configured to use the width of the rectangular edge as a starting edge of the rectangular layout; receiving a first touch operation, wherein the touch operation direction is perpendicular to the initial edge; and receiving a second touch operation, wherein the second touch operation is used for determining that the drawing of the rectangular area is completed.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above method for drawing a rectangular layout, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is configured to run a program or an instruction, implement each process of the above method embodiment for drawing a rectangular layout, and achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method for drawing a rectangular layout is characterized by comprising the following steps:
detecting an orthogonal edge in the target graph;
determining the detected orthogonal side as a rectangular side of the rectangular layout;
drawing a rectangular area of the rectangular layout according to the rectangular side,
wherein, according to the rectangle side, drawing the rectangle area of the rectangle layout comprises:
and taking the width of the rectangular side as an initial side of the rectangular layout, receiving a first touch operation, wherein the touch operation direction is perpendicular to the initial side, receiving a second touch operation, and finishing the drawing of the rectangular area in response to the second touch operation.
2. The method of claim 1, wherein after said detecting the orthogonal edge in the target graph, the method further comprises:
in the event that an orthogonal edge is detected, the detected orthogonal edge is marked.
3. The method of claim 1, wherein after said detecting the orthogonal edge in the target graph, the method further comprises:
under the condition that the orthogonal edge is detected, taking the layer with the detected orthogonal edge as a target layer;
and drawing a rectangular area of the rectangular layout according to the rectangular side in the target layer.
4. The method of claim 1, wherein prior to said detecting orthogonal edges in the target graph, the method further comprises:
receiving a switching operation;
in response to the switching operation, the orthogonal edge is detected in a target graph.
5. The method according to claim 1, wherein the drawing a rectangular region of the rectangular layout according to the rectangular side comprises:
taking the width of the rectangular side as the initial side of the rectangular layout;
receiving a first touch operation, wherein the touch operation direction is perpendicular to the initial edge;
and receiving a second touch operation, wherein the second touch operation is used for determining that the drawing of the rectangular area is completed.
6. An apparatus for drawing a rectangular layout, comprising:
a detection module for detecting an orthogonal edge in a target graph;
the determining module is used for determining the detected orthogonal side as a rectangular side of the rectangular layout;
the drawing module is used for drawing the rectangular region of the rectangular layout according to the rectangular edge, wherein the drawing the rectangular region of the rectangular layout according to the rectangular edge comprises the following steps:
and taking the width of the rectangular side as an initial side of the rectangular layout, receiving a first touch operation, wherein the touch operation direction is perpendicular to the initial side, receiving a second touch operation, and finishing the drawing of the rectangular area in response to the second touch operation.
7. The apparatus of claim 6, wherein the determining module is further configured to mark the detected orthogonal edge if the orthogonal edge is detected.
8. The apparatus according to claim 6, wherein the drawing module is further configured to, in a case where an orthogonal edge is detected, take a layer where the orthogonal edge is detected as a target layer; and drawing a rectangular area of the rectangular layout according to the rectangular side in the target layer.
9. The apparatus of claim 6, wherein the detection module is further configured to receive a handover operation; in response to the switching operation, the orthogonal edge is detected in a target graph.
10. The apparatus of claim 6, wherein the rendering module is configured to:
taking the width of the rectangular side as the initial side of the rectangular layout;
receiving a first touch operation, wherein the touch operation direction is perpendicular to the initial edge;
and receiving a second touch operation, wherein the second touch operation is used for determining that the drawing of the rectangular area is completed.
11. An electronic device, comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the method of drawing a rectangular layout as claimed in any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the method of drawing a rectangular layout as claimed in any one of claims 1 to 5.
CN202110758885.1A 2021-07-05 2021-07-05 Method and device for drawing rectangular layout, storage medium and electronic equipment Active CN113495663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110758885.1A CN113495663B (en) 2021-07-05 2021-07-05 Method and device for drawing rectangular layout, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110758885.1A CN113495663B (en) 2021-07-05 2021-07-05 Method and device for drawing rectangular layout, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113495663A CN113495663A (en) 2021-10-12
CN113495663B true CN113495663B (en) 2022-03-11

Family

ID=77998146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110758885.1A Active CN113495663B (en) 2021-07-05 2021-07-05 Method and device for drawing rectangular layout, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113495663B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114647998B (en) * 2022-03-29 2024-04-26 成都华大九天科技有限公司 Method for creating rectangle in layout design

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320795A (en) * 2014-08-04 2016-02-10 北京华大九天软件有限公司 Automatic capturing method for integrated circuit layout graphic
CN105631118A (en) * 2015-12-25 2016-06-01 深圳市同创国芯电子有限公司 Programmable logic device graph drawing method and device
CN106296776A (en) * 2015-06-08 2017-01-04 武大吉奥信息技术有限公司 A kind of new rectangle method for drafting
CN111625179A (en) * 2020-06-02 2020-09-04 京东方科技集团股份有限公司 Graph drawing method, electronic device, and computer storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4568750B2 (en) * 2007-11-30 2010-10-27 富士通株式会社 Drawing apparatus, drawing program, and drawing method
CN101382870A (en) * 2008-10-15 2009-03-11 深圳市杰特电信控股有限公司 Electronic drafting method
JP5610923B2 (en) * 2010-08-24 2014-10-22 キヤノン株式会社 Image processing apparatus, image processing method, and program
CN104809684B (en) * 2015-04-02 2018-03-27 华为技术有限公司 Graphic processing method, apparatus and system
CN108184048B (en) * 2016-12-08 2020-06-23 株式会社摩如富 Image processing apparatus and method
CN112181263B (en) * 2019-07-02 2024-04-09 三六零科技集团有限公司 Touch screen drawing operation response method and device and computing equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320795A (en) * 2014-08-04 2016-02-10 北京华大九天软件有限公司 Automatic capturing method for integrated circuit layout graphic
CN106296776A (en) * 2015-06-08 2017-01-04 武大吉奥信息技术有限公司 A kind of new rectangle method for drafting
CN105631118A (en) * 2015-12-25 2016-06-01 深圳市同创国芯电子有限公司 Programmable logic device graph drawing method and device
CN111625179A (en) * 2020-06-02 2020-09-04 京东方科技集团股份有限公司 Graph drawing method, electronic device, and computer storage medium

Also Published As

Publication number Publication date
CN113495663A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
US20230236692A1 (en) Touch Operation Processing Method and Terminal Device
US10996834B2 (en) Touchscreen apparatus user interface processing method and touchscreen apparatus
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112083854A (en) Application program running method and device
WO2022253181A1 (en) Icon arrangement method and apparatus, and electronic device
CN112433693A (en) Split screen display method and device and electronic equipment
CN112783408A (en) Gesture navigation method and device of electronic equipment, equipment and readable storage medium
CN113495663B (en) Method and device for drawing rectangular layout, storage medium and electronic equipment
CN112783406B (en) Operation execution method and device and electronic equipment
CN113407144B (en) Display control method and device
CN111966268B (en) Interface display method and device and electronic equipment
CN113836089A (en) Application program display method and device, electronic equipment and readable storage medium
CN111857465B (en) Application icon sorting method and device and electronic equipment
CN112765500A (en) Information searching method and device
WO2022199540A1 (en) Unread message identifier clearing method and apparatus, and electronic device
CN112162689B (en) Input method and device and electronic equipment
CN111913617B (en) Interface display method and device and electronic equipment
CN112286430B (en) Image processing method, apparatus, device and medium
CN114327173A (en) Information processing method and device and electronic equipment
CN114442881A (en) Information display method and device, electronic equipment and readable storage medium
US20110187654A1 (en) Method and system for user interface adjustment of electronic device
CN113885981A (en) Desktop editing method and device and electronic equipment
CN113157184A (en) Content display method and device, electronic equipment and readable storage medium
CN113311982A (en) Information selection method and device
CN112256378A (en) Display method, display device, electronic equipment and readable storage medium

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