207 lines
4.3 KiB
C++
207 lines
4.3 KiB
C++
#include "stdafx.h"
|
|
#include "StdArx.h"
|
|
#include "TEImpEquipment.h"
|
|
|
|
#include "TDbInterfaceRecord.h"
|
|
#include "TDbXDataMap.h"
|
|
#include "TDbInterfaceMsgWrite.h"
|
|
#include "math.h"
|
|
#include "dbxutil.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
|
|
TEImpEquipment::TEImpEquipment()
|
|
{
|
|
}
|
|
|
|
TEImpEquipment::~TEImpEquipment()
|
|
{
|
|
}
|
|
|
|
BOOL TEImpEquipment::GetInterface(int nIndex,TInterface& pipeInterface) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL TEImpEquipment::GetInterface(const AcGePoint3d& ptCon,TInterface& pipeInterface) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL TEImpEquipment::HasInterface(const AcGePoint3d& ptCon,const AcGeVector3d& vtDir)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int TEImpEquipment::GetInterfaceCount() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
BOOL TEImpEquipment::SetInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL TEImpEquipment::RemoveInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL TEImpEquipment::NotifyInterfaceToModify(const TInterfaceModifyMsg& iModiMsg,TInterfaceModifyMsgs& iModiMsgs)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL TEImpEquipment::MakeCurves(TComplexCurve& cplCurve) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL TEImpEquipment::GetCurvesInSide(TComplexCurve& compCurve) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
AcDbPolyline* TEImpEquipment::MakePolyCurve() const
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
BOOL TEImpEquipment::MakePolyCurveFaces(AcDbVoidPtrArray& arFaces)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
void TEImpEquipment::GetKindName(CString& sName)
|
|
{
|
|
sName = _T("ATS_EEQUIPMENT");
|
|
}
|
|
|
|
BOOL TEImpEquipment::GetGeomExtentsEdge(TComplexCurve& crLoop)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
TDb::Position TEImpEquipment::ExplainGripIndex(int nIndex) const
|
|
{
|
|
switch(nIndex)
|
|
{
|
|
case 0:
|
|
{
|
|
return TDb::eMid;
|
|
break;
|
|
}
|
|
case 1:
|
|
{
|
|
return TDb::eInf1;
|
|
break;
|
|
}
|
|
case 2:
|
|
{
|
|
return TDb::eInf2;
|
|
break;
|
|
}
|
|
case 3:
|
|
{
|
|
return TDb::eInf3;
|
|
break;
|
|
}
|
|
default:
|
|
break;
|
|
}
|
|
return TDb::eStart;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::GetGripText(int i, CString &cs) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
void TEImpEquipment::GetTips(CMapStringToString& mapLable2Tip) const
|
|
{
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::ExplodeOrDraw3d(XExplodeDraw &mode) const
|
|
{
|
|
return TImpSpecEquipment::ExplodeOrDraw3d(mode);
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::ExplodeOrDraw2d(XExplodeDraw &mode) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
void TEImpEquipment::list() const
|
|
{
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::transformBy(const AcGeMatrix3d& xform)
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::moveGripPointsAt(const AcDbIntArray& indices,
|
|
const AcGeVector3d& offset)
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::intersectWith(const AcDbEntity* pEnt,
|
|
AcDb::Intersect intType,
|
|
const AcGePlane& projPlane,
|
|
AcGePoint3dArray& points,
|
|
INT_PTR thisGsMarker,
|
|
INT_PTR otherGsMarker) const
|
|
{
|
|
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::intersectWith(const AcDbEntity* pEnt,
|
|
AcDb::Intersect intType,
|
|
AcGePoint3dArray& points,
|
|
INT_PTR thisGsMarker,
|
|
INT_PTR otherGsMarker) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::getOsnapPoints(AcDb::OsnapMode osnapMode,
|
|
INT_PTR gsSelectionMark,
|
|
const AcGePoint3d& pickPoint,
|
|
const AcGePoint3d& lastPoint,
|
|
const AcGeMatrix3d& viewXform,
|
|
AcGePoint3dArray& snapPoints,
|
|
AcDbIntArray& geomIds) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::getGripPoints(AcGePoint3dArray& gripPoints,
|
|
AcDbIntArray& osnapModes,
|
|
AcDbIntArray& geomIds) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::getGeomExtents(AcDbExtents& extents) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::getClassID(CLSID* pClsid) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
|
|
Acad::ErrorStatus TEImpEquipment::explode(AcDbVoidPtrArray& entitySet) const
|
|
{
|
|
return Acad::eOk;
|
|
}
|