Exemple #1
0
        public bool Equals(VectorStyle?vectorStyle)
        {
            if (vectorStyle == null)
            {
                return(false);
            }

            if (!base.Equals(vectorStyle))
            {
                return(false);
            }

            if (!Line?.Equals(vectorStyle.Line) ?? false)
            {
                return(false);
            }

            if (!Outline?.Equals(vectorStyle.Outline) ?? false)
            {
                return(false);
            }

            if (!Fill?.Equals(vectorStyle.Fill) ?? false)
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 protected bool Equals(PowerPraiseSongFormatting other)
 {
     return(MainText.Equals(other.MainText) && TranslationText.Equals(other.TranslationText) &&
            CopyrightText.Equals(other.CopyrightText) && SourceText.Equals(other.SourceText) &&
            Outline.Equals(other.Outline) && Shadow.Equals(other.Shadow) &&
            MainLineSpacing == other.MainLineSpacing && TranslationLineSpacing == other.TranslationLineSpacing &&
            Equals(TextOrientation, other.TextOrientation) && TranslationPosition == other.TranslationPosition &&
            CopyrightTextPosition == other.CopyrightTextPosition &&
            SourceTextPosition == other.SourceTextPosition && Borders.Equals(other.Borders));
 }
Exemple #3
0
        public bool Equals(VectorStyle vectorStyle)
        {
            if (!base.Equals(vectorStyle))
            {
                return(false);
            }

            if ((Line == null) ^ (vectorStyle.Line == null))
            {
                return(false);
            }

            if (Line != null && !Line.Equals(vectorStyle.Line))
            {
                return(false);
            }

            if ((Outline == null) ^ (vectorStyle.Outline == null))
            {
                return(false);
            }

            if (Outline != null && !Outline.Equals(vectorStyle.Outline))
            {
                return(false);
            }

            if ((Fill == null) ^ (vectorStyle.Fill == null))
            {
                return(false);
            }

            if (Fill != null && !Fill.Equals(vectorStyle.Fill))
            {
                return(false);
            }

            return(true);
        }
Exemple #4
0
        private bool FinalOutlinContainseRefOutline(
            Wall toCheckdWall, Element originalSupporter, List <Element> loopSupporterList,
            out List <Element> remainList)
        {
            // Get outline of the ref volumn of the selected wall
            BoundingBoxXYZ ibb        = toCheckdWall.get_BoundingBox(_auxiliary3DView);
            double         offset     = UnitUtils.Convert(20, DisplayUnitType.DUT_CENTIMETERS, DisplayUnitType.DUT_DECIMAL_FEET);
            XYZ            newMin     = new XYZ(ibb.Min.X, ibb.Min.Y, ibb.Min.Z - DISTENCE_CONTINUOUS_SUPPORTER);
            XYZ            newMax     = new XYZ(ibb.Max.X, ibb.Max.Y, ibb.Min.Z);
            Outline        refOutline = new Outline(newMin, newMax);

            BoundingBoxXYZ originalSupporterBB      = originalSupporter.get_BoundingBox(_auxiliary3DView);
            Outline        orignialSupporterOutline = new Outline(originalSupporterBB.Min, originalSupporterBB.Max);
            Outline        finalOutline             = orignialSupporterOutline;

            remainList = new List <Element>();

            foreach (Element supporter in loopSupporterList)
            {
                BoundingBoxXYZ bb = supporter.get_BoundingBox(_auxiliary3DView);
                Outline        supporterOutline = new Outline(bb.Min, bb.Max);

                if (finalOutline.Intersects(supporterOutline, DISTENCE_CONTINUOUS_SUPPORTER))
                {
                    if (!supporterOutline.Equals(finalOutline))
                    {
                        finalOutline.AddPoint(bb.Min);
                        finalOutline.AddPoint(bb.Max);
                    }
                }
                else
                {
                    remainList.Add(supporter);
                }
            }

            return(finalOutline.ContainsOtherOutline(refOutline, TOLERENCE_CONTAINED_BY_SUPPORTER));
        }