53 lines
2.0 KiB
C++
53 lines
2.0 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// = FileName : TEImpCabEnclosure
|
|
// = Version : ver2.0
|
|
// = Author : axc
|
|
// = CreateDate : 2014-04-21
|
|
// = Description: 桥架终端封头
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef __TEIMPCABENCLOSURE_H__
|
|
#define __TEIMPCABENCLOSURE_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "TImpSpecFitting.h"
|
|
|
|
class TEImpCabEnclosure : public TImpSpecFitting
|
|
{
|
|
public:
|
|
TEImpCabEnclosure();
|
|
virtual ~TEImpCabEnclosure();
|
|
|
|
public:
|
|
// 接口描述对象
|
|
virtual BOOL GetInterface(int nIndex,TInterface& pipeInterface) const;
|
|
virtual BOOL GetInterface(const AcGePoint3d& ptCon,TInterface& pipeInterface) const;
|
|
|
|
virtual BOOL HasInterface(const AcGePoint3d& ptCon,const AcGeVector3d& vtDir);
|
|
// 移除接口关联关系
|
|
virtual BOOL RemoveInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect);
|
|
// 接口更改通知
|
|
virtual BOOL NotifyInterfaceToModify(const TInterfaceModifyMsg& iModiMsg,TInterfaceModifyMsgs& iModiMsgs);
|
|
|
|
virtual int GetInterfaceCount() const;
|
|
// 建立接口关联关系
|
|
virtual BOOL SetInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect);
|
|
virtual CString GetXml() const;
|
|
virtual CString GetXml(const AcGeMatrix3d& mat) const;
|
|
private:
|
|
//{{AFX_ARX_METHODS(TEImpCabEnclosure)
|
|
virtual Acad::ErrorStatus transformBy(const AcGeMatrix3d& xform);
|
|
//virtual Acad::ErrorStatus ExplodeOrDraw2d(XExplodeDraw &mode) const;
|
|
void CreateFace(XExplodeDraw &mode,const AcGePoint3d& pt1,const AcGePoint3d& pt2,const AcGePoint3d& pt3,const AcGePoint3d& pt4) const;
|
|
virtual Acad::ErrorStatus ExplodeOrDraw3d(XExplodeDraw &mode) const;
|
|
Acad::ErrorStatus ExplodeOrDraw3dOfC(XExplodeDraw &mode) const;
|
|
//}}AFX_ARX_METHODS
|
|
protected:
|
|
BOOL OnTransformByMsgNotify(const TInterfaceModifyMsg& iModiMsg,TInterfaceModifyMsgs& iModiMsgs);
|
|
public:
|
|
virtual BOOL MakeCurves(TComplexCurve& cplCurve) const;
|
|
};
|
|
|
|
#endif// __TEImpCabEnclosure_H__
|