CN114089893A - Display method, rendering method, device, system, equipment and readable storage medium - Google Patents

Display method, rendering method, device, system, equipment and readable storage medium Download PDF

Info

Publication number
CN114089893A
CN114089893A CN202010746892.5A CN202010746892A CN114089893A CN 114089893 A CN114089893 A CN 114089893A CN 202010746892 A CN202010746892 A CN 202010746892A CN 114089893 A CN114089893 A CN 114089893A
Authority
CN
China
Prior art keywords
erasable
elements
display interface
element group
rendered
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
CN202010746892.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.)
Banma Zhixing Network Hongkong Co Ltd
Original Assignee
Banma Zhixing Network Hongkong 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 Banma Zhixing Network Hongkong Co Ltd filed Critical Banma Zhixing Network Hongkong Co Ltd
Priority to CN202010746892.5A priority Critical patent/CN114089893A/en
Publication of CN114089893A publication Critical patent/CN114089893A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Generation (AREA)

Abstract

The embodiment of the disclosure discloses a display method, a rendering method, a device, a system, equipment and a readable storage medium, wherein the display method comprises the following steps: acquiring an erasable element which is appeared on a display interface and comprises an erasable element which is allowed to be erased, an non-erasable element which is not allowed to be erased and an erasing track element for erasing the erasable element; according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are before the erasing track elements related in sequence in the appearance sequence into an element group; acquiring depth values of erasable elements and erasure track elements in the element groups on the display interface based on the appearance sequence of the element groups on the display interface; according to the types of the elements in the element group and the acquired depth values of the erasable elements and the erasable track elements in the element group on the display interface, performing rendering operation on the specific elements in the element group; and displaying.

Description

