CN114565737A - Drawing display method, apparatus, device, storage medium, and program - Google Patents

Drawing display method, apparatus, device, storage medium, and program Download PDF

Info

Publication number
CN114565737A
CN114565737A CN202210168798.5A CN202210168798A CN114565737A CN 114565737 A CN114565737 A CN 114565737A CN 202210168798 A CN202210168798 A CN 202210168798A CN 114565737 A CN114565737 A CN 114565737A
Authority
CN
China
Prior art keywords
target
display
grid
determining
grids
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
Application number
CN202210168798.5A
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210168798.5A priority Critical patent/CN114565737A/en
Publication of CN114565737A publication Critical patent/CN114565737A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • G06T17/205Re-meshing
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Computational Mathematics (AREA)
  • Structural Engineering (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Civil Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a drawing display method, a drawing display device, equipment, a storage medium and a program, wherein terminal equipment responds to browsing operation input by a user on a building drawing, determines a target display proportion and a target visual field range corresponding to the browsing operation, and determines at least one target grid to be displayed in the target visual field range in a plurality of grids of the building drawing indicated by the target display proportion; the detail degrees of the drawing contents corresponding to the grids under different display scales are different; and rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in the screen. By the method, when the building drawing is displayed by the terminal equipment, the drawing content of the complete building drawing does not need to be rendered, and the drawing content corresponding to at least one target grid to be displayed only needs to be rendered, so that the rendering calculation amount of the terminal equipment is reduced, and the problem of page blockage is avoided.

Description

Drawing display method, apparatus, device, storage medium, and program
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program for displaying a drawing.
Background
The drawings are pictorial representations of engineering practices marked with detailed information such as dimensions, orientations, technical parameters, and the like. Drawings may be used in many areas, for example, construction drawings are often used in the construction field.
At present, electronic versions of construction drawings are commonly used. The user can browse or view the construction drawing through the terminal equipment. Specifically, a user can input browsing operation to the building drawing, and the terminal device renders the drawing content of the complete building drawing according to the browsing operation so as to display the building drawing in the screen.
In practical application, when the terminal device displays the building drawing, the calculation amount for rendering the drawing content is large, and the situation of page blockage often occurs.
Disclosure of Invention
The application provides a drawing display method, a drawing display device, drawing display equipment, a storage medium and a drawing display program, which are used for reducing the rendering calculation amount of terminal equipment in the process of displaying a building drawing and avoiding the problem of page blockage.
In a first aspect, the present application provides a drawing display method, including:
in response to the detection of browsing operation input to the construction drawing by a user, determining a target display scale and a target view range corresponding to the browsing operation;
determining at least one target grid to be displayed in the target view range in a plurality of grids of the construction drawing indicated by the target display scale; the detail degrees of the drawing contents corresponding to the grids under different display proportions are different;
rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen.
In one possible implementation, determining at least one target grid to be displayed in the target view range among the multiple grids of the construction drawing indicated by the target display scale includes:
determining a target layer corresponding to the target display proportion in the plurality of layers of the building drawing; the layers corresponding to different display proportions are different, and the detail degrees of the drawing contents corresponding to different layers are different;
and determining at least one target grid to be displayed in the target view range in the multiple grids of the target layer.
In a possible implementation manner, before determining at least one target grid to be displayed in the target view range among the multiple grids of the target layer, the method further includes:
carrying out grid division on the target layer by adopting a grid proportion corresponding to the target display proportion to obtain a plurality of grids of the target layer; wherein, the grid scales corresponding to different display scales are different.
In a possible implementation manner, the browsing operation is used for updating the display scale of the construction drawing; in response to the detection of the browsing operation input to the construction drawing by the user, determining a target display scale and a target view range corresponding to the browsing operation, including:
in response to the detection of browsing operation input to the construction drawing by a user, determining a display scale updating amount corresponding to the browsing operation;
determining the target display proportion according to the current display proportion of the building drawing and the display proportion updating amount;
and determining the target view range according to the current view range of the building drawing and the display scale updating amount.
In a possible implementation manner, the browsing operation is used for updating the view range of the building drawing; in response to the detection of the browsing operation input to the construction drawing by the user, determining a target display scale and a target view range corresponding to the browsing operation, including:
in response to the detection of browsing operation input to the construction drawing by a user, determining a view range updating amount corresponding to the browsing operation;
determining the target view range according to the current view range of the building drawing and the view range updating amount;
and determining the current display scale of the building drawing as the target display scale.
In a possible implementation, the method further includes:
in response to the fact that the editing operation input to the construction drawing by a user is detected, determining target drawing content edited by the editing operation and updating information of the target drawing content;
determining a grid where the target drawing content is located;
and updating the building drawing according to the grid where the target drawing content is located and the updating information of the target drawing content.
In a second aspect, the present application provides a drawing display apparatus, comprising:
the first determination module is used for responding to browsing operation input to the building drawing by a user and determining a target display scale and a target view range corresponding to the browsing operation;
the second determination module is used for determining at least one target grid to be displayed in the target view range in the plurality of grids of the building drawing indicated by the target display scale; the detail degrees of the drawing contents corresponding to the grids under different display scales are different;
and the rendering module is used for rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen.
In a third aspect, the present application provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program that is executed by the at least one processor to implement the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of the first aspect.
According to the drawing display method, the drawing display device, the terminal device, the storage medium and the program, the terminal device determines a target display proportion and a target visual field range corresponding to browsing operation in response to the browsing operation input by a user on a building drawing, and determines at least one target grid to be displayed in the target visual field range in a plurality of grids of the building drawing indicated by the target display proportion; the detail degrees of the drawing contents corresponding to the grids under different display proportions are different; and rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in the screen. By the method, when the building drawing is displayed by the terminal equipment, the drawing content of the complete building drawing does not need to be rendered, and the drawing content corresponding to at least one target grid to be displayed only needs to be rendered, so that the rendering calculation amount of the terminal equipment is reduced, and the problem of page blockage is avoided. Furthermore, because the detail degrees of the drawing contents corresponding to the grids are different under different display proportions, on the premise of meeting the browsing requirements of users under different display proportions, when the detail degree of the drawing contents corresponding to the grids is lower, the rendering calculation amount of the terminal equipment can be further reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a gridding result of an architectural drawing provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a drawing display method according to an embodiment of the present application;
FIG. 3A is a schematic view of a set of construction drawing display interfaces provided in an embodiment of the present application;
FIG. 3B is a schematic view of another set of construction drawing display interfaces provided in the embodiments of the present application;
FIG. 3C is a schematic view of yet another set of construction drawing display interfaces provided in the embodiments of the present application;
FIG. 3D is a schematic diagram of yet another set of construction drawing display interfaces provided in an embodiment of the present application;
FIG. 4A is a schematic diagram of yet another set of construction drawing display interfaces provided in an embodiment of the present application;
FIG. 4B is a schematic diagram of yet another set of construction drawing display interfaces provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a gridding and drawing display process of an architectural drawing according to an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram of another drawing display method provided in the embodiments of the present application;
FIG. 7 is a schematic diagram of another process for gridding and displaying construction drawing provided by the embodiment of the present application;
FIG. 8 is a schematic flowchart of another drawing display method provided in the embodiments of the present application;
fig. 9 is a schematic diagram of an editing scene of a construction drawing provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a drawing display device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application can be applied to scenes in which the terminal equipment displays the construction drawings. The terminal device may be an electronic device with a display function, including but not limited to: personal computer, notebook computer, panel computer, cell-phone, vehicle terminal, wisdom screen etc..
In one example scenario, the construction drawing may be stored in a server. The server may be a server provided with functions of building drawing storage, building drawing processing, and the like. The server can be a common physical server or a cloud server. When a user needs to browse or check the building drawing through the terminal device, the terminal device can acquire the building drawing from the server through interaction with the server and display the building drawing.
In another example scenario, the construction drawing may be stored in a local storage space of the terminal device. When a user needs to browse or check the building drawing through the terminal equipment, the terminal equipment can directly acquire the building drawing from the local storage space and display the building drawing.
Generally, when a terminal device displays a construction drawing, the drawing content of the complete construction drawing needs to be rendered. Specifically, during browsing the building drawing, the user may input a browsing operation, such as a zoom operation, a pan operation, and the like, to the building drawing. After detecting the browsing operation input by the user, the terminal device needs to render the drawing content of the complete architectural drawing according to the browsing operation of the user, so that the drawing content required to be browsed by the user is displayed in a screen of the terminal device.
In practical application, the data volume of the building drawing is large, and by adopting the drawing display mode, the calculation amount of rendering the building drawing by the terminal equipment is large, and the situation of page blockage often occurs.
In order to solve the technical problem, in the technical scheme provided by the application, the construction drawing can be subjected to gridding processing, that is, the construction drawing is divided into a plurality of grids. After the browsing operation input by the user on the building drawing is detected, at least one target grid to be displayed can be determined in the multiple grids of the building drawing according to the browsing operation input by the user. And then, rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen.
For example, fig. 1 is a schematic diagram of a gridding result of an architectural drawing provided in an embodiment of the present application. As shown in fig. 1, it is assumed that the construction drawing is divided into 64 grids, grid 1 to grid 64, respectively. The terminal device detects browsing operation input by a user on the construction drawing, and determines the drawing contents corresponding to 4 grids of grid 12, grid 13, grid 21 and grid 22 to be displayed according to the browsing operation. In this case, the terminal device may render only the drawing contents corresponding to the 4 grids 12, 13, 21, and 22, so as to display the drawing contents corresponding to the 4 grids in the screen, without rendering the drawing contents of the complete construction drawing.
Therefore, the gridding processing is carried out on the building drawing, when the terminal equipment displays the building drawing, the drawing content of the complete building drawing is not required to be rendered, and the drawing content corresponding to at least one target grid to be displayed in the building drawing is only required to be rendered, so that the calculation amount of the terminal equipment in the drawing display process can be reduced, and the problem of page blockage is avoided.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic flowchart of a drawing display method according to an embodiment of the present application. The method of the present embodiment may be performed by a terminal device. As shown in fig. 2, the method of the present embodiment includes:
s201: and in response to the detected browsing operation input to the construction drawing by the user, determining a target display scale and a target view range corresponding to the browsing operation.
The browsing operation refers to an operation input by a user to view a certain part of the drawing contents of the construction drawing in the process of browsing or viewing the construction drawing through the terminal device. The embodiment of the present application does not limit the specific operation manner of the browsing operation. In some examples, the browsing operation may be an operation input by a user through a display screen of the terminal device, for example: click operation, double click operation, drag operation, single-finger slide operation, double-finger slide operation, and the like. In other examples, the browsing operation may also be an operation input by the user through a physical key/virtual key of the terminal device. In still other examples, the browsing operation may also be an operation input by the user through a voice manner.
Generally, the browsing operation can represent browsing requirements of a user on the construction drawing. In the embodiment of the application, on one hand, the browsing operation can represent the display scale of the building drawing, that is, at which display scale the user needs to browse the building drawing. On the other hand, the browsing operation can represent the view range of the building drawing, that is, what part of the drawing content of the building drawing needs to be browsed by the user.
The display scale may also be referred to as a zoom scale, which refers to a ratio of a display size of the construction drawing to an actual size. For example:
if the display scale is 100%, it indicates that the building drawing does not need to be zoomed, and the display is performed according to the actual size of the building drawing. For example, if the actual size of the construction drawing is 100 × 100, the display size of the construction drawing is also 100 × 100.
Assuming that the display ratio is 50%, it means that the ratio of the display size of the construction drawing to the actual size is 50%. For example, if the actual size of the construction drawing is 100 × 100, the display size of the construction drawing is 50 × 50.
Assuming that the display ratio is 200%, the ratio of the display size of the construction drawing to the actual size is 200%. For example, if the actual size of the construction drawing is 100 × 100, the display size of the construction drawing is 200 × 200.
The field of view may also be referred to as a display range, which refers to an area of the construction drawing that needs to be shown in the screen of the terminal device. It should be understood that the field of view may correspond to the entire area of the construction drawing or may correspond to a partial area of the construction drawing.
It should be understood that, generally, before and after the user inputs the browsing operation, the display scale of the construction drawing is different, and/or the field of view of the construction drawing is different. In the embodiment of the application, before the user inputs the browsing operation, the display scale of the building drawing is called as the current display scale, and the view range of the building drawing is called as the current view range. After the user inputs browsing operation, the display scale of the building drawing is called a target display scale, and the visual field range of the building drawing is called a target visual field range.
After the terminal device detects the browsing operation input by the user on the building drawing, the target display scale and the target view range corresponding to the browsing operation can be determined. In other words, the target display scale and the target view range of the construction drawing can be determined according to the browsing operation.
In one possible application scenario, the browsing operation is used to update the display scale of the construction drawing. That is, the browsing operation may be a zoom operation. The browsing operation may be any one of the following: double-click operation, double-finger sliding operation, zoom-out control clicking operation, zoom-in control clicking operation and the like. Several ways of the browsing operation are illustrated below with reference to fig. 3A to 3D.
Fig. 3A is a schematic diagram of a group of display interfaces of construction drawings provided in an embodiment of the present application. Referring to fig. 3A, the user may enlarge and display the construction drawing through a double-click operation in the interface 301. After the double-click operation, the display interface of the building drawing is as shown in an interface 302, and the display scale of the building drawing is increased.
Fig. 3B is a schematic diagram of another set of display interfaces of construction drawings provided in the embodiment of the present application. Referring to fig. 3B, the user may zoom the construction drawing by sliding two fingers (e.g., thumb and index finger). For example, in the interface 303, the two fingers slide back to show the enlarged display of the construction drawing, that is, the display scale of the construction drawing is increased. After the user inputs the operation of sliding the two fingers back to back, the display interface of the construction drawing is shown as an interface 304. For another example, in the interface 305, the two fingers slide toward each other to show the reduction of the display scale of the construction drawing, that is, the reduction of the display scale of the construction drawing. After the user inputs the two-finger opposite sliding operation, the display interface of the construction drawing is shown as the interface 306.
Fig. 3C is a schematic diagram of another set of display interfaces of construction drawings provided in the embodiment of the present application. Referring to fig. 3C, the display interface of the building drawing may include a zoom control, and the user may further click the zoom control to zoom and display the building drawing. For example, in the interface 307, clicking the zoom-in control (i.e., "+" control) indicates that the building drawing is displayed in a zoomed-in manner, i.e., the display scale of the building drawing is increased. After the user clicks the zoom-in control, the display interface of the construction drawing is shown as an interface 308. For another example, in the interface 309, clicking a zoom-out control (i.e., "-" control) indicates that the display of the building drawing is zoomed out, i.e., the display scale of the building drawing is reduced. After the user clicks the zoom-out control, the display interface of the construction drawing is shown as an interface 310.
Fig. 3D is a schematic diagram of another set of display interfaces of construction drawings provided in the embodiment of the present application. Referring to fig. 3D, the display interface of the building drawing may further include a selection control, and the user may select a display scale through the selection control to zoom and display the building drawing. For example, in the interface 311, assuming that the current display scale of the building drawing is 100%, the user changes the display scale to 120% through the selection control, which means that the building drawing is enlarged to 120% for display. After the user changes the display scale to 120%, the display interface of the construction drawing is shown as an interface 312.
For the browsing operations shown in fig. 3A to 3C, the target display scale and the target view range corresponding to the browsing operations may be determined as follows:
(1) and in response to the detection of the browsing operation input to the construction drawing by the user, determining the updating amount of the display scale corresponding to the browsing operation.
The display scale updating amount is used for representing the change situation of the display scale of the building drawing. The display scale update amount may be a positive value or a negative value. If the value is positive, the display scale of the construction drawing needs to be increased. If the value is negative, the display scale of the building drawing needs to be reduced.
(2) And determining the target display scale according to the current display scale of the building drawing and the display scale updating amount.
The following is an example for different browsing operations.
For example, in the case that the browsing operation is a double-click operation (for example, the interface 301), it may be specified in advance that: each double click is correspondingly increased by a certain display proportion. For example, a display scale of 10% may be increased per double tap. Assuming that the current display ratio of the construction drawing is 100%, if the double-click operation input by the user is detected, the display ratio update amount may be determined to be + 10%, and the target display ratio may be determined to be 100% + 10% + 110%.
For example, in the case that the browsing operation is a two-finger sliding operation (e.g., the interface 303 and the interface 305), the following may be specified in advance: the two fingers slide oppositely for a unit distance to correspondingly reduce a certain display proportion, and the two fingers slide backwards for a unit distance to correspondingly increase a certain display proportion. For example, sliding the fingers one unit distance toward each other corresponds to a 10% decrease in display scale, and sliding the fingers back toward each other corresponds to a 10% increase in display scale. Therefore, the updating amount of the display scale can be determined according to the sliding direction and the sliding distance of the double fingers. For example, assuming that the current display proportion of the construction drawing is 100%, if it is detected that the two fingers slide in opposite directions for 3 unit distances, determining that the update amount of the display proportion is-30%, and further determining that the target display proportion is 100% -30% — 70%; when the double fingers are detected to slide back by 4 unit distances, the display ratio update amount is determined to be + 40%, and the target display ratio is further determined to be 100% + 40% + 140%.
For example, for the case that the browsing operation is a zoom control clicking operation (e.g., interface 307, interface 309), it may be specified in advance: and the control is correspondingly reduced in a certain display proportion when the zoom-out control is clicked once, and the control is correspondingly increased in a certain display proportion when the zoom-in control is clicked once. For example, a zoom-out control may correspond to a display scale that decreases by 10% per click, and a zoom-in control may correspond to a display scale that increases by 10% per click. Assuming that the current display proportion of the building drawing is 100%, if the click operation of the user on the zoom-out control is detected, the update amount of the display proportion can be determined to be-10%, and then the target display proportion is determined to be 100% -10% — 90%; if the user's click operation on the zoom-in control is detected, the display ratio update amount may be determined to be + 10%, and the target display ratio may be determined to be 100% + 10% ═ 110%.
(3) And determining the target view range according to the current view range of the building drawing and the display scale updating amount.
That is, the current view range of the construction drawing may be updated according to the display scale update amount to obtain the target view range. It should be understood that if the display scale update amount indicates an increase in the display scale (e.g., an increase in the display scale from 100% to 130%), the target view range is smaller than the current view range; if the display scale update amount indicates a decrease in the display scale (e.g., a decrease in the display scale from 130% to 100%), the target visual field range is larger than the current visual field range. Alternatively, the center point of the current view range and the center point of the target view range may be the same.
For the browsing operation shown in fig. 3D, the display scale selected by the user may be directly determined as the target display scale. And determining the display scale updating amount of the building drawing according to the current display scale and the target display scale of the building drawing, and further determining the target view range according to the current view range and the display scale updating amount of the building drawing.
In another possible application scenario, the browsing operation is used to update the field of view of the construction drawing. That is, the browsing operation is a panning operation. Illustratively, the browsing operation may be any one of the following: single-finger sliding operation, clicking + dragging operation, translation control clicking operation and the like. Several ways of browsing operations are illustrated below in conjunction with fig. 4A and 4B.
Fig. 4A is a schematic view of another set of display interfaces of construction drawings provided in the embodiment of the present application. Referring to fig. 4A, in an interface 401, the construction drawing may be translated by a single finger sliding operation. After the user inputs the single finger sliding operation, the display interface of the construction drawing is shown as an interface 402, and the visual field range of the construction drawing is changed. It should be understood that the click + drag operation is similar to the single finger slide operation and is not illustrated here.
Fig. 4B is a schematic diagram of another set of display interfaces of construction drawings provided in the embodiment of the present application. Referring to fig. 4B, a translation control (an arrow control in four directions, i.e., up, down, left, and right) may be included in the display interface of the building drawing. The user can translate the building drawing by clicking the translation control. Illustratively, clicking the right arrow indicates translating the building drawing to the right, clicking the left arrow indicates translating the building drawing to the left, clicking the up arrow indicates translating the building drawing upwards, and clicking the down arrow indicates translating the building drawing downwards. For example, if the user clicks the right arrow in the interface 403, the display interface of the construction drawing is shown as an interface 404, and the visual field range of the construction drawing changes.
For the browsing operation, the target display scale and the target view range corresponding to the browsing operation may be determined as follows:
(1) and in response to the detection of the browsing operation input to the construction drawing by the user, determining the updating amount of the view range corresponding to the browsing operation.
And the updating amount of the view field range is used for representing the translation direction and the translation distance of the building drawing. Alternatively, the field of view update amount may be expressed by using the translation direction and the translation distance of a preset point (e.g., a center point) in the current field of view.
(2) And determining the target view range according to the current view range of the building drawing and the update amount of the view range.
Illustratively, according to the translation direction and the translation distance indicated by the updating amount of the visual field range, the current visual field range is subjected to translation processing to obtain the target visual field range.
(3) And determining the current display scale of the building drawing as the target display scale.
It should be understood that the display scale of the construction drawing does not change for the panning operation, and thus the current display scale of the construction drawing may be determined as the target display scale.
In some possible application scenarios, the browsing operation is used to update both the display scale of the building drawing and the view range of the building drawing, and the target display scale and the target view range corresponding to the browsing operation may be determined as follows:
(1) and in response to the detection of the browsing operation input to the construction drawing by the user, determining a display scale updating amount and a view range updating amount corresponding to the browsing operation.
(2) And determining the target display scale according to the current display scale of the building drawing and the display scale updating amount.
(3) And determining the target view range according to the current view range of the building drawing and the update amount of the view range.
It should be understood that the application scenario is equivalent to combining the two scenarios, and the implementation manner is similar and will not be described in detail here.
In yet another possible application scenario, a browsing operation is used to open the construction drawing. In this case, in response to detection of a browsing operation input by the user on the construction drawing, the preset display scale may be determined as the target display scale, and the preset visual field range may be determined as the target visual field range.
The preset display proportion may be a default display proportion of a previously specified construction drawing, for example, 100%. Or, the preset display scale may also be a display scale corresponding to the building drawing when the building drawing is closed last time. The preset view range may be a default view range of a building drawing designated in advance, for example, the preset view range may be an area centered on a central point of the building drawing. Or, the preset visual field range can also be the visual field range corresponding to the building drawing when the building drawing is closed for the last time.
S202: determining at least one target grid to be displayed in the target view range in a plurality of grids of the construction drawing indicated by the target display scale; and the detail degrees of the drawing contents corresponding to the grids under different display scales are different.
S203: rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen.
In the embodiment of the application, the construction drawing can be subjected to gridding treatment in advance, namely, the construction drawing is divided into a plurality of grids. For example, the construction drawing may be gridded according to a preset grid proportion. The grid ratio refers to a ratio between a size (e.g., side length, area, etc.) of a grid and a size (e.g., side length, area, etc.) of a construction drawing. The grid may be a square grid or a rectangular grid, which is not limited in this embodiment.
Further, after the target display scale and the target view range corresponding to the browsing operation of the user are determined, at least one target grid to be displayed can be determined in the multiple grids according to the target display scale and the target view range. And then, rendering the drawing content corresponding to the at least one target grid, so that the drawing content corresponding to the at least one target grid is displayed in a screen. Therefore, the drawing content of the complete building drawing does not need to be rendered, and only at least one target grid to be displayed needs to be rendered, so that the calculation amount of the terminal equipment for rendering the drawing content can be reduced, and the problem of page blockage is avoided.
Furthermore, it is considered that the user generally uses different display scales to display the construction drawing according to browsing requirements in the process of browsing the construction drawing. For example, when a user needs to view the details of the construction drawing, a larger display scale is usually adopted. When a user needs to view the general content of the construction drawing without much attention to the detailed content, a smaller display scale is generally adopted. Therefore, in the embodiment of the application, the number of the grids divided by the building drawing in different display proportions can be different, and the detail degree of the drawing content corresponding to the grids in different display proportions can be different.
Optionally, the larger the display proportion is, the more the number of the grids divided by the construction drawing is, and the higher the detail degree of the drawing content corresponding to the grids is. The smaller the display proportion is, the fewer the number of the grids divided by the construction drawing is, and the lower the detail degree of the drawing content corresponding to the grids is.
The different detail degrees of the drawing contents can be understood as how much detail information is shown on the drawing contents. Taking the house drawing as an example, when the detail degree is low, the user can only know the shape of the house and the position of the door through the house drawing. When the detail degree is higher, the user can not only know the shape of the house and the position of the door through the house drawing, but also know the related information of the door handle and the door texture.
In this embodiment, the corresponding relationship between different display scales and different gridding modes may be preset, and the construction drawing is displayed based on the grids obtained by dividing the construction drawing in different gridding modes at different display scales.
For example, the correspondence between different display scales and different grid scales may be preset. For example, the correspondence between the display scale and the grid scale is shown in table 1.
TABLE 1
Display scale Grid ratio (ratio of grid area to drawing area)
50% 1:1
100% 1:9
150% 1:36
200% 1:144
This is illustrated below with reference to fig. 5.
Fig. 5 is a schematic diagram of a gridding and drawing display process of an architectural drawing according to an embodiment of the present application. In fig. 5, four gridding methods are exemplified.
Referring to fig. 5, in the gridding mode 501, according to the grid ratio 1: 1, carrying out gridding division on the construction drawing, and dividing the construction drawing into 1 grid.
In the gridding mode 502, according to a grid ratio of 1: and 9, carrying out meshing on the construction drawing, and dividing the construction drawing into 9 meshes.
In the gridding approach 503, the ratio of grid scale 1: and 36, carrying out meshing on the construction drawing, and dividing the construction drawing into 36 meshes. Thus, each grid in the gridding mode 502 corresponds to four grids in the gridding mode 503. For example, one grid marked with a shadow in the gridding mode 502 corresponds to four grids marked with a shadow in the gridding mode 503.
In the gridding mode 504, the ratio of grid scale 1: 144, carrying out grid division on the construction drawing, and dividing the construction drawing into 144 grids. Thus, each grid in the gridding pattern 503 corresponds to four grids in the gridding pattern 504. For example, one grid marked with a shadow in the gridding mode 503 corresponds to four grids marked with a shadow in the gridding mode 504.
In the embodiment of the application, the multiple grids of the building drawing indicated by the target display proportion are multiple grids obtained by dividing the grids of the building drawing in a gridding mode corresponding to the target display proportion.
For example, referring to fig. 5, when the target display ratio is 50%, the multiple grids of the building drawing indicated by the target display ratio refer to 1 grid obtained by dividing the building drawing by using a gridding method 501. When the target display proportion is 100%, the multiple grids of the building drawing indicated by the target display proportion refer to 9 grids obtained by dividing the building drawing in the gridding mode 502. When the target display proportion is 150%, the multiple grids of the building drawing indicated by the target display proportion refer to 36 grids obtained by dividing the building drawing in a gridding mode 503. When the target display proportion is 200%, the multiple grids of the building drawing indicated by the target display proportion refer to 144 grids obtained by dividing the building drawing in a gridding mode 504.
Further, after the multiple grids of the building drawing indicated by the target display scale are determined, at least one target grid to be displayed can be determined in the multiple grids of the building drawing according to the target view range. That is, at least one target grid to be displayed within the target view range is determined among the multiple grids of the construction drawing. It should be understood that the at least one target grid corresponds to an area of the construction drawing that needs to be presented in the screen.
Further, after at least one target grid to be displayed in the target view range is determined, the drawing content corresponding to the at least one target grid may be rendered, so that the drawing content corresponding to the at least one target grid is displayed in the screen. It should be noted that, in this embodiment, a rendering manner of the drawing content is not limited.
For example, referring to fig. 5, assuming that the target display proportion is 50%, 1 grid obtained by dividing the construction drawing by the gridding method 501 according to the target view range is determined as the target grid to be displayed. And rendering the target grid by the terminal equipment so as to display the drawing content corresponding to the target grid in a screen. The construction drawing display interface in this case is shown as interface 505.
With reference to fig. 5, assuming that the target display ratio is 100%, at least one target grid to be displayed is determined from 9 grids obtained by dividing the construction drawing in the gridding mode 502 according to the target view range. For example, assuming that the 9 grids are all target grids to be displayed, the terminal device renders the 9 target grids to display drawing contents corresponding to the 9 target grids in the screen. The construction drawing display interface in this case is shown as interface 506.
With reference to fig. 5, assuming that the target display ratio is 150%, according to the target view range, at least one target grid to be displayed is determined from 36 grids obtained by dividing the construction drawing in the gridding manner 503. For example, assuming that 16 target grids to be displayed are determined in the 36 grids, the terminal device renders the 16 target grids to display drawing contents corresponding to the 16 target grids on the screen. The architectural drawing display interface in this case is shown as interface 507.
With reference to fig. 5, assuming that the target display ratio is 200%, at least one target grid to be displayed is determined from 144 grids obtained by dividing the construction drawing in the gridding manner 504 according to the target view range. For example, assuming that 36 target grids to be displayed are determined in the 144 grids, the terminal device renders the 36 target grids to display drawing contents corresponding to the 36 target grids in a screen. The construction drawing display interface in this case is shown as interface 508.
By adopting the gridding mode and the drawing display mode, on one hand, the browsing requirements of users under different display proportions can be met, and on the other hand, under the condition of smaller display proportion, because the detail degree of the drawing content corresponding to the grid is lower, excessive details in the building drawing do not need to be rendered, so that the rendering calculation amount can be further reduced.
It should be noted that, in this embodiment, the execution time of performing the gridding processing on the building drawing is not limited, and the execution time may be executed after the terminal device detects the browsing operation of the user, or may be executed in advance before the terminal device loads the building drawing. It should be understood that, in some possible implementations, the process of gridding the construction drawing may also be performed by the server.
In the drawing display method provided by this embodiment, a terminal device determines a target display scale and a target view range corresponding to a browsing operation in response to detecting the browsing operation input by a user on a building drawing, and determines at least one target grid to be displayed in the target view range from a plurality of grids of the building drawing indicated by the target display scale; the detail degrees of the drawing contents corresponding to the grids under different display proportions are different; rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen. By the method, when the building drawing is displayed by the terminal equipment, the drawing content of the complete building drawing does not need to be rendered, and the drawing content corresponding to at least one target grid to be displayed only needs to be rendered, so that the rendering calculation amount of the terminal equipment is reduced, and the problem of page blockage is avoided. Furthermore, because the detail degrees of the drawing contents corresponding to the grids are different under different display proportions, on the premise of meeting the browsing requirements of users under different display proportions, when the detail degree of the drawing contents corresponding to the grids is lower, the rendering calculation amount of the terminal equipment can be further reduced.
On the basis of the embodiment shown in fig. 2, the technical solution of the present application is described in more detail below with reference to a more specific embodiment.
Fig. 6 is a schematic flowchart of another drawing display method provided in the embodiment of the present application. As shown in fig. 6, the method of the present embodiment includes:
s601: and in response to the detected browsing operation input to the construction drawing by the user, determining a target display scale and a target view range corresponding to the browsing operation.
It should be understood that the implementation manner of S601 is similar to that of S201 in the embodiment shown in fig. 2, and is not described herein again.
S602: determining a target layer corresponding to the target display proportion in the plurality of layers of the building drawing; the layers corresponding to different display proportions are different, and the detail degrees of the drawing contents corresponding to different layers are different.
The difference between this embodiment and the embodiment shown in fig. 2 is that the architectural drawing of this embodiment may include multiple layers, and the detail degree of the drawing content corresponding to different layers is different. Moreover, different layers and different display proportions have corresponding relations. And the layers corresponding to different display proportions are different.
For example, suppose that the building drawing includes 4 layers, which are layer 1 to layer 4. The detail degree of the drawing content corresponding to the layer 1 is lower than that of the drawing content corresponding to the layer 2, the detail degree of the drawing content corresponding to the layer 2 is lower than that of the drawing content corresponding to the layer 3, and the detail degree of the drawing content corresponding to the layer 3 is lower than that of the drawing content corresponding to the layer 4.
As an example, the correspondence between the display scale and the layer is shown in table 2.
TABLE 2
Figure BDA0003517659960000161
As can be seen from table 2, in the correspondence between different display ratios and different layers, the higher the display ratio is, the higher the detail degree of the drawing content of the layer corresponding thereto is, and the lower the display ratio is, the lower the detail degree of the drawing content of the layer corresponding thereto is.
In this embodiment, after the target display proportion corresponding to the browsing operation of the user is determined, a target layer corresponding to the target display proportion may be determined in multiple layers of the building drawing. For example, assuming that the target display ratio is 150%, the map layer 3 is determined as the target map layer according to the correspondence relationship shown in table 2.
S603: and determining at least one target grid to be displayed in the target view range in the multiple grids of the target layer.
In this embodiment, the target layer may be divided in advance to obtain a plurality of grids, so that at least one target grid to be displayed may be determined in the plurality of grids of the target layer according to the target view range. And the multiple grids of the target layer are obtained by adopting a grid proportion corresponding to a target display proportion and carrying out grid division on the target layer. Wherein, the grid scales corresponding to different display scales are different.
In some possible implementations, before S603, the method may further include: and carrying out grid division on the target layer by adopting a grid proportion corresponding to the target display proportion to obtain a plurality of grids of the target layer. Wherein, the grid scales corresponding to different display scales are different.
Similar to the embodiment shown in fig. 2, the correspondence between different display scales and different grid scales may be preset (as shown in table 1). Thus, for each layer, the mesh division mode can be as follows: firstly, determining a display proportion corresponding to the layer according to the corresponding relation shown in the table 2; then, according to the corresponding relation shown in table 1, determining the grid proportion corresponding to the display proportion; and then, carrying out grid division on the layer by adopting the grid proportion to obtain a plurality of grids corresponding to the layer.
It should be understood that, in this embodiment, the step of meshing the target layer may be performed after the target layer is determined in S602, or may be performed in advance before the terminal device loads the construction drawing, which is not limited in this embodiment.
S604: rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen.
This is illustrated below with reference to fig. 7. Fig. 7 is a schematic diagram of another process of gridding the construction drawing and displaying the drawing according to the embodiment of the present application. As shown in fig. 7, it is assumed that the building drawing includes 4 layers, which are layer 1, layer 2, layer 3, and layer 4. According to the sequence from the layer 1 to the layer 4, the detail degree of the drawing content corresponding to the layer is sequentially increased, namely the detail degree of the drawing content corresponding to the layer 1 is the lowest, and the detail degree of the drawing content corresponding to the layer 4 is the highest.
Continuing with fig. 7, for layer 1, a grid ratio of 1: and 1, carrying out grid division on the layer 1. I.e. layer 1 is divided into 1 grid. Aiming at the layer 2, adopting a grid proportion of 1: layer 2 is gridded 9, so that layer 2 is divided into 9 grids. Aiming at the layer 3, adopting a grid ratio of 1: layer 3 is gridded 36, so that layer 3 is divided into 36 grids. Aiming at the layer 4, adopting a grid ratio of 1: 144 are grid divided, so that layer 4 is divided into 144 grids.
When the building drawing is displayed, referring to fig. 7, assuming that the target display ratio is 50%, determining the map layer 1 as a target map layer according to the correspondence shown in table 2. Since there are only 1 grid in layer 1, this grid is taken as the target grid. And rendering the target grid by the terminal equipment so as to display the drawing content corresponding to the target grid in a screen. The construction drawing display interface in this case is shown as interface 701.
Continuing to refer to fig. 7, assuming that the target display ratio is 100%, the map layer 2 is determined as the target map layer according to the correspondence shown in table 2. Further, according to the target view range, a target grid to be displayed is determined in the 9 grids of the layer 2. Assuming that the 9 grids of the layer 2 are target grids to be displayed, the terminal device renders the 9 target grids to display drawing contents corresponding to the 9 target grids in the screen. The construction drawing display interface in this case is shown as interface 702.
With continued reference to fig. 7, assuming that the target display ratio is 150%, the map layer 3 is determined as the target map layer according to the correspondence shown in table 2. Further, according to the target view range, a target grid to be displayed is determined in the 36 grids of the layer 3. Assuming that 16 target grids to be displayed are determined in the 36 grids of the layer 3, the terminal device renders the 16 target grids to display drawing contents corresponding to the 16 target grids in the screen. The construction drawing display interface in this case is shown as interface 703.
With continued reference to fig. 7, assuming that the target display ratio is 200%, the map layer 4 is determined as the target map layer according to the correspondence shown in table 2. Further, according to the target view range, a target grid to be displayed is determined from 144 grids in the layer 4. Assuming that 36 target grids to be displayed are determined in 144 grids of the layer 4, the terminal device renders the 36 target grids, so as to display drawing contents corresponding to the 36 target grids in the screen. The construction drawing display interface in this case is shown as interface 704.
In this embodiment, under the condition that the building drawing includes a plurality of layers, the detail degrees of the drawing contents corresponding to different layers are different, and by presetting the corresponding relationship between different display proportions and different layers, the contents of different layers are correspondingly displayed under different display proportions, so that the drawing browsing requirements under different display proportions are met. Furthermore, when the terminal device displays the building drawing, only at least one target grid to be displayed in the layer corresponding to the target display proportion needs to be rendered, and other grids in the layer and grids in other layers do not need to be rendered, so that the rendering calculation amount of the terminal device is further reduced, and the problem of page blockage is avoided.
In the embodiments shown in fig. 2 and fig. 6, a scene in which a user browses architectural drawings through a terminal device is described. In some possible scenes, the user can edit the construction drawing through the terminal device. This is explained in detail below with reference to fig. 8.
Fig. 8 is a schematic flowchart of another drawing display method provided in the embodiment of the present application. As shown in fig. 8, the method of the present embodiment includes:
s801: in response to detecting an editing operation input on the construction drawing by a user, determining target drawing content edited by the editing operation and updating information of the target drawing content.
In this embodiment, the editing operation refers to an operation of adding, deleting, or modifying the drawing content of the construction drawing. After the terminal device detects the editing operation input by the user on the construction drawing, the target drawing content edited by the editing operation and the updating information of the target drawing content can be determined. For example, if the editing operation indicates to add/delete a door in the building drawing, the door is used as the target drawing content, and the relevant parameters of the door are used as the update information of the target drawing content. And if the editing operation indicates that the parameter A of one door is modified in the building drawing, the door is used as the target drawing content, and the parameter value of the parameter A of the door is used as the update information of the target drawing content.
S802: and determining the grid where the target drawing content is located.
S803: and updating the building drawing according to the grid where the target drawing content is located and the updating information of the target drawing content.
For example, the grid where the target drawing content is located may be determined according to the position information of the target drawing content. Suppose that the construction drawing is divided into N grids, N being an integer greater than or equal to 1. The grid where the target drawing content is located is a grid X, and X is an integer less than or equal to N. The construction drawing can be updated according to the grid X and the updating information of the target drawing content. For example, the construction drawing performs data storage according to the mesh granularity, that is, the drawing data of the construction drawing includes: mesh data for mesh 1, mesh data for mesh 2, …, mesh data for mesh N. The grid data of the grid X can be updated according to the updating information of the target drawing content, so that the updating of the building drawing is realized.
In some possible implementation manners, the building drawing may include a plurality of layers, and when the building drawing is gridded, each layer is respectively gridded to obtain a plurality of grids corresponding to each layer, see the example shown in fig. 7. In this case, after the target drawing content is determined according to the editing operation input by the user, the grid where the target drawing content is located may be determined in a plurality of grids corresponding to each layer, and the layer may be updated according to the update information of the target drawing content.
As an example, fig. 9 is a schematic diagram of an editing scene of a construction drawing provided in an embodiment of the present application. As shown in fig. 9, it is assumed that the construction drawing includes layers 1 to 4. The way of meshing the layers is similar to fig. 7. It is assumed that the display ratio of the current construction drawing is 150%, that is, at least part of the grid in layer 3 is displayed in the screen of the terminal device. After the fact that the user inputs the editing operation is detected, the target drawing content edited by the editing operation is determined. The following operations need to be executed to update the construction drawing:
(1) in the grids corresponding to the layer 1, the grid where the target drawing content is located is determined (assumed as grid 1_ 1). And updating the grid data of the corresponding grid (namely grid 1_1)) in the layer 1 according to the updating information of the target drawing content.
(2) And determining the grid (assumed to be grid 2_5) where the target drawing content is located in the multiple grids corresponding to the layer 2. And updating the grid data of the corresponding grid (namely grid 2_5)) in the layer 2 according to the updating information of the target drawing content.
(3) And determining the grid (assumed to be grid 3_15) where the target drawing content is located in the multiple grids corresponding to the layer 3. And updating the grid data of the corresponding grid (namely grid 3_15) in the layer 3 according to the updating information of the target drawing content.
(4) In the grids corresponding to the layer 4, the grid where the target drawing content is located is determined (assumed as grid 4_ 53). And updating the grid data of the corresponding grid (namely grid 4_53) in the layer 3 according to the updating information of the target drawing content.
It should be noted that, in each layer, a grid where the target drawing content is located may be one grid or multiple grids, which is not limited in this embodiment.
In the embodiment, the construction drawing is subjected to grid division, and when a user edits the construction drawing, the grid data of the corresponding grid in the construction drawing is updated only according to the grid where the target drawing content edited by the editing operation is located, so that the calculation amount of the terminal device in the drawing editing process is reduced, and the problem of page blockage is avoided.
Fig. 10 is a schematic structural diagram of a drawing display device according to an embodiment of the present application. The apparatus of the present embodiment may be in the form of software and/or hardware. For example, the drawing display device provided in this embodiment may be a terminal device, and may also be a module, a unit, a chip module, and the like integrated into the terminal device. As shown in fig. 10, the drawing display apparatus 1000 according to the present embodiment includes: a first determination module 1001, a second determination module 1002, and a rendering module 1003. Wherein the content of the first and second substances,
the first determining module 1001 is used for determining a target display scale and a target view range corresponding to browsing operation in response to the browsing operation input by a user on a building drawing;
a second determining module 1002, configured to determine at least one target grid to be displayed in the target view range, from among multiple grids of the building drawing indicated by the target display scale; the detail degrees of the drawing contents corresponding to the grids under different display scales are different;
the rendering module 1003 is configured to render the drawing content corresponding to the at least one target grid, so as to display the drawing content corresponding to the at least one target grid in a screen.
In a possible implementation manner, the second determining module 1002 is specifically configured to:
determining a target layer corresponding to the target display proportion in the plurality of layers of the building drawing; the drawing layers corresponding to different display proportions are different, and the detail degrees of the drawing contents corresponding to different drawing layers are different;
and determining at least one target grid to be displayed in the target view range in the multiple grids of the target layer.
In a possible implementation manner, the apparatus of this embodiment may further include:
the grid division module is used for carrying out grid division on the target layer by adopting a grid proportion corresponding to the target display proportion to obtain a plurality of grids of the target layer; wherein, the grid scales corresponding to different display scales are different.
In a possible implementation manner, the browsing operation is used for updating a display scale of the construction drawing; the first determining module 1001 is specifically configured to:
in response to the detection of browsing operation input to the construction drawing by a user, determining a display scale updating amount corresponding to the browsing operation;
determining the target display proportion according to the current display proportion of the building drawing and the display proportion updating amount;
and determining the target view range according to the current view range of the building drawing and the display scale updating amount.
In a possible implementation manner, the browsing operation is used for updating the view range of the building drawing; the first determining module 1001 is specifically configured to:
responding to the detected browsing operation input to the building drawing by a user, and determining the updating amount of the view field range corresponding to the browsing operation;
determining the target view range according to the current view range of the building drawing and the view range updating amount;
and determining the current display scale of the building drawing as the target display scale.
In a possible implementation manner, the drawing display apparatus provided in this embodiment may further include:
the third determining module is used for responding to the detection of the editing operation input to the building drawing by the user, and determining the target drawing content edited by the editing operation and the updating information of the target drawing content;
the fourth determining module is used for determining the grid where the target drawing content is located;
and the updating module is used for updating the building drawing according to the grid where the target drawing content is located and the updating information of the target drawing content.
The drawing display apparatus provided in this embodiment may be configured to execute the drawing display method provided in any method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device provided by the embodiment can be a terminal device with a display function. As shown in fig. 11, the present embodiment provides an electronic device 1100 including: at least one processor 1101 and memory 1102. The processor 1101 and the memory 1102 may be connected by a bus 1103, for example.
The memory 1102 is used to store computer programs;
the at least one processor 1101 is configured to execute the computer program stored in the memory, so that the electronic device 1100 executes the drawing display method provided in any one of the embodiments described above, which achieves similar principles and technical effects, and is not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for displaying a drawing provided in any one of the above method embodiments is implemented, and the implementation principle and the technical effect of the method are similar, which are not described herein again.
An embodiment of the present application further provides a chip, including: the drawing display method provided by any one of the above method embodiments is implemented by a memory and a processor, wherein the memory stores a computer program, and the processor runs the computer program to implement the drawing display method provided by any one of the above method embodiments.
The embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for displaying a drawing provided in any of the above method embodiments is implemented, and the implementation principle and the technical effect are similar, which are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile and non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A drawing display method is characterized by comprising the following steps:
responding to the detected browsing operation input to the building drawing by a user, and determining a target display scale and a target view range corresponding to the browsing operation;
determining at least one target grid to be displayed in the target view range in a plurality of grids of the construction drawing indicated by the target display scale; the detail degrees of the drawing contents corresponding to the grids under different display proportions are different;
rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen.
2. The method of claim 1, wherein determining at least one target grid to be displayed within the target field of view among the plurality of grids of the construction drawing indicated by the target display scale comprises:
determining a target layer corresponding to the target display proportion in the plurality of layers of the building drawing; the layers corresponding to different display proportions are different, and the detail degrees of the drawing contents corresponding to different layers are different;
and determining at least one target grid to be displayed in the target view range in the multiple grids of the target layer.
3. The method according to claim 2, wherein before determining at least one target grid to be displayed in the target view range among the plurality of grids of the target layer, further comprising:
carrying out grid division on the target layer by adopting a grid proportion corresponding to the target display proportion to obtain a plurality of grids of the target layer; wherein, the grid scales corresponding to different display scales are different.
4. The method according to any one of claims 1 to 3, wherein the browsing operation is used for updating a display scale of the construction drawing; in response to the detection of the browsing operation input to the construction drawing by the user, determining a target display scale and a target view range corresponding to the browsing operation, including:
in response to the detection of browsing operation input to the construction drawing by a user, determining a display scale updating amount corresponding to the browsing operation;
determining the target display proportion according to the current display proportion of the building drawing and the display proportion updating amount;
and determining the target view range according to the current view range of the building drawing and the display scale updating amount.
5. The method according to any one of claims 1 to 3, wherein the browsing operation is used to update the field of view of the construction drawing; in response to the detection of the browsing operation input to the construction drawing by the user, determining a target display scale and a target view range corresponding to the browsing operation, including:
in response to the detection of browsing operation input to the construction drawing by a user, determining a view range updating amount corresponding to the browsing operation;
determining the target view range according to the current view range of the building drawing and the view range updating amount;
and determining the current display scale of the building drawing as the target display scale.
6. The method of any of claims 1 to 5, further comprising:
in response to the fact that the editing operation input to the construction drawing by a user is detected, determining target drawing content edited by the editing operation and updating information of the target drawing content;
determining a grid where the target drawing content is located;
and updating the building drawing according to the grid where the target drawing content is located and the updating information of the target drawing content.
7. A drawing display apparatus, comprising:
the first determining module is used for responding to the detected browsing operation input by a user on the building drawing, and determining a target display scale and a target view range corresponding to the browsing operation;
the second determination module is used for determining at least one target grid to be displayed in the target view range in the plurality of grids of the building drawing indicated by the target display scale; the detail degrees of the drawing contents corresponding to the grids under different display proportions are different;
and the rendering module is used for rendering the drawing content corresponding to the at least one target grid so as to display the drawing content corresponding to the at least one target grid in a screen.
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program that is executed by the at least one processor to implement the method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
10. A computer program product, comprising a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
CN202210168798.5A 2022-02-23 2022-02-23 Drawing display method, apparatus, device, storage medium, and program Pending CN114565737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210168798.5A CN114565737A (en) 2022-02-23 2022-02-23 Drawing display method, apparatus, device, storage medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210168798.5A CN114565737A (en) 2022-02-23 2022-02-23 Drawing display method, apparatus, device, storage medium, and program

