WO2020207458A1 - 飞线构建及显示方法和装置,计算机存储介质和电子设备 - Google Patents

飞线构建及显示方法和装置,计算机存储介质和电子设备 Download PDF

Info

Publication number
WO2020207458A1
WO2020207458A1 PCT/CN2020/084120 CN2020084120W WO2020207458A1 WO 2020207458 A1 WO2020207458 A1 WO 2020207458A1 CN 2020084120 W CN2020084120 W CN 2020084120W WO 2020207458 A1 WO2020207458 A1 WO 2020207458A1
Authority
WO
WIPO (PCT)
Prior art keywords
flying
flying line
display
line
particles
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.)
Ceased
Application number
PCT/CN2020/084120
Other languages
English (en)
French (fr)
Inventor
郭伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2020207458A1 publication Critical patent/WO2020207458A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/20Drawing from basic elements
    • G06T11/23Drawing from basic elements using straight lines or curves
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/20Drawing from basic elements

Definitions

  • This application relates to the field of large-screen display technology, in particular to a method and device for constructing a flying lead.
  • This application also relates to a flying line display method and device, a flying line display method based on pedestrian travel trajectory, a flying line display method based on vehicle travel trajectory, and a flying line display method based on marketing data.
  • the big data screen is a kind of big data display medium, which displays data information on the display screen in a visual form, and is widely used in various exhibition halls, exhibitions, conferences, and data monitoring, etc.
  • large data screens have become an indispensable core basic system for information visualization.
  • big data screens are not only used as display tools, but only transmit images and data signals to the big screen for display to users, but need to perform efficient analysis of massive amounts of data information to help management
  • the researchers discover the relationships and laws behind the data to provide a basis for decision-making.
  • Flying line is a visual expression form of common data information in large data screens, such as traffic trajectory and object movement path. Due to the complexity of urban business scenarios and the large amount of data, the prior art cannot provide efficient flying line drawing methods and the drawing of flying lines is prone to flaws; in addition, since most of the data information contains timing information, it is also necessary The drawn flying lines can show timing differences.
  • This application provides a method for constructing flying lines to solve the technical problems of efficiency and flaws in drawing flying lines in the prior art.
  • This application provides a method for constructing a flying line, including:
  • a flying line is generated to describe the change trajectory of the object state.
  • the acquiring data information describing the state change of the object includes at least one of the following data information:
  • Time information used to describe the corresponding time of the object position is used to describe the corresponding time of the object position.
  • the generating particles for representing the state change of the object according to the data information includes:
  • particles used for drawing the state change trajectory of the object are generated.
  • the attributes of the particles to be generated include determining at least one of the following attributes:
  • the determining the particle structure according to the attributes of the particles to be generated includes:
  • the particle radius is determined according to the attribute describing the particle size.
  • the generating a flying line for describing the change trajectory of the state of the object according to the particles within the preset position range includes:
  • the particles located between the start position and the end position are sequentially connected to obtain a flying line used to describe the trajectory of the state change of the object.
  • it further includes:
  • the visibility information describing the visibility of the particles in the flying line is determined.
  • the determining the visibility information describing the visibility of particles in the flying line according to the display requirement of the flying line includes:
  • the particles whose time information meets the display time requirement are sequentially displayed according to the time attribute of the particle state change.
  • determining the display time requirement of the particles constituting the flying line includes:
  • the display time requirement of the particles constituting the flying line is determined.
  • displaying the particles whose time information meets the display time requirement in sequence according to the time attribute of the particle state change includes:
  • the particles within the moving range of the time mask are sequentially displayed.
  • the generating particles for representing the state change of the object according to the data information includes:
  • the data information is input into the particle system to generate particles used to draw the object state change track in the object state change track.
  • the application also provides a flying lead construction device, including:
  • the acquiring unit is used to acquire data information describing the state change of the object
  • a particle generating unit configured to generate particles for representing changes in the state of the object according to the data information
  • the flying line generating unit generates a flying line for describing the change trajectory of the object state according to the particles in the preset position range.
  • This application also provides a method for displaying flying lines, including:
  • the determined visible area of the flying line is displayed on the terminal device.
  • the determining the visible area of the flying line according to the display requirement of the flying line includes:
  • the area where the time mask covers the flying line is determined as the visible area of the flying line.
  • the displaying the determined visible area of the flying line on the terminal device includes:
  • the flying line areas within the moving range of the time mask are sequentially displayed.
  • This application also provides a flying lead display device, including:
  • the acquiring unit is used to acquire the flying line used to describe the state change of the object
  • a determining unit configured to determine the visible area of the flying line according to the display requirement of the flying line
  • the display unit is used to display the determined visible area of the flying line on the terminal device.
  • This application also provides a method for displaying a flying line based on pedestrian travel trajectory, including:
  • the flying line is displayed on the terminal device.
  • the displaying the flying line on the terminal device includes:
  • the flying line is displayed on the terminal device.
  • it further includes:
  • the flying lines are gradually displayed in strength from the display start position to the display end position.
  • This application also provides a method for displaying a flying line based on a vehicle travel trajectory, including:
  • the flying line is displayed on the terminal device.
  • the displaying the flying line on the terminal device includes:
  • the flying line is displayed on the terminal device.
  • it further includes:
  • the flying lines are gradually displayed in strength from the display start position to the display end position.
  • This application also provides a flying line display method based on marketing data, including:
  • the flying line is displayed on the terminal device.
  • the displaying the flying line on the terminal device includes:
  • the flying line is displayed on the terminal device.
  • it further includes:
  • the flying lines are gradually displayed in strength from the display start position to the display end position.
  • the step of gradually displaying the strength of the flying line from the display start position to the display end position according to the set requirements of the display order of the flying line includes:
  • the strength of the flying line is gradually displayed to the lowest point of the descending range according to the reference point of the marketing data.
  • This application also provides a computer storage medium for storing programs
  • the program When the program is read and executed, it can execute the steps in the above-mentioned flying line construction method, or the steps in the above-mentioned flying line display method, or the above-mentioned flying line based on pedestrian travel trajectory.
  • This application also provides an electronic device, including:
  • the memory is used to store a program that, when the program is read and executed by the processor, causes the electronic device to execute the steps in the above-mentioned flying line construction method, or the above-mentioned flying line display method Or the steps in the flyline display method based on pedestrian travel trajectory as described above, or the steps in the flyline display method based on vehicle travel trajectory as described above, or the flyline display method based on marketing data as described above.
  • Line shows the steps in the method.
  • the present application provides a method for constructing a flying line, which generates particles used to represent the state change of the object by obtaining data information describing the state change of the object, and generates a flying line used to describe the trajectory of the state change of the object according to the particles within a preset position range.
  • the flying line used to describe the change trajectory of the state of the object is generated according to the particles. Therefore, there is no need to construct multiple vertices. It is only necessary to generate particles according to the data information of the state change of the object. Particles generate flying lines, thereby avoiding the problem of reduced drawing performance and efficiency.
  • the width of the flying line can be changed by adjusting the properties of the particles, which also improves the performance of the flying line drawing.
  • This application also provides a method for displaying a flying line, by obtaining a flying line used to describe changes in the state of an object; determining the visible area of the flying line according to the display requirements of the flying line; making the determined flying line visible The area is displayed on the terminal device, which shows the flying lines with different timing differences, that is, the flying lines in different time dimensions.
  • the flying line can be dynamically displayed, and the flying line and time dimension information can be dynamically displayed.
  • FIG. 1 is a schematic diagram of data display of a large data screen in the prior art
  • Fig. 2 is a flowchart of an embodiment of a method for constructing a flying line provided by the present application
  • FIG. 3 is a schematic structural diagram of a flying line in an embodiment of a flying line construction method provided by the present application
  • FIG. 4 is a schematic structural diagram of an embodiment of a flying lead construction device provided by the present application.
  • FIG. 5 is a flowchart of an embodiment of a method for displaying flying lines provided by the present application.
  • FIG. 6 is a schematic diagram of the display effect of the flying line on the large data screen in an embodiment of the method for constructing a flying line provided by the present application;
  • FIG. 7 is a schematic structural diagram of an embodiment of a flying line display device provided by the present application.
  • FIG. 8 is a flowchart of an embodiment of a method for displaying flying lines based on pedestrian travel trajectory provided by the present application
  • FIG. 9 is a flowchart of an embodiment of a method for displaying flying lines based on vehicle travel trajectory provided by the present application.
  • Fig. 10 is a flowchart of an embodiment of a method for displaying flying lines based on marketing data provided by the present application.
  • a flying line is a way of visualizing data information on a large data screen, for example: the trajectory from the starting state to the target state, which can be the trajectory from the starting position to the target position.
  • the conventional drawing methods of flying lines include: based on svg, canvas, webgl, etc.; among them, svg is scalable vector graphics (Scalable Vector Graphics); Canvas is a part of HTML5, allowing scripts to dynamically render bit images; webgl (all written Web Graphics Library) is a 3D drawing protocol. The disadvantages of the three drawing methods are described below.
  • svg and canvas are both CPU-based drawing schemes.
  • the disadvantage is that the drawing performance drops sharply when drawing a large amount of data; because the drawing method of svg and canvas is to first rely on the CPU to calculate the data required for animation, and then proceed according to the calculated data Drawing; because the browser is single-threaded, that is, it can only use the CPU to do calculation or one of the drawing tasks.
  • the browser is all processing the calculation task, and the drawing task does not get computing resources, which leads to The picture freezes, which in turn makes the drawing performance drop sharply.
  • the drawing method of webgl is a drawing method based on GPU. All calculations and drawing are performed in the graphics card, which does not affect the calculation or drawing tasks of the browser itself, so the rendering of massive data will not be stuck.
  • the conventional methods include line segment method, triangle surface method, pipe method, etc., the principle is to construct the required vertices of the flying line, and then draw processing. Among them, the line segment method is the easiest to implement.
  • the disadvantage is that the native line in the webgl environment does not support the width, and the visual effect is very limited; the triangle method uses the line segment method to expand the vertex, and supports the flying line width, but the corner processing is complicated , Small viewing angles are prone to aliasing; the pipe method expands the line segment to the pipe method, which supports width and small viewing angle observation, but the number of vertices drawn is more than 10 times that of the line segment method. When the transparency is turned on, drawing jaggedness and defects are prone to appear.
  • the present application provides a method for constructing flying lines, which can improve the drawing efficiency of flying lines and avoid the appearance of defects.
  • FIG. 2 is a flowchart of an embodiment of a method for constructing a flying line provided by the present application, and the method for constructing includes:
  • Step S201 Obtain data information describing the state change of the object.
  • FIG. 3 is a schematic structural diagram of a flying line in an embodiment of a method for constructing a flying line provided by the present application.
  • the flying line 301 is composed of particles 302, and the particles 302 are solid.
  • the particles 3021 are visible particles, and the hollow particles 3022 are invisible particles.
  • the object in the step S201 can be any substance with data information or generating data information, which can be visible or invisible, for example: an item with a physical structure and a virtual item with no real physical structure. Therefore, the purpose of the step S201 is to obtain a kind of data information that can express the state change, and it is not important who generated the data information. Of course, the specific content of the data information can be reflected when the flying line is drawn. Because the method for constructing a flying line provided in this application mainly involves the construction of a flying line, the focus is on obtaining data information with state changes.
  • the data information describing the state change of the object may include at least one of the following data information:
  • Time information used to describe the corresponding time of the object position is used to describe the corresponding time of the object position.
  • the data information may also include some attribute information of the object, for example: name, type, purpose, etc.
  • step S202 After obtaining the data information of the state change of the object, it is necessary to generate particles representing the state change of the object, so step S202 is executed.
  • Step S202 According to the data information, particles for representing the state change of the object are generated.
  • the purpose of the step S202 is to obtain the elements that constitute the flying line, that is, the flying line is constructed by particles.
  • the particles in step S202 may be generated by a particle system.
  • the particle system is applied to the simulation of various blurred scenes in the computer, and it mainly solves the problem of the generation and display of a large substance composed of a large number of small substances that move (change) according to a certain rule on the computer.
  • the phenomena that can usually be simulated are flames, explosions, smoke, water flow, sparks, fallen leaves, clouds, fog, snow, dust, meteor trails, or abstract visual effects like luminous trails, etc.
  • particle systems can describe the constituent objects Each element and element change.
  • the composition of the particle system includes: particles and emitters.
  • particles include attributes such as shape, size, color, transparency, motion speed and motion direction, and life cycle.
  • particle attributes are visualized through the class of particle objects.
  • the emitter is used to control the emission of the generated particles.
  • Point particles mean that all particles are made up of points; quadrilateral particles map a particle texture to a quadrilateral as a particle object. Since a point particle can generate the next particle according to the attribute of the vertex particle, there is no need for excessive vertex information. Therefore, in this embodiment, the construction of the flying line can be described in the form of a point particle. Of course, it is understandable that the shape of the flying line that meets the needs can be constructed by selecting the way the particles are constructed.
  • the specific process of generating particles representing the state change of the object in step S202 may include:
  • Step S202-1 Determine the attributes of the particles to be generated according to the data information.
  • the attributes of the particles to be generated may include determining at least one of the following attributes:
  • the attributes of the generated particles can be determined by data information according to the requirements of constructing the flying line.
  • the shape of the flying line can be determined by the shape attribute of the particle, that is, the visual shape of the flying line can be determined by the attribute of the particle.
  • Step S202-2 Determine the particle structure according to the attributes of the particles to be generated.
  • the attribute of the particle determines the structure of the particle. Therefore, in step S202-2, the particle structure can be determined according to the attribute of the particle to be generated.
  • the step S202-2 may include: based on the requirement of rendering the object state change track width, according to the attribute describing the particle size, Determine the particle radius to complete the adjustment of the particle width.
  • the invisible refers to the invisible situation that occurs under the display requirement that the flying line is visible, that is, the problem that it cannot be displayed normally.
  • Step S202-3 According to the particle structure, particles for describing the state change in the state change trajectory of the object are generated.
  • the purpose of the step S202-3 is to determine the structure of the particle according to the determined attribute of the particle, and then generate the particle describing the state change in the state change trajectory of the object according to the particle structure.
  • the flying line is used to describe the movement trajectory of the pedestrian, then the particles of the pedestrian relative to the time can be generated according to the time when the pedestrian moves.
  • the information of the time is the particle attribute; different time points can correspond to the different positions of the pedestrian ,
  • the above is only an example of pedestrian movement trajectory.
  • the particle size attribute can also be set when generating particles, that is, particles are generated according to the time attribute of the pedestrian and the preset particle size attribute.
  • the generation of particles in this application can be achieved by using existing particle systems, so the description is relatively brief.
  • each particle has attribute information.
  • the position attribute and time attribute of the particle are mainly used to describe the change state of the particle, and the position attribute and time attribute can be obtained through The data information describing the state change of the object is determined. Therefore, the generated particles will carry information about the position and time attributes.
  • the flying line used to describe the trajectory of the state change of the object may be generated according to the particles, as follows:
  • Step S203 Generate a flying line for describing the state change trajectory of the object according to the particles in the preset position range.
  • the preset position range in step S203 may be determined according to display requirements, for example, the starting point and ending point in the process of changing the state of the object, and the starting point and ending point may be regarded as vertices.
  • the flying line can be a kind of visual line describing the trajectory of the state of an object, and can be understood as a line composed of multiple points of different or the same shape.
  • the extending direction of the line can be regarded as the direction in which the state of the object changes. Therefore, the step S203 may include:
  • Step S203-1 Determine the start position and the end position.
  • the start position and the end position in the step S203-1 can be understood as the start position and the end position of the flying line.
  • the start position can be determined according to the particle information at the start position, and the end position can be determined according to the end position.
  • the particle information is determined.
  • the way of determining can be realized by the time attribute of the particle, because the particle describes the information of the state change of the object, and the information of the state change of the object can include: the change information of the position state and the information of the time state change, of course, it can also include the information of the shape change. Or size change information, etc., in this embodiment, the description is mainly based on location and time change information.
  • the step S203-1 can determine the particle information at the apex (start) of the flying line and the particle information at the end of the flying line according to the change of time, for example: determine the position corresponding to the earliest time of the object state change as the starting point.
  • the starting position, the earliest can be the earliest or the smallest in the range that describes the state change of the object.
  • the time range for describing the state change of the object is 7:00-10:00 in the morning, then the object corresponding to 7:00 can be The position of the state change is determined as the starting position, and 7:00 is the start time; the position of the object state change corresponding to 10:00 is determined as the end position, and 10:00 is the end time.
  • the flying line constructed according to the time range is expressed as The trajectory of the state of the object from 7:00 to 10:00.
  • the generation of the flying leads can be implemented through step S203-2.
  • Step S203-2 According to the time attribute of the particle state change, sequentially connect the particles located between the start position and the end position to obtain a flying line used to describe the state change trajectory of the object.
  • step S203-2 can be realized by the emitter in the particle system, for example: according to the time attribute of the particle state change, determine the first particle at the initial position, the emitter determines the first particle emitted, and then sorts The second particle after the initial position and adjacent to the first particle at the initial position is determined to be the second emitted particle, and proceed in sequence to obtain a flying line describing the state change trajectory of the object, in other words According to the time sequence of the state change of the particles, the particles can be connected in sequence by setting the emitter to obtain the flying line used to describe the state change trajectory of the object.
  • the position information can be used to determine the particles at the start position (vertex) of the flying line and the particles at the end position, so as to generate the flying line according to the start position and the end position. It is also possible to use the position information and time information to determine the time information of the particle at the start position (vertex) of the flying line and the time information of the particle at the end position of the flying line, thereby generating the flying line based on the two elements of position and time.
  • the two elements of position and time are mainly used to describe the process of generating the flying line. In other embodiments below, only the position element may be used to generate the flying line.
  • the flying line is generated based on particles, without a large amount of vertex information, and only needs to be generated based on the attribute information of the particles, thus improving the construction performance.
  • the construction of the flyline is completed based on the computing power of the GPU, that is, it is performed in the graphics card. It does not affect the calculation or drawing tasks of the browser itself. Therefore, the rendering of massive data will not cause lag, and it can be used in massive data. Improve the efficiency of flying line construction or drawing under the environment.
  • the method for constructing the flying lines may also include:
  • Step S204 Determine the visibility information describing the visibility of the particles in the flying line according to the display requirement of the flying line.
  • step S204 is to achieve personalized display of flying lines according to display requirements by controlling the visibility of particles.
  • it can also reflect the time relationship of each flying line, that is, the time of data information. relationship.
  • the visibility of the particles can also reflect the different states of the flying line.
  • the so-called different states can refer to the degree of importance of the state of the object.
  • Step S204 may include:
  • Step S204-1 Determine the display time requirement of the particles constituting the flying line.
  • the display time requirement for particles in step S204-1 may be for the flying line, that is, the display time requirement of the particle corresponding to the flying line area needs to be displayed, because the particle has the time information of its own state change, so it is determined After displaying the time requirement, the particle time information that matches the display time requirement can be determined.
  • the display time range of the flying line is 7:00-10:00, that is, the flying line of the object state change trajectory at the display time of 7:00-10:00
  • the determined particle display time requirement can be 7:00 -8:30.
  • step S204-1 in this embodiment may include:
  • Step S204-1a construct a time mask according to the display requirement of the flying line.
  • the time mask 303 can be regarded as a mask with time parameters.
  • the area covered by the mask is a visible area, and the uncovered area is an invisible area; of course, it can be understood. Therefore, the area covered by the mask is an invisible area, and the uncovered area is a visible area.
  • Step S204-1b Determine the display time requirement of the particles constituting the flying line according to the time mask.
  • step S204-1b The purpose of step S204-1b is to select particles whose time information meets the display time requirement from the particles constituting the flying line, and the time mask can control the visibility of the particles.
  • Step S204-2 the particles whose time information meets the display time requirement are sequentially displayed according to the time attribute of the particle state change.
  • the purpose of the step S204-2 is to display the particles in the flying line that meet the display time requirement. For example: when the display time range of the time mask is required to be 7:00-8:30, the flying line part of 7:00-8:30 can be displayed in the flying line display time range of 7:00-10:00. That is, the particles whose display time is required to be 7:00-8:30 are sequentially displayed according to the time attribute of the particle state change, forming a flying line describing the trajectory of the object state change.
  • step S204-2 may further include:
  • Step S204-2a Determine the moving range of the time mask according to the particle display time requirement.
  • the moving range of the time mask in step S204-2a may be adjusting the start time and end time of the time mask.
  • Step S204-2b sequentially displaying the particles within the moving range of the time mask.
  • the specific implementation process of the step S204-2b may be to continuously adjust or update the start time and end time of the time mask to filter out dynamically visible particles to form a dynamic visual display of the flying line.
  • the construction of the flying line in this embodiment can set display requirements according to different needs. For example, if the requirement is that the flying line appears within a certain time range from the start position to the end position of the flying line, then the time can be masked.
  • the time range set by the film displays the flying line that meets the time mask.
  • the start time and end time of the time mask are adjusted to make the flying line appear in a dynamic display form.
  • the transparency of the time mask can also be set so that the flying line within the range of the time mask can present a display effect of different brightness.
  • the time mask can be understood as a mask with time parameters.
  • the area covered by the mask is the visible area, and the uncovered area is the invisible area; of course, it can also be understood as the area covered by the mask as the invisible area.
  • the uncovered area is the visible area.
  • Fig. 4 is a schematic structural diagram of an embodiment of a flying lead construction device provided by the present application.
  • the construction device includes:
  • the acquiring unit 401 is configured to acquire data information describing the state change of the object.
  • the data information describing the state change of the object acquired by the acquiring unit 401 includes at least one of the following data information:
  • Time information used to describe the corresponding time of the object position is used to describe the corresponding time of the object position.
  • the particle generating unit 402 is configured to generate particles for representing the state change of the object according to the data information.
  • the particle generating unit 402 includes:
  • the attribute determining subunit is used to determine the attribute of the particle to be generated according to the data information
  • the particle structure determining subunit is used to determine the particle structure according to the attributes of the particles to be generated;
  • the particle generation subunit is used to generate particles for describing the state change in the state change track of the object according to the particle structure.
  • the attributes of the particles to be generated include determining at least one of the following attributes:
  • the particle structure determination subunit includes: a particle radius determination subunit, which is used to determine the particle radius based on the requirement of drawing the width of the object state change track and according to the attribute describing the particle size.
  • the particle generating unit 402 may specifically input the data information into a particle system based on a graphics processor, and generate particles used to draw the object state change track in the object state change track.
  • the flying line generating unit 403 generates a flying line for describing the change trajectory of the state of the object according to the particles in the preset position range.
  • the flying lead generating unit 403 includes:
  • the position determination subunit is used to determine the start position and the end position
  • the flying line obtaining subunit is used to sequentially connect the particles located between the start position and the end position according to the time attribute of the particle state change, to obtain a flying line used to describe the change trajectory of the object state.
  • it can also include:
  • the visibility determining unit 404 is configured to determine the visibility information describing the visibility of particles in the flying line according to the display requirement of the flying line.
  • the visibility determining unit 404 includes:
  • the display time requirement subunit is used to determine the display time requirement of the particles constituting the flying line
  • the display subunit is used to display the particles whose time information meets the display time requirement in sequence according to the time attribute of the particle state change.
  • the display time requirement subunit includes:
  • the time mask subunit is used to construct a time mask according to the display requirements of the flying line;
  • the display time determining subunit is used to determine the display time requirement of the particles constituting the flying line according to the time mask.
  • the display subunit includes:
  • the moving range determining subunit is used to determine the moving range of the time mask according to the particle display time requirement
  • the particle display subunit is used to sequentially display the particles within the moving range of the time mask.
  • FIG. 5 is a flowchart of an embodiment of a flying line display method provided by the present application.
  • the display method includes:
  • Step S501 Obtain a flying line used to describe the state change of the object.
  • the flying line describing the state change of the object in the step S501 includes multiple particles describing the state change of the object. As shown in FIG. 6, each particle has a position attribute and a time attribute, and each particle has a different position attribute and a time attribute. different.
  • the particles at the starting position can be regarded as vertices, through which the vertices particles are connected in sequence according to the time requirements to form a flying line describing the state change of the object.
  • For the flying line construction process please refer to the description of the above steps S201-S204, which will not be repeated here.
  • Step S502 Determine the visible area of the flying line according to the display requirement of the flying line.
  • the purpose of the step S502 is to highlight the part of the flying line that needs to be displayed and weaken the part of the flying line that does not need to be displayed based on the display requirement of the flying line.
  • the display requirement of the flying line can be determined according to the importance of the data information or the display relationship of the data information.
  • the specific implementation process can include:
  • Step S502-1 construct a time mask according to the display requirement of the flying line.
  • Step S502-2 Determine the area of the flying line covered by the time mask as the visible area of the flying line.
  • the visibility of the time mask that is, transparency
  • the visibility of the time mask can be set to reflect the display degree of the flying line.
  • the display of the flying line can perform partial area display and partial area hiding according to different requirements, can display the display of important data information, and weaken the display of non-important data information.
  • Step S503 Display the determined visible area of the flying line on the terminal device.
  • the flying line that needs to be displayed can be displayed on the terminal device.
  • the terminal device may be a large-screen data display device, of course, it may also be a PC device, etc.; or
  • the data large-screen display device displays simultaneously with other terminal devices, and the simultaneous display can be to map the content of the data large-screen display device to the terminal device connected to it, of course, other display methods are also possible.
  • the step S503 may further include:
  • Step S503-1 Determine the moving range of the time mask according to the display requirement of the flying line.
  • Step S503-2 sequentially displaying the flying line areas within the moving range of the time mask.
  • FIG. 6 is a schematic diagram of the display effect of the flying line on the large data screen in the embodiment of the flying line construction method provided by this application .
  • the moving range of the time mask can be adjusted according to the display requirements of the flying line, and the start time and the end time of the time mask can be adjusted to filter out dynamically visible particles to form a dynamic visual display of the flying line.
  • the display requirement of the flying line can be to focus on the start of the flying line, such as strong brightness
  • the brightness of the middle of the flying line is inferior to the start position
  • the brightness of the end of the flying line is inferior to the flying line.
  • the flying line does not need to reflect the intensity of the brightness, but only the part that needs to be displayed, the transparency setting is not required.
  • the application also discloses an embodiment of the flying line display device.
  • the device embodiment is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • the device embodiments described below are merely illustrative.
  • FIG. 7 is a schematic structural diagram of an embodiment of a flying lead display device provided by the present application.
  • the display device includes:
  • the acquiring unit 701 is configured to acquire a flying line used to describe the state change of the object.
  • the determining unit 702 is configured to determine the visible area of the flying line according to the display requirement of the flying line.
  • the determining unit 702 includes:
  • the determining subunit is used to determine the area of the flying line covered by the time mask as the visible area of the flying line.
  • the display unit 703 is configured to display the determined visible area of the flying line on the terminal device.
  • the display unit 703 includes:
  • the movement determination subunit is configured to determine the movement range of the time mask according to the display requirement of the flying line;
  • the display subunit is configured to sequentially display the flying line areas within the moving range of the time mask.
  • FIG. 8 is a flowchart of an embodiment of a flying line display method based on pedestrian travel trajectory provided by the present application; the flying line display method includes:
  • Step S801 Construct a flying line describing the pedestrian travel trajectory according to the above-mentioned flying line construction method.
  • step S801 For the specific process of step S801, reference may be made to the description of step S201 to step S203 or step S201 to step S204 in the method for constructing flying leads.
  • Step S802 Display the flying line on the terminal device.
  • the terminal device in step S802 may be a large-screen data display device, or other terminal devices that can be used to display data information.
  • the specific implementation process of this step may include:
  • the flying line is displayed on the terminal device.
  • the flying line may be gradually displayed in strength from the display start position to the display end position.
  • the realization of the flyline for pedestrian travel trajectory can also be a gradual display of the strength of the pedestrian travel data volume, for example: when the number of pedestrians is large, the flyline display can be enhanced, and the enhancement method can increase the brightness of the flyline or the width of the flyline Increase or change in the shape of the flying line, etc., when the number of pedestrian trips is small, the display of the flying line can be weakened.
  • the method of weakening can be that the brightness of the flying line is darkened, or the width of the flying line is reduced, or the shape of the flying line is changed or the flying line is changed. Color changes etc. How to reflect the strength of the gradual display is not limited by the above content.
  • the display of pedestrian travel dynamics can also be achieved through time masks, which can reflect the density and evacuation of pedestrians through transparency, and also reflect the process of pedestrian travel.
  • the present application also provides a flying line display method based on vehicle travel trajectory. Please refer to FIG. 9, which is a vehicle travel trajectory provided by this application.
  • a flowchart of an embodiment of a flying line display method; the flying line display method includes:
  • Step S901 Construct a flying line describing the travel trajectory of the vehicle according to the above-mentioned flying line construction method.
  • step S901 For the specific process of step S901, reference may be made to the description of step S201 to step S203 or step S201 to step S204 in the above-mentioned flying lead construction method. It can be understood that, for the flying line of the vehicle travel trajectory, the acquired data information is the data information of the vehicle travel state change.
  • Step S902 Display the flying line on the terminal device.
  • step S902 may include:
  • the flying line is displayed on the terminal device.
  • the flying lines may be gradually displayed in strength from the display start position to the display end position.
  • the realization of the flying line of the vehicle travel trajectory can also be a gradual display of the strength of the vehicle travel data.
  • the flying line display can be enhanced.
  • the enhancement method can increase the flying line brightness or the flying line width Increase, or change in the shape of the flying line, etc., when the number of vehicle trips is small, the display of the flying line can be reduced.
  • the way to reduce the brightness of the flying line can be darkened, or the width of the flying line reduced, or the shape of the flying line or the color of the flying line Changes etc. How to reflect the strength of the gradual display is not limited by the above content.
  • the dynamic display of the vehicle can also be realized through a time mask, which can reflect the strength of the vehicle travel through transparency and the process of vehicle travel.
  • this application also provides a flying line display method based on marketing data.
  • a flying line display method based on marketing data.
  • FIG. 10 provides a flying line based on marketing data.
  • a flowchart of an embodiment of a display method, the flying line display method includes:
  • Step S1001 Construct a flyline describing the increase or decrease of marketing data according to the above-mentioned flyline construction method.
  • step S1001 For the specific process of step S1001, reference may be made to the description of step S201 to step S203 or step S201 to step S204 in the method for constructing flying leads. It is understandable that, for the flying line of the marketing data track, the acquired data information is the data information of the state change of the marketing data.
  • Step S1002 Display the flying line on the terminal device.
  • step S1002 may include:
  • Step S1002-1 Display the flying line on the terminal device according to the location information and time information of the growth point of the marketing data.
  • Step S1002-2 Display the flying line on the terminal device according to the location information and time information of the drop point of the marketing data.
  • fly line describing the marketing data it can also include:
  • the flying lines are gradually displayed in strength from the display start position to the display end position.
  • the flying line display order can be set according to the growth order of the marketing data; the flying line can be gradually displayed to the highest point of the growth range according to the reference point of the marketing data; the gradual display can be The intensity of the flying line brightness or the thickness of the flying line width or the form of the flying line shape is reflected.
  • the flying line shape can be expressed in different shapes for the same flying line, or the strength of the flying line can be expressed by the color of the flying line.
  • the flying lines are gradually displayed in strength from the display start position to the display end position, which may also include the following implementation manners:
  • the strength of the flying line is gradually displayed to the lowest point of the descending range according to the reference point of the marketing data.
  • the specific gradual display method can be reflected in the form of the brightness of the flying line or the thickness of the flying line width or the shape of the flying line.
  • the shape of the flying line can be expressed in different shapes for the same flying line, or by the color of the flying line Representation of strength and weakness.
  • this application also provides a computer storage medium for storing programs
  • the program When the program is read and executed, it can execute the steps in the above-mentioned flying line construction method, or the steps in the above-mentioned flying line display method, or the above-mentioned flying line based on pedestrian travel trajectory.
  • this application also provides an electronic device, including:
  • the memory is used to store a program that, when the program is read and executed by the processor, causes the electronic device to execute the steps in the above-mentioned flying line construction method, or the above-mentioned flying line display method Or the steps in the flyline display method based on pedestrian travel trajectory as described above, or the steps in the flyline display method based on vehicle travel trajectory as described above, or the flyline display method based on marketing data as described above.
  • Line shows the steps in the method.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • this application can be provided as methods, systems or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

