CN109144623A - A kind of publication image generation method based on cloud platform - Google Patents

A kind of publication image generation method based on cloud platform Download PDF

Info

Publication number
CN109144623A
CN109144623A CN201710498291.5A CN201710498291A CN109144623A CN 109144623 A CN109144623 A CN 109144623A CN 201710498291 A CN201710498291 A CN 201710498291A CN 109144623 A CN109144623 A CN 109144623A
Authority
CN
China
Prior art keywords
generation method
image generation
type
cloud platform
method based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710498291.5A
Other languages
Chinese (zh)
Inventor
杨际荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Huayang Mdt Infotech Ltd
Original Assignee
Jiangsu Huayang Mdt Infotech 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 Jiangsu Huayang Mdt Infotech Ltd filed Critical Jiangsu Huayang Mdt Infotech Ltd
Priority to CN201710498291.5A priority Critical patent/CN109144623A/en
Publication of CN109144623A publication Critical patent/CN109144623A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Abstract

A kind of publication image generation method based on cloud platform: to a challenge in Computer Graphic Demonstration --- the blanking problem of hidden line is studied.And binding signal analysis in signal three dimensional graph display problem, elaborate based on painter's algorithm figure quickly-blanking processing 3-D graphic generation method.On this basis, the ingenious library function using in VS2008 has inquired into three-dimensional grid map generalization method, and has conveniently realized very much the stretching of 3-D graphic, rotation.

Description

