示例#1
0
 public MeasureTools(Configuration.Mensuration m)
 {
     this.caption    = m == null ? "" : m.caption;
     this.dimension  = m == null ? 1 : m.dimension;
     this.levelNames = m == null ? "" : m.levelNames;
     this.levels     = m == null ? "" : m.levels;
     this.name       = m == null ? "" : m.name;
     this.range      = m == null ? "[0.0-1.0]" : m.range;
     this.tolerate   = m == null ? 0 : m.tolerate;
 }
示例#2
0
 public OnoffMeasure(Configuration.Mensuration m) : base(m)
 {
     this.caption = m == null ? "onoff" : m.caption;
     this.name    = m == null ? "onoff" : m.name;
     if (this.levels == null || this.levels.Trim() == "")
     {
         this.levels     = "2";
         this.levelNames = "无,有";
     }
 }
示例#3
0
 public PositionCodeMeasure(Configuration.Mensuration m) : base(m)
 {
     this.caption = m == null ? "poscode" : m.caption;
     this.name    = m == null ? "poscode" : m.name;
     if (this.tolerate <= 0)
     {
         tolerate = default_tolerate_distance;
     }
     if (this.levels == null || this.levels.Trim() == "")
     {
         this.levels     = "4";
         this.levelNames = "";
     }
 }
示例#4
0
 public RotateMeasure(Configuration.Mensuration m) : base(m)
 {
     this.caption = m == null ? "rotate" : m.caption;
     this.name    = m == null ? "rotate" : m.name;
     if (tolerate <= 0)
     {
         tolerate = default_tolerate_angle;
     }
     if (this.levels == null || this.levels.Trim() == "")
     {
         this.levels     = "8";
         this.levelNames = "-180度,-135度,-90度,-45度,0度,45度,90度,135度,180度";
     }
 }
示例#5
0
 public HeadingMeasure(Configuration.Mensuration m) : base(m)
 {
     this.caption = m == null ? "heading" : m.caption;
     this.name    = m == null ? "heading" : m.name;
     if (tolerate <= 0)
     {
         tolerate = default_tolerate_angle;
     }
     if (this.levels == null || this.levels.Trim() == "")
     {
         this.levels     = "8";
         this.levelNames = "东,东南,南,西南,西,西北,北,东北";
     }
 }
示例#6
0
 public DistanceMeasure(Configuration.Mensuration m) : base(m)
 {
     this.caption = m == null ? "distance" : m.caption;
     this.name    = m == null ? "distance" : m.name;
     if (tolerate <= 0)
     {
         tolerate = default_tolerate_distance;
     }
     if (this.levels == null || this.levels.Trim() == "")
     {
         this.levels     = "5";
         this.levelNames = "极小,较小,中等,较大,较大";
     }
 }
示例#7
0
 public IndexMeasure(Configuration.Mensuration m) : base(m)
 {
     name = "index";
 }