CN104572050A - 一种基于saas的出版物平台图形生成方法 - Google Patents

一种基于saas的出版物平台图形生成方法 Download PDF

Info

Publication number
CN104572050A
CN104572050A CN201310489897.4A CN201310489897A CN104572050A CN 104572050 A CN104572050 A CN 104572050A CN 201310489897 A CN201310489897 A CN 201310489897A CN 104572050 A CN104572050 A CN 104572050A
Authority
CN
China
Prior art keywords
generating method
method based
saas
type
graph
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
CN201310489897.4A
Other languages
English (en)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHENJIANG DINGTUO TECHNOLOGY INFORMATION Co Ltd
Original Assignee
ZHENJIANG DINGTUO TECHNOLOGY INFORMATION Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHENJIANG DINGTUO TECHNOLOGY INFORMATION Co Ltd filed Critical ZHENJIANG DINGTUO TECHNOLOGY INFORMATION Co Ltd
Priority to CN201310489897.4A priority Critical patent/CN104572050A/zh
Publication of CN104572050A publication Critical patent/CN104572050A/zh
Pending legal-status Critical Current

Links

Abstract

一种基于SAAS的出版物平台图形生成方法:对计算机图形显示中的一个复杂问题——隐藏线的消隐问题进行了研究。并结合信号分析中信号的三维图形显示问题,阐述了基于画家算法的图形快速消隐处理的三维图形生成方法。在此基础上,巧妙利用VS2008中的库函数,探讨了三维网格图的生成方法,并非常方便地实现了三维图形的拉伸、旋转。

Description

一种基于SAAS的出版物平台图形生成方法
技术领域
本发明涉及一种基于SAAS的出版物平台图形生成方法,特别涉及的是基于SAAS技术的图形生成技术。
背景技术
随着信息技术的高速发展以及云计算技术的出现,所有信息数据都将放在云中包括图形数据,但是一般我们的图形生成都是将数据导入 Excel 电子表格,然后使用 Excel 内置的绘图功能手动生成图形。这种做法适用于大多数情况,但是如果基础数据频繁更改,则手动创建图形可能很快就变得枯燥乏味,基于上述原因,本人发明了一种简单又快速的图形生成方法。
    
