OBJECT ARX 实体类 通用操作函数

转自:http://apps.hi.baidu.com/share/detail/30275540


四、实体的通用操作函数

成员函数

解释

intersectWith()

用于AutoCADtrimextendfilletchamferbreak命令以及对象捕捉的交点操作。

transformBy()

用于在对象的movescalerotate操作中传递变换矩阵。

getTransformedCopy()

创建一个对象的拷贝然后对其进行变换。

getOsnapPoints()

返回捕捉点和捕捉点的类型。

getGripPoints()

返回栅格点,在这些栅格点中包含了拖动点。

getStretchPoints()

返回拖动点,缺省情况下和getGripPoints()函数一样。

moveStretchPointsAt()

用于AutoCADstrecth命令中拖动指定点,缺省情况下与transformBy()函数一样。

worldDraw()

创建实体的独立于视图的几何图形。

viewportDraw()

创建实体的依赖于视图的几何图形。

draw()

将实体添加到队列中并对这个队列按顺序进行刷新。

list()

用于AutoCADlist命令中生成acutPrintf()输出的提示。

getGeomExtents()

返回包含用户实体的三维形状的矩形的角点。

explode()

将实体分解成一组简单元素。

getSubentPathsAtGsMarker()

返回子实体路径。

getGsMakersAtSubentPath()

返回对应于给定子实体路径的GS标记。

subentPtr()

返回一个对应于给定子实体路径的指针。

highlight()

亮显给定的子实体。

五、曲线类实体的通用操作

extend                         extends the curve to the point toPoint

getArea(double& unnamed)       returns with area set to the area inside the curve

getClosestPointTo              curve that is nearest to givenPnt

getDistAtParam                 Calculates the length of the curve segment from the curve start point to the point  specified by param            

getDistAtPoint                 Calculates the length of the curve segment between the curve start point andpoint and returns the length in distance    

getEndParam                    return with endParam set to the parameter of the endpoint of the curve

getEndPoint                    returns with endPoint set to the end point (in WCS coordinates) of the curve

getFirstDeriv                  evaluates the first derivative of the curve at point and sets firstDeriv to the result

getOffsetCurves                creates one or more entities that together make up the result of offsetting the curve by the distance offsetDist

getOffsetCurvesGivenPlaneNormal         creates one or more entities that, together, make up the result of offsetting the curve by the distance offsetDist in the plane with normal vector normal

getOrthoProjectedCurve                  creates a new curve entity that is the result of projecting the curve along the projPlane normal onto the projPlane and sets projCurve to point to the newly created curve

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
GitHub Object ARX API 培训文档 GitHub Object ARX API 是一种开发工具,用于在 AutoCAD 基础上创建自定义对象。 该培训文档旨在向开发人员介绍如何使用 GitHub Object ARX API 来扩展 AutoCAD 的功能,以满足特定的需求。 培训文档包含以下内容: 1. 简介:介绍 GitHub Object ARX API 的基本概念和工作原理。说明如何使用该 API 对 AutoCAD 进行扩展,并讨论其优势和应用场景。 2. 环境设置:提供了一个详细的步骤指南,说明如何设置开发环境以开始使用 GitHub Object ARX API。包括安装所需的开发工具、设置编译环境以及配置 AutoCAD。 3. API指南:详细介绍 GitHub Object ARX API 的各种功能和用法。涵盖了创建自定义对象、处理用户输入、实现图形操作等方面的内容。文档中提供了具体的示例代码和说明,帮助开发人员理解和运用这些功能。 4. 常见问题解答:列出了一些常见的问题和解决方案,以便开发人员在遇到问题时能够快速找到解决办法。 5. 示例项目:提供了一些实际的示例项目,展示了如何使用 GitHub Object ARX API 来解决不同类型的问题。每个示例项目都包含了完整的代码和详细的说明,有助于开发人员学习并实践。 通过学习和使用这份培训文档,开发人员可以深入了解 GitHub Object ARX API 的工作原理,掌握它的使用方法,并应用于实际项目中。无论是创建自定义对象,还是实现特定功能,GitHub Object ARX API 都将成为一个强大而灵活的工具。希望这份培训文档可以为开发人员提供一个全面而详细的指南,帮助他们在 AutoCAD 开发中取得成功。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值