Example #1
0
 /// <summary>
 /// Sets flag bit(s)
 /// </summary>
 /// <param name="flag">The flag bit(s) to set</param>
 /// <param name="setting">True to set, false to clear</param>
 void SetFlag(IntersectionFlag flag, bool setting)
 {
     if (setting)
     {
         m_Flag |= flag;
     }
     else
     {
         m_Flag &= (~flag);
     }
 }
Example #2
0
 /// <summary>
 /// Creates a new <c>Intersection</c> at the specified position.
 /// </summary>
 /// <param name="p">The position of the intersection</param>
 internal Intersection(PointGeometry p)
     : base(p)
 {
     m_Lines = new List<LineFeature>(2);
     m_Flag = 0;
 }
Example #3
0
 /// <summary>
 /// Sets flag bit(s)
 /// </summary>
 /// <param name="flag">The flag bit(s) to set</param>
 /// <param name="setting">True to set, false to clear</param>
 void SetFlag(IntersectionFlag flag, bool setting)
 {
     if (setting)
         m_Flag |= flag;
     else
         m_Flag &= (~flag);
 }
Example #4
0
 /// <summary>
 /// Is a flag bit set?
 /// </summary>
 /// <param name="flag">The flag(s) to check for (may be a combination of more
 /// than one flag)</param>
 /// <returns>True if any of the supplied flag bits are set</returns>
 bool IsFlagSet(IntersectionFlag flag)
 {
     return ((m_Flag & flag)!=0);
 }
Example #5
0
 /// <summary>
 /// Creates a new <c>Intersection</c> at the specified position.
 /// </summary>
 /// <param name="p">The position of the intersection</param>
 internal Intersection(PointGeometry p)
     : base(p)
 {
     m_Lines = new List <LineFeature>(2);
     m_Flag  = 0;
 }
Example #6
0
 /// <summary>
 /// Is a flag bit set?
 /// </summary>
 /// <param name="flag">The flag(s) to check for (may be a combination of more
 /// than one flag)</param>
 /// <returns>True if any of the supplied flag bits are set</returns>
 bool IsFlagSet(IntersectionFlag flag)
 {
     return((m_Flag & flag) != 0);
 }