Publications (1)

Publication Number Publication Date
CN114565737A true CN114565737A (en) 2022-05-31

Family

ID=81712905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210168798.5A Pending CN114565737A (en) 2022-02-23 2022-02-23 Drawing display method, apparatus, device, storage medium, and program

Country Status (1)

Country Link
CN (1) CN114565737A (en)

Similar Documents

Publication Publication Date Title
US10664510B1 (en) Displaying clusters of media items on a map using representative media items
US10228835B2 (en) Method for displaying information, and terminal equipment
CN109189532B (en) Control bar display method, device, equipment and storage medium of electronic whiteboard
US20150074576A1 (en) Information processing methods and electronic devices
CN108924440B (en) Sticker display method, device, terminal and computer-readable storage medium
CN110221722B (en) Picture processing method, electronic device and storage medium
CN109783757B (en) Method, device and system for rendering webpage, storage medium and electronic device
CN110032700B (en) Information release control method and device, storage medium and electronic equipment
CN111061473A (en) Visual component editing method and device for quickly building page
CN111190677A (en) Information display method, information display device and terminal equipment
CN114579912A (en) Page layout method, device, equipment and medium
CN114489648A (en) Page generation method, system, terminal and medium
CN113986076A (en) Icon display control method and device, electronic equipment and storage medium
CN108491152B (en) Touch screen terminal control method, terminal and medium based on virtual cursor
CN109718554B (en) Real-time rendering method and device and terminal
CN114518822A (en) Application icon management method and device and electronic equipment
CN113392246A (en) Drawing display method and device, storage medium and electronic equipment
CN109683798B (en) Text determination method, terminal and computer readable storage medium
CN110677586B (en) Image display method, image display device and mobile terminal
CN114565737A (en) Drawing display method, apparatus, device, storage medium, and program
CN116107531A (en) Interface display method and device
CN114629800B (en) Visual generation method, device, terminal and storage medium for industrial control network target range
CN115729412A (en) Interface display method and device
CN115617225A (en) Application interface display method and device, electronic equipment and storage medium
CN112667931B (en) Webpage collecting method, electronic equipment and 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