zoukankan      html  css  js  c++  java
  • ObjectARX自定义实体实现EX(EXTEND)命令

    ObjectARX自定义实体需要重载实现subIntersectWith和extend方法。

    // 2020-10-13 by www.cnblogs.com/ztcad
    virtual Acad::ErrorStatus subIntersectWith(const AcDbEntity *pEnt, AcDb::Intersect intType, AcGePoint3dArray points, 
        Adesk::GsMarker thisGsMarker = 0, Adesk::GsMarker otherGsMarker = 0) const;
    virtual Acad::ErrorStatus subIntersectWith(const AcDbEntity *pEnt, AcDb::Intersect intType, const AcGePlane& projPlane, AcGePoint3dArray points, 
        Adesk::GsMarker thisGsMarker = 0, Adesk::GsMarker otherGsMarker = 0) const;
    //- Extend the curve.
    virtual Acad::ErrorStatus extend (double newParam) ;
    virtual Acad::ErrorStatus extend (Adesk::Boolean extendStart, const AcGePoint3d &toPoint) ;
    

    subIntersectWith实际是第二个方法起作用,用于交点判断,

    extend实际也是第二个方法起作用,extendStart表示是否起点延伸,toPoint表示延伸到的位置。

  • 相关阅读:
    js常见函数使用
    js数组与函数
    移动端响应式布局
    移动开发之rem布局
    移动flex布局
    移动流式布局
    [剑指offer] 矩阵覆盖
    [剑指offer] 变态跳台阶
    [剑指offer] 跳台阶
    [剑指offer] 斐波那契数列
  • 原文地址:https://www.cnblogs.com/ztcad/p/13808418.html
Copyright © 2011-2022 走看看