本申请公开一种飞线的构建方法及装置,飞线的显示方法及装置,以及基于行人出行轨迹的飞线显示方法和基于车辆出行轨迹的飞线显示方法和基于营销数据的飞线显示方法,计算机存储介质和电子设备,其中,所述构建方法包括:获取描述物体状态变化的数据信息;根据所述数据信息,生成用于表示物体状态变化的粒子;根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线,因此,无需构建多个顶点,仅需要根据物体状态变化的数据信息生成粒子即可,在根据粒子生成飞线,进而避免绘制性能和效率下降的问题。

Description

飞线构建及显示方法和装置,计算机存储介质和电子设备
本申请要求2019年04月11日递交的申请号为201910288459.9、发明名称为“飞线构建及显示方法和装置,计算机存储介质和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及大屏显示技术领域,具体涉及一种飞线的构建方法及装置。本申请同时涉及一种飞线的显示方法及装置,一种基于行人出行轨迹的飞线显示方法,一种基于车辆出行轨迹的飞线显示方法以及一种基于营销数据的飞线显示方法,计算机存储介质和电子设备。
背景技术
随着信息化建设的快速发展,可视化需求越来越高,硬件技术也越来越成熟,数据大屏开始慢慢普及。
如图1所示,数据大屏作为大数据展示媒介的一种,其将数据信息通过可视化的形式展示在显示屏幕上,且被广泛运用于各种展示厅、会展、发布会及数据监控等各个场景中,数据大屏已经成为信息可视化不可或缺的核心基础系统。
在大数据信息飞速发展的今天,数据大屏已不单单作为显示工具,只是将图像、数据信号传输到大屏幕上显示给用户,而是需要对海量的数据信息进行高效率的分析,帮助管理者发现数据背后的关系和规律,为决策提供依据。
飞线是数据大屏中一种常见数据信息的可视化的表达形式,如交通轨迹、物体移动路径等。由于城市业务场景非常复杂,数据量大,现有技术中无法提供高效率的飞线绘制方式且飞线的绘制容易出现瑕疵等问题;另外,由于大部分数据信息带有时序信息,因此还需要绘制的飞线能够展示出时序差异。
发明内容
本申请提供一种飞线的构建方法,以解决现有技术中飞线绘制的效率和瑕疵的技术问题。
本申请提供一种飞线的构建方法,包括:
获取描述物体状态变化的数据信息;
根据所述数据信息,生成用于表示物体状态变化的粒子;
根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线。
在一些实施例中,所述获取描述物体状态变化的数据信息包括至少如下一种数据信息:
用于描述所述物体位置的位置信息;
用于描述所述物体位置对应时间的时间信息。
在一些实施例中,所述根据所述数据信息,生成用于表示物体状态变化的粒子,包括:
根据所述数据信息确定待生成粒子的属性;
根据所述待生成粒子的属性,确定粒子结构;
根据所述粒子结构生成用于绘制所述物体状态变化轨迹中描述状态变化的粒子。
在一些实施例中,所述待生成粒子的属性至少包括确定如下一种属性:
描述待生成粒子形状的属性;
描述待生成粒子位置状态变化的属性;
描述待生成粒子状态变化时间的属性;
描述待生成粒子大小的属性;
描述待生成粒子颜色的属性。
在一些实施例中,所述根据所述待生成粒子的属性,确定粒子结构,包括:
基于绘制所述物体状态变化轨迹宽度的要求,根据描述所述粒子大小的属性,确定粒子半径。
在一些实施例中,所述根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线,包括:
确定起始位置和结束位置;
按照粒子状态变化的时间属性,依序连接位于所述起始位置和所述结束位置之间的粒子,获得用于描述所述物体状态变化轨迹的飞线。
在一些实施例中,还包括:
根据飞线的显示要求,确定描述所述飞线中粒子可见性的可见性信息。
在一些实施例中,所述根据飞线的显示要求,确定描述所述飞线中粒子可见性的可见性信息,包括:
确定构成所述飞线的粒子的显示时间要求;
将时间信息满足显示时间要求的粒子,按照所述粒子状态变化的时间属性依序进行显示。
在一些实施例中,确定构成所述飞线的粒子的显示时间要求,包括:
根据所述飞线的显示要求,构建时间掩膜;
根据所述时间掩膜,确定构成飞线的粒子的显示时间要求。
在一些实施例中,所述将时间信息满足显示时间要求的粒子,按照所述粒子状态变化的时间属性依序进行显示,包括:
根据所述粒子显示时间要求,确定所述时间掩膜的移动范围;
对所述时间掩膜的移动范围内的所述粒子依序进行显示。
在一些实施例中,所述根据所述数据信息,生成用于表示物体状态变化的粒子,包括:
基于图形处理器,将所述数据信息输入至粒子系统中,生成用于绘制所述物体状态变化轨迹中描述物体状态变化的粒子。
本申请还提供一种飞线的构建装置,包括:
获取单元,用于获取描述物体状态变化的数据信息;
粒子生成单元,用于根据所述数据信息,生成用于表示物体状态变化的粒子;
飞线生成单元,根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线。
本申请还提供一种飞线的显示方法,包括:
获取用于描述物体状态变化的飞线;
根据所述飞线的显示要求,确定所述飞线的可见区域;
将确定的所述飞线可见区域显示在终端设备。
在一些实施例中,所述根据所述飞线的显示要求,确定所述飞线的可见区域,包括:
根据所述飞线的显示要求,构建时间掩膜;
将所述时间掩膜覆盖所述飞线的区域,确定为所述飞线的可见区域。
在一些实施例中,所述将确定的所述飞线可见区域显示在终端设备,包括:
根据所述飞线的显示要求,确定所述时间掩膜的移动范围;
对所述时间掩膜的移动范围内的所述飞线区域依序进行显示。
本申请还提供一种飞线的显示装置,包括:
获取单元,用于获取用于描述物体状态变化的飞线;
确定单元,用于根据所述飞线的显示要求,确定所述飞线的可见区域;
显示单元,用于将确定的所述飞线可见区域显示在终端设备。
本申请还提供一种基于行人出行轨迹的飞线显示方法,包括:
按照如上所述的飞线构建方法构建描述行人出行轨迹的飞线;
在终端设备上显示所述飞线。
在一些实施例中,所述在终端设备上显示所述飞线,包括:
根据所述行人出行轨迹的位置信息和时间信息,在所述终端设备上显示所述飞线。
在一些实施例中,还包括:
按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
本申请还提供一种基于车辆出行轨迹的飞线显示方法,包括:
按照如上所述的飞线构建方法构建描述车辆出行轨迹的飞线;
在终端设备上显示所述飞线。
在一些实施例中,所述在终端设备上显示所述飞线,包括:
根据所述车辆出行轨迹的位置信息和时间信息,在所述终端设备上显示所述飞线。
在一些实施例中,还包括:
按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
本申请还提供一种基于营销数据的飞线显示方法,包括:
按照如上所述的飞线构建方法构建描述营销数据增长或下降的飞线;
在终端设备上显示所述飞线。
在一些实施例中,所述在终端设备上显示所述飞线,包括:
根据所述营销数据的增长点的位置信息和时间信息,在终端设备上显示所述飞线;
或者,
根据所述营销数据的下降点的位置信息和时间信息,在终端设备上显示所述飞线。
在一些实施例中,还包括:
按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
在一些实施例中,所述按照设置的所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示,包括:
根据所述营销数据的增长顺序,设置所述飞线显示顺序;
将所述飞线按照所述营销数据的基准点向增长范围的最高点进行逐渐显示;
或者,
根据所述营销数据的下降顺序,设置所述飞线显示顺序;
将所述飞线按照所述营销数据的基准点向下降范围的最低点进行强弱的逐渐显示。
本申请还提供一种计算机存储介质,用于存储程序;
所述程序在被读取执行时,能够执行如上所述的飞线的构建方法中的步骤,或者如上所述的飞线的显示方法中的步骤,或者如上所述的基于行人出行轨迹的飞线显示方法中的步骤,或者如上所述的基于车辆出行轨迹的飞线显示方法中的步骤,或者如上所述的基于营销数据的飞线显示方法中的步骤。
本申请还提供一种电子设备,包括:
处理器;
存储器,用于存储程序,所述程序在被所述处理器读取执行时,使得所述电子设备执行如上所述的飞线的构建方法中的步骤,或者如上所述的飞线的显示方法中的步骤,或者如上所述的基于行人出行轨迹的飞线显示方法中的步骤,或者如上所述的基于车辆出行轨迹的飞线显示方法中的步骤,或者如上所述的基于营销数据的飞线显示方法中的步骤。
与现有技术相比,本申请具有以下优点:
本申请提供一种飞线的构建方法,通过获取描述物体状态变化的数据信息生成用于表示物体状态变化的粒子,根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线。由于,本申请提供飞线的构建方法中,根据粒子生成用于描述物体状态变化轨迹的飞线,因此,无需构建多个顶点,仅需要根据物体状态变化的数据信息生成粒子即可,在根据粒子生成飞线,进而避免绘制性能和效率下降的问题。
另外,通过调整粒子的属性可以改变飞线宽度,同样也提高了飞线绘制性能。
本申请还提供一种飞线的显示方法,通过获取用于描述物体状态变化的飞线;根据所述飞线的显示要求,确定所述飞线的可见区域;将确定的所述飞线可见区域显示在终端设备,从而是显示出不同时序差异的飞线,即显示不同时间维度上的飞线。
另外,通过控制可见区域的显示变化,能够动态的显示所述飞线,以及动态显示所述飞线及时间维度信息。
附图说明
图1是现有技术中数据大屏的数据显示示意图;
图2是本申请提供的一种飞线的构建方法实施例的流程图;
图3是本申请提供的一种飞线的构建方法实施例中飞线的结构示意图;
图4是本申请提供的一种飞线的构建装置实施例的结构示意图;
图5是本申请提供的一种飞线的显示方法实施例的流程图;
图6是本申请提供的一种飞线的构建方法实施例中飞线在数据大屏上的显示效果示意图;
图7是本申请提供的一种飞线的显示装置实施例的结构示意图;
图8是本申请提供的一种基于行人出行轨迹的飞线显示方法实施例的流程图;
图9是本申请提供的一种基于车辆出行轨迹的飞线显示方法实施例的流程图;
图10是本申请提供的一种基于营销数据的飞线显示方法实施例的流程图。
具体实施方式
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
本申请中使用的术语是仅仅出于对特定实施例描述的目的,而非旨在限制本申请。在本申请中和所附权利要求书中所使用的描述方式例如:“一种”、“第一”、和“第二”等,并非对数量上的限定或先后顺序上的限定,而是用来将同一类型的信息彼此区分。
在对本申请提供的一种飞线的构建方法实施例进行说明前,首先,对飞线进行介绍。飞线是数据大屏上一种数据信息的可视化方式,例如:从起始状态到目标状态的轨迹,其可以是从起始位置到目标位置的轨迹。飞线常规的绘制方式包括:基于svg、canvas、webgl等几种;其中,svg为可缩放矢量图形(Scalable Vector Graphics);Canvas是HTML5的一部分,允许脚本动态渲染位图像;webgl(全写Web Graphics Library)是一种3D绘图协议,下面介绍三种绘制方式的缺点。
首先,svg和canvas都是基于CPU的绘制方案,缺点是在绘制大量数据的情况下绘制性能急剧下降;因为Svg和canvas绘制方式是先依靠CPU计算动画需要的数据,然后按照计算获得的数据进行绘制;由于浏览器是单线程的,即只能用CPU做计算或者绘制其中一项任务,当大量数据需要绘制的时候,浏览器全部在处理计算任务,绘制任务 得不到计算资源,则导致画面卡顿,进而使得绘制性能急剧下降。
webgl的绘制方式是基于GPU的一种绘制方式,所有计算和绘制都在显卡中进行,对浏览器本身的计算或绘制任务不产生影响,因此海量数据渲染也不会卡顿。在采用webgl实现飞线绘制的方式中,常规的方式有线段法、三角面法、管道法等等,原理均是构建飞线所需的顶点,再进行绘制处理。其中,线段法最容易实现,缺点是webgl环境下原生的线条是不支持宽度的,视觉效果受限制很大;三角面法通过线段法扩展顶点的方法,支持飞线宽度,但是转角的处理复杂、小视角容易出现锯齿;管道法通过线段扩展为管道的方法,支持宽度和小视角观察,但是顶点绘制数量比线段法增加10倍以上,开启透明度的时候容易出现绘制锯齿和瑕疵。
上述任何一种飞线的绘制方式均存在绘制效率低的问题,故此,本申请提供一种飞线的构建方法,能够提高飞线的绘制效率,且避免瑕疵的出现。
请参考图2所示,图2是本申请提供的一种飞线的构建方法实施例的流程图,该构建方法包括:
步骤S201:获取描述物体状态变化的数据信息。
请结合图2参考图3是所示,图3是本申请提供的一种飞线的构建方法实施例中飞线的结构示意图,其中,飞线301有粒子302构成,所述粒子302中实心粒子3021为可见粒子,空心粒子3022为不可见粒子。
所述步骤S201中物体可以是任何一种具有数据信息或产生数据信息的物质,其可以为可见的或不可见的,例如:具有物理结构的物品和不存在真是物理结构的虚拟物品。因此,所述步骤S201的目的在于得到一种能够表达状态变化的数据信息,而该数据信息具体是谁来产生的并不重要,当然,在绘制飞线时可以体现出数据信息的具体内容,因为在本申请提供一种飞线的构建方法中主要涉及的是飞线的构建,因此,重点在于获得具有状态变化的数据信息。
在本实施例中,所述描述物体状态变化的数据信息可以包括至少如下一种数据信息:
用于描述所述物体位置的位置信息;
用于描述所述物体位置对应时间的时间信息。
当然,可以理解的是,数据信息还可以包括物体的一些属性信息,例如:名称,类型,用途等。
在得到物体状态变化的数据信息后,需要去生成表示物体状态变化的粒子,因此,执行步骤S202。
步骤S202:根据所述数据信息,生成用于表示物体状态变化的粒子。
所述步骤S202的目的在于,获得构成飞线的元素,也就是说,飞线是通过粒子实现构建而成。在本实施例中,所述步骤S202中的粒子可以通过粒子系统生成。所述粒子系统是运用于计算机中各种模糊景物的模拟,其主要解决由大量按一定规则运动(变化)的微小物质组成的大物质,在计算机上的生成与显示问题。通常可以模拟的现象有火焰、爆炸、烟、水流、火花、落叶、云、雾、雪、尘、流星尾迹或者像发光轨迹这样的抽象视觉效果等等,也就是说,粒子系统可以描述组成物体的每个元素和元素的变化。
粒子系统的构成包括:粒子和发射器。其中,粒子包括形状、大小、颜色、透明度、运动速度和运动方向、生命周期等属性,在粒子系统中通过粒子对象的类(particle)实现粒子属性的可视化。发射器用来对生成粒子的发射情况进行控制。
粒子系统通常分为两种:点粒子和四边形粒子。点粒子是指所有粒子都是由点构成;四边形粒子是将一个粒子纹理给映射到一个四边形上,作为一个粒子对象。由于点粒子可以根据顶点粒子的属性生成下一个粒子,无需过多的顶点信息,因此,在本实施例中,可以点粒子的方式进行飞线构建的说明。当然,可以理解的是,可以通过对粒子的构建方式的选择构建满足需求的飞线形状。
基于上述内容可知,所述步骤S202生成表示物体状态变化粒子的具体过程可以包括:
步骤S202-1:根据所述数据信息确定待生成粒子的属性。
在本实施例中,所述待生成粒子的属性可以至少包括确定如下一种属性:
描述待生成粒子形状的属性;
描述待生成粒子位置状态变化的属性;
描述待生成粒子状态变化时间的属性;
描述待生成粒子大小的属性;
描述待生成粒子颜色的属性。
所述生成粒子的属性可以根据构建飞线的需求,通过数据信息确定,例如:飞线的形状可以通过粒子的形状属性进行确定,也就是说,飞线的可视化形状可以通过粒子的属性确定。
步骤S202-2:根据所述待生成粒子的属性,确定粒子结构。
在粒子系统中,粒子的属性确定粒子的结构情况,因此所述步骤S202-2,可以根据所述待生成粒子的属性,确定粒子结构。
基于现有技术中存在的通过增加顶点的方式扩充飞线的宽度,导致绘制性能和效率下降的问题,在本实施例中仅需要通过粒子系统对粒子的半径调节,即能够实现飞线宽度的调节,无需构建多个顶点,避免绘制性能和效率下降的问题,故,所述步骤S202-2中可以包括:基于绘制所述物体状态变化轨迹宽度的要求,根据描述所述粒子大小的属性,确定粒子半径,从而完成粒子宽度的调节。
本实施例通过粒子系统中设置的粒子半径的自定义调节,不仅能够完成粒子宽度的设置,还能够在任何视角或场景下,避免飞线的局部或全部不可见或产生锯齿等瑕疵问题。需要说明的是,此处的不可见是指在飞线可见的显示要求下,发生不可见的情况,也就是无法正常显示的问题。
步骤S202-3:根据所述粒子结构生成用于绘制所述物体状态变化轨迹中描述状态变化的粒子。
所述步骤S202-3的目的在于,需要根据确定的粒子属性,确定粒子的结构,再根据粒子结构生成用于绘制所述物体状态变化轨迹中描述状态变化的粒子。例如:飞线用于描述行人的运动轨迹,那么,可以根据行人移动的时间点,生成该行人相对该时间点的粒子,时间点的信息为粒子属性;不同时间点可以对应该行人的不同位置,以上仅以行人的运动轨迹为举例说明。当然,还可以在生成粒子时设置粒子大小属性,即根据该行人的时间属性、预设的粒子大小属性生成粒子。本申请中粒子的生成可以采用现有粒子系统实现,因此描述的较为概要。
在根据粒子结构生成粒子后,每个粒子均具有属性信息,在本实施例中,主要采用粒子的位置属性和时间属性,描述粒子的变化状态,而所述位置属性和时间属性可以通过获取的描述物体状态变化的数据信息确定,因此,生成后的粒子会携带有位置属性和时间属性的信息。
在根据所述物体状态变化的数据信息生成用于表示物体状态变化的粒子后,可以根据粒子生成用于描述物体状态变化轨迹的飞线,具体如下:
步骤S203:根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线。
所述步骤S203中的预设位置范围可以是根据显示需求确定,例如:物体状态变化过程中的起始点和结束点,所述起始点和结束点可以看做是顶点。飞线可以是描述物体状态变化轨迹的一种可视化线条,可以理解为,由多个不同或相同形状的点构成的线条。线条的延伸方向可以看做是物体状态变化的方向。因此,所述步骤S203可以包括:
步骤S203-1:确定起始位置和结束位置。
所述步骤S203-1中的起始位置和结束位置可以理解为飞线的起始位置和结束位置,所述起始位置可以根据起始位置处的粒子信息确定,结束位置可以根据结束位置处的粒子信息确定。确定的方式可以通过按照粒子的时间属性实现,因为,粒子描述物体状态变化的信息,物体状态变化的信息可以包括:位置状态的变化信息和时间状态变化的信息,当然还可以包括形状变化的信息或者大小变化的信息等等,在本实施例中,主要以位置和时间变化信息为主进行说明。
换言之,所述步骤S203-1可以根据时间的变化确定飞线顶点处(起始处)的粒子信息和飞线结束处的粒子信息,例如:将物体状态变化时间最早所对应的位置确定为起始位置,所述最早可以是在描述物体状态变化的范围内的最早或最小,如描述物体状态变化的时间范围为上午的7:00-10:00,则可以将7:00所对应的物体状态变化的位置确定为起始位置,7:00为起始时间;10:00对应的物体状态变化的位置确定为结束位置,10:00为结束时间,依照该时间范围构建的飞线,表达从7:00到10:00之间物体状态变化的轨迹。飞线的生成可以通过步骤S203-2实现。
步骤S203-2:按照粒子状态变化的时间属性,依序连接位于所述起始位置和所述结束位置之间的粒子,获得用于描述所述物体状态变化轨迹的飞线。
所述步骤S203-2的具体实现可以通过粒子系统中发射器实现,例如:根据粒子状态变化的时间属性,确定初始位置处的第一粒子,发射器确定第一个发射的粒子,接着将排序在所述初始位置处后且与初始位置的第一粒子相邻的第二粒子确定为第二个发射的粒子,依序进行,从而获得用于描述所述物体状态变化轨迹的飞线,换言之,可以按照粒子状态变化的时间顺序,通过设置发射器将粒子依序连接,获得用于描述所述物体状态变化轨迹的飞线。
可以理解的是,对于飞线的生成可以采用位置信息确定飞线起始位置(顶点)的粒子和结束位置的粒子,从而根据起始位置和结束位置生成飞线。也可以通过采用位置信息和时间信息确定飞线起始位置(顶点)的粒子的时间信息和确定飞线结束位置的粒子的时间信息,从而根据位置和时间两个元素生成飞线。本实施例中,主要采用位置和时间两个元素对生成飞线的过程进行说明,在其他一下实施例中也可以仅采用位置元素生成飞线。
本实施例中,飞线基于粒子生成,无需大量的顶点信息,仅需要根据粒子的属性信息即可生成,因此,提升了构建性能。另外,飞线的构建基于GPU的计算能力完成,即在显卡中进行,对浏览器本身的计算或绘制任务不产生影响,因此,对海量数据渲染也 不会造成卡顿,进而能够在海量数据的环境下提升飞线构建或绘制的效率。
为实现飞线的动态显示要求,体现不同时间范围飞线的不同状态,以及体现各个飞线之间的时间关系,本申请提供的飞线的构建方法还可以包括:
步骤S204:根据飞线的显示要求,确定描述所述飞线中粒子可见性的可见性信息。
所述步骤S204的目的在于通过控制粒子的可见性能够根据显示需求实现飞线个性化显示,在具有多飞线的应用场景下,也能够体现出各个飞线的时间关系,即数据信息的时间关系。同样的也可以通过粒子的可见性体现飞线的不同状态,所谓不同状态可以为物体状态变化的重要程度。
基于上述步骤S201-S203可知,飞线构建过程是通过将多个粒子按照状态变化时间属性依序连接实现,每个粒子可以代表物体一个状态变化,为体现状态变化的动态可视效果,所述步骤S204可以包括:
步骤S204-1:确定构成所述飞线的粒子的显示时间要求。
所述步骤S204-1中对于粒子的显示时间要求可以是针对飞线而言,即需要显示飞线区域所对应的粒子的显示时间要求,因为粒子带有自身状态变化的时间信息,因此在确定显示时间要求后能够确定与该显示时间要求匹配的粒子时间信息。沿用上例,如果飞线的显示时间范围7:00-10:00,即显示时间为7:00-10:00的物体状态变化轨迹的飞线,确定的粒子显示时间要求可以为7:00-8:30。
所述步骤S204-1的具体实现过程在本实施例中可以包括:
步骤S204-1a:根据所述飞线的显示要求,构建时间掩膜。
为便于理解,请参考图3所示,可以将时间掩膜303看做是一个具有时间参数的蒙板,蒙板覆盖飞线区域为可见区域,未覆盖区域为不可见区域;当然也可以理解为,蒙板覆盖飞线区域为不可见区域,未覆盖区域为可见区域。
步骤S204-1b:根据所述时间掩膜,确定构成飞线的粒子的显示时间要求。
所述步骤S204-1b目的在于,在构成飞线的粒子中选取时间信息满足显示时间要求的粒子,时间掩膜可以控制粒子的可见性。
步骤S204-2:将时间信息满足显示时间要求的粒子,按照所述粒子状态变化的时间属性依序进行显示。
所述步骤S204-2的目的在于,将飞线中满足显示时间要求的粒子进行显示。例如:当时间掩膜的显示时间范围要求为7:00-8:30,则可以在飞线显示时间范围为7:00-10:00内显示7:00-8:30的飞线部分,即:将显示时间要求为7:00-8:30的粒子按照粒子状态变 化的时间属性依序进行显示,形成描述物体状态变化轨迹的飞线。
为使飞线能够动态的可视化显示,所述步骤S204-2还可以包括:
步骤S204-2a:根据所述粒子显示时间要求,确定所述时间掩膜的移动范围。
所述步骤S204-2a所述时间掩膜的移动范围可以是调整所述时间掩模的开始时间和结束时间。
步骤S204-2b:对所述时间掩膜的移动范围内的所述粒子依序进行显示。
所述步骤S204-2b具体的实现过程可以是不断调节或更新所述时间掩模的开始时间和结束时间,即可过滤出动态可见的粒子,形成飞线的动态可视化显示。
需要说明的是,本实施例中构建飞线可以根据不同需求设置显示要求,例如:需求是飞线起始位置到结束位置之间呈现出某一时间范围内的飞线,则可以通过时间掩膜所设置的时间范围,显示满足时间掩膜的飞线,通过对时间掩膜的起始时间和结束时间的调整,使得飞线呈动态的显示形式。
可以理解的是,在飞线的显示效果上,还可以通过对时间掩膜透明度的设置,使得在时间掩膜范围内的飞线可以呈现出不同亮度的显示效果。
因此,时间掩膜可以理解为一个具有时间参数的蒙板,蒙板覆盖飞线区域为可见区域,未覆盖区域为不可见区域;当然也可以理解为,蒙板覆盖飞线区域为不可见区域,未覆盖区域为可见区域。通过调整蒙板的透明度使得可见区域以亮度渐变状态显示。
以上是对本申请提供的一种飞线的构建方法实施例的具体描述,与前述提供的一种飞线的构建方法实施例相对应,本申请还公开一种飞线的构建装置实施例,请参看图4,由于装置实施例基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。下述描述的装置实施例仅仅是示意性的。
如图4所示,图4是本申请提供的一种飞线的构建装置实施例的结构示意图。该构建装置包括:
获取单元401,用于获取描述物体状态变化的数据信息。
所述获取单元401中获取的描述物体状态变化的数据信息包括至少如下一种数据信息:
用于描述所述物体位置的位置信息;
用于描述所述物体位置对应时间的时间信息。
粒子生成单元402,用于根据所述数据信息,生成用于表示物体状态变化的粒子。
所述粒子生成单元402包括:
属性确定子单元,用于根据所述数据信息确定待生成粒子的属性;
粒子结构确定子单元,用于根据所述待生成粒子的属性,确定粒子结构;
粒子生成子单元,用于根据所述粒子结构生成用于绘制所述物体状态变化轨迹中描述状态变化的粒子。
其中,所述粒子结构确定子单元中,待生成粒子的属性至少包括确定如下一种属性:
描述待生成粒子形状的属性;
描述待生成粒子位置状态变化的属性;
描述待生成粒子状态变化时间的属性;
描述待生成粒子大小的属性;
描述待生成粒子颜色的属性。
所述粒子结构确定子单元包括:粒子半径确定子单元,用于基于绘制所述物体状态变化轨迹宽度的要求,根据描述所述粒子大小的属性,确定粒子半径。
在本实施例中,所述粒子生成单元402具体可以基于图形处理器,将所述数据信息输入至粒子系统中,生成用于绘制所述物体状态变化轨迹中描述物体状态变化的粒子。
飞线生成单元403,根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线。
所述飞线生成单元403包括:
位置确定子单元,用于确定起始位置和结束位置;
飞线获得子单元,用于按照粒子状态变化的时间属性,依序连接位于所述起始位置和所述结束位置之间的粒子,获得用于描述所述物体状态变化轨迹的飞线。
在一些实施中,还可以包括:
可见性确定单元404,用于根据飞线的显示要求,确定描述所述飞线中粒子可见性的可见性信息。
所述可见性确定单元404包括:
显示时间要求子单元,用于确定构成所述飞线的粒子的显示时间要求;
显示子单元,用于将时间信息满足显示时间要求的粒子,按照所述粒子状态变化的时间属性依序进行显示。
其中,所述显示时间要求子单元包括:
时间掩膜子单元,用于根据所述飞线的显示要求,构建时间掩膜;
显示时间确定子单元,用于根据所述时间掩膜,确定构成飞线的粒子的显示时间要 求。
所述显示子单元,包括:
移动范围确定子单元,用于根据所述粒子显示时间要求,确定所述时间掩膜的移动范围;
粒子显示子单元,用于对所述时间掩膜的移动范围内的所述粒子依序进行显示。
以上为本申请提供的一种飞线的构建装置实施例的描述,描述过程较为概要,具体内容参考针对一种飞线的构建方法实施例的描述即可,此处不做过多赘述。
基于上述内容,本申请还提供一种飞线的显示方法,请参考图5所示,图5是本申请提供的一种飞线的显示方法实施例的流程图,该显示方法包括:
步骤S501:获取用于描述物体状态变化的飞线。
所述步骤S501中描述物体状态变化的飞线包括多个描述物体状态变化的粒子,如图6所示,每个粒子具有位置属性和时间属性,且每个粒子的位置属性不同,时间属性也不同。起始位置的粒子可以看做是顶点,通过顶点粒子依序按照时间要求连接即构成了描述物体状态变化的飞线。关于飞线构建过程可以参考上述步骤S201-S204的描述,此处不再赘述。
步骤S502:根据所述飞线的显示要求,确定所述飞线的可见区域。
所述步骤S502的目的是通过飞线的显示要求可以突出需要显示的飞线部分,弱化不需要显示的飞线部分。飞线的显示要求可以根据数据信息的重要性或者数据信息的显示关系确定。具体实现过程可以包括:
步骤S502-1:根据所述飞线的显示要求,构建时间掩膜。
步骤S502-2:将所述时间掩膜覆盖所述飞线的区域,确定为所述飞线的可见区域。
更进一步的,可以通过设置时间掩膜的可见程度,即透明度,体现飞线的显示程度。
基于上述内容,飞线的显示可以根据不同的需求进行部分区域显示和部分区域隐藏,可以显示重要数据信息的展示,弱化非重要数据信息的展示。
步骤S503:将确定的所述飞线可见区域显示在终端设备。
根据上述步骤S501-步骤S502,可以将需要显示的飞线显示在终端设备上,在本实施例中,所述终端设备可以是数据大屏显示设备,当然也可以是PC设备等;也可以是数据大屏显示设备与其他终端设备同时显示,同时显示可以是将数据大屏显示设备的内容映射到与其连接的终端设备上即可,当然也可以有其他显示方式。
为实现飞线的动态显示,体现出空间维度以及时间维度上的飞线,或者是体现出时 间维度上的飞线,或者是空间维度上的飞线,所述步骤S503还可以包括:
步骤S503-1:根据所述飞线的显示要求,确定所述时间掩膜的移动范围。
步骤S503-2:对所述时间掩膜的移动范围内的所述飞线区域依序进行显示。
对于步骤S503-1和步骤S503-2,请结合图3,参考图6所示,图6是本申请提供的一种飞线的构建方法实施例中飞线在数据大屏上的显示效果示意图。所述时间掩膜的移动范围可以是根据飞线的显示要求,调整所述时间掩模的开始时间和结束时间,可过滤出动态可见的粒子,形成飞线的动态可视化显示。例如:飞线的显示要求可以是飞线起始位置区域部分着重显示,如亮度强,飞线中间位置区域部分的亮度次于起始位置区域,飞线结束位置区域部分的亮度次于飞线中间位置区域部分,则可以通过调整时间掩膜的时间范围,以及透明度即可,当然,如果飞线不需要体现亮度的强弱,仅体现需要显示飞线部分,则可以不需透明度的设置。
以上是对本申请提供的一种飞线的显示方法实施例的具体描述,与前述提供的一种飞线的显示方法实施例相对应,本申请还公开一种飞线的显示装置实施例,请参看图7,由于装置实施例基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。下述描述的装置实施例仅仅是示意性的。
如图7所示,图7是本申请提供的一种飞线的显示装置实施例的结构示意图。所述显示装置包括:
获取单元701,用于获取用于描述物体状态变化的飞线。
确定单元702,用于根据所述飞线的显示要求,确定所述飞线的可见区域。
所述确定单元702包括:
构建子单元,用于根据所述飞线的显示要求,构建时间掩膜;
确定子单元,用于将所述时间掩膜覆盖所述飞线的区域,确定为所述飞线的可见区域。
显示单元703,用于将确定的所述飞线可见区域显示在终端设备。
所述显示单元703包括:
移动确定子单元,用于根据所述飞线的显示要求,确定所述时间掩膜的移动范围;
显示子单元,用于对所述时间掩膜的移动范围内的所述飞线区域依序进行显示。
以上为本申请提供的一种飞线的显示装置实施例的说明,具体内容可以参考针对飞线的显示方法实施例的说明。
基于上述飞线的构建方法以及飞线的显示方法,本申请还提供一种基于行人出行轨 迹的飞线显示方法。请参考图8所示,图8是本申请提供的一种基于行人出行轨迹的飞线显示方法实施例的流程图;该飞线显示方法包括:
步骤S801:按照如上所述的飞线构建方法构建描述行人出行轨迹的飞线。
所述步骤S801的具体过程可以参考上述飞线的构建方法中步骤S201至步骤S203或者步骤S201至步骤S204的描述。
步骤S802:在终端设备上显示所述飞线。
所述步骤S802的终端设备可以数据大屏显示设备,也可以是其他能够用于显示数据信息的终端设备,该步骤具体实现过程可以包括:
根据所述行人出行轨迹的位置信息和时间信息,在所述终端设备上显示所述飞线。
进一步的,为体现行人出行轨迹的动态显示,可以按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
对于行人出行轨迹的飞线实现还可以是针对行人出行数据量进行强弱的逐渐显示,例如:行人出行数量多时可以使飞线显示增强,增强的方式可以飞线亮度增大,或者飞线宽度增大,或者飞线的形状变化等,行人出行数量少时可以使飞线显示减弱,减弱的方式可以是飞线亮度变暗,或者飞线宽度减小,或者飞线的形状变化或者飞线的颜色变化等。如何体现强弱的逐渐显示不受上述内容限制。
对于行人出行动态的显示也可以通过时间掩膜实现,既可以通过透明度体现行人出行的密集与疏散,也可以体现行人出行的过程。
基于上述飞线的构建方法以及飞线的显示方法,本申请还提供一种基于车辆出行轨迹的飞线显示方法,请参考图9所示,图9是本申请提供的一种基于车辆出行轨迹的飞线显示方法实施例的流程图;该飞线显示方法包括:
步骤S901:按照如上所述的飞线构建方法构建描述车辆出行轨迹的飞线。
所述步骤S901的具体过程可以参考上述飞线的构建方法中步骤S201至步骤S203或者步骤S201至步骤S204的描述。可以理解的是,对于车辆出行轨迹的飞线,获取的数据信息为车辆出行状态变化的数据信息。
步骤S902:在终端设备上显示所述飞线。
所述步骤S902的具体实现过程可以包括:
根据所述车辆出行轨迹的位置信息和时间信息,在所述终端设备上显示所述飞线。
进一步的,为体现车辆出行轨迹的动态显示,可以按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
对于车辆出行轨迹的飞线实现还可以是针对车辆出行数据量进行强弱的逐渐显示,例如:车辆出行数量多时可以使飞线显示增强,增强的方式可以飞线亮度增大,或者飞线宽度增大,或者飞线的形状变化等,车辆出行数量少时可以使飞线显示减弱,减弱的方式可以是飞线亮度变暗,或者飞线宽度减小,或者飞线的形状变化或飞线颜色变化等。如何体现强弱的逐渐显示不受上述内容限制。
对于车辆的动态显示也可以通过时间掩膜实现,既可以通过透明度体现车辆出行的强弱,也可以体现车辆出行的过程。
基于上述飞线的构建方法以及飞线的显示方法,本申请还提供一种基于营销数据的飞线显示方法,请参考图10所示,图10本申请提供的一种基于营销数据的飞线显示方法实施例的流程图,该飞线显示方法包括:
步骤S1001:按照如上所述的飞线构建方法构建描述营销数据增长或下降的飞线。
所述步骤S1001的具体过程可以参考上述飞线的构建方法中步骤S201至步骤S203或者步骤S201至步骤S204的描述。可以理解的是,对于营销数据轨迹的飞线,获取的数据信息为营销数据状态变化的数据信息。
步骤S1002:在终端设备上显示所述飞线。
所述步骤S1002的具体实现过程可以包括:
步骤S1002-1:根据所述营销数据的增长点的位置信息和时间信息,在终端设备上显示所述飞线。
或者,
步骤S1002-2:根据所述营销数据的下降点的位置信息和时间信息,在终端设备上显示所述飞线。
为动态显示描述营销数据的飞线,还可以包括:
按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。具体地,可以根据所述营销数据的增长顺序,设置所述飞线显示顺序;将所述飞线按照所述营销数据的基准点向增长范围的最高点进行逐渐显示;所述逐渐显示可以是飞线亮度的强弱或者飞线宽度的粗细或者飞线形状的形式来体现,对于飞线形状可以针对同一飞线采用不同的形状表示,也可以通过飞线颜色进行强弱的表示。
所述按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示,还可以包括如下实现方式:
根据所述营销数据的下降顺序,设置所述飞线显示顺序;
将所述飞线按照所述营销数据的基准点向下降范围的最低点进行强弱的逐渐显示。
具体逐渐显示的方式可以是飞线亮度的强弱或者飞线宽度的粗细或者飞线形状的形式来体现,对于飞线形状可以针对同一飞线采用不同的形状表示,也可以通过飞线颜色进行强弱的表示。
基于上述内容,本申请还提供一种计算机存储介质,用于存储程序;
所述程序在被读取执行时,能够执行如上所述的飞线的构建方法中的步骤,或者如上所述的飞线的显示方法中的步骤,或者如上所述的基于行人出行轨迹的飞线显示方法中的步骤,或者如上所述的基于车辆出行轨迹的飞线显示方法中的步骤,或者如上所述的基于营销数据的飞线显示方法中的步骤。
基于上述内容,本申请还提供一种电子设备,包括:
处理器;
存储器,用于存储程序,所述程序在被所述处理器读取执行时,使得所述电子设备执行如上所述的飞线的构建方法中的步骤,或者如上所述的飞线的显示方法中的步骤,或者如上所述的基于行人出行轨迹的飞线显示方法中的步骤,或者如上所述的基于车辆出行轨迹的飞线显示方法中的步骤,或者如上所述的基于营销数据的飞线显示方法中的步骤。
本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
1、计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、 只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
2、本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。

