63 lines
1009 B
C++
63 lines
1009 B
C++
#ifndef _KTAXISGRIDJIG_H__
|
|
#define _KTAXISGRIDJIG_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
class KTStatusRecord;
|
|
class KTVirtualAxis;
|
|
class KTAxisGridJig : public AcEdJig
|
|
{
|
|
public:
|
|
KTAxisGridJig();
|
|
virtual ~KTAxisGridJig();
|
|
|
|
BOOL Doit();
|
|
|
|
void SetEntitiesPtrs(const AcDbVoidPtrArray& arpEntity);
|
|
|
|
public:
|
|
|
|
virtual DragStatus sampler();
|
|
|
|
virtual Adesk::Boolean update();
|
|
|
|
virtual AcDbEntity* entity() const;
|
|
|
|
protected:
|
|
|
|
enum LineAxisStep
|
|
{
|
|
modeDrag = 10,
|
|
modeR ,
|
|
};
|
|
|
|
private:
|
|
|
|
void TransformEntitis(const AcGeMatrix3d& xform);
|
|
|
|
void TransformEntitis(CString sKey);
|
|
|
|
void FreeBuffer();
|
|
|
|
void InitStatusLoop();
|
|
|
|
void AppendCurAxisToDbForTemp();
|
|
|
|
void DeleteCurAxisToDbForTemp();
|
|
|
|
DragStatus AcGetPoint(AcGePoint3d* pptGe, LPCTSTR pszPrompt, AcGePoint3d& ptRefE);
|
|
|
|
private:
|
|
|
|
AcDbObjectIdArray m_arIDsTemp;
|
|
KTStatusRecord* m_pStatus;
|
|
CPtrArray m_arStatusPtrs;
|
|
KTVirtualAxis* m_pVirtualAxis;
|
|
public:
|
|
AcGePoint3d m_ptOrgBase;
|
|
};
|
|
|
|
#endif //_KTAxisGridJig_H__
|