Display method, rendering method, device, system, equipment and readable storage medium
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a display method, a rendering method, an apparatus, a system, a device, and a readable storage medium.
Background
For video processing projects in the fields of education, business, etc., such as electronic whiteboard applications applied to televisions, it may be necessary to implement support for content such as handwritten content, text, pictures, and SVG (Scalable Vector Graphics) Graphics. Unlike handwritten content, content such as text or pictures as background is an independent complete unit and cannot be affected by an erase operation. Operations such as rendering and writing of multi-level logic require large system memory and calculation overhead. Therefore, it is very important to realize support for diversified contents and functions of different erasure logic for different contents with low overhead.
Disclosure of Invention
To solve the problems in the related art, embodiments of the present disclosure provide a display method, a rendering method, an apparatus, a system, a device, and a readable storage medium.
In a first aspect, an embodiment of the present disclosure provides a display method, including:
acquiring an erasable element which is appeared on a display interface and comprises an erasable element which is allowed to be erased, an non-erasable element which is not allowed to be erased and an erasing track element for erasing the erasable element;
according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group;
acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface;
performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface;
displaying the rendered elements on the display interface.
With reference to the first aspect, in a first implementation manner of the first aspect, before performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface, the method further includes:
detecting whether there are elements in the set of elements that have not been rendered;
wherein the performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface includes:
and according to the type of the element which is not yet rendered in the element group and the acquired depth values of the erasable element which is not yet rendered in the element group and the erased trace element on the display interface, performing rendering operation on the element which is not yet rendered in the element group.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the performing a rendering operation on an element in the element group that is not yet rendered according to a type of the element in the element group that is not yet rendered and an acquired depth value of an erasable element and an erasable trace element in the element group that are not yet rendered on the display interface includes:
rendering the unerasable elements in the element group that have not been rendered according to the elements in the element group that have not been rendered being unerasable elements.
With reference to the first implementation manner of the first aspect, in a third implementation manner of the first aspect, the performing a rendering operation on an element in the element group that is not yet rendered according to a type of the element in the element group that is not yet rendered and the acquired depth values of the erasable element and the erasure trace element in the element group that are not yet rendered on the display interface includes:
according to the fact that the elements which are not yet rendered in the element group are erasable elements, determining whether a preset relation exists between depth values of the erasable elements which are not yet rendered in the element group and depth values of erased track elements or erasable elements which are located at the same plane position with the erasable elements which are not yet rendered;
rendering the erasable elements in the element group that have not been rendered according to determining that the preset relationship exists between the depth values of the erasable elements in the element group that have not been rendered and the depth values of the erasable trace elements or erasable elements that already exist in the same planar position as the erasable elements that have not been rendered.
With reference to the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the performing a rendering operation on an element in the element group that is not yet rendered according to a type of the element in the element group that is not yet rendered and the acquired depth values of the erasable element and the erasure trace element in the element group that are not yet rendered on the display interface further includes:
in accordance with a determination that the depth values of the erasable elements in the element group that have not been rendered do not have the preset relationship with the depth values of the erased trace elements or erasable elements that already exist in the same planar position as the erasable elements that have not been rendered, the erasable elements in the element group that have not been rendered are not rendered.
With reference to the first aspect and any one of the first to fourth implementation manners of the first aspect, in a fifth implementation manner of the first aspect, the obtaining depth values of erasable elements and erasure trace elements in the element group on the display interface based on an appearance order of the element group on the display interface includes:
numbering the element groups from small to large or from large to small based on an order of appearance of the element groups on the display interface, assigning numbers of the element groups to erasable elements and erasable track elements in the element groups as depth values on the display interface.
With reference to the first aspect and any one of the first to fourth implementation manners of the first aspect, in a sixth implementation manner of the first aspect, the obtaining depth values of erasable elements and erasure trace elements in the element group on the display interface based on an appearance order of the element group on the display interface includes:
writing the obtained depth values of the erasable elements and the erasable track elements in the element group on the display interface into a depth buffer area in a system running the display interface.
With reference to the first aspect and any one of the first to fourth implementation manners of the first aspect, in a seventh implementation manner of the first aspect, the performing, according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface, a rendering operation on a specific element in the element group includes:
rendering erasable elements and/or non-erasable elements to be rendered by writing erasable elements or non-erasable elements to be rendered to a content buffer in a system running the display interface.
With reference to the first aspect and any one of the first to fourth implementation manners of the first aspect, in an eighth implementation manner of the first aspect, the sequentially related erase track elements are sequentially consecutive erase track elements.
In a second aspect, an embodiment of the present disclosure provides a display device, including:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, and the erasing track elements appear on a display interface;
an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface;
a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface;
a rendering module configured to perform a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on the display interface;
a display module configured to display the rendered elements on the display interface.
In a third aspect, an embodiment of the present disclosure provides a rendering method, including:
acquiring an erasable element which is appeared on a display interface and comprises an erasable element which is allowed to be erased, an non-erasable element which is not allowed to be erased and an erasing track element for erasing the erasable element;
according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group;
acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface;
and performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface.
In a fourth aspect, an embodiment of the present disclosure provides a rendering apparatus, including:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, and the erasing track elements appear on a display interface;
an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface;
a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface;
a rendering module configured to perform a rendering operation on a particular element of the element group according to a type of the element group and the acquired depth values of the erasable element and the erased track element of the element group on the display interface.
In a fifth aspect, an embodiment of the present disclosure provides an electronic whiteboard, including:
a first acquisition module configured to acquire an erasable element that is allowed to be erased, an unerasable element that is not allowed to be erased, and an erasing trace element for erasing the erasable element that appear on a display interface of the electronic whiteboard;
an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface;
a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface;
a rendering module configured to perform a rendering operation on a particular element of the element group according to a type of the element group and the acquired depth values of the erasable element and the erased track element of the element group on the display interface.
In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, where the one or more computer instructions are executed by the processor to implement the method according to the first aspect, the first implementation manner to the seventh implementation manner of the first aspect, and the third aspect.
In a seventh aspect, an embodiment of the present disclosure provides a readable storage medium, on which computer instructions are stored, and the computer instructions, when executed by a processor, implement the method according to the first aspect, the first implementation manner to the seventh implementation manner of the first aspect, and the third aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme provided by the embodiment of the disclosure, the erasing track elements which are appeared on the display interface and comprise erasable elements allowing to be erased, non-erasable elements not allowing to be erased and the erasable elements are obtained; according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group; acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface; performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface; the rendered elements are displayed on the display interface, different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and simultaneously memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical solution provided by the embodiment of the present disclosure, before performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface, the method further includes: detecting whether there are elements in the set of elements that have not been rendered; wherein the performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface includes: according to the type of the element which is not yet rendered in the element group and the acquired depth values of the erasable element which is not yet rendered and the erasing trace element which are not yet rendered in the element group on the display interface, the rendering operation is executed on the element which is not yet rendered in the element group, the rendering of different types of elements and different erasing logics can be realized without depending on multi-level rendering logics, the support for diversified contents is realized, and meanwhile, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical solution provided by the embodiment of the present disclosure, by performing a rendering operation on an element in the element group that has not been rendered according to a type of the element in the element group that has not been rendered and an acquired depth value of an erasable element and an erasable trace element in the element group on the display interface, the rendering operation includes: according to the method, the elements which are not yet rendered in the element group are the non-erasable elements, the non-erasable elements which are not yet rendered in the element group are rendered, different types of element rendering and different erasing logics can be achieved without depending on multi-level rendering logics, support for diversified contents is achieved, and meanwhile memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical solution provided by the embodiment of the present disclosure, by performing a rendering operation on an element in the element group that has not been rendered according to a type of the element in the element group that has not been rendered and an acquired depth value of an erasable element and an erasable trace element in the element group on the display interface, the rendering operation includes: according to the fact that the elements which are not yet rendered in the element group are erasable elements, determining whether a preset relation exists between depth values of the erasable elements which are not yet rendered in the element group and depth values of erased track elements or erasable elements which are located at the same plane position with the erasable elements which are not yet rendered; according to the fact that the preset relation exists between the depth value of the erasable element which is not yet rendered in the element group and the depth value of the erasable trace element or the erasable element which exists in the same plane position with the erasable element which is not yet rendered, the erasable element which is not yet rendered in the element group is rendered, different types of element rendering and different erasing logics can be achieved without depending on multi-level rendering logics, support for diversified contents is achieved, and meanwhile memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical solution provided by the embodiment of the present disclosure, by performing a rendering operation on an element in the element group that has not been rendered according to a type of the element in the element group that has not been rendered and an acquired depth value of an erasable element and an erasable trace element in the element group on the display interface, the method further includes: according to the fact that the depth value of the erasable element which is not yet rendered in the element group does not have the preset relation with the depth value of the erasable trace element or the erasable element which is already present in the same plane position with the erasable element which is not yet rendered, the erasable element which is not yet rendered in the element group is not rendered, different types of element rendering and different erasing logics can be achieved without depending on multi-level rendering logics, support for diversified contents is achieved, and meanwhile memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical solution provided by the embodiment of the present disclosure, obtaining depth values of erasable elements and erasable trace elements in the element group on the display interface based on the appearance order of the element group on the display interface includes: numbering the element groups from small to large or from large to small based on the appearance sequence of the element groups on the display interface, and distributing the numbers of the element groups to erasable elements and erasable track elements in the element groups as depth values on the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and simultaneously, memory overhead and additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical solution provided by the embodiment of the present disclosure, obtaining depth values of erasable elements and erasable trace elements in the element group on the display interface based on the appearance order of the element group on the display interface includes: and writing the obtained depth values of the erasable elements and the erasing track elements in the element group on the display interface into a depth buffer area in a system operating the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, the support for diversified contents is realized, and simultaneously, the memory overhead and additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical solution provided by the embodiment of the present disclosure, performing, by the method according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface, a rendering operation on a specific element in the element group includes: the erasable elements and/or the non-erasable elements to be rendered are rendered by writing the erasable elements or the non-erasable elements to be rendered into a content buffer area in a system running the display interface, so that different types of element rendering and different types of erasing logic can be realized without depending on multi-level rendering logic, the support of diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logic are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical scheme provided by the embodiment of the disclosure, the erasing track elements related to the sequence are the erasing track elements which are continuous in the sequence, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, the support on diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and stronger writing and rendering performances can be ensured even on equipment with poorer performances.
According to the technical scheme provided by the embodiment of the disclosure, the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, wherein the erasable elements are appeared on a display interface; an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface; a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface; a rendering module configured to perform a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on the display interface; the display module is configured to display the rendered elements on the display interface, and can realize different types of element rendering and different erasing logics without depending on multi-level rendering logics, so that the support of diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical scheme provided by the embodiment of the disclosure, the erasing track elements which are appeared on the display interface and comprise erasable elements allowing to be erased, non-erasable elements not allowing to be erased and the erasable elements are obtained; according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group; acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface; according to the types of the elements in the element group and the acquired depth values of the erasable elements and the erasing track elements in the element group on the display interface, the rendering operation is performed on the specific elements in the element group, the rendering and the erasing logics of different types of elements can be realized without depending on multi-level rendering logics, the support for diversified contents is realized, and simultaneously, the memory overhead and the additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical scheme provided by the embodiment of the disclosure, the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, wherein the erasable elements are appeared on a display interface; an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface; a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface; the rendering module is configured to perform rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasing trace element in the element group on the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and memory overhead and additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
According to the technical scheme provided by the embodiment of the disclosure, the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements which are used for erasing the erasable elements and appear on a display interface of the electronic whiteboard; an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface; a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface; the rendering module is configured to perform rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasing trace element in the element group on the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and memory overhead and additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other labels, objects and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments when taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 illustrates a flow chart of a display method according to an embodiment of the present disclosure;
fig. 2 illustrates a block diagram of a display device according to an embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of an exemplary application scenario utilizing a display method in accordance with an embodiment of the present disclosure;
FIG. 4 shows a schematic diagram of an application example using a display method according to an embodiment of the present disclosure;
FIG. 5 shows a flow diagram of a rendering method according to an embodiment of the present disclosure;
fig. 6 illustrates a block diagram of a rendering apparatus according to an embodiment of the present disclosure;
FIG. 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a display method or a rendering method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the present disclosure, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of labels, numbers, steps, actions, components, parts, or combinations thereof disclosed in the present specification, and are not intended to preclude the possibility that one or more other labels, numbers, steps, actions, components, parts, or combinations thereof are present or added.
It should be further noted that the embodiments and labels in the embodiments of the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
According to the technical scheme provided by the embodiment of the disclosure, the erasing track elements which are appeared on the display interface and comprise erasable elements allowing to be erased, non-erasable elements not allowing to be erased and erasable elements are obtained; according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are before the erasing track elements related in sequence in the appearance sequence into an element group; acquiring depth values of erasable elements and erasure track elements in the element groups on the display interface based on the appearance sequence of the element groups on the display interface; according to the types of the elements in the element group and the acquired depth values of the erasable elements and the erasable track elements in the element group on the display interface, performing rendering operation on the specific elements in the element group; the rendered elements are displayed on the display interface, different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and simultaneously memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
Fig. 1 illustrates a flowchart of a display method according to an embodiment of the present disclosure. As shown in fig. 1, the display method includes the following steps S110, S120, S130, S140, and S150:
in step S110, an erasing trace element including an erasable element that is allowed to be erased, an unerasable element that is not allowed to be erased, and an erasing trace element for erasing the erasable element, which appears on the display interface, is acquired.
In step S120, according to the appearance sequence of the erasable elements, the non-erasable elements and the erase track elements on the display interface, the erase track elements related in sequence and the erasable elements and the non-erasable elements before the erase track elements related in sequence in the appearance sequence are allocated as an element group.
In step S130, depth values of the erasable elements and the erasure trace elements in the element group on the display interface are acquired based on the appearance order of the element group on the display interface.
In step S140, a rendering operation is performed on a specific element in the element group according to the type of the element in the element group and the depth values of the acquired erasable element and the erased track element in the element group on the display interface.
In step S150, the rendered element is displayed on a display interface.
In one embodiment of the present disclosure, a display interface may refer to a display interface displayed on a display screen of an electronic device such as a PC, a TV, or the like, and the display interface may be a part of a module that provides interactive operations such as writing, for example, an electronic whiteboard. An electronic whiteboard refers to an application program that simulates whiteboard writing operations implemented on electronic devices such as a PC and a TV. Those skilled in the art will appreciate that the interactive operation module can also be implemented as other modules such as an electronic blackboard, and the module providing interactive operation such as writing can be implemented by software, hardware or a combination of software and hardware.
In one embodiment of the present disclosure, erasable elements that are allowed to be erased may refer to manual strokes entered on a display interface (such as hand-drawn strokes), displayed pictures, text, SVG (Scalable Vector Graphics), multimedia, and the like. The erasable elements that are allowed to be erased may be preset as one or more contents. For example, only manual strokes and input text entered on a display interface are treated as erasable elements.
In one embodiment of the present disclosure, erasable elements that are not allowed to be erased may refer to artificial strokes entered on a display interface (such as hand-drawn strokes), displayed pictures, text, SVG (Scalable Vector Graphics), multimedia, and the like. The erasable elements that are allowed to be erased may be preset as one or more contents. For example, only pictures and multimedia input on the display interface are treated as non-erasable elements.
In one embodiment of the present disclosure, an erase track element is an element for erasing an erasable element from a display interface. For example, the erasing trace element may be a person forming an erasing trace on the display interface by hand or some means to erase the erasable element.
It should be noted that elements displayed on the display interface may be all divided into erasable elements, non-erasable elements, and erase track elements, the types of erasable elements and non-erasable elements are different from each other, and only erasable elements may be erased by erase track elements.
In one embodiment of the present disclosure, the erasure trace elements whose appearance order is related (consecutive) and the erasable elements and the non-erasable elements whose appearance order precedes these consecutive erasure trace elements may be assigned as one element group. It should be understood that the purpose of inputting one or more erasing trace elements on the display interface is to erase the erasable elements input to the display interface before the erasing trace elements, and the appearance sequence of the erasable elements and the erasing elements on the display interface may be staggered, so that taking the erasing trace elements related to (consecutive) appearance sequence as the boundary of the current element group and the element group immediately after the appearance sequence is beneficial to erasing the erasable elements, thereby implementing the display method of the embodiment of the present disclosure.
In one embodiment of the present disclosure, the sequentially associated erase track elements are sequentially consecutive erase track elements. That is, assigning an erasure track element that is sequentially related and erasable elements and non-erasable elements that appear sequentially before the sequentially related erasure track element as one element group means: sequentially consecutive erase track elements are assigned to an element group with erasable elements and non-erasable elements occurring sequentially before the sequentially consecutive erase track elements.
According to the technical scheme provided by the embodiment of the disclosure, the erasing track elements related to the sequence are the erasing track elements which are continuous in the sequence, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, the support on diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and stronger writing and rendering performances can be ensured even on equipment with poorer performances.
In one embodiment of the present disclosure, step S130 includes: the element groups are numbered from small to large or from large to small based on their order of appearance on the display interface, and the numbers of the element groups are assigned to erasable elements and erase trace elements in the element groups as depth values on the display interface.
According to the technical scheme provided by the embodiment of the disclosure, acquiring the depth values of the erasable elements and the erasing trace elements in the element group on the display interface based on the appearance sequence of the element group on the display interface comprises: the element groups are numbered from small to large or from large to small based on the appearance sequence of the element groups on the display interface, the numbers of the element groups are distributed to the erasable elements and the erasing track elements in the element groups as the depth values on the display interface, different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, the support for diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In one embodiment of the present disclosure, the elements in each element group may be assigned consistent depth values from small to large in the appearance order of each element group, for example, the depth value of the first element group is 1, and the depth value of the nth element group is n, where n is an integer greater than 1. In one embodiment of the present disclosure, the erasable elements and the erased track elements in each element group may be assigned consistent depth values from large to small in the appearance order of each element group, and for another example, the depth value of the 1 st element group is n, where n is an integer greater than 1 and the depth value of the n th element group is 1. It should be noted that the above assigning of an integer value to each element group as a depth value is merely an example, and various numerical values may be assigned as depth values from small to large or from large to small in the order of appearance of each element group.
For example, if an erased track element is represented as c, an unerasable element is represented as p, and an erasable element is represented as d, the elements appearing in the order cpddcccdcc may be divided into 4 element groups, which are a first element group c, a second element group pddccc, a third element group dc, and a fourth element group dcc. When the element groups are numbered from small to large or from large to small in order of appearance, the four element groups can be represented as 1.c, 2. pdccc, 3.dc, 4.dcc, respectively. In this case, numbers of the four element groups may be assigned to the erasable element and the erased track element in the respective element groups as depth values on the display interface, that is, a depth value of the erased track element c in the first element group is 1, a depth value of the erasable element d and the erased track element c in the second element group is 2, a depth value of the erasable element d and the erased track element c in the third element group is 3, and a depth value of the erasable element d and the erased track element c in the fourth element group is 4. It will be understood by those skilled in the art that various numerical values may also be assigned as the depth values of the erasable element d and the erasable trace element c in each element group from large to small in the appearance order of each element group.
In one embodiment of the present disclosure, elements in each element group may be assigned non-uniform depth values in the order of appearance of each element group, e.g., erasable elements and erase track elements in the same order of appearance may be assigned uniform depth values, and erasable elements and erase track elements in different orders of appearance may be assigned different depth values from small to large or from large to small in the order of appearance.
In one embodiment of the disclosure, depth values are assigned to the erasable elements and the erased trace elements such that whether to render the erasable elements is determined at the same planar location of the display interface as a function of the depth values of the erasable elements and the erased trace elements. For example, when an element with a larger depth value at the same plane position needs to be represented on the display interface, if the depth value of the erasable element to be rendered in the current writing depth buffer (for storing and comparing the depth values of the erasable element and the erasing trace element) is larger than the depth value of the erasable element or the erasing trace element which has been written into the depth buffer at present, the erasable element to be rendered in the current writing depth buffer is rendered. Conversely, if the depth value of the erasable element to be rendered currently written to the depth buffer is not greater than the depth value of the erasable element or the erased track element that has been currently written to the depth buffer, then the erasable element to be rendered currently written to the depth buffer is not rendered. It should be appreciated that the depth values of the erasable elements or the erased trace elements in the above examples may be a number from small to large for the group of elements based on the order of appearance of the elements on the display interface.
In an embodiment of the present disclosure, the same plane position may refer to a plane position of each pixel point of the display interface. An element in the same planar position may refer to multiple different elements appearing at the same pixel point of the display interface. It should be understood that the appearance of multiple different elements in the same planar position may refer to some or all of these elements appearing at the same pixel point of the display interface as some or all of the other elements. Therefore, it may be determined whether there is a preset relationship between the depth value of the erasable element in the element group that has not been rendered and the depth value of the erasable trace element or the erasable element that already exists at the same pixel point as the erasable element that has not been rendered.
In the case where the element groups are numbered from large to small based on the order of appearance of the elements on the display interface, when an element having a smaller depth value at the same plane position needs to be embodied on the display interface, if the depth value of an erasable element to be rendered in the current write depth buffer is smaller than the depth value of an erasable element or an erase track element that has been currently written in the depth buffer, the erasable element to be rendered in the current write depth buffer is rendered. Conversely, if the depth value of the erasable element to be rendered currently written to the depth buffer is not less than the depth value of the erasable element or the erased track element that has been currently written to the depth buffer, then the erasable element to be rendered currently written to the depth buffer is not rendered.
In one embodiment of the present disclosure, performing a rendering operation on a specific element in an element group according to the type of the element in the element group and the depth values of the acquired erasable element and the erased track element in the element group on the display interface refers to: and when the element to be rendered is the erasable element, determining the rendering mode of the erasable element based on the depth values of the erasable element and the erasing track element in the element group on the display interface.
In one embodiment of the present disclosure, step S140 is preceded by: it is detected whether there are elements in the element group that have not yet been rendered. In case it is detected whether there are elements in the element group that have not been rendered, step S140 comprises: and performing rendering operation on the elements in the element group which are not rendered according to the types of the elements in the element group which are not rendered and the acquired depth values of the erasable elements and the erasing trace elements in the element group which are not rendered on the display interface.
According to the technical solution provided by the embodiment of the present disclosure, before performing a rendering operation on a specific element in an element group according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on a display interface, the method further includes: detecting whether an element which is not yet rendered exists in the element group; performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on the display interface, including: according to the type of the element which is not yet rendered in the element group and the acquired depth values of the erasable element which is not yet rendered and the erasing trace element which are not yet rendered in the element group on the display interface, the rendering operation is executed on the element which is not yet rendered in the element group, the rendering of different types of elements and different erasing logics can be realized without depending on multi-level rendering logics, the support to diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In one embodiment of the present disclosure, according to the type of the element not yet rendered in the element group and the depth value of the erasable element and the erasure trace element not yet rendered in the acquired element group on the display interface, a rendering operation is performed on the element not yet rendered in the element group, including: rendering the unerasable elements in the element group that have not been rendered according to whether the elements in the element group that have not been rendered are unerasable elements.
According to the technical solution provided by the embodiment of the present disclosure, by performing a rendering operation on an element in an element group that has not been rendered according to a type of the element in the element group that has not been rendered and an acquired depth value of an erasable element and an erasable trace element in the element group that have not been rendered on a display interface, the method includes: according to the method, the elements which are not yet rendered in the element group are the non-erasable elements, the non-erasable elements which are not yet rendered in the element group are rendered, different types of element rendering and different erasing logics can be achieved without depending on multi-level rendering logics, support for diversified contents is achieved, and meanwhile memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In an embodiment of the present disclosure, if the element to be currently rendered is an unerasable element, the unerasable element is not affected by the erased track element, and therefore, it is not necessary to assign a depth value to the unerasable element and perform a depth test, that is, the unerasable element may be directly rendered. In one embodiment of the present disclosure, the non-erasable elements are rendered by writing the non-erasable elements to a content buffer of a system that includes a display interface.
In one embodiment of the present disclosure, according to the type of the element not yet rendered in the element group and the depth value of the erasable element and the erasure trace element not yet rendered in the acquired element group on the display interface, a rendering operation is performed on the element not yet rendered in the element group, including: determining whether a preset relation exists between the depth value of the erasable element which is not yet rendered in the element group and the depth value of an erased track element or an erasable element which is already in the same plane position with the erasable element which is not yet rendered; rendering the erasable elements in the element group which are not rendered according to the preset relation between the depth value of the erasable element which is not rendered and the depth value of the erasable trace element or the erasable element which is in the same plane position with the erasable element which is not rendered.
According to the technical solution provided by the embodiment of the present disclosure, by performing a rendering operation on an element in an element group that has not been rendered according to a type of the element in the element group that has not been rendered and an acquired depth value of an erasable element and an erasable trace element in the element group that have not been rendered on a display interface, the method includes: determining whether a preset relation exists between the depth value of the erasable element which is not yet rendered in the element group and the depth value of an erased track element or an erasable element which is already in the same plane position with the erasable element which is not yet rendered; according to the method, the depth value of the erasable element which is not yet rendered in the element group is determined to have a preset relation with the depth value of the erasable trace element or the erasable element which is already present in the same plane position with the erasable element which is not yet rendered, the erasable element which is not yet rendered in the element group is rendered, different types of element rendering and different erasing logics can be achieved without depending on multi-level rendering logics, support for diversified contents is achieved, and meanwhile memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In an embodiment of the present disclosure, if the element to be currently rendered is an erasable element, the erasable element may be affected by an erasable trace element located in the same plane, and therefore a depth test needs to be performed on the erasable element to be rendered, and the depth test indicates that a depth value of the erasable element meets a preset condition before the erasable element is rendered. The concept of depth testing can be taken from the related art, and the disclosure herein merely describes how to determine whether the depth value of the erasable element to be rendered meets the preset condition using the depth testing. For example, the depth buffer currently stores depth values of erasable elements or erased track elements, and it is determined whether a relationship between the depth values of erasable elements to be rendered and the depth values of erasable elements or erased track elements currently stored in the depth buffer satisfies a preset relationship. For example, the preset relationship may be whether the depth value of the erasable element to be rendered is greater than the depth value of the erasable element or the erased trace element currently stored in the depth buffer. As another example, the predetermined relationship may be whether the depth value of the erasable element to be rendered is less than the depth value of the erasable element or the erased trace element currently stored in the depth buffer. And if the relation between the depth value of the erasable element to be rendered and the depth value of the erasable element currently stored in the depth buffer area or the erasable track element is determined to meet the preset relation, the erasable element to be rendered is determined to be rendered. In other words, the erased trace element currently located in the same plane position cannot erase the erasable element to be rendered, or the erasable element to be rendered blocks or replaces the erasable element currently located in the same plane position.
In one embodiment of the present disclosure, according to the type of the element not yet rendered in the element group and the depth value of the erasable element and the erasure trace element not yet rendered in the acquired element group on the display interface, the performing a rendering operation on the element not yet rendered in the element group further includes: and according to the fact that the depth value of the erasable element which is not yet rendered in the element group does not have a preset relation with the depth value of the erasable trace element or the erasable element which is already present at the same plane position with the erasable element which is not yet rendered, rendering the erasable element which is not yet rendered in the element group.
According to the technical solution provided by the embodiment of the present disclosure, by performing a rendering operation on an element in an element group that has not been rendered according to a type of the element in the element group that has not been rendered and an acquired depth value of an erasable element and an erasable trace element in the element group that have not been rendered on a display interface, the method further includes: according to the method, the depth value of the erasable element which is not yet rendered in the element group is determined to have no preset relationship with the depth value of the erasable trace element or the erasable element which is already present in the same plane position with the erasable element which is not yet rendered, the erasable element which is not yet rendered in the element group is not rendered, different types of element rendering and different erasing logics can be achieved without depending on multi-level rendering logics, support for diversified contents is achieved, and meanwhile memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In one embodiment of the present disclosure, when the preset relationship is whether the depth value of the erasable element to be rendered is greater than the depth value of the erasable element currently stored in the depth buffer or the erased track element, the unsatisfied preset relationship means that the depth value of the erasable element to be rendered is less than or equal to the depth value of the erasable element currently stored in the depth buffer or the erased track element. In one embodiment of the present disclosure, when the preset relationship is whether the depth value of the erasable element to be rendered is smaller than the depth value of the erasable element currently stored in the depth buffer or the erased track element, the non-satisfaction of the preset relationship means that the depth value of the erasable element to be rendered is greater than or equal to the depth value of the erasable element currently stored in the depth buffer or the erased track element. And if the relation between the depth value of the erasable element to be rendered and the depth value of the erasable element currently stored in the depth buffer area or the erasable track element is determined to meet the non-preset relation, determining that the erasable element to be rendered is not rendered. In other words, the erased trace element currently located in the same plane erases the erasable element to be rendered, or the erasable element to be rendered is blocked or replaced by the erasable element currently located in the same plane.
In one embodiment of the present disclosure, step S140 includes: and writing the depth values of the acquired erasable elements and the erasable track elements in the element group on the display interface into a depth buffer area in a system running the display interface.
According to the technical scheme provided by the embodiment of the disclosure, acquiring the depth values of the erasable elements and the erasing trace elements in the element group on the display interface based on the appearance sequence of the element group on the display interface comprises: the depth values of the erasable elements and the erasing track elements in the acquired element group on the display interface are written into a depth buffer area in a system running the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, the support for diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In one embodiment of the present disclosure, only the erasable elements and the erase trace elements need to be depth tested, so the erasable elements and the erase trace elements can be depth tested in a depth buffer provided in a memory of a system running the display interface.
In one embodiment of the present disclosure, step S140 includes: the method comprises the following steps: erasable elements and/or non-erasable elements to be rendered are rendered by writing the erasable elements or non-erasable elements to be rendered to a content buffer in a system running a display interface.
According to the technical scheme provided by the embodiment of the disclosure, by performing rendering operation on a specific element in an element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on a display interface, the rendering operation includes: the erasable elements and/or the non-erasable elements to be rendered are rendered by writing the erasable elements or the non-erasable elements to be rendered into a content buffer area in a system running a display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, the support for diversified contents is realized, and simultaneously, the memory overhead and extra calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In one embodiment of the present disclosure, only erasable elements and non-erasable elements need to be rendered, so erasable elements and/or non-erasable elements may be rendered in a content buffer provided in a memory of a system running a display interface. For example, the non-erasable elements to be rendered may be written directly to the content buffer for rendering. For example, after the erasable element to be rendered is subjected to a depth test in the depth buffer, if a preset relationship is met, the erasable element is written into the content buffer for rendering. Those skilled in the art can understand that the specific content of the rendering operation performed on the element in the content buffer can be obtained from the related field, and the detailed description of the disclosure is omitted here.
An example of a display device according to an embodiment of the present disclosure is described below with reference to fig. 2.
Fig. 2 illustrates a block diagram of a display device according to an embodiment of the present disclosure. As shown in fig. 2, the display apparatus 200 includes a first obtaining module 210, an assigning module 220, a second obtaining module 230, a rendering module 240, and a display module 250.
The first obtaining module 210 is configured to obtain erasable elements that are allowed to be erased, non-erasable elements that are not allowed to be erased, and erase track elements for erasing the erasable elements that appear on the display interface.
The assigning module 220 is configured to assign the sequentially related erase trace element and the erasable element and the non-erasable element that precede the sequentially related erase trace element in the order of appearance as one element group according to the order of appearance of the erasable element, the non-erasable element and the erase trace element on the display interface.
The second obtaining module 230 is configured to obtain depth values of the erasable elements and the erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface.
The rendering module 240 is configured to perform a rendering operation on a particular element of the group of elements according to the type of the element of the group of elements and the depth values of the acquired erasable element and the erased trace element of the group of elements on the display interface.
The display module 250 is configured to display the rendered elements on a display interface.
According to the technical scheme provided by the embodiment of the disclosure, the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, wherein the erasable elements are appeared on a display interface; the distribution module is configured to distribute the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are before the erasing track elements related in sequence in the sequence into one element group according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface; the second acquisition module is configured to acquire depth values of the erasable elements and the erasing track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface; a rendering module configured to perform a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on the display interface; the display module is configured to display the rendered elements on the display interface, and can realize different types of element rendering and different erasing logics without depending on multi-level rendering logics, so that the memory overhead and extra calculation brought by the multi-level rendering logics are reduced while the support of diversified contents is realized. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
It will be appreciated by those skilled in the art that the technical solution described with reference to fig. 2 may be combined with the embodiment described with reference to fig. 1 to achieve the technical effects achieved by the embodiment described with reference to fig. 1. For details, reference may be made to the description made above with reference to fig. 1, and details thereof are not described herein again.
One exemplary application scenario of the display method according to an embodiment of the present disclosure is described below with reference to fig. 3.
Fig. 3 illustrates a schematic diagram of an exemplary application scenario utilizing a display method according to an embodiment of the present disclosure.
As shown in fig. 3, an unerasable element 301, an erasable element 302, an erase track element (dashed box) 303, an unerasable element 311, and an erasable element 312 are sequentially input on the display interface 330. The 5 elements are divided into two element groups 300 and 310 with the erasure track element 303 as a boundary according to the appearance order of the respective elements. The first element group 300 includes an unerasable element 301, an erasable element 302, and an erase track element 303. A second group of elements 310 includes an unerasable element 311 and an erasable element 312. In the case where rendering operations need to be performed on the non-erasable element 301, the erasable element 302, the non-erasable element 311, and the erasable element 312 in the first element group and the second element group, the depth values of these elements are acquired based on their appearance order. Number 1 of the first element group 300 may be taken as the depth values of the non-erasable element 301 and the erasable element 302 and number 2 of the second element group 310 may be taken as the depth values of the non-erasable element 311 and the erasable element 312. Since the non-erasable elements 301 are not erasable, the non-erasable elements 301 may be written directly to the content buffer 350. Depth value 1 of the erased trace element 303 is written into the depth buffer 340, and depth value 1 of the erasable element 302 located in the same plane position is also written into the depth buffer 340 for depth testing. In the case where the preset relationship is that the depth value of the erasable element is greater than the current depth value of the element in the depth buffer 340, since the depth value of the erasable element 302 and the depth value of the erased track element 303 are both 1, the erasable element 302 cannot be written to the content buffer 350, i.e., the erasable element 302 cannot be rendered. Thus, on the display interface 330, the erasable element 302 is erased by the erase track element 303, but the non-erasable element 301 is not erased by the erase track element 303. For the second element group 310, since the unerasable element 311 is not erasable, the unerasable element 311 may be written directly to the content buffer 350 for rendering. In this example, there are no other elements in the same planar position of erasable element 312, so the current depth value in depth buffer 340 for the same planar position as erasable element 312 may be set to 0. When depth testing is performed on erasable element 312, depth value 2 of erasable element 312 is greater than current depth value 0, and therefore, erasable element 312 may be written to content buffer 350, i.e., erasable element 312 is rendered.
An application example of the display method according to an embodiment of the present disclosure is described below with reference to fig. 4.
Fig. 4 illustrates a schematic diagram of an application example using a display method according to an embodiment of the present disclosure.
As shown in fig. 4, an element is added to the system where the display interface is located, for example, the user of the electronic whiteboard operates the added content. In the element grouping step, the sequentially related erasing track elements and the non-erasable elements and erasable elements which are continuous before the erasing track elements are grouped into a group. Each packet is traversed in turn, writing the erased trace elements of each packet to a depth buffer, the depth value may be the number of each packet. And traversing each group in turn, if elements which are not rendered exist, executing element rendering operation, and if not, ending the operation. The way rendering operations are performed according to different element types means: rendering the non-erasable elements in a mode without depth testing and write depth buffering if the elements to be rendered are non-erasable elements; if the element to be rendered is an erasable element, a depth buffer test is performed with the group number as the current depth value and the corresponding buffer depth value of the element of the same horizontal position that has been written into the depth buffer, if the current depth value is greater than the corresponding buffer depth value, the erasable element is written into the content buffer to render the content, and if the current depth value is less than or equal to the corresponding buffer depth value, the content buffer is not written, i.e., the content is not rendered.
A rendering method according to an embodiment of the present disclosure is described below with reference to fig. 5.
Fig. 5 shows a flowchart of a rendering method according to an embodiment of the present disclosure. As shown in fig. 4, the display method includes the following steps S510, S520, S530, and S540:
in step S510, an erasing trace element including an erasable element that is allowed to be erased, an unerasable element that is not allowed to be erased, and an erasing trace element for erasing the erasable element, which appears on the display interface, is acquired.
In step S520, the erasure trace element related in sequence and the erasure trace element and the non-erasure element preceding the erasure trace element related in sequence are assigned as an element group according to the appearance sequence of the erasure trace element, the non-erasure element and the erasure trace element on the display interface.
In step S530, depth values of the erasable elements and the erasure trace elements in the element group on the display interface are acquired based on the appearance order of the element group on the display interface.
In step S540, a rendering operation is performed on a specific element in the element group according to the type of the element in the element group and the depth values of the acquired erasable element and the erased track element in the element group on the display interface.
According to the technical scheme provided by the embodiment of the disclosure, the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, wherein the erasable elements are appeared on a display interface; the distribution module is configured to distribute the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are before the erasing track elements related in sequence in the sequence into one element group according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface; the second acquisition module is configured to acquire depth values of the erasable elements and the erasing track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface; the rendering module is configured to perform rendering operation on a specific element in the element group according to the type of the element in the element group and the depth values of the obtained erasable element and the erasable track element in the element group on the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and simultaneously, memory overhead and additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
It will be understood by those skilled in the art that the technical solution described with reference to fig. 5 may be combined with the embodiment described with reference to fig. 1 to 4, so as to have the technical effects achieved by the embodiment described with reference to fig. 1 to 4. For details, reference may be made to the description made above with reference to fig. 1 to 4, and details thereof are not repeated herein.
A rendering apparatus according to an embodiment of the present disclosure is described below with reference to fig. 6.
Fig. 6 illustrates a block diagram of a rendering apparatus 600 according to an embodiment of the present disclosure. As shown in fig. 6, the rendering apparatus 600 includes a first obtaining module 610, an allocating module 620, a second obtaining module 630, and a rendering module 640.
The first obtaining module 610 is configured to obtain an erasable element that is present on the display interface and includes an erasable element that is allowed to be erased, an unerasable element that is not allowed to be erased, and an erase track element for erasing the erasable element.
The assigning module 620 is configured to assign the erasure trace element that is sequentially related to the erasure trace element and the erasure trace element that precedes the erasure trace element that is sequentially related to the erasure trace element in the order of appearance as one element group according to the order of appearance of the erasure trace element, the non-erasure element, and the erasure trace element on the display interface.
The second obtaining module 630 is configured to obtain depth values of the erasable elements and the erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface.
The rendering module 640 is configured to perform a rendering operation on a particular element of the group of elements according to the type of the element of the group of elements and the depth values of the acquired erasable element and the erased trace element of the group of elements on the display interface.
According to the technical scheme provided by the embodiment of the disclosure, the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, wherein the erasable elements are appeared on a display interface; the distribution module is configured to distribute the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are before the erasing track elements related in sequence in the sequence into one element group according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface; the second acquisition module is configured to acquire depth values of the erasable elements and the erasing track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface; the rendering module is configured to perform rendering operation on a specific element in the element group according to the type of the element in the element group and the depth values of the obtained erasable element and the erasable track element in the element group on the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and simultaneously, memory overhead and additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
In an embodiment of the present disclosure, the rendering technical solution according to the embodiment of the present disclosure may be implemented by using an electronic whiteboard. An electronic whiteboard, comprising:
a first acquisition module configured to acquire an erasable element that is allowed to be erased, an unerasable element that is not allowed to be erased, and an erasing trace element for erasing the erasable element that appear on a display interface of the electronic whiteboard;
the distribution module is configured to distribute the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are before the erasing track elements related in sequence in the sequence into one element group according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface;
the second acquisition module is configured to acquire depth values of the erasable elements and the erasing track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface;
and the rendering module is configured to perform rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface.
According to the technical scheme provided by the embodiment of the disclosure, the first acquisition module is configured to acquire erasable elements including erasable elements allowed to be erased, non-erasable elements not allowed to be erased and erasing track elements for erasing the erasable elements appearing on a display interface of the electronic whiteboard; the distribution module is configured to distribute the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are before the erasing track elements related in sequence in the sequence into one element group according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface; the second acquisition module is configured to acquire depth values of the erasable elements and the erasing track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface; the rendering module is configured to perform rendering operation on a specific element in the element group according to the type of the element in the element group and the depth values of the obtained erasable element and the erasable track element in the element group on the display interface, so that different types of element rendering and different erasing logics can be realized without depending on multi-level rendering logics, support on diversified contents is realized, and simultaneously, memory overhead and additional calculation brought by the multi-level rendering logics are reduced. Moreover, the function requirements are met by realizing a hierarchical content rendering mode, and meanwhile, the writing and rendering performances can be stronger even on equipment with poor performance.
It will be understood by those skilled in the art that the technical solution described with reference to fig. 6 may be combined with the embodiments described with reference to fig. 1 to 5, so as to have the technical effects achieved by the embodiments described with reference to fig. 1 to 5. For details, reference may be made to the description made above with reference to fig. 1 to 5, and details thereof are not repeated herein.
The foregoing embodiments describe the internal functions and structures of the display apparatus and the rendering apparatus, and in one possible design, the structures of the display apparatus and the rendering apparatus may be implemented as an electronic device, such as shown in fig. 7, which may include a processor 701 and a memory 702.
The memory 702 is used for storing a program that supports an electronic device to execute the display method or the code generation method in any of the above embodiments, and the processor 701 is configured to execute the program stored in the memory 702.
In one embodiment of the present disclosure, the memory 702 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 701 to implement the steps of:
acquiring an erasable element which is appeared on a display interface and comprises an erasable element which is allowed to be erased, an non-erasable element which is not allowed to be erased and an erasing track element for erasing the erasable element;
according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group;
acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface;
performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface;
displaying the rendered elements on the display interface.
In one embodiment of the present disclosure, before performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on the display interface, the method further includes:
detecting whether there are elements in the set of elements that have not been rendered;
wherein the performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface includes:
and according to the type of the element which is not yet rendered in the element group and the acquired depth values of the erasable element which is not yet rendered in the element group and the erased trace element on the display interface, performing rendering operation on the element which is not yet rendered in the element group.
In one embodiment of the present disclosure, the performing a rendering operation on an element in the element group that has not been rendered according to a type of the element in the element group that has not been rendered and the acquired depth values of the erasable element and the erasure trace element in the element group that have not been rendered on the display interface includes:
rendering the unerasable elements in the element group that have not been rendered according to the elements in the element group that have not been rendered being unerasable elements.
In one embodiment of the present disclosure, the performing a rendering operation on an element in the element group that has not been rendered according to a type of the element in the element group that has not been rendered and the acquired depth values of the erasable element and the erasure trace element in the element group that have not been rendered on the display interface includes:
according to the fact that the elements which are not yet rendered in the element group are erasable elements, determining whether a preset relation exists between depth values of the erasable elements which are not yet rendered in the element group and depth values of erased track elements or erasable elements which are located at the same plane position with the erasable elements which are not yet rendered;
rendering the erasable elements in the element group that have not been rendered according to determining that the preset relationship exists between the depth values of the erasable elements in the element group that have not been rendered and the depth values of the erasable trace elements or erasable elements that already exist in the same planar position as the erasable elements that have not been rendered.
In one embodiment of the present disclosure, the performing a rendering operation on an element in the element group that has not been rendered according to a type of the element in the element group that has not been rendered and the acquired depth values of the erasable element and the erasure trace element in the element group that have not been rendered on the display interface further includes:
in accordance with a determination that the depth values of the erasable elements in the element group that have not been rendered do not have the preset relationship with the depth values of the erased trace elements or erasable elements that already exist in the same planar position as the erasable elements that have not been rendered, the erasable elements in the element group that have not been rendered are not rendered.
In one embodiment of the present disclosure, the obtaining depth values of erasable elements and erasable trace elements in the element group on the display interface based on the appearance order of the element group on the display interface includes:
numbering the element groups from small to large or from large to small based on an order of appearance of the element groups on the display interface, assigning numbers of the element groups to erasable elements and erasable track elements in the element groups as depth values on the display interface.
In one embodiment of the present disclosure, the obtaining depth values of erasable elements and erasable trace elements in the element group on the display interface based on the appearance order of the element group on the display interface includes:
writing the obtained depth values of the erasable elements and the erasable track elements in the element group on the display interface into a depth buffer area in a system running the display interface.
In one embodiment of the present disclosure, the performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on the display interface includes:
rendering erasable elements and/or non-erasable elements to be rendered by writing erasable elements or non-erasable elements to be rendered to a content buffer in a system running the display interface.
In one embodiment of the present disclosure, the memory 702 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 701 to implement the steps of:
acquiring an erasable element which is appeared on a display interface and comprises an erasable element which is allowed to be erased, an non-erasable element which is not allowed to be erased and an erasing track element for erasing the erasable element;
according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group;
acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface;
and performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface.
Exemplary embodiments of the present disclosure also provide a computer storage medium for storing computer software instructions for the positioning apparatus, which includes a program for executing any of the above embodiments, thereby providing technical effects brought by the method.
Fig. 8 is a schematic structural diagram of a computer system suitable for implementing a display method or a rendering method according to an embodiment of the present disclosure.
As shown in fig. 8, a computer system 800 includes a processor (CPU, GPU, FPGA, etc.) 801 that can execute various processes in the embodiments shown in the above-described figures according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the system 800 are also stored. The processor 801, the ROM802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to embodiments of the present disclosure, the methods described above with reference to the figures may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the methods of the figures. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809 and/or installed from the removable medium 811.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer-readable storage medium stores one or more programs which are used by one or more processors to perform the methods described in the present disclosure, thereby providing technical effects brought by the methods.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (15)

