Esempio n. 1
0
        public LineData()
        {
            UniquenessValidator    = new LineUniquenessValidator(this);
            PointsNotSameValidator = new PointsNotSameValidator(EnumeratePoints());

            NameUpdated.Subscribe(PointsNotSameValidator.Update);
        }
Esempio n. 2
0
        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();
        }
Esempio n. 5
0
        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();
        }