Claims (28)

  1. 一种飞线的构建方法,其特征在于,包括:
    获取描述物体状态变化的数据信息;
    根据所述数据信息,生成用于表示物体状态变化的粒子;
    根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线。
  2. 根据权利要求1所述的飞线的构建方法,其特征在于,所述获取描述物体状态变化的数据信息包括至少如下一种数据信息:
    用于描述所述物体位置的位置信息;
    用于描述所述物体位置对应时间的时间信息。
  3. 根据权利要求1所述的飞线的构建方法,其特征在于,所述根据所述数据信息,生成用于表示物体状态变化的粒子,包括:
    根据所述数据信息确定待生成粒子的属性;
    根据所述待生成粒子的属性,确定粒子结构;
    根据所述粒子结构生成用于绘制所述物体状态变化轨迹中描述状态变化的粒子。
  4. 根据权利要求3所述的飞线的构建方法,其特征在于,所述待生成粒子的属性至少包括确定如下一种属性:
    描述待生成粒子形状的属性;
    描述待生成粒子位置状态变化的属性;
    描述待生成粒子状态变化时间的属性;
    描述待生成粒子大小的属性;
    描述待生成粒子颜色的属性。
  5. 根据权利要求4所述的飞线的构建方法,其特征在于,所述根据所述待生成粒子的属性,确定粒子结构,包括:
    基于绘制所述物体状态变化轨迹宽度的要求,根据描述所述粒子大小的属性,确定粒子半径。
  6. 根据权利要求1所述的飞线的构建方法,其特征在于,所述根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线,包括:
    确定起始位置和结束位置;
    按照粒子状态变化的时间属性,依序连接位于所述起始位置和所述结束位置之间的粒子,获得用于描述所述物体状态变化轨迹的飞线。
  7. 根据权利要求1所述的飞线的构建方法,其特征在于,还包括:
    根据飞线的显示要求,确定描述所述飞线中粒子可见性的可见性信息。
  8. 根据权利要求7所述的飞线的构建方法,其特征在于,所述根据飞线的显示要求,确定描述所述飞线中粒子可见性的可见性信息,包括:
    确定构成所述飞线的粒子的显示时间要求;
    将时间信息满足显示时间要求的粒子,按照所述粒子状态变化的时间属性依序进行显示。
  9. 根据权利要求8所述的飞线的构建方法,其特征在于,确定构成所述飞线的粒子的显示时间要求,包括:
    根据所述飞线的显示要求,构建时间掩膜;
    根据所述时间掩膜,确定构成飞线的粒子的显示时间要求。
  10. 根据权利要求9所述的飞线的构建方法,其特征在于,所述将时间信息满足显示时间要求的粒子,按照所述粒子状态变化的时间属性依序进行显示,包括:
    根据所述粒子显示时间要求,确定所述时间掩膜的移动范围;
    对所述时间掩膜的移动范围内的所述粒子依序进行显示。
  11. 根据权利要求1所述的飞线的构建方法,其特征在于,所述根据所述数据信息,生成用于表示物体状态变化的粒子,包括:
    基于图形处理器,将所述数据信息输入至粒子系统中,生成用于绘制所述物体状态变化轨迹中描述物体状态变化的粒子。
  12. 一种飞线的构建装置,其特征在于,包括:
    获取单元,用于获取描述物体状态变化的数据信息;
    粒子生成单元,用于根据所述数据信息,生成用于表示物体状态变化的粒子;
    飞线生成单元,根据预设位置范围内的粒子生成用于描述物体状态变化轨迹的飞线。
  13. 一种飞线的显示方法,其特征在于,包括:
    获取用于描述物体状态变化的飞线;
    根据所述飞线的显示要求,确定所述飞线的可见区域;
    将确定的所述飞线可见区域显示在终端设备。
  14. 根据权利要求13所述的飞线的显示方法,其特征在于,所述根据所述飞线的显示要求,确定所述飞线的可见区域,包括:
    根据所述飞线的显示要求,构建时间掩膜;
    将所述时间掩膜覆盖所述飞线的区域,确定为所述飞线的可见区域。
  15. 根据权利要求14所述的飞线的显示方法,其特征在于,所述将确定的所述飞线可见区域显示在终端设备,包括:
    根据所述飞线的显示要求,确定所述时间掩膜的移动范围;
    对所述时间掩膜的移动范围内的所述飞线区域依序进行显示。
  16. 一种飞线的显示装置,其特征在于,包括:
    获取单元,用于获取用于描述物体状态变化的飞线;
    确定单元,用于根据所述飞线的显示要求,确定所述飞线的可见区域;
    显示单元,用于将确定的所述飞线可见区域显示在终端设备。
  17. 一种基于行人出行轨迹的飞线显示方法,其特征在于,包括:
    按照权利要求1-11任意一项所述的飞线的构建方法构建描述行人出行轨迹的飞线;
    在终端设备上显示所述飞线。
  18. 根据权利要求17所述的基于行人出行轨迹的飞线显示方法,其特征在于,所述在终端设备上显示所述飞线,包括:
    根据所述行人出行轨迹的位置信息和时间信息,在所述终端设备上显示所述飞线。
  19. 根据权利要求18所述的基于行人出行轨迹的飞线显示方法,其特征在于,还包括:
    按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
  20. 一种基于车辆出行轨迹的飞线显示方法,其特征在于,包括:
    按照权利要求1-11任意一项所述的飞线的构建方法构建描述车辆出行轨迹的飞线;
    在终端设备上显示所述飞线。
  21. 根据权利要求20所述的基于车辆出行轨迹的飞线显示方法,其特征在于,所述在终端设备上显示所述飞线,包括:
    根据所述车辆出行轨迹的位置信息和时间信息,在所述终端设备上显示所述飞线。
  22. 根据权利要求20所述的基于车辆出行轨迹的飞线显示方法,其特征在于,还包括:
    按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
  23. 一种基于营销数据的飞线显示方法,其特征在于,包括:
    按照权利要求1-11任意一项所述的飞线的构建方法构建描述营销数据增长或下降的飞线;
    在终端设备上显示所述飞线。
  24. 根据权利要求23所述的基于营销数据的飞线显示方法,其特征在于,所述在终端设备上显示所述飞线,包括:
    根据所述营销数据的增长点的位置信息和时间信息,在终端设备上显示所述飞线;
    或者,
    根据所述营销数据的下降点的位置信息和时间信息,在终端设备上显示所述飞线。
  25. 根据权利要求23所述的基于营销数据的飞线显示方法,其特征在于,还包括:
    按照所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示。
  26. 根据权利要求25所述的基于营销数据的飞线显示方法,其特征在于,所述按照设置的所述飞线显示顺序的要求,将所述飞线按照显示起始位置向显示结束位置进行强弱的逐渐显示,包括:
    根据所述营销数据的增长顺序,设置所述飞线显示顺序;
    将所述飞线按照所述营销数据的基准点向增长范围的最高点进行逐渐显示;
    或者,
    根据所述营销数据的下降顺序,设置所述飞线显示顺序;
    将所述飞线按照所述营销数据的基准点向下降范围的最低点进行强弱的逐渐显示。
  27. 一种计算机存储介质,用于存储程序;
    所述程序在被读取执行时,能够执行如权利要求1-11中任意一项所述的飞线的构建方法中的步骤,或者如权利要求13-15中任意一项所述的飞线的显示方法中的步骤,或者如权利要求17-19中任意一项所述的基于行人出行轨迹的飞线显示方法中的步骤,或者如权利要求20-22中任意一项所述的基于车辆出行轨迹的飞线显示方法中的步骤,或者如权利要求23-26中任意一项所述的基于营销数据的飞线显示方法中的步骤。
  28. 一种电子设备,包括:
    处理器;
    存储器,用于存储程序,所述程序在被所述处理器读取执行时,使得所述电子设备执行如权利要求1-11中任意一项所述的飞线的构建方法中的步骤,或者如权利要求 13-15中任意一项所述的飞线的显示方法中的步骤,或者如权利要求17-19中任意一项所述的基于行人出行轨迹的飞线显示方法中的步骤,或者如权利要求20-22中任意一项所述的基于车辆出行轨迹的飞线显示方法中的步骤,或者如权利要求23-26中任意一项所述的基于营销数据的飞线显示方法中的步骤。
