Graph drawing method and system based on WPF technology

A graphic and technical technology, applied in the direction of program control device, spectrum analysis/Fourier analysis, etc., can solve the problems of reducing work efficiency, consuming large CPU resources, unable to use the method of drawing line graphs, etc., to improve work efficiency , the effect of reducing CPU resources

Active Publication Date: 2014-03-12
XIAN EDAN SCI APP
View PDF6 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At this time, the general method of drawing a line graph will not be available. For example, the patent "Implementation method of Java-based embedded spectrum analyzer display interface" (patent application number 201010620822.1, publication number CN102156639B) applied by Beijing Aerospace Measurement and Control Technology Development Corporation, This patent uses the function of DrawLine (a straight line connecting two points) to draw the waveform, and a series of feature points in the Doppler spectrogram need to be connected on the plane coordinate system. This method will consume a lot of CPU resources.
[0004] That is, the current method for drawing the Doppler spectrogram will consume a large amount of CPU resources and reduce work efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Graph drawing method and system based on WPF technology
  • Graph drawing method and system based on WPF technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Such as figure 1 As shown, the present invention discloses a method for drawing graphics based on WPF technology, comprising the following steps:

[0032] In step S1, the background thread receives the time domain data collected by the data collection device;

[0033] In step S2, the background thread processes the time-domain data into spectrum data through fast Fourier transform;

[0034] In step S3, the background thread maps the spectrum data according to the set color scale, so as to obtain the RGB value corresponding to a complete spectrum line on the display;

[0035] In step S4, the spectral lines are stored in the cache;

[0036] In step S5, it is judged whether the cache is full, if it is full, then step S6 is executed, otherwise step S3 is executed;

[0037] In step S6, the background thread notifies the foreground main thread to draw spectral lines.

[0038] In said step S5, the number of buffered spectral lines is calculated according to formula one, if...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a graph drawing method and system based on the WPF technology. The graph drawing method includes the steps that firstly, a background thread receives time domain data collected by a data collection device; secondly, the time domain data are processed into frequency spectrum data by the background thread through fast Fourier transformation; thirdly, the spectrum data are mapped by the background thread through a set color gradation so as to obtain the RGB value, corresponding to a complete frequency spectrum line, on a displayer; fourthly, the frequency spectrum line is stored into a cache; fifthly, whether the cache is full or not is judged, the sixth step is executed if the cache is full, and otherwise the third step is executed; sixthly, a foreground main thread is informed by the background thread to draw the frequency spectrum line. The graph drawing method and system based on the WPF technology have the advantages that when a Doppler frequency spectrum graph is drawn, the consumption of CPU resources can be greatly reduced, and working efficiency can be improved.

Description

technical field [0001] The invention relates to a graphic data processing method and system, in particular to a method and system for drawing graphics based on WPF technology. Background technique [0002] Compared with the general waveform drawing, the drawing of Doppler spectrogram is characterized by a larger amount of data. The drawing of ordinary waveforms is to connect the points occurring on the time series in a coordinate plane to form a complete waveform. Only one point needs to be drawn on one time latitude, while the Doppler spectrogram needs to be drawn on one time latitude, and every pixel point in the coordinate plane needs to be drawn. That is to say, ordinary waveforms are drawn as lines, while Doppler spectrograms need to consider the situation of drawing planes. [0003] At this time, the general method of drawing a line graph will not be available. For example, the patent "Implementation method of Java-based embedded spectrum analyzer display interface" ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G01R23/16
Inventor 李康
Owner XIAN EDAN SCI APP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products