1. A display method, comprising:
acquiring an erasable element which is appeared on a display interface and comprises an erasable element which is allowed to be erased, an non-erasable element which is not allowed to be erased and an erasing track element for erasing the erasable element;
according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group;
acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface;
performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface;
displaying the rendered elements on the display interface.
2. The method of claim 1, further comprising, prior to performing a rendering operation on a particular element of the group of elements based on the type of the element of the group of elements and the obtained depth values of the erasable element and the erased trace element of the group of elements on the display interface:
detecting whether there are elements in the set of elements that have not been rendered;
wherein the performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the obtained depth values of the erasable element and the erasable trace element in the element group on the display interface includes:
and according to the type of the element which is not yet rendered in the element group and the acquired depth values of the erasable element which is not yet rendered in the element group and the erased trace element on the display interface, performing rendering operation on the element which is not yet rendered in the element group.
3. The method of claim 2, wherein the performing a rendering operation on the elements of the element group that have not been rendered according to the type of the elements of the element group that have not been rendered and the acquired depth values of the erasable elements and the scratch trail elements of the element group on the display interface comprises:
rendering the unerasable elements in the element group that have not been rendered according to the elements in the element group that have not been rendered being unerasable elements.
4. The method of claim 2, wherein the performing a rendering operation on the elements of the element group that have not been rendered according to the type of the elements of the element group that have not been rendered and the acquired depth values of the erasable elements and the scratch trail elements of the element group on the display interface comprises:
according to the fact that the elements which are not yet rendered in the element group are erasable elements, determining whether a preset relation exists between depth values of the erasable elements which are not yet rendered in the element group and depth values of erased track elements or erasable elements which are located at the same plane position with the erasable elements which are not yet rendered;
rendering the erasable elements in the element group that have not been rendered according to determining that the preset relationship exists between the depth values of the erasable elements in the element group that have not been rendered and the depth values of the erasable trace elements or erasable elements that already exist in the same planar position as the erasable elements that have not been rendered.
5. The method of claim 4, wherein the performing a rendering operation on the elements of the element group that have not been rendered according to the type of the elements of the element group that have not been rendered and the acquired depth values of the erasable elements and the scratch trail elements of the element group that have not been rendered on the display interface further comprises:
in accordance with a determination that the depth values of the erasable elements in the element group that have not been rendered do not have the preset relationship with the depth values of the erased trace elements or erasable elements that already exist in the same planar position as the erasable elements that have not been rendered, the erasable elements in the element group that have not been rendered are not rendered.
6. The method of claims 1-5, wherein the obtaining depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface comprises:
numbering the element groups from small to large or from large to small based on an order of appearance of the element groups on the display interface, assigning numbers of the element groups to erasable elements and erasable track elements in the element groups as depth values on the display interface.
7. The method of claims 1-5, wherein the obtaining depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface comprises:
writing the obtained depth values of the erasable elements and the erasable track elements in the element group on the display interface into a depth buffer area in a system running the display interface.
8. The method of claims 1-5, wherein the performing a rendering operation on a particular element of the group of elements according to the type of the element of the group of elements and the obtained depth values of the erasable element and the erased trace element of the group of elements on the display interface comprises:
rendering erasable elements and/or non-erasable elements to be rendered by writing erasable elements or non-erasable elements to be rendered to a content buffer in a system running the display interface.
9. Method according to claims 1 to 5, characterized in that the sequentially related erase track elements are sequentially consecutive erase track elements.
10. A display device, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, and the erasing track elements appear on a display interface;
an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface;
a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface;
a rendering module configured to perform a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable trace element in the element group on the display interface;
a display module configured to display the rendered elements on the display interface.
11. A rendering method, comprising:
acquiring an erasable element which is appeared on a display interface and comprises an erasable element which is allowed to be erased, an non-erasable element which is not allowed to be erased and an erasing track element for erasing the erasable element;
according to the appearance sequence of the erasable elements, the non-erasable elements and the erasing track elements on the display interface, allocating the erasing track elements related in sequence and the erasable elements and the non-erasable elements which are in front of the erasing track elements related in sequence in the appearance sequence into an element group;
acquiring depth values of erasable elements and erasable track elements in the element group on the display interface based on the appearance sequence of the element group on the display interface;
and performing a rendering operation on a specific element in the element group according to the type of the element in the element group and the acquired depth values of the erasable element and the erasable track element in the element group on the display interface.
12. A rendering apparatus, characterized by comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire erasable elements which are allowed to be erased, non-erasable elements which are not allowed to be erased and erasing track elements for erasing the erasable elements, and the erasing track elements appear on a display interface;
an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface;
a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface;
a rendering module configured to perform a rendering operation on a particular element of the element group according to a type of the element group and the acquired depth values of the erasable element and the erased track element of the element group on the display interface.
13. An electronic whiteboard, comprising:
a first acquisition module configured to acquire an erasable element that is allowed to be erased, an unerasable element that is not allowed to be erased, and an erasing trace element for erasing the erasable element that appear on a display interface of the electronic whiteboard;
an allocation module configured to allocate an erasure trace element related in sequence and an erasure trace element and an non-erasure element preceding the erasure trace element related in sequence in the order of appearance as one element group according to the order of appearance of the erasure element, the non-erasure element and the erasure trace element on the display interface;
a second obtaining module configured to obtain depth values of erasable elements and erasable trace elements in the element group on the display interface based on an appearance order of the element group on the display interface;
a rendering module configured to perform a rendering operation on a particular element of the element group according to a type of the element group and the acquired depth values of the erasable element and the erased track element of the element group on the display interface.
14. An electronic device comprising a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the processor to implement the method of any of claims 1-9, 11.
15. A readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the method of any one of claims 1-9, 11.
CN202010746892.5A 2020-07-29 2020-07-29 Display method, rendering method, device, system, equipment and readable storage medium Pending CN114089893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010746892.5A CN114089893A (en) 2020-07-29 2020-07-29 Display method, rendering method, device, system, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010746892.5A CN114089893A (en) 2020-07-29 2020-07-29 Display method, rendering method, device, system, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114089893A true CN114089893A (en) 2022-02-25

