89 lines
2.3 KiB
C++
89 lines
2.3 KiB
C++
// Wire.h: interface for the CWire class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_WIRE_H__E15CD58E_D57E_4E05_B680_D462F70CD248__INCLUDED_)
|
|
#define AFX_WIRE_H__E15CD58E_D57E_4E05_B680_D462F70CD248__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "EdJigEx.h"
|
|
|
|
|
|
class TELAPI CWire
|
|
{
|
|
public:
|
|
CWire();
|
|
CWire(Entity ent);
|
|
virtual ~CWire();
|
|
|
|
CString GetWireLayer();
|
|
CString GetLineType();
|
|
double GetLineThick();
|
|
void GetWireFPick(PickSet &ss, RBList &rbMask);
|
|
static void DrawLineWire(XPoint ptStart, XPoint ptEnd, const TCHAR* szLayer, const TCHAR* szLineType, double nWidth);
|
|
void SetLayer(const TCHAR* szNewLayer);
|
|
void SetWidth(double nWidth);
|
|
void SetLineName(const TCHAR* szLineName);
|
|
void SetLineType(const TCHAR* szLineType);
|
|
void SetInfo(const TCHAR* szType, const TCHAR* szMode, const TCHAR* szPlace,
|
|
const TCHAR* szArea, const TCHAR* szNorm, const TCHAR* szRadius);
|
|
int GetWireNum();
|
|
BOOL GetWireAllArea(XStringList &lstArea);
|
|
void SetColor(int iColor);
|
|
void SetWire2Point(XPoint ptStart, XPoint ptEnd);
|
|
//得到导线2端所接的元件或设备
|
|
void GetBlkByLineWire(Entity& entBlk1, Entity& entBlk2);
|
|
|
|
|
|
XPoint m_ptStart, m_ptEnd;
|
|
CString m_csType;
|
|
CString m_csMode;
|
|
CString m_csNorm;
|
|
CString m_csPlace;
|
|
CString m_csRadius;
|
|
CString m_csArea;
|
|
CString m_csName;
|
|
CString m_csDim, m_csDim2, m_csDimSimple;
|
|
void GetTipInfo(DList<CBlockStruct> &lstInfo);
|
|
BOOL m_bIsInfoEmpty;
|
|
protected:
|
|
|
|
Entity m_ent;
|
|
};
|
|
|
|
|
|
class TELAPI TWireEdJig : public TSymbEdJig {
|
|
public:
|
|
BOOL m_bIsArc;
|
|
// int m_iFixMode;
|
|
XPoint ptTmp, ptOnx, ptOny;
|
|
protected:
|
|
AcDbArc *m_pDrawEnt;
|
|
AcDbLine *m_pDrawLine;
|
|
// AcDbPolyline *m_pline;
|
|
|
|
double m_nRadius;
|
|
XPoint m_ptStart, m_ptEnd;
|
|
public:
|
|
TWireEdJig(XPoint pt1, XPoint pt2);
|
|
TWireEdJig(XPoint pt);
|
|
// TWireEdJig(XPoint pt1, XPoint pt2, int iFixMode);
|
|
|
|
double m_nLockAng; // 锁定角度 【管线延长】专用
|
|
~TWireEdJig();
|
|
XPoint GetCorrectPt();
|
|
XPoint m_ptRef;
|
|
virtual int DoIt(int *pKeyIndex=NULL);
|
|
DragStatus GetPoint(XPoint &pt);
|
|
void SetStartPoint(XPoint pt);
|
|
protected:
|
|
virtual Adesk::Boolean update();
|
|
virtual AcDbEntity* entity() const;
|
|
};
|
|
|
|
|
|
#endif // !defined(AFX_WIRE_H__E15CD58E_D57E_4E05_B680_D462F70CD248__INCLUDED_)
|