A kind of publication image generation method based on cloud platform
Technical field
The present invention relates to a kind of publication image generation method based on cloud platform, in particular to be based on SAAS technology Graphic.
Background technique
With the appearance of the high speed development and cloud computing technology of information technology, all information datas will all be placed on Yun Zhongbao Graph data is included, but generally our graphic hotsopt is all to import data to Excel electrical form, then uses Excel Built-in drawing function manually generates figure.This way is suitable for majority of case, but if basic data is frequently changed, Then manual creation figure may become soon dry as dust, and for these reasons, my invention is a kind of simple and quick Image generation method.
Summary of the invention
A kind of publication image generation method based on cloud platform;This method is using in VS2008 DynamicDataDisplay class libraries and customized BugInfo class, LoadBugInfo method and building array etc. are some The method is realized in example operation, this step:
(1) states a general type list object bugInfoList first, and uses the assisting device method of an application definition Virtual data in file BugInfo.txt is filled into the list by (entitled LoadBugInfo);
public class BugInfo {
public DateTime date;
public int numberOpen;
public int numberClosed;
public BugInfo(DateTime date, int numberOpen, int numberClosed) {
this.date = date;
this.numberOpen = numberOpen;
this.numberClosed = numberClosed;
}
}
File is opened using LoadBugInfo method and traverses this document, is analyzed each field, is then instantiated BugInfo Object, and by the storage of each BugInfo object into the results list.
private static List<BugInfo> LoadBugInfo(string fileName)
{
var result = new List<BugInfo>();
FileStream fs = new FileStream(fileName, FileMode.Open);
StreamReader sr = new StreamReader(fs);
string line = "";
while ((line = sr.ReadLine()) != null)
{
string[] pieces = line.Split(':');
DateTime d = DateTime.Parse(pieces[0]);
int numopen = int.Parse(pieces[1]);
int numclosed = int.Parse(pieces[2]);
BugInfo bi = new BugInfo(d, numopen, numclosed);
result.Add(bi);
}
sr.Close();
fs.Close();
return result;
}
All rows in data file are read in into a character string dimension using File.ReadAllLines method, to three Array state and assignment
DateTime[] dates = new DateTime[bugInfoList.Count];
int[] numberOpen = new int[bugInfoList.Count];
int[] numberClosed = new int[bugInfoList.Count];
for (int i = 0; i < bugInfoList.Count; ++i)
{
dates[i] = bugInfoList[i].date;
numberOpen[i] = bugInfoList[i].numberOpen;
numberClosed[i] = bugInfoList[i].numberClosed;
}
Array of data is converted to special EnumerableDataSource type
var datesDataSource = new EnumerableDataSource<DateTime>(dates);
datesDataSource.SetXMapping(x => dateAxis.ConvertToDouble(x));
var numberOpenDataSource = new EnumerableDataSource<int>(numberOpen);
numberOpenDataSource.SetYMapping(y => y);
var numberClosedDataSource = new EnumerableDataSource<int>(numberClosed);
numberClosedDataSource.SetYMapping(y => y);
(2) for the library DynamicDataDisplay, all data to be drawn all are necessary for unified format.Only by three Array of data passes to general type EnumerableDataSource constructed fuction.Further, it is necessary to inform the library and each data The associated axis in source (x axis or y axis).SetXMapping and SetYMapping method receives to entrust method as ginseng Number.Lambda expression formula has been used to create anonymous methods, rather than has defined explicit commission.DynamicDataDisplay The basic axis data type in library is double.SetXMapping and SetYMapping method is by my special data type It is mapped to double type.
On x axis, using ConvertToDouble method by DateTime data explicit conversion be double Type.On y axis, only writing y=> y(pronounces " y switchs to y " for I), it is output by input int y implicit conversion double y.I can also (y=> Convert.ToDouble (y) carries out type come explicit by writing SetYMapping Mapping.It can arbitrarily select x and y as the parameter of lambda expression formula, that is, arbitrary parameter title can be used in I.
AddLineGraph method receives CompositeDataSource, and the latter defines the mistake to be drawn and has Close the information of exact drafting mode.Herein, I indicates that the plotter object of entitled plotter executes following operation: using The blue lines that thickness is 2 draw a figure, and placement has red frame and the red circle filled and size is 10 Label, and add serial title Number bugs open.As one of many alternative approach (plotter.AddLineGraph (compositeDataSource1, Colors.Red, 1, " Number Open ")) can So that the thin red lines for being used to draw not tape label can also create dotted line rather than solid line:
Pen dashedPen = new Pen(Brushes.Magenta, 3);
dashedPen.DashStyle = DashStyles.DashDot;
plotter.AddLineGraph(compositeDataSource1, dashedPen,
new PenDescription("Open bugs"));

Claims (2)

1. a kind of publication image generation method based on cloud platform: this method mainly utilizes in VS2008 The library DynamicDataDisplay type.
2. image generation method according to claim 1, the method is mainly utilized in computer language VS2008 Some Type Synthesis in the type of the library DynamicDataDisplay utilize ChartPlotter element, the general type list of definition Object bugInfoList, special EnumerableDataSource type and building array, by assignment in SetXMapping and SetYMapping method in DynamicDataDisplay class libraries.
CN201710498291.5A 2017-06-27 2017-06-27 A kind of publication image generation method based on cloud platform Pending CN109144623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710498291.5A CN109144623A (en) 2017-06-27 2017-06-27 A kind of publication image generation method based on cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710498291.5A CN109144623A (en) 2017-06-27 2017-06-27 A kind of publication image generation method based on cloud platform

Publications (1)

Publication Number Publication Date
CN109144623A true CN109144623A (en) 2019-01-04

Family

ID=64804810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710498291.5A Pending CN109144623A (en) 2017-06-27 2017-06-27 A kind of publication image generation method based on cloud platform

Country Status (1)

Country Link
CN (1) CN109144623A (en)

Similar Documents

Publication Publication Date Title
Poolman ScrumPy: metabolic modelling with Python
US20220080318A1 (en) Method and system of automatic animation generation
CN112286512B (en) UI management subsystem of avionic simulation test platform
Devine et al. MakeCode and CODAL: Intuitive and efficient embedded systems programming for education
CN105279144B (en) A kind of composition method and device of wind tunnel test data text file
WO2014169159A2 (en) Signal capture controls in recalculation user interface
Ayer et al. Why scientists should learn to program in Python
Beucher et al. Introduction to MATLAB & SIMULINK (A Project Approach)
CN109582294B (en) Software architecture design method of embedded machine learning system
WO2023138437A1 (en) Application development platform, micro-program generation method, and device and storage medium
CN106775607A (en) A kind of method that ICD is automatically generated header file data-interface
CN109144623A (en) A kind of publication image generation method based on cloud platform
Janowski et al. Modeling of cell-to-cell communication processes with petri nets using the example of quorum sensing
CN104239630B (en) A kind of emulation dispatch system of supportive test design
Makkuni A gestural representation of the process of composing Chinese temples
Nunez An extended spreadsheet paradigm for data visualisation systems, and its implementation
Liu et al. Architectural concept and evaluation of a framework for the efficient automation of computational scientific workflows: An energy systems analysis example
CN103295248A (en) Publication platform graph generating method based on &#39;cloud computing&#39;
US20180095644A1 (en) Navigation of data set preparation
Tekman et al. A single-cell RNA-seq Training and Analysis Suite using the Galaxy Framework
Pham et al. Interactive visualization of spatial and temporal patterns of diversity and abundance in ecological data
CN104572050A (en) Publication platform graph generating method based on SAAS (software as a service)
Ren Visualization Authoring for Data-driven Storytelling
Savira et al. Writing, running, and analyzing large-scale scientific simulations with jupyter notebooks
CN100373389C (en) Method and system for managing algorithm simulated model of chip simulating platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190104