发明内容
一种基于SAAS的出版物平台图形生成方法;本方法是利用VS2008中的DynamicDataDisplay 类库以及自定义的BugInfo类、LoadBugInfo 方法及构建数组等一些例操作实现此方法,此步骤:
(1).首先声明一个泛型列表对象 bugInfoList,并使用一个程序定义的帮助器方法(名为 LoadBugInfo)将文件 BugInfo.txt 中的虚拟数据填充到该列表中;
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;
  }
}
利用LoadBugInfo 方法打开文件并遍历该文件,分析每个字段,然后实例化 BugInfo 对象,并将每个 BugInfo 对象存储到结果列表中。
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;
}
使用 File.ReadAllLines 方法将数据文件中的所有行读入一个字符串数组, 对三个数组进行声明并赋值.
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;
  }
   将数据数组转换为特殊的 EnumerableDataSource 类型.
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)对于 DynamicDataDisplay 库,要绘制的所有数据都必须为统一格式。只是将三个数据数组传递给泛型 EnumerableDataSource 构造函数。此外,必须告知该库与每个数据源关联的轴(x 轴或 y 轴)。SetXMapping 和 SetYMapping 方法接受将方法委托作为参数。使用了 lambda 表达式来创建匿名方法,而不是定义显式委托。DynamicDataDisplay 库的基本轴数据类型是 double。SetXMapping 和 SetYMapping 方法将我的特殊数据类型映射到 double 类型。
在 x 轴上,使用 ConvertToDouble 方法将 DateTime 数据显式转换为 double 类型。在 y 轴上,我只是编写 y => y(读作“y 转为 y”),将输入 int y 隐式转换为输出 double y。我也可以通过编写 SetYMapping(y => Convert.ToDouble(y) 来显式进行类型映射。可以任意选择 x 和 y 作为 lambda 表达式的参数,即,我可以使用任意参数名称。
AddLineGraph 方法接受 CompositeDataSource,后者定义要绘制的错误以及有关确切的绘制方式的信息。此处,我指示名为 plotter 的绘图器对象执行以下操作:使用粗细为 2 的蓝色线条绘制一个图形,放置具有红色边框和红色填充且大小为 10 的圆圈标记,并添加系列标题 Number bugs open。作为许多备选方法中的一种(plotter.AddLineGraph(compositeDataSource1, Colors.Red, 1, "Number Open"))可以使用来绘制不带标记的细红色线条也可以创建虚线而不是实线:
Pen dashedPen = new Pen(Brushes.Magenta, 3);
dashedPen.DashStyle = DashStyles.DashDot;
plotter.AddLineGraph(compositeDataSource1, dashedPen,
  new PenDescription("Open bugs"))。

Claims (4)

1.一种基于SAAS的出版物平台图形生成方法:该方法主要是利用VS2008中的DynamicDataDisplay 库类型。
2.根据权利要求1的图形生成方法,此方法主要利用计算机语言VS2008中的DynamicDataDisplay 库类型中的一些类型综合利用ChartPlotter 元素、定义的泛型列表对象 bugInfoList、特殊的 EnumerableDataSource 类型以及构建数组,通过赋值于DynamicDataDisplay类库中的SetXMapping 和 SetYMapping 方法。
3.根据权利要求2的图形生成方法通过ChartPlotter 元素,将对象bugInfoList进行定义。
4.根据权利要求3的图形生成方法将EnumerableDataSource 类型以及构建数组,通过赋值于DynamicDataDisplay类库中的SetXMapping 和 SetYMapping 方法。
CN201310489897.4A 2013-10-18 2013-10-18 一种基于saas的出版物平台图形生成方法 Pending CN104572050A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310489897.4A CN104572050A (zh) 2013-10-18 2013-10-18 一种基于saas的出版物平台图形生成方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310489897.4A CN104572050A (zh) 2013-10-18 2013-10-18 一种基于saas的出版物平台图形生成方法

Publications (1)

Publication Number Publication Date
CN104572050A true CN104572050A (zh) 2015-04-29

Family

ID=53088225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310489897.4A Pending CN104572050A (zh) 2013-10-18 2013-10-18 一种基于saas的出版物平台图形生成方法

Country Status (1)

Country Link
CN (1) CN104572050A (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101078989A (zh) * 2007-07-31 2007-11-28 阮俊杰 Visio文档跨平台网络浏览器的实现方法及软件
EP1462998B1 (en) * 2003-03-27 2008-07-30 Microsoft Corporation Markup language and object model for vector graphics
CN102024039A (zh) * 2010-12-01 2011-04-20 北京神州泰岳软件股份有限公司 基于eoms系统的表单生成方法
CN103295248A (zh) * 2012-02-23 2013-09-11 镇江华扬信息科技有限公司 一种基于"云计算"的出版物平台图形生成方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1462998B1 (en) * 2003-03-27 2008-07-30 Microsoft Corporation Markup language and object model for vector graphics
CN101078989A (zh) * 2007-07-31 2007-11-28 阮俊杰 Visio文档跨平台网络浏览器的实现方法及软件
CN102024039A (zh) * 2010-12-01 2011-04-20 北京神州泰岳软件股份有限公司 基于eoms系统的表单生成方法
CN103295248A (zh) * 2012-02-23 2013-09-11 镇江华扬信息科技有限公司 一种基于"云计算"的出版物平台图形生成方法

Similar Documents

Publication Publication Date Title
CN112286512B (zh) 航空电子仿真测试平台ui管理子系统
CN103116500A (zh) 一种结构体定义和结构输出的方法及装置
Zou et al. A case study of large-scale parallel I/O analysis and optimization for numerical weather prediction system
Padberg et al. Reconnet: a tool for modeling and simulating with reconfigurable place/transition nets
Liu et al. Quantum-enhanced multi-parameter estimation for unitary photonic systems
CN1987775A (zh) 用于对事件进行处理的方法和设备
Kos et al. A tool support for model-driven development: An industrial case study from a measurement domain
CN109241510A (zh) 一种基于微信小程序的自动图表生成系统及其实现方法
CN105044407A (zh) 一种任意仿真波形的生成方法及装置
CN104572050A (zh) 一种基于saas的出版物平台图形生成方法
CN103295248A (zh) 一种基于&#34;云计算&#34;的出版物平台图形生成方法
Hensley et al. Provenance in sensor data management
Bianchi et al. Event visualization in ATLAS
Cattaneo et al. The architecture of MEG simulation and analysis software
CN115346669A (zh) 一种基于低代码编程的医学人工智能推理方法及系统
Liu et al. Architectural concept and evaluation of a framework for the efficient automation of computational scientific workflows: An energy systems analysis example
CN109144623A (zh) 一种基于云平台的出版物图形生成方法
CN108491150A (zh) 控件迁移方法、装置、终端及存储介质
Schulz et al. A flexible data model to support multi-domain performance analysis
CN102456061B (zh) 一种频谱数据标记显示方法和装置
Hibbard et al. Java distributed components for numerical visualization in VisAD
Rasala Automatic array algorithm animation in C++
Blascheck et al. Towards Automated Analysis of Eye Tracking Studies using the Workflow Technology.
CN110795087B (zh) 对uml设计图的图元处理方法、装置和计算机设备
Hakimi et al. Business Intelligence (BI) Application in Open-source Content Management System (CMS): A Review.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150429