This commit is contained in:
Wiesław Šoltés 2015-08-07 16:24:58 +02:00
Родитель c66b94a77a
Коммит 44fd4ac036
1 изменённых файлов: 34 добавлений и 2 удалений

Просмотреть файл

@ -28,29 +28,37 @@ namespace SpiroNet.Editor
{
private SpirtoEditorMode _mode;
private PathShape _shape;
private double _snapX;
private double _snapY;
private bool _enableSnap;
private double _hitTreshold;
private double _hitTresholdSquared;
private PathShape _hitShape;
private int _hitShapePointIndex;
private bool _isStroked ;
private bool _isStroked;
private bool _isFilled;
private bool _isClosed;
private bool _isTagged;
private SpiroPointType _pointType;
private bool _displayKnots;
public SpirtoEditorState()
{
_mode = SpirtoEditorMode.Create;
_shape = null;
_snapX = 15.0;
_snapY = 15.0;
_enableSnap = true;
_hitTreshold = 7;
_hitTresholdSquared = 49;
_hitShape = null;
_hitShapePointIndex = -1;
_isStroked = true;
_isFilled = false;
_isClosed = false;
_isClosed = true;
_isTagged = false;
_pointType = SpiroPointType.G4;
_displayKnots = true;
}
public SpirtoEditorMode Mode
@ -65,6 +73,24 @@ namespace SpiroNet.Editor
set { Update(ref _shape, value); }
}
public double SnapX
{
get { return _snapX; }
set { Update(ref _snapX, value); }
}
public double SnapY
{
get { return _snapY; }
set { Update(ref _snapY, value); }
}
public bool EnableSnap
{
get { return _enableSnap; }
set { Update(ref _enableSnap, value); }
}
public double HitTreshold
{
get { return _hitTreshold; }
@ -112,6 +138,12 @@ namespace SpiroNet.Editor
get { return _isTagged; }
set { Update(ref _isTagged, value); }
}
public bool DisplayKnots
{
get { return _displayKnots; }
set { Update(ref _displayKnots, value); }
}
public SpiroPointType PointType
{