Exemplo n.º 1
0
 public PositionDataItem(GePoint point)
 {
     Debug.Assert(point != null);
     if(point != null)
     {
         m_point = (GePoint)point.Clone();
     }
 }
Exemplo n.º 2
0
        public void SetPosition(GePoint Position)
        {
            Debug.Assert(Position != null);
            if (Position != null)
                m_Position = (GePoint)Position.Clone();

            //if (m_String.FontID > -1)
            //GraphicChangeNotify();
        }
Exemplo n.º 3
0
        public GeRectangle(GePoint Point1, GePoint Point2)
        {
            Debug.Assert(Point1 != null && Point2 != null);

            GePoint tmpP1 = null;
            if (Point1 != null)
                tmpP1 = (GePoint)Point1.Clone();
            else
                tmpP1 = GePoint.kOrigin;

            GePoint tmpP2 = null;
            if (Point2 != null)
                tmpP2 = (GePoint)Point2.Clone();
            else
                tmpP2 = GePoint.kOrigin;

            m_MinPoint = new GePoint(
                MathUtil.Min(tmpP1.X, tmpP2.X),
                MathUtil.Min(tmpP1.Y, tmpP2.Y));
            m_MaxPoint = new GePoint(
                MathUtil.Max(tmpP1.X, tmpP2.X),
                MathUtil.Max(tmpP1.Y, tmpP2.Y));
        }
Exemplo n.º 4
0
 public GeometryVisitor(SnapContext ctx, GePoint point)
 {
     m_SnapContext = ctx;
     m_ReferencePoint = (GePoint)point.Clone();
 }
Exemplo n.º 5
0
 public void SetPoint(GePoint point)
 {
     m_Point = (GePoint)point.Clone();
 }
Exemplo n.º 6
0
 public void MoveTo(GePoint Target)
 {
     m_MaxPoint = m_MaxPoint + (Target - m_MinPoint);
     m_MinPoint = (GePoint)Target.Clone();
 }
Exemplo n.º 7
0
 public DisplayItemPoint(GePoint point)
 {
     m_Point = (GePoint)point.Clone();
 }