private GePoint m_SnappedPoint; // Be set in visitor #endregion Fields #region Constructors protected SnapContext(FRDatabase database) { m_CandidateProxies = new FRList<SymbolGeometryConstraint>(); m_SnappedGeoConst = null; SnappedPoint = null; m_Database = database; }
public override void Visit(SymbolGeometryConstraint GeConst) { Debug.Assert(GeConst != null); if (null == GeConst) return; if (GeConst is SymbolPointConstraint) { SymbolPointConstraint PointConst = (SymbolPointConstraint)GeConst; double dist = m_ReferencePoint.DistanceTo( PointConst.GetPointState().Point); if (dist < m_SnapContext.SnapTolerance) { m_SnapContext.SnappedGeometryConstraint = PointConst; m_SnapContext.SnappedPoint = PointConst.GetPointState().Point; } } }
public abstract void Visit(SymbolGeometryConstraint GeProxy);
public override void Visit(SymbolGeometryConstraint GeProxy) { }
private void Clear() { CandidateProxies.Clear(); m_SnappedGeoConst = null; SnappedPoint = null; }
public void SetGeometryConstraint(SymbolGeometryConstraint GeoConst) { m_GeometryConst = GeoConst; }
public PositionIntent() { m_GeometryConst = null; m_Point = null; }