Exemplo n.º 1
0
        protected override bool defineCmd()
        {
            JSIApp           app          = (JSIApp)this.mApp;
            JSIAppPolyline2D curPtCurve2D =
                app.getPtCurve2DMgr().getCurPtCurve2D();

            curPtCurve2D.setPts(
                app.getPenMarkMgr().getLastPenMark().getPts());
            return(true);
        }
        protected override bool defineCmd()
        {
            JSIApp app = (JSIApp)this.mApp;

            List <Vector2> pts = new List <Vector2>();

            pts.Add(this.mPt);
            JSIAppPolyline2D ptCurve2D = new JSIAppPolyline2D(
                "PtCurve2D", pts, JSIPtCurve2DMgr.PT_CURVE_WIDTH,
                JSIPtCurve2DMgr.PT_CURVE_COLOR);

            app.getPtCurve2DMgr().setCurPtCurve2D(ptCurve2D);
            return(true);
        }
        protected override bool defineCmd()
        {
            JSIApp           app          = (JSIApp)this.mApp;
            JSIAppPolyline2D curPtCurve2D =
                app.getPtCurve2DMgr().getCurPtCurve2D();
            JSIPolyline2D polyline =
                (JSIPolyline2D)curPtCurve2D.getGeom2D();

            if (polyline.getPts().Count > 2)
            {
                app.getPtCurve2DMgr().getPtCurve2Ds().Add(curPtCurve2D);
                app.getPtCurve2DMgr().setCurPtCurve2D(null);
            }
            else
            {
                app.getPtCurve2DMgr().getCurPtCurve2D().destroyGameObject();
                app.getPtCurve2DMgr().setCurPtCurve2D(null);
            }

            return(true);
        }
 public void setCurPtCurve2D(JSIAppPolyline2D ptCurve2D)
 {
     this.mCurPtCurve2D = ptCurve2D;
 }