ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Tools/Tool_3DTranspose.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Tool_3DTranspose : Steema.TeeChart.Samples.BaseForm
{
private Steema.TeeChart.Styles.Surface surfaceSeries1;
private System.Windows.Forms.Button button1;
private Steema.TeeChart.Tools.GridTranspose gridTranspose1;
private Steema.TeeChart.Tools.Rotate rotate1;
private System.Windows.Forms.CheckBox checkBox1;
private Steema.TeeChart.Tools.GridBand gridBand1;
private System.ComponentModel.IContainer components = null;
public Tool_3DTranspose()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
// add sample values
double y;
for (int x=0; x<20; x++)
for (int z=0; z<30; z++)
{
y= 0.5*Math.Pow(Math.Cos(x*0.25),2)+
Math.Pow(Math.Cos(z/15.0),2)-
Math.Cos(z/15.0);
this.surfaceSeries1.Add(x,y,z);
}
// setup chart properties
this.tChart1.Axes.Depth.Visible = true;
this.tChart1.Legend.Visible = false;
this.surfaceSeries1.UseColorRange = false;
this.surfaceSeries1.UsePalette = true;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。