PCT/CN2020/084120 2019-04-11 2020-04-10 飞线构建及显示方法和装置,计算机存储介质和电子设备 Ceased WO2020207458A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910288459.9 2019-04-11
CN201910288459.9A CN111815736B (zh) 2019-04-11 2019-04-11 飞线构建及显示方法和装置,计算机存储介质和电子设备

Publications (1)

Publication Number Publication Date
WO2020207458A1 true WO2020207458A1 (zh) 2020-10-15

Family

ID=72750937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/084120 Ceased WO2020207458A1 (zh) 2019-04-11 2020-04-10 飞线构建及显示方法和装置,计算机存储介质和电子设备

Country Status (2)

Country Link
CN (1) CN111815736B (zh)
WO (1) WO2020207458A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763701B (zh) * 2021-05-26 2024-02-23 腾讯科技(深圳)有限公司 路况信息的显示方法、装置、设备及存储介质
CN114648603B (zh) * 2022-05-19 2022-08-05 杭州比智科技有限公司 一种基于canvas与echarts实现飞线动效的方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411470A (zh) * 2011-07-20 2012-04-11 中兴通讯股份有限公司 动态墙纸生成方法及装置
EP2538237A1 (en) * 2011-06-21 2012-12-26 BAE Systems Plc Tracking algorithm
US8401239B2 (en) * 2009-03-30 2013-03-19 Mitsubishi Electric Research Laboratories, Inc. Object tracking with regressing particles
CN105975273A (zh) * 2016-05-04 2016-09-28 腾讯科技(深圳)有限公司 粒子动画的实现及优化工具的净化过程展示方法和系统
WO2018143856A1 (en) * 2017-02-06 2018-08-09 Telefonaktiebolaget Lm Ericsson (Publ) Adapting ue on/off transient time parameter for different transmission time interval patterns

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109063279B (zh) * 2018-07-16 2023-06-20 南京信息工程大学 基于粒子流轨迹追踪算法的三维空间风场动态模拟方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8401239B2 (en) * 2009-03-30 2013-03-19 Mitsubishi Electric Research Laboratories, Inc. Object tracking with regressing particles
EP2538237A1 (en) * 2011-06-21 2012-12-26 BAE Systems Plc Tracking algorithm
CN102411470A (zh) * 2011-07-20 2012-04-11 中兴通讯股份有限公司 动态墙纸生成方法及装置
CN105975273A (zh) * 2016-05-04 2016-09-28 腾讯科技(深圳)有限公司 粒子动画的实现及优化工具的净化过程展示方法和系统
WO2018143856A1 (en) * 2017-02-06 2018-08-09 Telefonaktiebolaget Lm Ericsson (Publ) Adapting ue on/off transient time parameter for different transmission time interval patterns

