CN108009172B - File three-dimensional display method and device and terminal - Google Patents

File three-dimensional display method and device and terminal Download PDF

Info

Publication number
CN108009172B
CN108009172B CN201610954842.XA CN201610954842A CN108009172B CN 108009172 B CN108009172 B CN 108009172B CN 201610954842 A CN201610954842 A CN 201610954842A CN 108009172 B CN108009172 B CN 108009172B
Authority
CN
China
Prior art keywords
file
display
graphic
elements
typesetting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610954842.XA
Other languages
Chinese (zh)
Other versions
CN108009172A (en
Inventor
薛平安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610954842.XA priority Critical patent/CN108009172B/en
Publication of CN108009172A publication Critical patent/CN108009172A/en
Application granted granted Critical
Publication of CN108009172B publication Critical patent/CN108009172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method, a device and a terminal for three-dimensional display of a file, which are used for obtaining typesetting information of the file by analyzing the file, obtaining a three-dimensional display model capable of supporting the three-dimensional display effect of the file according to a preset typesetting rule and the typesetting information, and displaying the file according to the three-dimensional display model, thereby realizing the three-dimensional display of the file. The invention can carry out three-dimensional display on the file according to the setting of the user, not only can realize more vivid display effect, but also can carry out multi-level display on the graphic elements in the file. In addition, the invention also provides an optimization technical scheme which comprises the steps of carrying out progressive loading on the file content according to indexes, realizing rapid secondary display on the displayed graphic elements in a serialization and deserialization mode, and adjusting the display precision according to the configuration of the display terminal, so that the speed of file three-dimensional display is improved, and the application range of the invention is widened.

Description

File three-dimensional display method and device and terminal
Technical Field
The invention relates to the field of document display, in particular to a method, a device and a terminal for three-dimensional display of a file.
Background
Microsoft Office is a set of Office software suite developed by Microsoft corporation based on Windows operating system, and has been widely applied in the world; there are other Office software similar to the Microsoft Office software suite in China, such as WPS Office; these office software programs are capable of displaying documents in various forms such as characters, tables, and slides.
However, although various office software can perform typesetting display on the document, the existing office software implements typesetting display based on two-dimensional superimposed planes on the document. If the graphic elements in the file have a superposition relationship, only the graphic element at the uppermost layer can be displayed, and various graphic elements at the middle layer and the bottom layer cannot be directly displayed.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method, a device and a terminal for three-dimensional display of a file, which are used for analyzing the file to obtain typesetting information of the file, and obtaining a three-dimensional display model capable of supporting the three-dimensional display effect of the file according to a preset typesetting rule and the typesetting information so as to realize the three-dimensional display of the file.
The invention is realized by the following technical scheme:
a method of stereoscopic display of a file, the method comprising:
analyzing typesetting information in a file, wherein the typesetting information comprises graphic elements and typesetting elements of the graphic elements, and the typesetting elements comprise positions of the graphic elements on a display page and other constraint information related to display;
generating a three-dimensional display model corresponding to the file according to the typesetting information and three-dimensional display parameters corresponding to the graphic elements according to a preset typesetting rule;
and displaying the file according to the stereoscopic display model.
Further, the graphical elements include text paragraphs, primitive geometries, compound geometries, pictures, charts, tables, and/or formulas.
Further, the preset typesetting rule includes typesetting the graph according to the typesetting elements of the graph elements, and keeping the hierarchical position of the graph elements in the three-dimensional display model consistent with the hierarchical position of the graph elements recorded in the file.
Further, the preset typesetting rule further includes that the stereoscopic display parameters corresponding to the graphic elements can be modified according to the setting of the user.
Furthermore, the file is a file supported by a Microsoft Office suite, and the preset typesetting rule is compatible with a flat panel display rule supported by the Microsoft Office suite.
Further, still include: describing the stereo display model in a form of a graphic sequence, and constructing a display file according to a description result; each graph in the graph sequence comprises a graph element, a typesetting element of the graph element and a three-dimensional display parameter corresponding to the graph element.
Further, an index is generated according to the display file, and the index is used for quickly positioning the graphs in the graph sequence.
Further, in the process of displaying the file, a region to be loaded of the file is obtained in real time, a graphic sequence corresponding to the region to be loaded is obtained in the display file according to the index, and graphic elements in the graphic sequence are displayed.
Further, still include:
serializing the displayed graphic elements and generating a graphic recording file;
and if the displayed graphic elements are required to be displayed again after leaving the display area of the file, deserializing the graphic record file and directly displaying the graphic elements according to the deserialization result.
Further, still include: and acquiring configuration parameters of a terminal for displaying the file, and setting the display precision of the file according to the configuration parameters.
A file stereoscopic display apparatus comprising:
the analysis module is used for analyzing typesetting information in the file, wherein the typesetting information comprises graphic elements and typesetting elements of the graphic elements, and the typesetting elements comprise positions of the graphic elements on a display page and other constraint information related to display;
the stereoscopic display model establishing module is used for generating a stereoscopic display model corresponding to the file according to the typesetting information and the stereoscopic display parameters corresponding to the graphic elements according to a preset typesetting rule;
and the display module is used for displaying the file according to the stereoscopic display model.
Further, still include: the display file construction module is used for describing the three-dimensional display model in a graphic sequence mode and constructing a display file according to a description result; each graph in the graph sequence comprises a graph element, a typesetting element of the graph element and a three-dimensional display parameter corresponding to the graph element.
Further, still include: and the index generating module is used for generating an index according to the display file, and the index is used for quickly positioning the graphs in the graph sequence.
Further, the display module includes: a to-be-loaded area acquisition unit, configured to acquire a to-be-loaded area of the file in real time;
the graph sequence acquisition unit is used for acquiring a graph sequence corresponding to the area to be loaded in the display file according to the index;
and the display unit is used for displaying the graphic elements in the graphic sequence.
Further, still include:
the serialization module is used for serializing the displayed graphic elements and generating a graphic record file;
and the deserializing module is used for deserializing the graphic recording file and transmitting the deserializing result to the display unit.
Further, still include: and the precision setting module is used for acquiring the configuration parameters of the terminal for displaying the file and setting the precision of the file display according to the configuration parameters.
A file stereoscopic display terminal comprises the file stereoscopic display device.
The file three-dimensional display method, the file three-dimensional display device and the file three-dimensional display terminal have the following beneficial effects:
(1) the file can be displayed three-dimensionally according to the setting of a user, so that a more vivid display effect can be realized, and the graphic elements in the file can be displayed in multiple levels.
(2) If the graphic elements in the file are overlapped, only the topmost graphic element can be displayed in the prior art, and the overlapped elements can be displayed in different three-dimensional effects, so that a user can see each overlapped layer of elements.
(3) The invention also provides a technical scheme for carrying out progressive loading on the content of the file according to the index, realizing rapid secondary display on the displayed graphic elements in a serialization and deserialization mode and adjusting the display precision according to the configuration of the display terminal, thereby improving the speed of file three-dimensional display, saving the memory consumption and the performance consumption of the terminal in the process of file three-dimensional display, and ensuring that the technical scheme of the invention not only can be used in a desktop computer with better hardware condition, but also can be used in a mobile terminal with limited hardware condition, thereby having better application range.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a file stereoscopic display method according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a file parsing flow provided in embodiment 1 of the present invention;
FIG. 3 is a flowchart of rendering a file by calling a system API according to embodiment 1 of the present invention;
fig. 4 is a flowchart of rendering a file through an OpenGL ES according to embodiment 1 of the present invention;
FIG. 5 is a diagram of the effect of two-dimensional display of files provided in embodiment 1 of the present invention;
FIG. 6 is an effect diagram of three-dimensional display of files provided in embodiment 1 of the present invention;
FIG. 7 is a diagram illustrating a file index provided in embodiment 2 of the present invention;
fig. 8 is a block diagram of a file stereoscopic display apparatus provided in embodiment 3 of the present invention;
fig. 9 is a block diagram of a display module provided in embodiment 3 of the present invention;
fig. 10 is a block diagram of a terminal according to embodiment 4 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
a method for stereoscopically displaying a file, as shown in fig. 1, the method comprising:
s101, analyzing the typesetting information in the file.
The layout information includes graphic elements and layout elements of the graphic elements.
In particular, the graphical elements include text passages, primitive geometries, compound geometries, pictures, charts, tables, and/or formulas.
The composition element includes the position of the graphic element on the display page and other constraint information related to the display. The specific other constraint information includes a relative positional relationship between the graphic elements. The purpose of recording the typesetting elements of the graphic elements is to ensure that the specific positions and relative position relations of the graphic elements in the display result are consistent with the record of the specific positions and relative position relations of the graphic elements in the file in the process of stereoscopically displaying the file.
The embodiment can analyze common Office files, and specifically, can analyze files supported by a Microsoft Office suite, including Word files, Excel files, and PowerPoint files. The files supported by the Microsoft Office suite are generated according to the Microsoft custom rule, and the files supported by the Microsoft Office suite can be analyzed according to the custom rule. The files supported by the Microsoft Office suite include two coding forms, the Microsoft Office uses a Binary (Binary) coding form before the 2007 version, and then uses an OpenXML form, which is an Ecma Office OpenXML, and is an international open standard for word processing documents, presentations and spreadsheets.
In order to analyze both the files in the two encoding forms, as shown in fig. 2, the present embodiment first determines the encoding form of the file, then determines which component (Word, Excel, and PowerPoint) in the Microsoft Office suite supports the file, and analyzes the file according to the two determination results. The analysis result further includes other information, which is information unrelated to stereoscopic display, and may include editing information, such as recording a last editing position or revision information, and may also include encryption information, such as an open password and an edit password of a file; in addition, attribute information, such as external links and author information, may also be included.
And S102, generating a three-dimensional display model corresponding to the file according to the typesetting information and three-dimensional display parameters corresponding to the graphic elements according to a preset typesetting rule.
The preset typesetting rule comprises typesetting the graph according to the typesetting elements of the graph elements and keeping the level positions of the graph elements in the three-dimensional display model consistent with the level positions of the graph elements recorded in the file.
Specifically, the preset typesetting rule further includes that the stereoscopic display parameters corresponding to the graphic elements can be modified according to the setting of the user. For example, a user may set a stereoscopic display parameter corresponding to each graphic element, so that different graphic elements can correspond to different three-dimensional display effects. Specifically, the stereoscopic display parameters include an extension direction and an extension angle in the stereoscopic display of the graphic element. For example, an effect of using an upward vertical extension or an upward oblique extension when a certain graphic element is displayed may be defined.
Further, the file parsed in this embodiment is a file supported by the Microsoft Office suite, and the preset layout rule also needs to be compatible with the flat panel display rule of the file supported by the Microsoft Office suite. As another preferred embodiment, the present invention may also parse other office files, and accordingly, the corresponding layout rule is compatible with the display rules of the other office files.
And S103, displaying the file according to the stereoscopic display model.
Describing the stereo display model in a form of a graphic sequence, and constructing a display file according to a description result; each graph in the graph sequence comprises a graph element, a typesetting element of the graph element and a three-dimensional display parameter corresponding to the graph element.
Specifically, the present embodiment provides two rendering manners for implementing stereoscopic display of a file:
(1) rendering files by calling system API (application programming interface)
As shown in fig. 3, a graphics sequence to be displayed is obtained according to the stereoscopic display model, the graphics sequence is decomposed into a combination of basic graphics, and an API of a system is called to draw each graphics respectively. In another embodiment, each graph can be rendered separately using OpenGL. OpenGL (Open Graphics Library) refers to a specialized graphical program interface that defines a cross-programming language, cross-platform programming interface specification. The method is used for three-dimensional images (two-dimensional images can also be used), and is a bottom layer graphic library which is powerful and convenient to call.
(2) Rendering files through OpenGL ES
OpenGL ES (OpenGL for Embedded Systems) is a subset of OpenGL three-dimensional graphics APIs, and is designed for Embedded devices such as mobile phones, PDAs, and game hosts. In a mobile terminal with limited hardware conditions, OpenGL ES can be used to realize stereoscopic display of files.
As shown in fig. 4, a graphics sequence to be displayed is obtained according to the stereoscopic display model, a corresponding OpenGL ES element and instruction are obtained according to the graphics sequence, and OpenGL ES is invoked to implement graphics rendering.
According to the file three-dimensional display method provided by the embodiment, the file is three-dimensionally displayed according to the setting of the user, so that a more vivid display effect can be realized, and the graphic elements in the file can be displayed in a multi-level manner. The effect of opening a PowerPoint file by the Microsoft Office suite is shown in fig. 5, and the effect displayed by using the method in the embodiment is shown in fig. 6, so that the superimposed elements are displayed in different three-dimensional effects, and a user can see each superimposed layer of elements, thereby obtaining a rich and vivid display effect.
Example 2:
a method of stereoscopic display of a file, the method comprising:
s201, analyzing the typesetting information in the file.
The layout information includes graphic elements and layout elements of the graphic elements, and the layout elements include positions of the graphic elements on a display page and other constraint information related to display.
S202, generating a three-dimensional display model corresponding to the file according to the typesetting information and three-dimensional display parameters corresponding to the graphic elements according to a preset typesetting rule.
And S203, displaying the file according to the stereoscopic display model.
Compared with the flat panel display, the file stereoscopic display needs to consume more system resources, and therefore, for a mobile terminal with limited hardware conditions, it is difficult to realize the stereoscopic display of the file, and therefore, the embodiment provides an optimization scheme for the file stereoscopic display method, so that the occupation of the hardware resources in the file stereoscopic display process is saved, the display speed of the file in the stereoscopic display process is increased, and the method in the embodiment can also be suitable for the mobile terminal.
Specifically, in this embodiment, the stereoscopic display model is described in a form of a graphic sequence, and a display file is constructed according to a description result; each graph in the graph sequence comprises a graph element, a typesetting element of the graph element and a three-dimensional display parameter corresponding to the graph element.
And generating an index according to the display file, wherein the index is used for quickly positioning the graphs in the graph sequence. Each graphic element in a page has a corresponding unique identifier id and position information offset, which is used to locate the storage location of the graphic element, and can be an offset location in a binary file, a path in an XML file, a file path on a file system, or a network address URL. The index of a page is represented by a table structure including unique identifiers id and position information offset of all the graphic elements constituting the page. Taking the index establishment for the page of the Word file as an example, as shown in fig. 7, the page includes four graphic elements of a table, a picture, an icon, and a formula.
Further, in the process of displaying the file, acquiring a region to be loaded of the file in real time, obtaining a graphic sequence corresponding to the region to be loaded in the display file according to the index, and displaying graphic elements in the graphic sequence; and graphic elements which are not in the area to be loaded are not processed.
Further, still include:
serializing the displayed graphic elements and generating a graphic recording file;
and if the displayed graphic elements are required to be displayed again after leaving the display area of the file, deserializing the graphic record file and directly displaying the graphic elements according to the deserialization result.
Specifically, the index structure is analyzed, and the Object is generated from the graphic element. The Object is in fact an abstract description of real-world objects in the computer domain, as well as states and behaviors. In this embodiment, the graphic elements are parsed into Object objects according to the unique identifier id and the position information offset, where each graphic element corresponds to one Object, and a page is also an Object and includes the Object corresponding to the graphic elements constituting the page. Taking the Java language as an example, Object can implement serialization and deserialization of objects through the native functionality of Java (an Object oriented programming language) or Json (a Java-compatible lightweight data interchange format).
Further, still include: and acquiring configuration parameters of a terminal for displaying the file, and setting the display precision of the file according to the configuration parameters. For example, if the terminal is a high-definition mobile device, the file is displayed by using high DPI, where DPI is an abbreviation of Dots Per Inch Per inc (dot Per Inch), and a unit of resolution is used, and a larger DPI value indicates that the display precision of the high-definition mobile device is higher. In order to avoid too slow display speed caused by high DPI display, the display precision of the file may be appropriately reduced in step S203 to balance the display speed.
The embodiment provides a file three-dimensional display method, and further provides an optimization technical scheme for progressively loading file contents according to indexes, realizing rapid secondary display of displayed graphic elements in a serialization and deserialization mode, and adjusting display precision according to the configuration of a display terminal, so that the speed of file three-dimensional display is improved, hardware resources required to be consumed in the file three-dimensional display process are reduced, and the embodiment can be particularly used in a mobile terminal with limited hardware conditions.
Example 3:
a file stereoscopic display apparatus, as shown in fig. 8, comprising:
and the parsing module 301 is configured to parse the layout information in the file.
And a stereoscopic display model establishing module 302, configured to generate a stereoscopic display model corresponding to the file according to a preset typesetting rule and according to the typesetting information and the stereoscopic display parameters corresponding to the graphic elements.
And a display module 303, configured to display the file according to the stereoscopic display model.
And the display file construction module 304 is configured to describe the stereoscopic display model in a form of a graphic sequence, and construct a display file according to a description result.
An index generating module 305, configured to generate an index according to the display file, where the index is used to quickly locate the graphics in the graphics sequence.
The display file construction module 304 obtains the stereoscopic display model by interacting with the display module 303, and constructs a display file; the index generation module 305 generates an index for the display file by interacting with the display file construction module 304. The display module 303 displays the display file constructed by the display file construction module 304 according to the file and the index generated by the index generation module 305.
Specifically, as shown in fig. 9, the display module 303 includes:
a to-be-loaded region acquiring unit 3031, configured to acquire a to-be-loaded region of the file in real time;
a graphic sequence obtaining unit 3032, configured to obtain, according to the index, a graphic sequence corresponding to the region to be loaded in the display file;
a display unit 3033, configured to display the graphic elements in the graphic sequence.
In addition, this embodiment further includes:
a serialization module 306 for serializing the displayed graphic elements and generating a graphic record file;
and the deserializing module 307 is configured to deserialize the graphic recording file and transmit the deserializing result to the display unit.
If the displayed graphic element needs to be displayed again after leaving the display area of the file, the graphic recording file is deserialized by the deserialization module 307, and the graphic element is directly displayed according to the deserialization result, in this embodiment, the displayed graphic element is rapidly displayed secondarily by the serialization module 306 and the deserialization module 307.
This embodiment still includes:
and the precision setting module 308 is configured to obtain configuration parameters of a terminal for displaying the file, and set precision of displaying the file according to the configuration parameters.
The present embodiment provides a file stereoscopic display apparatus based on the same inventive concept, and the present embodiment can be used to implement the file stereoscopic display method provided in the above embodiments.
Example 4:
referring to fig. 10, an embodiment of the present invention provides a terminal, which may be used to implement the method for stereoscopically displaying a file provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, input unit 130, display unit 140, sensor 150, audio circuitry 160, WiFi (wireless fidelity) module 170, processor 180 including one or more processing cores, and power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 10, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal may also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 141 and/or a backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications of recognizing terminal gestures (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and the terminal. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to a short-distance wireless transmission technology, and the terminal can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the terminal. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which are not described herein again. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
analyzing typesetting information in a file, wherein the typesetting information comprises graphic elements and typesetting elements of the graphic elements, and the typesetting elements comprise positions of the graphic elements on a display page and other constraint information related to display;
generating a three-dimensional display model corresponding to the file according to the typesetting information and three-dimensional display parameters corresponding to the graphic elements according to a preset typesetting rule;
and displaying the file according to the stereoscopic display model.
Further, the memory of the terminal further contains instructions for:
describing the stereo display model in a form of a graphic sequence, and constructing a display file according to a description result; each graph in the graph sequence comprises a graph element, a typesetting element of the graph element and a three-dimensional display parameter corresponding to the graph element.
Further, the memory of the terminal further contains instructions for:
and generating an index according to the display file, wherein the index is used for quickly positioning the graphs in the graph sequence.
Further, the memory of the terminal further contains instructions for:
and in the process of displaying the file, acquiring a region to be loaded of the file in real time, obtaining a graphic sequence corresponding to the region to be loaded in the display file according to the index, and displaying graphic elements in the graphic sequence.
Further, the memory of the terminal further contains instructions for:
serializing the displayed graphic elements and generating a graphic recording file;
and if the displayed graphic elements are required to be displayed again after leaving the display area of the file, deserializing the graphic record file and directly displaying the graphic elements according to the deserialization result.
Further, the memory of the terminal further contains instructions for:
and acquiring configuration parameters of a terminal for displaying the file, and setting the display precision of the file according to the configuration parameters.
In summary, the terminal provided in the embodiment of the present invention can be used to implement a file stereoscopic display method, and perform three-dimensional stereoscopic display on a file according to a setting of a user, so that not only can a more vivid display effect be achieved, but also a multi-level display can be performed on graphic elements in the file. In addition, the technical scheme of optimizing the progressive loading of the file content according to the index, the rapid secondary display of the displayed graphic elements in the forms of serialization and deserialization and the adjustment of the display precision according to the configuration of the display terminal is realized, so that the speed of the file three-dimensional display is improved, and the hardware resources required to be consumed in the process of the file three-dimensional display are reduced.
Example 5:
an embodiment of the present invention provides a computer-readable storage medium, which may be a computer-readable storage medium contained in the memory in the above-described embodiment; or it may be a separate computer-readable storage medium not incorporated in the terminal. A computer readable storage medium storing one or more programs, the one or more programs being used by one or more processors to perform a method for stereoscopic display of a file, the method comprising:
analyzing typesetting information in a file, wherein the typesetting information comprises graphic elements and typesetting elements of the graphic elements, and the typesetting elements comprise positions of the graphic elements on a display page and other constraint information related to display;
generating a three-dimensional display model corresponding to the file according to the typesetting information and three-dimensional display parameters corresponding to the graphic elements according to a preset typesetting rule;
and displaying the file according to the stereoscopic display model.
Further, the method further comprises: the graphical elements include text paragraphs, primitive geometries, compound geometries, pictures, charts, tables, and/or formulas.
Further, the method further comprises: the preset typesetting rule comprises typesetting the graph according to the typesetting elements of the graph elements and keeping the level positions of the graph elements in the three-dimensional display model consistent with the level positions of the graph elements recorded in the file.
Further, the method further comprises: the preset typesetting rule further comprises that the three-dimensional display parameters corresponding to the graphic elements can be modified according to the setting of the user.
Further, the method further comprises: the files are files supported by the Microsoft Office suite, and the preset typesetting rules are compatible with the plane display rules supported by the Microsoft Office suite.
Further, the method further comprises: describing the stereo display model in a form of a graphic sequence, and constructing a display file according to a description result; each graph in the graph sequence comprises a graph element, a typesetting element of the graph element and a three-dimensional display parameter corresponding to the graph element.
Further, the method further comprises: and generating an index according to the display file, wherein the index is used for quickly positioning the graphs in the graph sequence.
Further, the method further comprises: and in the process of displaying the file, acquiring a region to be loaded of the file in real time, obtaining a graphic sequence corresponding to the region to be loaded in the display file according to the index, and displaying graphic elements in the graphic sequence.
Further, the method further comprises:
serializing the displayed graphic elements and generating a graphic recording file;
and if the displayed graphic elements are required to be displayed again after leaving the display area of the file, deserializing the graphic record file and directly displaying the graphic elements according to the deserialization result.
Further, the method further comprises: and acquiring configuration parameters of a terminal for displaying the file, and setting the display precision of the file according to the configuration parameters.
In summary, the computer-readable storage medium provided in the embodiments of the present invention performs three-dimensional stereoscopic display on a file according to the setting of a user, so that not only can a more vivid display effect be achieved, but also the graphic elements in the file can be displayed in multiple levels. In addition, the method can also realize the technical scheme of optimizing the file content according to the progressive loading of indexes, the rapid secondary display of the displayed graphic elements in the forms of serialization and deserialization and the adjustment of the display precision according to the configuration of the display terminal, thereby improving the speed of the file three-dimensional display and reducing the hardware resources required to be consumed in the process of the file three-dimensional display.
Example 6:
the embodiment of the invention provides a graphical user interface, which is used on a terminal, wherein the terminal comprises a touch screen display, a memory and one or more processors for executing one or more programs; the graphical user interface comprises:
analyzing typesetting information in a file, wherein the typesetting information comprises graphic elements and typesetting elements of the graphic elements, and the typesetting elements comprise positions of the graphic elements on a display page and other constraint information related to display;
generating a three-dimensional display model corresponding to the file according to the typesetting information and three-dimensional display parameters corresponding to the graphic elements according to a preset typesetting rule;
and displaying the file according to the stereoscopic display model.
In summary, the graphical user interface provided in the embodiment of the present invention performs three-dimensional stereoscopic display on a file according to the setting of the user, so that not only can a more vivid display effect be achieved, but also the graphical elements in the file can be displayed in multiple layers.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal can be implemented in other manners. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (12)

1. A file stereoscopic display method is characterized by comprising the following steps:
acquiring a coding form of a file and an office file type of the file;
analyzing typesetting information in the file according to the coding form and the office file type, wherein the typesetting information comprises graphic elements and typesetting elements of the graphic elements, and the typesetting elements comprise positions of the graphic elements on a display page and other constraint information related to display;
generating a three-dimensional display model corresponding to the file according to a preset typesetting rule compatible with the office file plane display rule, the typesetting information and three-dimensional display parameters corresponding to the graphic elements; the three-dimensional display parameters are used for enabling different graphic elements to correspond to different three-dimensional display effects, the three-dimensional display parameters comprise an extension direction and an extension angle, the three-dimensional display model is used for displaying each layer of superposed elements in the same plane with different three-dimensional effects, and is described in a form of a graphic sequence, and each graphic in the graphic sequence comprises the graphic element, a typesetting element of the graphic element and the three-dimensional display parameters corresponding to the graphic element;
constructing a display file according to the description result, and generating an index according to the display file, wherein the index is used for positioning the graphs in the graph sequence;
and acquiring a region to be loaded in real time, obtaining a graphic sequence corresponding to the region to be loaded in the display file according to the index, and displaying graphic elements in the graphic sequence corresponding to the region to be loaded.
2. The method of claim 1, wherein the graphical elements comprise text paragraphs, primitive geometries, compound geometries, pictures, charts, tables, and/or formulas.
3. The method of claim 1, wherein the preset composition rule comprises composing the graphic according to composition elements of graphic elements and keeping hierarchical positions of the graphic elements in the stereoscopic display model consistent with those of the graphic elements recorded in a file.
4. The method according to claim 3, wherein the preset composition rule further comprises: and modifying the stereo display parameters corresponding to the graphic elements according to the setting of the user.
5. The method according to claim 1, wherein the file is a file supported by a Microsoft Office suite, and the preset layout rule is compatible with a flat panel display rule supported by the Microsoft Office suite.
6. The method of claim 1, further comprising:
serializing the displayed graphic elements and generating a graphic recording file;
and if the displayed graphic elements are required to be displayed again after leaving the display area of the file, deserializing the graphic recording file and directly displaying the displayed graphic elements according to the deserialization result.
7. The method of claim 1, further comprising:
and acquiring configuration parameters of a terminal for displaying the file, and setting the display precision of the file according to the configuration parameters.
8. A stereoscopic display device for documents, comprising:
the analysis module is used for acquiring the coding form of the file and the office file type of the file; analyzing typesetting information in the file according to the coding form and the office file type, wherein the typesetting information comprises graphic elements and typesetting elements of the graphic elements, the typesetting elements comprise positions of the graphic elements on a display page and other constraint information related to display, and the file belongs to the office file;
the stereoscopic display model establishing module is used for generating a stereoscopic display model corresponding to the file according to a preset typesetting rule compatible with the office file plane display rule, the typesetting information and stereoscopic display parameters corresponding to the graphic elements; the three-dimensional display parameters are used for enabling different graphic elements to correspond to different three-dimensional display effects, the three-dimensional display parameters comprise an extension direction and an extension angle, the three-dimensional display model is used for displaying each layer of superposed elements in the same plane with different three-dimensional effects, and is described in a form of a graphic sequence, and each graphic in the graphic sequence comprises the graphic element, a typesetting element of the graphic element and the three-dimensional display parameters corresponding to the graphic element;
the display module is used for constructing a display file according to the description result and generating an index according to the display file, wherein the index is used for positioning the graphs in the graph sequence; and acquiring a region to be loaded in real time, obtaining a graphic sequence corresponding to the region to be loaded in the display file according to the index, and displaying graphic elements in the graphic sequence corresponding to the region to be loaded.
9. The apparatus of claim 8, further comprising:
the serialization module is used for serializing the displayed graphic elements and generating a graphic record file;
and the deserializing module is used for deserializing the graphic recording file and transmitting the deserializing result to the display unit.
10. The apparatus of claim 8, further comprising:
and the precision setting module is used for acquiring the configuration parameters of the terminal for displaying the file and setting the precision of the file display according to the configuration parameters.
11. A file stereoscopic display terminal, characterized in that the terminal comprises a file stereoscopic display device according to any one of claims 8 to 10.
12. A computer storage medium, characterized in that it stores at least one program that, when executed by a processor, performs a method of stereoscopic display of files according to any one of claims 1 to 7.
CN201610954842.XA 2016-10-27 2016-10-27 File three-dimensional display method and device and terminal Active CN108009172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610954842.XA CN108009172B (en) 2016-10-27 2016-10-27 File three-dimensional display method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610954842.XA CN108009172B (en) 2016-10-27 2016-10-27 File three-dimensional display method and device and terminal

Publications (2)

Publication Number Publication Date
CN108009172A CN108009172A (en) 2018-05-08
CN108009172B true CN108009172B (en) 2021-12-14

Family

ID=62047420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610954842.XA Active CN108009172B (en) 2016-10-27 2016-10-27 File three-dimensional display method and device and terminal

Country Status (1)

Country Link
CN (1) CN108009172B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565267B (en) * 2020-12-07 2023-05-02 贵阳语玩科技有限公司 Forward compatible element increment change data transmission method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295224A (en) * 2008-05-30 2008-10-29 炬力集成电路设计有限公司 Indication method and device for file data display device, multimedia broadcasting system
CN103412874A (en) * 2013-07-11 2013-11-27 北京大学深圳研究生院 Method and system for achieving three-dimensional page
CN105095319A (en) * 2014-05-23 2015-11-25 邓寅生 Time serialization based document identifying, associating, searching and showing system
CN105868323A (en) * 2016-03-28 2016-08-17 浪潮通信信息系统有限公司 Graphical configuration method of networking resources

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070256054A1 (en) * 2006-04-28 2007-11-01 Paul Byrne Using 3-dimensional rendering effects to facilitate visualization of complex source code structures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295224A (en) * 2008-05-30 2008-10-29 炬力集成电路设计有限公司 Indication method and device for file data display device, multimedia broadcasting system
CN103412874A (en) * 2013-07-11 2013-11-27 北京大学深圳研究生院 Method and system for achieving three-dimensional page
CN105095319A (en) * 2014-05-23 2015-11-25 邓寅生 Time serialization based document identifying, associating, searching and showing system
CN105868323A (en) * 2016-03-28 2016-08-17 浪潮通信信息系统有限公司 Graphical configuration method of networking resources

Also Published As

Publication number Publication date
CN108009172A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN108512695B (en) Method and device for monitoring application blockage
US9740671B2 (en) Method and apparatus of generating a webpage from an original design file comprising layers
CN107038112B (en) Application interface debugging method and device
CN106775637B (en) Page display method and device for application program
TWI624781B (en) Method, apparatus and computer program product for joining the displays of multiple devices
US10261683B2 (en) Electronic apparatus and screen display method thereof
CN104852885B (en) Method, device and system for verifying verification code
CN106502703B (en) Function calling method and device
TWI546775B (en) Image processing method and device
WO2018161534A1 (en) Image display method, dual screen terminal and computer readable non-volatile storage medium
WO2015078293A1 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN108039963B (en) Container configuration method and device and storage medium
US20150301991A1 (en) Webapp startup method and device
WO2018006841A1 (en) Qr code information transmission method, device and apparatus
WO2017194024A1 (en) Method and apparatus for generating barcode pattern
MX2014009068A (en) Electronic book file processing method, terminal, and electronic device.
CN104252356A (en) Interface generating method and system
CN104281394A (en) Method and device for intelligently selecting words
CN103677564B (en) Slide response method, device and terminal device
CN103488450A (en) Method, device and terminal equipment for projecting picture
CN103631580A (en) Method and device for generating theme icon
CN107122177A (en) Method for showing interface and device
US10101894B2 (en) Information input user interface
CN107423291B (en) Data translation method and client device
WO2022216426A1 (en) Management of user interface elements based on historical configuration data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant