Beispiel #1
0
 private bool _3DControl_RcRButtonUp(object sender, _IRenderControlEvents_RcRButtonUpEvent e)
 {
     if ((this._polyline == null) || (this._polyline.PointCount < 3))
     {
         this.Close();
         return(false);
     }
     if (!this._isFinished)
     {
         this._polyline.RemovePoints(this._polyline.PointCount - 1, 1);
         this._rPolyline.SetFdeGeometry(this._polyline);
         this._geo = this._polyline;
         if (this._onFinishedDraw != null)
         {
             this._onFinishedDraw();
         }
         this._isFinished = true;
         this._isStarted  = false;
     }
     return(false);
 }
Beispiel #2
0
        private bool _3DControl_RcRButtonUp(object sender, _IRenderControlEvents_RcRButtonUpEvent e)
        {
            if ((this._polygon == null) || (this._polygon.ExteriorRing.PointCount < 3))
            {
                this.Close();
                return(false);
            }
            if (!this._isFinished)
            {
                this._polygon.ExteriorRing.RemovePoints(this._polygon.ExteriorRing.PointCount - 1, 1);
                this._rPolygon.SetFdeGeometry(this._polygon);
                this._3DControl.HighlightHelper.SetRegion(this._polygon);
                this._polygon.Close();
                this._geo = this._polygon.Clone2(gviVertexAttribute.gviVertexAttributeNone);

                if (this._onFinishedDraw != null)
                {
                    this._onFinishedDraw();
                }
                this._isFinished = true;
                this._isStarted  = false;
            }
            return(false);
        }
 public virtual bool RcRButtonUp(object sender, _IRenderControlEvents_RcRButtonUpEvent e)
 {
     return(false);
 }