Also Published As

Publication number Publication date
CN111815736A (zh) 2020-10-23
CN111815736B (zh) 2024-12-20

Similar Documents

Publication Publication Date Title
CN112102465B (zh) 基于3d结构引擎的计算平台
JP6910130B2 (ja) 3dレンダリング方法及び3dレンダリング装置
US9588651B1 (en) Multiple virtual environments
US5261041A (en) Computer controlled animation system based on definitional animated objects and methods of manipulating same
EP2419885B1 (en) Method for adding shadows to objects in computer graphics
US8760449B1 (en) Multi-stage fire simulation
CN112529997A (zh) 烟花视觉效果的生成方法、视频生成方法、电子设备
US20240037830A1 (en) Method for generating firework visual effect, electronic device, and storage medium
US20120030630A1 (en) Multiscale three-dimensional orientation
JPH02287776A (ja) 大域レンダリングに階層ディスプレイリストを採用する方法
KR20140024361A (ko) 클라이언트 애플리케이션들에서 전이들의 애니메이션을 위한 메시 파일들의 이용
WO2023159595A9 (zh) 构建和配置三维空间场景的模型的方法、装置及计算机程序产品
Du et al. Project geollery. com: Reconstructing a live mirrored world with geotagged social media
KR102151443B1 (ko) 하이브리드 gpu 아키텍처 기반의 그래픽 처리 장치
CN111429561A (zh) 一种虚拟仿真渲染引擎
US9483873B2 (en) Easy selection threshold
CN116051713A (zh) 渲染方法、电子设备和计算机可读存储介质
WO2024037116A1 (zh) 三维模型的渲染方法、装置、电子设备及存储介质
WO2020207458A1 (zh) 飞线构建及显示方法和装置,计算机存储介质和电子设备
CN108133506A (zh) 实现线条动态效果的方法、装置及系统
CN105976423B (zh) 一种镜头光晕的生成方法和装置
CN115082609A (zh) 图像渲染方法、装置、存储介质及电子设备
WO2024124370A1 (zh) 一种模型构建方法及装置、存储介质、电子设备
KR20120001114A (ko) 가상세계 실시간 3d 객체 제어와 이를 위한 인터페이스 및 입출력 방법
CN108170498A (zh) 页面内容展示方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20787181

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20787181

Country of ref document: EP

Kind code of ref document: A1