Family

ID=80294869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010746892.5A Pending CN114089893A (en) 2020-07-29 2020-07-29 Display method, rendering method, device, system, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114089893A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127125A (en) * 2007-09-26 2008-02-20 腾讯科技(深圳)有限公司 Image rendering method and system
US20140168272A1 (en) * 2012-12-14 2014-06-19 Christopher Serge Benjamin Chedeau Rendering Contiguous Image Elements
CN104965838A (en) * 2014-09-11 2015-10-07 腾讯科技(深圳)有限公司 Page element processing method and page element processing apparatus
US20160086340A1 (en) * 2014-09-22 2016-03-24 Samsung Electronics Co., Ltd. Rendering apparatus and method
US20170109917A1 (en) * 2016-08-03 2017-04-20 Hisense Electric Co., Ltd. Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
US20170302903A1 (en) * 2012-06-26 2017-10-19 Lytro, Inc. Depth-assigned content for depth-enhanced virtual reality images
CN109324724A (en) * 2018-08-20 2019-02-12 广州视源电子科技股份有限公司 Wiping method, device, equipment and the storage medium of electronic whiteboard
US20190163352A1 (en) * 2017-11-27 2019-05-30 International Business Machines Corporation Resizing of images with respect to a single point of convergence or divergence during zooming operations in a user interface
CN110516180A (en) * 2019-08-21 2019-11-29 北京拉勾网络技术有限公司 A kind of content display method, device and calculate equipment
CN111145323A (en) * 2019-12-27 2020-05-12 珠海金山网络游戏科技有限公司 Image rendering method and device
CN111327762A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Operation track display method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127125A (en) * 2007-09-26 2008-02-20 腾讯科技(深圳)有限公司 Image rendering method and system
US20170302903A1 (en) * 2012-06-26 2017-10-19 Lytro, Inc. Depth-assigned content for depth-enhanced virtual reality images
US20140168272A1 (en) * 2012-12-14 2014-06-19 Christopher Serge Benjamin Chedeau Rendering Contiguous Image Elements
CN104965838A (en) * 2014-09-11 2015-10-07 腾讯科技(深圳)有限公司 Page element processing method and page element processing apparatus
US20160086340A1 (en) * 2014-09-22 2016-03-24 Samsung Electronics Co., Ltd. Rendering apparatus and method
US20170109917A1 (en) * 2016-08-03 2017-04-20 Hisense Electric Co., Ltd. Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
US20190163352A1 (en) * 2017-11-27 2019-05-30 International Business Machines Corporation Resizing of images with respect to a single point of convergence or divergence during zooming operations in a user interface
CN109324724A (en) * 2018-08-20 2019-02-12 广州视源电子科技股份有限公司 Wiping method, device, equipment and the storage medium of electronic whiteboard
CN110516180A (en) * 2019-08-21 2019-11-29 北京拉勾网络技术有限公司 A kind of content display method, device and calculate equipment
CN111145323A (en) * 2019-12-27 2020-05-12 珠海金山网络游戏科技有限公司 Image rendering method and device
CN111327762A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Operation track display method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
于连庆;: "基于触控操作方式的大气科学数据可视化系统技术研究与实现", 南京信息工程大学学报(自然科学版), no. 06, pages 530 - 538 *
黄梦成;刘芳;刘学慧;吴恩华;: "基于CUDA渲染器的顺序独立透明现象的单遍高效绘制", 软件学报, no. 08, pages 1927 - 1933 *

