Files
envi-code/SourceCode/Code2026/Dimension/AcEdInputPointMonitorEx.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

63 lines
1.8 KiB
C++

#pragma once
#include "acedinpt.h"
class AcEdInputPointMonitorEx : public AcEdInputPointMonitor
{
public:
ACRX_DECLARE_MEMBERS(AcEdInputPointMonitorEx) ;
AcEdInputPointMonitorEx(AcApDocument *pDoc =NULL) ;
virtual ~AcEdInputPointMonitorEx () ;
virtual void Detach() ;
virtual void Attach(AcApDocument *pDoc) ;
virtual bool IsAttached() const ;
virtual AcApDocument *Subject() const ;
virtual bool excludeFromOsnapCalculation(
const AcArray<AcDbObjectId> &nestedEntity,
int gsSelectionMark
) ;
virtual Acad::ErrorStatus monitorInputPoint(
bool &appendToTooltipStr,
TCHAR *&additionalTooltipString,
AcGiViewportDraw *drawContext,
AcApDocument *document,
bool pointComputed,
int history,
const AcGePoint3d &lastPoint,
const AcGePoint3d &rawPoint,
const AcGePoint3d &grippedPoint,
const AcGePoint3d &cartesianSnappedPoint,
const AcGePoint3d &osnappedPoint,
AcDb::OsnapMask osnapMask,
const AcArray<AcDbCustomOsnapMode *> &customOsnapModes,
AcDb::OsnapMask osnapOverrides,
const AcArray<AcDbCustomOsnapMode *> &customOsnapOverrides,
const AcArray<AcDbObjectId> &apertureEntities,
const AcArray<AcDbObjectIdArray, AcArrayObjectCopyReallocator<AcDbObjectIdArray> > &nestedApertureEntities,
const AcArray<int> &gsSelectionMark,
const AcArray<AcDbObjectId> &keyPointEntities,
const AcArray<AcDbObjectIdArray, AcArrayObjectCopyReallocator<AcDbObjectIdArray> > &nestedKeyPointEntities,
const AcArray<int> &keyPointGsSelectionMark,
const AcArray<AcGeCurve3d *> &alignmentPaths,
const AcGePoint3d &computedPoint,
const TCHAR *tooltipString
) ;
AcGePoint3d GetCursorPos(); //获取鼠标当前位置坐标
protected:
AcApDocument *mpDocument ;
private:
AcGePoint3d m_ptCursorPos;//记录鼠标当前位置坐标
};
#ifdef TCH_ANNOTATE_MODULE
ACDB_REGISTER_OBJECT_ENTRY_AUTO(AcEdInputPointMonitorEx)
#endif