|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace GeoSigma.SigmaDrawerStyle
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The point symbol.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class PointSymbol
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="PointSymbol"/> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public PointSymbol() { }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="PointSymbol"/> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
|
/// <param name="height">The height.</param>
|
|
|
|
|
|
/// <param name="width">The width.</param>
|
|
|
|
|
|
/// <param name="angle">The angle.</param>
|
|
|
|
|
|
public PointSymbol(string name, double height, double width, double angle)
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = name ?? string.Empty;
|
|
|
|
|
|
Height = height;
|
|
|
|
|
|
Width = width;
|
|
|
|
|
|
Angle = angle;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("Name")]
|
|
|
|
|
|
[Browsable(true)]
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
[XmlAttribute("Height")]
|
|
|
|
|
|
[Browsable(true)]
|
|
|
|
|
|
public double Height { get; set; }
|
|
|
|
|
|
[XmlAttribute("Width")]
|
|
|
|
|
|
[Browsable(true)]
|
|
|
|
|
|
public double Width { get; set; }
|
|
|
|
|
|
[XmlAttribute("Angle")]
|
|
|
|
|
|
[Browsable(true)]
|
|
|
|
|
|
public double Angle { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("FrColor")]
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public int FrColor { get; set; }
|
|
|
|
|
|
[XmlAttribute("BkColor")]
|
|
|
|
|
|
[Browsable(true)]
|
|
|
|
|
|
public int BkColor { get; set; }
|
|
|
|
|
|
[XmlAttribute("EnableFrColor")]
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public int EnableFrColor { get; set; } = 0;
|
|
|
|
|
|
[XmlAttribute("EnableBkColor")]
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public int EnableBkColor { get; set; } = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
//public class PointSymbolColor
|
|
|
|
|
|
//{
|
|
|
|
|
|
// [Browsable(true)]
|
|
|
|
|
|
// public PropertyColorNullable FrColorEditValue { get; set; }
|
|
|
|
|
|
// [Browsable(false)]
|
|
|
|
|
|
// public PropertyColorNullable BkColorEditValue { get; set; }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|