#0013: 增加etalon 接口运动功能完成,加载etalon文件并按实现点动
This commit is contained in:
@@ -91,7 +91,8 @@ namespace Plot3D
|
||||
Spring,
|
||||
Summer,
|
||||
Winter,
|
||||
}
|
||||
Green
|
||||
}
|
||||
|
||||
public enum eRaster
|
||||
{
|
||||
@@ -1344,6 +1345,7 @@ namespace Plot3D
|
||||
Byte[,] u8_RGB;
|
||||
switch (e_Scheme)
|
||||
{
|
||||
case eColorScheme.Green: return new Color[] { Color.Green };
|
||||
case eColorScheme.Rainbow_Sweep: return CalcRainbow(6); // all colors, also magenta
|
||||
case eColorScheme.Rainbow_Bright: return CalcRainbow(4); // from red to blue, no magenta
|
||||
case eColorScheme.Monochrome: return new Color[] { Color.Goldenrod };
|
||||
@@ -1411,7 +1413,7 @@ namespace Plot3D
|
||||
/// Constructor 1
|
||||
/// </summary>
|
||||
public cColorScheme(eColorScheme e_Scheme)
|
||||
: this (GetSchema(e_Scheme))
|
||||
: this (GetSchema(e_Scheme))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1817,10 +1819,14 @@ namespace Plot3D
|
||||
mi_ColorScheme = i_ColorScheme;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// s32_Radius defines the size of the shape and i_Brush the color
|
||||
/// </summary>
|
||||
public cShape3D AddShape(cPoint3D i_Point, eScatterShape e_Shape, int s32_Radius, Brush i_Brush, Object o_Tag = null)
|
||||
public cScatterData()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// s32_Radius defines the size of the shape and i_Brush the color
|
||||
/// </summary>
|
||||
public cShape3D AddShape(cPoint3D i_Point, eScatterShape e_Shape, int s32_Radius, Brush i_Brush, Object o_Tag = null)
|
||||
{
|
||||
cShape3D i_Shape3D = new cShape3D(-1, -1, i_Point, e_Shape, s32_Radius, i_Brush, o_Tag);
|
||||
mi_Shapes3D.Add(i_Shape3D);
|
||||
@@ -4146,8 +4152,9 @@ namespace Plot3D
|
||||
/// </summary>
|
||||
public Editor3D()
|
||||
{
|
||||
// avoid flicker
|
||||
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
|
||||
this.DoubleBuffered = true; // 启用双缓冲
|
||||
// avoid flicker
|
||||
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
|
||||
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
|
||||
|
||||
mi_Bounds = new cBounds (this);
|
||||
@@ -4593,8 +4600,9 @@ namespace Plot3D
|
||||
/// </summary>
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
{
|
||||
// Stupidly the .NET framework draws a red cross if any exception occurres in OnPaint()
|
||||
try
|
||||
base.OnPaint(e);
|
||||
// Stupidly the .NET framework draws a red cross if any exception occurres in OnPaint()
|
||||
try
|
||||
{
|
||||
Render(e.Graphics);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user