Similar Documents

Publication Publication Date Title
US8619083B2 (en) Multi-layer image composition with intermediate blending resolutions
US7015915B1 (en) Programming multiple chips from a command buffer
CN103995684B (en) Method and system for synchronously processing and displaying mass images under ultrahigh resolution platform
EP2859447B1 (en) Virtual surface allocation
MXPA06003282A (en) System and method for a unified composition engine in a graphics processing system.
CN110415276B (en) Motion information calculation method and device and electronic equipment
CN111209721A (en) Bitmap font realization method and device, electronic equipment and storage medium
US9177533B2 (en) Virtual surface compaction
CN107908608B (en) Method, storage medium and device for converting and displaying manuscript in three-dimensional space
CN109343924A (en) Activiti flow chart redraws method, apparatus, computer equipment and storage medium processed
US9230517B2 (en) Virtual surface gutters
CN105511890A (en) Graphical interface updating method and graphical interface updating device
US10930040B2 (en) Graphic object modifications
Kelly et al. Basic introduction to pygame
CN114089893A (en) Display method, rendering method, device, system, equipment and readable storage medium
CN112492399B (en) Information display method and device and electronic equipment
CN112130948A (en) Display control method and device, computer readable medium and electronic device
CN106547505B (en) Method and system for real-time sliding display of scanned image
CN115454306A (en) Display effect processing method and device, electronic equipment and storage medium
CN105378645A (en) Virtualizing applications for multi-monitor environments
CN112233206B (en) Character image generation method, device, equipment and storage medium
US7248267B2 (en) Method and apparatus for simulated direct frame buffer access for graphics adapters
CN117742863B (en) Multimedia processing method and system based on Qt and GSstreamer combination
Perrotte et al. Fast GPU perspective grid construction and triangle tracing for exhaustive ray tracing of highly coherent rays
KR100230845B1 (en) Generating method of sprite animation

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