CN113436330A - Area object generation method and device, electronic equipment and readable storage medium - Google Patents
Area object generation method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN113436330A CN113436330A CN202110719799.XA CN202110719799A CN113436330A CN 113436330 A CN113436330 A CN 113436330A CN 202110719799 A CN202110719799 A CN 202110719799A CN 113436330 A CN113436330 A CN 113436330A
- Authority
- CN
- China
- Prior art keywords
- area
- different types
- boundary line
- area boundary
- generating
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000004044 response Effects 0.000 claims abstract description 55
- 230000015654 memory Effects 0.000 claims description 30
- 238000012986 modification Methods 0.000 claims description 9
- 230000004048 modification Effects 0.000 claims description 9
- 238000011960 computer-aided design Methods 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 8
- 238000013461 design Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000004458 analytical method Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/10—Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Civil Engineering (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to the technical field of computer aided design and discloses a method and a device for generating an area object, electronic equipment and a readable storage medium. Wherein, the method comprises the following steps: responding to a creating instruction of the area object, and obtaining a drawing plane of the area object, wherein the creating instruction is independent of any plane view; obtaining different types of area boundary lines in response to area drawing operations on a drawing plane; and obtaining different types of area objects based on the closed states of the different types of area boundary lines. By implementing the method and the device, the area object can be directly drawn on any plane view without being limited by the plane view of the area, the flexibility of creating the area object is improved, the type of the area object does not need to be preset, and the operation steps of the area object are simplified.
Description
Technical Field
The invention relates to the technical field of computer aided design, in particular to a method and a device for generating an area object, electronic equipment and a readable storage medium.
Background
In engineering building design work, designers need to frequently create different types of area objects (such as house type areas, building areas, shared areas and the like) no matter in a scheme design stage or a construction drawing design stage. The existing building design software needs to define an area scheme in advance when creating the area object, and needs to preset the type of the area object when defining the area scheme, so as to create a plurality of area schemes, and the operation steps are complex; and the area object can be drawn only in the created area plane view, and the area creation is not allowed under other modeling views, so that the flexibility is poor. Therefore, the existing building design software needs to do more preliminary preparation work before creating the area object, and is difficult to directly create in any plane view, so that the operation steps for creating the area object are complex and the flexibility is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for generating an area object, an electronic device, and a readable storage medium, so as to solve the problems of complicated operation steps and poor flexibility in creating an area object.
According to a first aspect, an embodiment of the present invention provides an area object generating method, including: responding to a creating instruction of the area object, and obtaining a drawing plane of the area object, wherein the creating instruction is independent of any plane view; obtaining different types of area boundary lines in response to area drawing operations on the drawing plane; and obtaining the area objects of different types based on the closed state of the area boundary lines of different types.
The area object generating method provided by the embodiment of the present invention obtains a drawing plane of an area object by responding to a creation instruction for the area object, where the creation instruction is independent of any plane view, obtains an area boundary line in response to an area drawing operation on the drawing plane, and generates the area object based on a closed state of the area boundary line. Therefore, the area object can be directly drawn on any plane view without the limitation of the area plane view, and the flexibility of creating the area object is improved. The area boundary lines of different types are directly drawn on the drawing plane to obtain the area objects of different types, the type of the area object does not need to be preset, and the operation steps of the area object are simplified.
With reference to the first aspect, in a first implementation manner of the first aspect, the deriving different types of area boundary lines in response to an area drawing operation on the drawing plane includes: responding to the selection operation of the drawing mode, and determining the target drawing mode of the area object of the current type; responding to the area drawing operation on the drawing plane in the target drawing mode to obtain an area boundary drawing point of the current type; and generating the area boundary line of the current type based on the number of the effective points of the area boundary drawing points of the current type.
According to the area object generating method provided by the embodiment of the invention, the target drawing mode of the area object of the current type is determined by responding to the selection operation of the drawing mode, and the area boundary drawing point of the current type is obtained by responding to the area drawing operation of the target drawing mode on the drawing plane, so that the area boundary drawing mode can be flexibly determined, and the area boundary drawing points of different types can be obtained. The area boundary line of the current type is generated based on the number of the effective points of the area boundary drawing points of the current type, so that different types of area boundary lines can be generated on the drawing plane, different types of area objects can be obtained, the type of the area object does not need to be preset, and the creating operation steps of the area objects of various types are simplified.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the generating an area boundary line of the current type based on the number of valid points of the area boundary drawing point of the current type includes: when the number of the effective points is 1, judging that the area boundary line is not generated, and deleting the effective points; when the number of the effective points is 2, generating an unclosed area boundary line, and displaying the effective points; and when the number of the effective points is more than 2, closing the first effective point and the last effective point to generate a closed area boundary line.
According to the area object generation method provided by the embodiment of the invention, whether the area boundary line can be generated or not is determined according to the number of the effective points, and when the area boundary line can be generated, the first effective point and the last effective point are closed to obtain the closed area boundary line. The method can generate different types of area boundary lines on the drawing plane based on the number of the effective points of the area boundary drawing points, and simplifies the creation process of the area object.
With reference to the first aspect, in a third implementation manner of the first aspect, the obtaining different types of area objects based on a closed state of the different types of area boundary lines includes: judging whether the area boundary line of the current type is closed or not; and when the area boundary line is not closed, responding to the closing operation of the area boundary line, generating a closed area boundary line, and obtaining an area object corresponding to the area boundary line of the current type.
According to the area object generation method provided by the embodiment of the invention, whether the area boundary line of the current type is closed or not is judged, when the area boundary line is detected to be not closed, a user is reminded to close the area boundary line and respond to the closing operation of the area boundary line to obtain the closed area boundary line, so that different types of closed area boundary lines can be obtained respectively, different types of area objects are determined, the accurate drawing of the area boundary line is ensured, and the accurate creation of the area object is further ensured.
With reference to the first aspect, in a fourth implementation manner of the first aspect, after the obtaining the area objects of different types, the method further includes: generating an annotation object in response to an editing instruction for the area object; in response to a placement instruction for the annotation object, placing the annotation object in the area object.
With reference to the fourth embodiment of the first aspect, in a fifth embodiment of the first aspect, the method further comprises: updating the annotation object and/or the placement position of the annotation object on the area object in response to the adjustment instruction for the annotation object.
According to the area object generation method provided by the embodiment of the invention, the annotation object is generated by responding to the editing instruction of the area object, and the annotation object is placed on the area object by responding to the placement instruction of the annotation object, so that the annotation object can be directly generated on the area object, and the generation convenience of the annotation object is improved. When the annotation object needs to be adjusted, the annotation object and/or the placement position of the annotation object on the area object is updated by responding to the adjustment instruction of the annotation object, so that the convenient adjustment of the annotation object is ensured, and the design time of the annotation object is saved.
With reference to the first aspect, in a sixth implementation manner of the first aspect, after the obtaining of the area objects of different types, the method further includes: obtaining updating parameters of the area object, wherein the updating parameters comprise attribute parameters and/or adjusting pinch points; updating the area object in response to a modification instruction for the update parameter.
According to the area object generating method provided by the embodiment of the invention, the area object is updated by acquiring the update parameters of the area object and responding to the modification instruction of the update parameters, wherein the update parameters comprise attribute parameters and/or adjusting pinch points. For the created area object, the method flexibly adjusts the area boundary line by modifying the adjusting pinch point of the area object so as to update the area object in real time; by modifying the attribute parameters of the area objects, the attributes of the area objects can be adjusted to update the area objects in real time, thereby realizing the flexible adjustment of the area objects.
With reference to the first aspect or any one of the first to sixth embodiments of the first aspect, in a seventh embodiment of the first aspect, after the obtaining the area objects of different types, the method further includes: responding to a statistical instruction of the area object, and acquiring a statistical parameter of the area object; and obtaining a statistical table containing the area objects of different types based on the statistical parameters of the area objects.
According to the area object generation method provided by the embodiment of the invention, after the area objects of different types are obtained, the statistical parameters of the area objects are obtained by responding to the statistical instructions of the area objects, and the statistical table containing the area objects of different types is obtained based on the statistical parameters of the area objects. Therefore, the areas of different types of area objects can be automatically generated in the same statistical form, the statistical efficiency of the area objects is improved, the area data of different types can be expressed more visually, and the design and analysis of the area objects are facilitated.
According to a second aspect, an embodiment of the present invention provides an area object generating apparatus, including: the first response module is used for responding to a creating instruction of the area object to obtain a drawing plane of the area object, wherein the creating instruction is independent of any plane view; the second response module is used for responding to the area drawing operation on the drawing plane to obtain different types of area boundary lines; and the generating module is used for obtaining the area objects of different types based on the closed state of the area boundary lines of different types.
The area object generating device provided by the embodiment of the present invention obtains the drawing plane of the area object by responding to a creation instruction for the area object, where the creation instruction is independent of any plane view, obtains an area boundary line in response to an area drawing operation on the drawing plane, and generates the area object based on a closed state of the area boundary line. Therefore, the area object can be directly drawn on any plane view without the limitation of the area plane view, and the flexibility of creating the area object is improved. The area boundary lines of different types are directly drawn on the drawing plane to obtain the area objects of different types, the type of the area object does not need to be preset, and the operation steps of the area object are simplified.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the method for generating an area object according to the first aspect or any embodiment of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a computer to execute the method for generating an area object according to the first aspect or any of the embodiments of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of a method of generating an area object according to an embodiment of the invention;
FIG. 2 is another flow diagram of a method of generating an area object according to an embodiment of the invention;
FIG. 3 is another flow diagram of a method of generating an area object according to an embodiment of the invention;
FIG. 4 is a schematic illustration of area boundary drawing points according to an embodiment of the present invention;
FIG. 5 is a graphical illustration of statistical parameters of an area object according to an embodiment of the invention;
FIG. 6 is a table illustrating statistics of area objects according to an embodiment of the invention;
FIG. 7 is a schematic diagram of an annotation object according to an embodiment of the invention;
FIG. 8 is an edit schematic of an area boundary line according to an embodiment of the invention;
fig. 9 is a block diagram of a structure of an area object generating apparatus according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for generating an area object, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In this embodiment, a method for generating an area object is provided, which may be used in an electronic device, such as a mobile phone, a tablet computer, a computer, and the like, fig. 1 is a flowchart of a method for generating an area object according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
s11, in response to a create instruction for the area object, obtaining a drawing plane of the area object, wherein the create instruction is independent of any plane view.
The create instruction is for initiating a create operation of the area object, existing independently of any plan view. When a user needs to create an area object, a creation instruction of the area object may be input to the electronic device, for example, the user may click a creation tag corresponding to the creation instruction through a mouse connected to the electronic device, may click a shortcut key corresponding to the creation instruction through a keyboard connected to the electronic device, and may also generate the creation instruction in other manners, which is not limited herein.
The area object may be a building area, a house area, a shared area, or other types of areas, and is not limited in detail herein. After the user inputs a creation instruction to the electronic device, accordingly, the electronic device may initiate creation of an area object in response to the creation instruction, and display a drawing plane of the area object, so that the user draws different types of area objects on the drawing plane.
S12, in response to the area drawing operation on the drawing plane, different types of area boundary lines are obtained.
Each type of area object includes a plurality of boundary lines, and the area boundary lines are a plurality of segments forming boundaries of the area object. The area boundary line may be a straight line, an arc, or a circle center-start point-end point arc, and may also include other forms of lines, which are not specifically limited herein, and those skilled in the art may draw a plurality of lines according to actual needs. Specifically, the user performs an area drawing operation for each type of area object on a drawing plane displayed by the electronic device, and accordingly, the electronic device may obtain an area boundary line corresponding to each type in response to the area drawing operation.
And S13, obtaining different types of area objects based on the closed state of the area boundary lines of different types.
The electronic device may determine whether the area boundary line of the current type is in a closed state according to drawing data of the area boundary line on the drawing plane, and when the area boundary line is in the closed state, the electronic device may determine the area object of the current type based on the closed area boundary line. The different types of area objects need to be drawn on the drawing plane in sequence, and the electronic device may generate the different types of area objects on the drawing plane based on the closed state of the area boundary line of each type.
In the area object generating method provided by this embodiment, a drawing plane of an area object is obtained in response to a creation instruction for the area object, where the creation instruction is independent of any plane view, an area boundary line is obtained in response to an area drawing operation on the drawing plane, and the area object is generated based on a closed state of the area boundary line. Therefore, the area object can be directly drawn on any plane view without the limitation of the area plane view, and the flexibility of creating the area object is improved. The area boundary lines of different types are directly drawn on the drawing plane to obtain the area objects of different types, the type of the area object does not need to be preset, and the operation steps of the area object are simplified.
In this embodiment, a method for generating an area object is provided, which may be used in an electronic device, such as a mobile phone, a tablet computer, a computer, and the like, fig. 2 is a flowchart of a method for generating an area object according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
s21, in response to a create instruction for the area object, obtaining a drawing plane of the area object, wherein the create instruction is independent of any plane view. For a detailed description, refer to the related description of step S11 corresponding to the above embodiment, and the detailed description is omitted here.
S22, in response to the area drawing operation on the drawing plane, different types of area boundary lines are obtained.
Specifically, the step S22 may include:
s221, in response to the selection operation of the drawing mode, determines a target drawing mode of the area object of the current type.
The target drawing manner is a drawing manner adopted for drawing the current area object, for example, straight line drawing, arc line drawing, and the like. Specifically, when the user is drawing the area object, the drawing mode of the multi-segment line may be selected on the drawing plane of the electronic device, and accordingly, the electronic device may determine the target drawing mode for drawing the area object in response to the selection operation of the drawing mode.
S222, responding to the area drawing operation on the drawing plane in the target drawing mode, and obtaining the area boundary drawing point of the current type.
The area boundary drawing point is an end point forming an area boundary line, and the area boundary line may be generated based on the area boundary drawing point. The user can perform the area drawing operation on the drawing plane by adopting the selected target drawing mode, and accordingly, the electronic device can respond to the area drawing operation to obtain the area boundary drawing point corresponding to the target drawing mode.
And S223, generating the area boundary line of the current type based on the number of the effective points of the area boundary drawing points of the current type.
The area boundary drawing points comprise effective points and invalid points, wherein the effective points are determined points for generating the area boundary lines, and the invalid points are uncertain points. As shown in fig. 4, points 1, 2, 3, 4, and 5 determined by the user clicking the mouse are valid points, and 6 is the current position of the mouse, and points not clicked yet are invalid points.
The user can draw different types of area objects on the drawing plane, and in the drawing process of each type of area object, the electronic equipment can respond to the drawing operation of the different types of area objects to obtain different types of area boundary lines. Specifically, when the user draws the area object of the current type, the electronic device may obtain a plurality of effective area boundary drawing points, that is, effective points, in response to the drawing operation of the area object of the current type. Based on the number of the effective points and the target drawing manner, a corresponding area boundary line can be generated. For example, if the object is drawn in a straight line, a straight line may be formed between the two effective points.
Specifically, the step S223 may include:
(1) when the number of the effective points is 1, it is judged that the area boundary line is not generated, and the effective points are deleted.
When the electronic device recognizes that only 1 effective point exists on the drawing plane, since the 1 effective point cannot generate a multi-segment line when the electronic device performs the closing operation, the electronic device may determine that an area boundary line is not generated, and delete the effective point. It should be noted that, when the user performs the undo operation, the electronic device may respond to the undo operation, and the unique valid point is invalidated and the multi-segment line drawing is restarted.
(2) And when the number of the effective points is 2, generating an unclosed area boundary line and displaying the effective points.
When the electronic equipment identifies that 2 valid points exist on the drawing plane, because a section of area boundary line can be generated between the 2 valid points, the electronic equipment can judge that an area boundary line is generated, the area boundary line is not closed, and the 2 valid points are reserved. It should be noted that, when the user performs the undo operation, the electronic device may reserve a valid point in response to the undo operation and continue to perform the multi-segment line drawing.
(3) And when the number of the effective points is more than 2, closing the first effective point and the last effective point to generate a closed area boundary line.
When the electronic device recognizes that there are more than 2 valid points on the drawing plane, since a plurality of sections of area boundary lines can be generated between the plurality of valid points, the electronic device can retain the plurality of valid points and close the first valid point and the last valid point to obtain a closed area boundary line. Specifically, the electronic device may determine the first valid point and the last valid point according to the time stamp for determining the valid points. It should be noted that, when the user performs the undo operation, the electronic device may respond to the undo operation and move back to the last valid point, and continue to perform the multi-segment line drawing.
And S23, obtaining different types of area objects based on the closed state of the area boundary lines of different types.
Specifically, the step S23 may include:
and S231, judging whether the area boundary line of the current type is closed or not.
The electronic device may obtain drawing data of the area boundary line of the current type on the drawing plane, determine whether the area boundary line of the current type is closed according to the drawing data, execute step S232 when it is determined that the area boundary line is not closed, and otherwise generate an area object corresponding to the area boundary line.
And S232, responding to the closing operation on the area boundary line, generating a closed area boundary line, and obtaining an area object corresponding to the area boundary line of the current type.
When it is detected that the area boundary line of the current type is not closed, the electronic device may generate a close prompt message to remind the user to close the area boundary line. After receiving the closing prompt message, the user may continue to draw the area boundary line to form a closed area boundary line, and accordingly, the electronic device may respond to the closing operation of the area boundary line to obtain the closed area boundary line. Upon detecting that an area boundary line of the current type is closed, the electronic device may generate an area object corresponding thereto based on the closed area boundary line.
In the area object generating method provided in this embodiment, the target drawing mode of the area object of the current type is determined in response to the selection operation on the drawing mode, and the area boundary drawing point of the current type is obtained in response to the area drawing operation on the drawing plane in the target drawing mode, so that the area boundary drawing mode can be flexibly determined, and the area boundary drawing points of different types can be obtained. The area boundary line of the current type is generated based on the number of the effective points of the area boundary drawing points of the current type, so that different types of area boundary lines can be generated on the drawing plane, different types of area objects can be obtained, the type of the area object does not need to be preset, and the creating process of each type of area object is simplified.
According to the area object generation method provided by the embodiment, whether the area boundary line of the current type is closed or not is judged, and when the area boundary line is detected to be not closed, the closed area boundary line is obtained in response to the closing operation of the area boundary line, so that the closed area boundary lines of different types can be obtained respectively, the area objects of different types are determined, the accurate drawing of the area boundary line is ensured, and the accurate creation of the area object is further ensured.
In this embodiment, a method for generating an area object is provided, which may be used in an electronic device, such as a mobile phone, a tablet computer, a computer, and the like, fig. 3 is a flowchart of a method for generating an area object according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
s31, in response to a create instruction for the area object, obtaining a drawing plane of the area object, wherein the create instruction is independent of any plane view. For a detailed description, refer to the related description of step S11 corresponding to the above embodiment, and the detailed description is omitted here.
S32, in response to the area drawing operation on the drawing plane, different types of area boundary lines are obtained. For a detailed description, refer to the related description of step S12 corresponding to the above embodiment, and the detailed description is omitted here.
And S33, obtaining different types of area objects based on the closed state of the area boundary lines of different types. For a detailed description, refer to the related description of step S13 corresponding to the above embodiment, and the detailed description is omitted here.
S34, in response to the edit instruction for the area object, generating an annotation object.
The annotation object is a textual annotation placed on the area object. After obtaining the area object, the user may edit the annotation object on the area object, and accordingly, the electronic device may obtain the annotation object corresponding to the area object of the current type in response to the edit instruction for the area object. For example, the user may double-click on the area object, and accordingly, the electronic device may respond to the double-click operation and pop up a text box. The user may edit the text content in the text box, and accordingly, the electronic device may obtain the annotation object corresponding to the area object in response to the editing instruction.
S35, in response to the placement instruction for the annotation object, the annotation object is placed in the area object.
After obtaining the annotation object, the user may place the annotation object in a blank location in the area object. Accordingly, the electronic device displays the annotation object in a blank position of the area object in response to the placement instruction of the annotation object, as shown in fig. 7, so as to avoid the annotation object from being occluded.
According to the area object generation method provided by the embodiment, the annotation object is generated in response to the editing instruction of the area object, and the annotation object is placed on the area object in response to the placement instruction of the annotation object, so that the annotation object can be directly generated on the area object, and the generation convenience of the annotation object is improved.
As an optional implementation manner of the present application, after obtaining the annotation object, the method for generating the area object may further include: in response to the adjustment instruction of the annotation object, the annotation object and/or the placement position of the annotation object on the area object is updated.
When the area object changes, the placement position of the annotation object and/or the content of the annotation object may need to be adjusted. At this time, the user may adjust the placement position of the annotation object and/or the content of the annotation object, and the electronic device may update the placement position of the annotation object on the area object and/or update the text content of the annotation object in response to the adjustment instruction for the annotation object. For example, the user may click on the annotation object to obtain an outer border of the annotation object, drag the outer border to modify the drop position of the annotation object, and accordingly, the electronic device may update the drop position of the annotation object on the area object in response to a drag instruction of the outer border of the annotation object. When the user needs to modify the text content of the annotation object, the user can double click on the annotation object to re-input the text content, and accordingly, the electronic equipment can respond to the modification instruction of the annotation object and update the text content of the annotation object.
According to the area object generating method provided by the embodiment, when the annotation object needs to be adjusted, the annotation object and/or the placement position of the annotation object on the area object is updated by responding to the adjusting instruction of the annotation object, so that the convenient adjustment of the annotation object is ensured, and the design time of the annotation object is saved.
As an optional implementation manner of the present application, the method for generating an area object may further include:
s36, obtaining the updating parameters of the area object, wherein the updating parameters comprise attribute parameters and/or adjusting pinch points.
The updating parameters are used for updating the area object, and the updating parameters of the area object can comprise attribute parameters and/or adjusting pinch points, wherein the attribute parameters are basic attribute parameter values of the area object, including the type, the area boundary line style, the area filling and the like of the area object; the adjusting pinch point is a draggable pinch point on the area boundary line.
After the area object is created, if the user needs to adjust the created area object, the user may modify the attribute parameters of the area object and/or adjust the pinch point to complete the update of the area object. Specifically, the electronic device may acquire the update parameter of the area object in response to a display instruction for the update parameter. For example, the electronic device may display the update parameter corresponding to the area object in response to a user clicking operation on the area object.
S37, updating the area object in response to the modification instruction for the update parameter.
The user can modify the update parameters of the area object, and accordingly, the electronic device can respond to the modification instruction of the update parameters to modify the update parameters so as to update the basic properties of the area, the filling style and the like of the area object in real time. For the attribute parameters, the electronic device may update the parameter values in the attribute parameters in response to a modification instruction of the attribute parameters by a user, and update the area object based on the modified attribute parameters. For adjusting the pinch point, the electronic device may respond to a dragging instruction for adjusting the pinch point to adjust an area boundary line of the area object to realize real-time update of the area object; of course, the electronic device may also switch to the editing mode in response to a mode switching operation, as shown in fig. 8, and edit the area boundary line in the editing mode to update the area object.
In the method for generating an area object provided by this embodiment, for a created area object, the area boundary line is flexibly adjusted by modifying an adjustment pinch point of the area object, so as to update the area object in real time; by modifying the attribute parameters of the area objects, the attributes of the area objects can be adjusted to update the area objects in real time, thereby realizing the flexible adjustment of the area objects.
As an optional implementation manner of the present application, the method for generating an area object may further include:
and S38, responding to the statistical instruction of the area object, and acquiring the statistical parameters of the area object.
The statistical parameters are used for counting the area objects of each type, and may include area types, area sizes, remarks, and the like, and the statistical parameters are not limited herein, and those skilled in the art may determine the statistical parameters according to the analysis requirements. When the creation of all types of area objects is completed, the user may perform area statistics on the area objects of each type that the user creates, and accordingly, the electronic device may respond to the statistical instruction and present the statistical parameters of the area objects to the user, so that the user may determine the required parameters according to actual needs, as shown in fig. 5.
And S39, obtaining a statistical table containing different types of area objects based on the statistical parameters of the area objects.
The electronic equipment carries out statistical analysis on the area objects of all types according to the obtained statistical parameters to obtain analysis data of the area objects, and generates a statistical table of the area objects based on the analysis data. For example, the electronic device may obtain area values for various types of area objects and generate a statistical table containing the area values for various types of area objects, as shown in fig. 6.
In the method for generating area objects provided in this embodiment, after obtaining area objects of different types, a statistical parameter of the area object is obtained by responding to a statistical instruction for the area object, and a statistical table including the area objects of different types is obtained based on the statistical parameter of the area object. Therefore, the areas of different types of area objects can be automatically generated in the same statistical form, the statistical efficiency of the area objects is improved, the area data of different types can be expressed more visually, and the design and analysis of the area objects are facilitated.
In this embodiment, a device for generating an area object is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides an area object generating apparatus, as shown in fig. 9, including:
a first response module 41, configured to, in response to a creation instruction for the area object, obtain a drawing plane of the area object, where the creation instruction is independent of any plane view. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
A second response module 42 for obtaining different types of area boundary lines in response to area drawing operations on the drawing plane. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And a generating module 43, configured to obtain different types of area objects based on the closed states of the different types of area boundary lines. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The area object generating means in this embodiment is in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-described functions.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which includes the area object generating apparatus shown in fig. 9.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, as shown in fig. 10, the electronic device may include: at least one processor 501, such as a CPU (Central Processing Unit), at least one communication interface 503, memory 504, and at least one communication bus 502. Wherein a communication bus 502 is used to enable connective communication between these components. The communication interface 503 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 503 may also include a standard wired interface and a standard wireless interface. The Memory 504 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 504 may optionally be at least one storage device located remotely from the processor 501. Wherein the processor 501 may be in connection with the apparatus described in fig. 9, an application program is stored in the memory 504, and the processor 501 calls the program code stored in the memory 504 for performing any of the above-mentioned method steps.
The communication bus 502 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 502 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
The memory 504 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 504 may also comprise a combination of the above types of memory.
The processor 501 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of CPU and NP.
The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 504 is also used to store program instructions. The processor 501 may call a program instruction to implement the area object generation method as shown in the embodiments of fig. 1 to 3 of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the area object generation method in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.
Claims (11)
1. A method for generating an area object, comprising:
responding to a creating instruction of the area object, and obtaining a drawing plane of the area object, wherein the creating instruction is independent of any plane view;
obtaining different types of area boundary lines in response to area drawing operations on the drawing plane;
and obtaining the area objects of different types based on the closed state of the area boundary lines of different types.
2. The method of claim 1, wherein said deriving different types of area boundary lines in response to area drawing operations on said drawing plane comprises:
responding to the selection operation of the drawing mode, and determining the target drawing mode of the area object of the current type;
responding to the area drawing operation on the drawing plane in the target drawing mode to obtain an area boundary drawing point of the current type;
and generating the area boundary line of the current type based on the number of the effective points of the area boundary drawing points of the current type.
3. The method of claim 2, wherein the generating the area boundary line of the current type based on the number of significant points of the area boundary drawing point of the current type comprises:
when the number of the effective points is 1, judging that the area boundary line is not generated, and deleting the effective points;
when the number of the effective points is 2, generating an unclosed area boundary line, and displaying the effective points;
and when the number of the effective points is more than 2, closing the first effective point and the last effective point to generate a closed area boundary line.
4. The method of claim 1, wherein deriving the different types of area objects based on the closed states of the different types of area boundary lines comprises:
judging whether the area boundary line of the current type is closed or not;
and when the area boundary line is not closed, responding to the closing operation of the area boundary line, generating a closed area boundary line, and obtaining an area object corresponding to the area boundary line of the current type.
5. The method of claim 1, further comprising, after said obtaining different types of said area objects:
generating an annotation object in response to an editing instruction for the area object;
in response to a placement instruction for the annotation object, placing the annotation object in the area object.
6. The method of claim 5, further comprising:
updating the annotation object and/or the placement position of the annotation object on the area object in response to the adjustment instruction for the annotation object.
7. The method of claim 1, further comprising, after said obtaining different types of said area objects:
obtaining updating parameters of the area object, wherein the updating parameters comprise attribute parameters and/or adjusting pinch points;
updating the area object in response to a modification instruction for the update parameter.
8. The method according to any one of claims 1-7, further comprising, after said obtaining different types of said area objects:
responding to a statistical instruction of the area object, and acquiring a statistical parameter of the area object;
and obtaining a statistical table containing the area objects of different types based on the statistical parameters of the area objects.
9. An area object generating apparatus, comprising:
the first response module is used for responding to a creating instruction of the area object to obtain a drawing plane of the area object, wherein the creating instruction is independent of any plane view;
the second response module is used for responding to the area drawing operation on the drawing plane to obtain different types of area boundary lines;
and the generating module is used for obtaining the area objects of different types based on the closed state of the area boundary lines of different types.
10. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of generating an area object according to any one of claims 1 to 8.
11. A computer-readable storage medium storing computer instructions for causing a computer to perform the area object generating method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110719799.XA CN113436330A (en) | 2021-06-28 | 2021-06-28 | Area object generation method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110719799.XA CN113436330A (en) | 2021-06-28 | 2021-06-28 | Area object generation method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113436330A true CN113436330A (en) | 2021-09-24 |
Family
ID=77755120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110719799.XA Pending CN113436330A (en) | 2021-06-28 | 2021-06-28 | Area object generation method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113436330A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114139268A (en) * | 2021-12-10 | 2022-03-04 | 深圳须弥云图空间科技有限公司 | Method and device for determining area contour, electronic equipment and medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6628285B1 (en) * | 1999-02-11 | 2003-09-30 | Autodesk, Inc. | Intelligent drawing redlining and commenting feature |
JP2010117900A (en) * | 2008-11-13 | 2010-05-27 | Namco Bandai Games Inc | Program, information storage medium, polygon model creation device, and polygon model creation method |
US20130262038A1 (en) * | 2012-03-27 | 2013-10-03 | IntegrityWare, Inc. | Methods and Systems for Generating and Editing Polygonal Data |
CN107977495A (en) * | 2017-11-21 | 2018-05-01 | 王征 | A kind of system and method for the wall polygon rendering based on operation point probe |
CN108446710A (en) * | 2018-01-31 | 2018-08-24 | 高睿鹏 | Indoor plane figure fast reconstructing method and reconstructing system |
CN110598331A (en) * | 2019-09-17 | 2019-12-20 | 广联达科技股份有限公司 | Method and device for modeling roof |
CN111145293A (en) * | 2019-12-18 | 2020-05-12 | 北京城市网邻信息技术有限公司 | Method and device for reconstructing outline of house-type graph and electronic equipment |
CN111324922A (en) * | 2020-01-23 | 2020-06-23 | 久瓴(上海)智能科技有限公司 | Method and device for generating floor tile model, computer equipment and storage medium |
CN111782111A (en) * | 2019-04-04 | 2020-10-16 | 广州高新兴机器人有限公司 | Method for drawing polygon on touch screen |
CN112529979A (en) * | 2020-12-08 | 2021-03-19 | 四川蓉信开工程设计有限公司 | Method for rapidly drawing fire-proof subareas of revit platform |
WO2021063983A1 (en) * | 2019-09-30 | 2021-04-08 | Pre Framing Corp. | Computer-aided design methods and systems |
-
2021
- 2021-06-28 CN CN202110719799.XA patent/CN113436330A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6628285B1 (en) * | 1999-02-11 | 2003-09-30 | Autodesk, Inc. | Intelligent drawing redlining and commenting feature |
JP2010117900A (en) * | 2008-11-13 | 2010-05-27 | Namco Bandai Games Inc | Program, information storage medium, polygon model creation device, and polygon model creation method |
US20130262038A1 (en) * | 2012-03-27 | 2013-10-03 | IntegrityWare, Inc. | Methods and Systems for Generating and Editing Polygonal Data |
CN107977495A (en) * | 2017-11-21 | 2018-05-01 | 王征 | A kind of system and method for the wall polygon rendering based on operation point probe |
CN108446710A (en) * | 2018-01-31 | 2018-08-24 | 高睿鹏 | Indoor plane figure fast reconstructing method and reconstructing system |
CN111782111A (en) * | 2019-04-04 | 2020-10-16 | 广州高新兴机器人有限公司 | Method for drawing polygon on touch screen |
CN110598331A (en) * | 2019-09-17 | 2019-12-20 | 广联达科技股份有限公司 | Method and device for modeling roof |
WO2021063983A1 (en) * | 2019-09-30 | 2021-04-08 | Pre Framing Corp. | Computer-aided design methods and systems |
CN111145293A (en) * | 2019-12-18 | 2020-05-12 | 北京城市网邻信息技术有限公司 | Method and device for reconstructing outline of house-type graph and electronic equipment |
CN111324922A (en) * | 2020-01-23 | 2020-06-23 | 久瓴(上海)智能科技有限公司 | Method and device for generating floor tile model, computer equipment and storage medium |
CN112529979A (en) * | 2020-12-08 | 2021-03-19 | 四川蓉信开工程设计有限公司 | Method for rapidly drawing fire-proof subareas of revit platform |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114139268A (en) * | 2021-12-10 | 2022-03-04 | 深圳须弥云图空间科技有限公司 | Method and device for determining area contour, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109933322B (en) | Page editing method and device and computer readable storage medium | |
US9141746B1 (en) | System and method to drag instance master physical shell | |
CN106027785A (en) | Voice processing method and terminal | |
CN109324722B (en) | Method, device and equipment for adding nodes of thought guide graph and storage medium | |
CN113553453B (en) | Two-dimensional drawing labeling method and device and electronic equipment | |
CN113420355B (en) | Floor processing method and device and electronic equipment | |
CN111581208A (en) | Data visualization display method and device | |
CN112130951A (en) | AI-based RPA flow generation end flow generation method, equipment and storage medium | |
CN113407168A (en) | Editing method and device of page elements, storage medium and terminal | |
CN111931708A (en) | Form generation method and device | |
CN113436330A (en) | Area object generation method and device, electronic equipment and readable storage medium | |
CN111428430A (en) | Circuit device information acquisition method, device, equipment and medium in circuit design | |
CN112799768A (en) | Method and device for realizing horse race lamp and electronic equipment | |
CN115859412B (en) | Curtain wall rapid generation method, device and equipment based on BIM | |
CN116107557A (en) | Page visual development method and device, storage medium and electronic equipment | |
TW201931178A (en) | Impedance calculation method for circuit layout pattern and layout detection system | |
CN114186228A (en) | Attack event visualization method and device and related equipment | |
CN117954002B (en) | Method, device and medium for displaying molecular pair relation | |
CN116778080B (en) | Three-dimensional modeling method, three-dimensional modeling device, computer equipment and storage medium | |
CN116860222B (en) | Algorithm flow editing method and related device | |
CN112507671B (en) | Method, apparatus, and readable medium for adjusting text distance | |
CN113325977B (en) | Dynamic configuration and map display method for energy equipment relationship | |
WO2021212386A1 (en) | Method and apparatus for creating custom report form, electronic device and storage medium | |
CN117632874A (en) | Automatic drawing storage method, device, equipment and medium for CAD software | |
JP2537976B2 (en) | Circuit diagram automatic generation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |