CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2019 开发者帮助

AcDbCurve:要重写的函数

2024-5-18 17:57| 发布者: admin| 查看: 74| 评论: 0|原作者: admin|来自: AutoCAD

AcDbCurve:要重写的函数

自定义类必须重写以下函数:

virtual Adesk::Boolean    
isClosed() const;      
 
virtual Adesk::Boolean    
isPeriodic() const;
 
virtual Adesk::Boolean    
isPlanar() const;
 
virtual Acad::ErrorStatus 
getPlane(AcGePlane&, AcDb::Planarity&) const; 
 
virtual Acad::ErrorStatus 
getStartParam(double&) const;
 
virtual Acad::ErrorStatus 
getEndParam(double&) const;
 
virtual Acad::ErrorStatus 
getStartPoint(AcGePoint3d&) const;
 
virtual Acad::ErrorStatus 
getEndPoint(AcGePoint3d&) const;
 
virtual Acad::ErrorStatus 
getPointAtParam(double, AcGePoint3d&) const;
 
virtual Acad::ErrorStatus 
getParamAtPoint(const AcGePoint3d&, double&)const;
 
virtual Acad::ErrorStatus 
getDistAtParam(double param, double& dist) const;
 
virtual Acad::ErrorStatus 
getParamAtDist(double dist, double& param) const;
 
virtual Acad::ErrorStatus 
getDistAtPoint(const AcGePoint3d&, double&) const;
 
virtual Acad::ErrorStatus 
getPointAtDist(double, AcGePoint3d&) const;
 
virtual Acad::ErrorStatus 
getFirstDeriv(
    double param,
    AcGeVector3d& firstDeriv) const;
 
virtual Acad::ErrorStatus 
getFirstDeriv(
    const AcGePoint3d&,
    AcGeVector3d& firstDeriv) const;
 
virtual Acad::ErrorStatus 
getSecondDeriv(
    double param,
    AcGeVector3d& secDeriv) const;
 
virtual Acad::ErrorStatus 
getSecondDeriv(
    const AcGePoint3d&,
    AcGeVector3d& secDeriv) const;
 
virtual Acad::ErrorStatus 
getClosestPointTo(
    const AcGePoint3d& givenPnt,
    AcGePoint3d& pointOnCurve,
    Adesk::Boolean extend = Adesk::kFalse) const;
 
virtual Acad::ErrorStatus 
getClosestPointTo(
    const AcGePoint3d& givenPnt,
    const AcGeVector3d& normal,
    AcGePoint3d& pointOnCurve,
    Adesk::Boolean extend = Adesk::kFalse) const;
 
virtual Acad::ErrorStatus 
getOrthoProjectedCurve(
    const AcGePlane&,
    AcDbCurve*& projCrv) const;
 
virtual Acad::ErrorStatus 
getProjectedCurve(
    const AcGePlane&,
    const AcGeVector3d& projDir,
    AcDbCurve*& projCrv) const;
 
virtual Acad::ErrorStatus 
getOffsetCurves(
    double offsetDist,
    AcDbVoidPtrArray& offsetCurves) const;
 
virtual Acad::ErrorStatus 
getSpline(AcDbSpline*& spline) const;
 
virtual Acad::ErrorStatus 
getSplitCurves(
    const AcGeDoubleArray& params,
    AcDbVoidPtrArray& curveSegments) const;
 
virtual Acad::ErrorStatus 
getSplitCurves(
    const AcGePoint3dArray& points,
    AcDbVoidPtrArray& curveSegments) const;
 
virtual Acad::ErrorStatus 
extend(double newParam);
 
virtual Acad::ErrorStatus 
extend(
    Adesk::Boolean extendStart, 
    const AcGePoint3d& toPoint);
 
virtual Acad::ErrorStatus 
getArea(double&) const;

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2024-12-15 22:05

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部