Beispiel #1
0
 /// <summary>
 /// Updates an IM from the label for an edge.
 /// Handles edges from both L and A geometries.
 /// </summary>
 /// <param name="im"></param>
 /// <param name="label"></param>
 public static void UpdateIM(Label label, IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(label.GetLocation(0, Positions.On), label.GetLocation(1, Positions.On), Dimension.Curve);
     if (label.IsArea())
     {
         im.SetAtLeastIfValid(label.GetLocation(0, Positions.Left), label.GetLocation(1, Positions.Left), Dimension.Surface);
         im.SetAtLeastIfValid(label.GetLocation(0, Positions.Right), label.GetLocation(1, Positions.Right), Dimension.Surface);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Updates an IM from the label for an edge. Handles edges from both L and A geometrys.
 /// </summary>
 /// <param name="label"></param>
 /// <param name="im"></param>
 public static void UpdateIM(Label label, IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(label.GetLocation(0, Position.On), label.GetLocation(1, Position.On), 1);
     if (label.IsArea())
     {
         im.SetAtLeastIfValid(label.GetLocation(0, Position.Left), label.GetLocation(1, Position.Left), 2);
         im.SetAtLeastIfValid(label.GetLocation(0, Position.Right), label.GetLocation(1, Position.Right), 2);
     }
 }         // public static void UpdateIM(Label label, IntersectionMatrix im)
Beispiel #3
0
 /// <summary>
 /// Updates an IM from the label for an edge.
 /// Handles edges from both L and A geometries.
 /// </summary>
 /// <param name="label"></param>
 /// <param name="im"></param>
 public static void UpdateIm(Label label, IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(label.GetLocation(0, PositionType.On), label.GetLocation(1, PositionType.On), DimensionType.Curve);
     if (!label.IsArea())
     {
         return;
     }
     im.SetAtLeastIfValid(label.GetLocation(0, PositionType.Left), label.GetLocation(1, PositionType.Left), DimensionType.Surface);
     im.SetAtLeastIfValid(label.GetLocation(0, PositionType.Right), label.GetLocation(1, PositionType.Right), DimensionType.Surface);
 }
 /// <summary>
 /// Update the IM with the contribution for this component.
 /// A component only contributes if it has a labelling for both parent geometries.
 /// </summary>
 public override void ComputeIM(IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(label.GetLocation(0), label.GetLocation(1), Dimensions.Point);
 }
Beispiel #5
0
 /// <summary>
 /// Update the IM with the contribution for this component.
 /// A component only contributes if it has a labelling for both parent geometries
 /// </summary>
 /// <param name="im"></param>
 protected override void ComputeIM(IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(_label.GetLocation(0), _label.GetLocation(1), 0);
 }         // protected override void ComputeIM( IntersectionMatrix im )
Beispiel #6
0
 /// <summary>
 /// Updates an IM from the label for an edge.
 /// Handles edges from both L and A geometries.
 /// </summary>
 /// <param name="label"></param>
 /// <param name="im"></param>
 public static void UpdateIm(Label label, IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(label.GetLocation(0, PositionType.On), label.GetLocation(1, PositionType.On), DimensionType.Curve);
     if (!label.IsArea()) return;
     im.SetAtLeastIfValid(label.GetLocation(0, PositionType.Left), label.GetLocation(1, PositionType.Left), DimensionType.Surface);
     im.SetAtLeastIfValid(label.GetLocation(0, PositionType.Right), label.GetLocation(1, PositionType.Right), DimensionType.Surface);
 }
Beispiel #7
0
 /// <summary>
 /// Update the IM with the contribution for this component.
 /// A component only contributes if it has a labelling for both parent geometries.
 /// </summary>
 public override void ComputeIm(IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(Label.GetLocation(0), Label.GetLocation(1), DimensionType.Point);
 }
Beispiel #8
0
 /// <summary> Update the IM with the contribution for this component.
 /// A component only contributes if it has a labelling for both parent geometries
 /// </summary>
 public override void ComputeIM(IntersectionMatrix im)
 {
     im.SetAtLeastIfValid(m_objLabel.GetLocation(0), m_objLabel.GetLocation(1), 0);
 }