- 积分
- 433
- 明经币
- 个
- 注册时间
- 2004-5-25
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-8-12 23:24:00
|
显示全部楼层
继承这个类AcEdInputPointFilter
class AsdkInputPointFilter : public AcEdInputPointFilter { private: AcDbObjectId m_objid; AcDbObjectId m_refid; double m_width; double m_dis; public: void SetPara(AcDbObjectId ObjId,AcDbObjectId RefId,double GjWidth); double GetDis(); void DrawCursor(AcGePoint3d CurPoint,AcGiViewportDraw *pDrawContext);
virtual Acad::ErrorStatus processInputPoint( bool& changedPoint, AcGePoint3d& newPoint, bool& displayOsnapGlyph, bool& changedTooltipStr, char*& newTooltipString, bool& retry, AcGiViewportDraw* pDrawContext, AcApDocument* document, bool pointComputed, int history, const AcGePoint3d& lastPoint, const AcGePoint3d& rawPoint, const AcGePoint3d& grippedPoint, const AcGePoint3d& cartesianSnappedPoint, const AcGePoint3d& osnappedPoint, AcDb::OsnapMask osnapMasks, const AcArray<AcDbCustomOsnapMode*>& customOsnapModes, AcDb::OsnapMask osnapOverrides, const AcArray<AcDbCustomOsnapMode*>& customOsnapOverrides, const AcArray<AcDbObjectId>& pickedEntities, const AcArray< AcDbObjectIdArray, AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedPickedEntities, const AcArray<int>& gsSelectionMark, // of 0th element in // pickedEntities // AutoSnap Info: const AcArray<AcDbObjectId>& keyPointEntities, const AcArray< AcDbObjectIdArray, AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedKeyPointEntities, const AcArray<int>& keyPointGsSelectionMark, const AcArray<AcGeCurve3d*>& alignmentPaths, const AcGePoint3d& computedPoint, const char* tooltipString); };
|
|