• <menu id="w2i4a"></menu>
  • logo VectorDraw Developer Framework使用教程

    文檔首頁>>VectorDraw Developer Framework使用教程>>VectorDraw Developer Framework使用教程:以指定尺寸繪制CCS軸

    VectorDraw Developer Framework使用教程:以指定尺寸繪制CCS軸


    從v6.023開始,VectorDraw Developer Framework 新增DrawCCSAxis函數(shù),這個(gè)函數(shù)包含以像素為單位的軸寬高。它主要用于處理文檔的OnDrawOverAll事件,用于繪制坐標(biāo)軸,并且可以以指定的尺寸繪制CCS軸。

    下面是相關(guān)的參數(shù)介紹:

    param name="render": The ActiveActionRender of the Document.
    param name="DrawXAxis": A boolean value representing if the x axis will be drawn.
    param name="DrawYaxis": A boolean value representing if the y axis will be drawn.
    param name="DrawZaxis": A boolean value representing if the z axis will be drawn.
    param name="DrawStrings": A boolean value representing if the strings will be drawn.
    param name="XAxisColor": A System.Color indicating the color of the x axis.
    param name="YAxisColor": A System.Color indicating the color of the y axis.
    param name="ZAxisColor": A System.Color indicating the color of the z axis.
    param name="showUserCS": A boolean value representing if the axis will be drawn relative to User Coordinate System or WorldCS.
    param name="showOnOrigin": A boolean value representing if the axis will be drawn on the origin of selected Coordinate System on on the LowerLeft conrer of the screen.
    param name="axiswidth": The width of the axis in pixels. The default VectorDraw axis is 5.0 pizels.
    param name="axislength": The length of the axis in pixels. The default VectorDraw axis is 40.0 pizels.
    public void DrawCCSAxis(vdRender render, bool DrawXAxis, bool DrawYaxis, bool DrawZaxis, bool DrawStrings, Color XAxisColor, Color YAxisColor, Color ZAxisColor, bool showUserCS, bool showOnOrigin, double axiswidth , double axislength)
    

    覆蓋DrawOverall事件的方法:

    void BaseControl_DrawOverAll(object sender, vdRender render, ref bool cancel)
    {
    vdDocument document = sender as vdDocument;
    document.ActiveLayOut.DrawCCSAxis(render, true, true, true, true, System.Drawing.Color.Red, System.Drawing.Color.Green, System.Drawing.Color.Blue, true, true,10.0,80.0);
    cancel = true;
    }
    

    * VectorDraw Developer Framework下載

    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();