Exemplo n.º 1
0
 public Grid(GRIDTYPE _typ, Range dim1, Range dim2)
 {
     _gtype = _typ;
     _dim1 = dim1;       
     _dim2 = dim2;        
     Foreground = Colors.Blue;
     CreateGrid();
     _dim1.PropertyChanged += _dim_PropertyChanged;
     _dim2.PropertyChanged += _dim_PropertyChanged;
 }
Exemplo n.º 2
0
 /// <summary>
 /// These properties have been moved from the lattive
 /// </summary>
 public LayoutData()
 {
     _repeatX = (int)BasicLib.GetSetting(SettingsNames.REPEAT_X);
     _repeatY = (int)BasicLib.GetSetting(SettingsNames.REPEAT_Y);
     _toolposition = (double)BasicLib.GetSetting(SettingsNames.TOOL_POSITION);
     _workPieceRadius = (double)BasicLib.GetSetting(SettingsNames.WORK_PIECE_RADIUS);
     _clipRange = new Range(0, 0.001, _toolposition);
     _width = (double)BasicLib.GetSetting(SettingsNames.WIDTH);
     _height = (double)BasicLib.GetSetting(SettingsNames.HEIGHT);
     _margin = (double)BasicLib.GetSetting(SettingsNames.MARGIN);
     _offsetX = (double)BasicLib.GetSetting(SettingsNames.OFFSET_X);
     _offsetY = (double)BasicLib.GetSetting(SettingsNames.OFFSET_Y);
     _clip = (bool)BasicLib.GetSetting(SettingsNames.CLIP);
     _hypo = (bool)BasicLib.GetSetting(SettingsNames.HYPO);
     _k = (double)BasicLib.GetSetting(SettingsNames.HYPO_K);
 }
Exemplo n.º 3
0
 public CartesianGrid(Range d1, Range d2)
     : base(GRIDTYPE.CARTESIAN,d1,d2)
 {
     //Outline = CreateGrid();
     Outline.Name = "CARTESIAN_GRID";
 }
Exemplo n.º 4
0
 public RadialGrid(Range r)
     : base(GRIDTYPE.RADIAL,r,new Range(0,20,360)) 
 {
     //Outline = CreateGrid();
     Outline.Name = "RADIAL_GRID";
 }
Exemplo n.º 5
0
 public Profile(Range r, double offsetl, double offsetr)
 {
     _offsetL = offsetl;
     _offsetR = offsetr;
     _range = r;
 }
Exemplo n.º 6
0
 public Profile(Range r, double offset)
 {
     _offsetL = _offsetR = offset;
     _range = r;
 }