public LineData() { UniquenessValidator = new LineUniquenessValidator(this); PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints()); NameUpdated.Subscribe(PointsNotSameValidator.Update); }
private void OnDeserialized() { UniquenessValidator = new LineUniquenessValidator(this); PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints()); NameUpdated.Subscribe(PointsNotSameValidator.Update); PointsNotSameValidator.Update(); }
private void OnDeserialized() { AddToMyShapeDatas(PointData); PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints()); PointData.NameUpdated.Subscribe(NameUpdated); GeometryUpdated.Invoke(); }
private void OnDeserialized() { AddToMyShapeDatas(PointData); TargetPointsNotSameValidator = new PointsNotSameValidator(EnumerateTargetPoints()); ParallelPointsNotSameValidator = new PointsNotSameValidator(EnumerateParallelPoints()); PointData.NameUpdated.Subscribe(NameUpdated); ProjectionAlongLineValidator = new ProjectionAlongLineValidator(this); GeometryUpdated.Invoke(); }
private void OnDeserialized() { PointsAreInOnePlaneValidator = new PolygonPointsAreInOnePlaneValidator(this); PointsAreOnSameLineValidator = new PolygonPointsAreOnSameLineValidator(this); LinesDontIntersectValidator = new PolygonLinesDontIntersectValidator(this); PolygonUniquenessValidator = new PolygonUniquenessValidator(this); PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints()); NameUpdated.Subscribe(PointsNotSameValidator.Update); PointsAreInOnePlaneValidator.Update(); PointsAreOnSameLineValidator.Update(); LinesDontIntersectValidator.Update(); PointsNotSameValidator.Update(); }