168 lines
6.5 KiB
C++
168 lines
6.5 KiB
C++
#ifndef _THIMPHVACVALVE_H__
|
|
#define _THIMPHVACVALVE_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "TImpSpecEquipment.h"
|
|
|
|
class THImpHvacValve : public TImpSpecEquipment
|
|
{
|
|
public:
|
|
THImpHvacValve();
|
|
virtual ~THImpHvacValve();
|
|
|
|
// 接口描述对象
|
|
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 int GetInterfaceCount() const;
|
|
|
|
// 建立接口关联关系
|
|
virtual BOOL SetInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect);
|
|
|
|
//移除接口关联关系
|
|
virtual BOOL RemoveInterfaceRelation(const AcGePoint3d& ptConnect,const AcDbObjectId& idConnect);
|
|
|
|
// 接口更改通知
|
|
virtual BOOL NotifyInterfaceToModify(const TInterfaceModifyMsg& iModiMsg,TInterfaceModifyMsgs& iModiMsgs);
|
|
|
|
// 夹点移动消息处理
|
|
BOOL OnMoveGripPointMsgNotify(const TInterfaceModifyMsg& iModiMsg, TInterfaceModifyMsgs& iModiMsgs);
|
|
// 对象移动消息处理
|
|
BOOL OnTransformMsgNotify(const TInterfaceModifyMsg& iModiMsg, TInterfaceModifyMsgs& iModiMsgs);
|
|
// 尺寸调整消息处理
|
|
BOOL OnSizeMsgNotify(const TInterfaceModifyMsg& iModiMsg, TInterfaceModifyMsgs& iModiMsgs);
|
|
|
|
// 获取2维显示的所有曲线
|
|
virtual BOOL MakeCurves(TComplexCurve& cplCurve) const;
|
|
|
|
// 获取2维边界内显示的曲线
|
|
virtual BOOL GetCurvesInSide(TComplexCurve& compCurve) const;
|
|
|
|
// 获取2维显示的边界pl线
|
|
virtual AcDbPolyline* MakePolyCurve() const;
|
|
|
|
// 获取2维边界围城的面
|
|
virtual BOOL MakePolyCurveFaces(AcDbVoidPtrArray& arFaces);
|
|
|
|
// 获取对象类型名称 [es. 弯头--> TCH_EELBOW]
|
|
virtual void GetKindName(CString& sName);
|
|
|
|
//自身边界
|
|
virtual BOOL GetGeomExtentsEdge(TComplexCurve& crLoop);
|
|
|
|
// 解释夹点
|
|
virtual TDb::Position ExplainGripIndex(int nIndex) const;
|
|
|
|
// 夹点提示
|
|
virtual Acad::ErrorStatus GetGripText(int i, CString &cs) const;
|
|
|
|
// 对象查询
|
|
virtual void GetTips(CMapStringToString& mapLable2Tip) const;
|
|
|
|
//修改标注
|
|
virtual void SetSubText(long i,CString sText);
|
|
|
|
// 处理实体删除后操作
|
|
virtual void OnSubErase(Adesk::Boolean erasing);
|
|
|
|
// 用户自定义调用,用于复制法兰预览位移时,删除接口。区别仅位移情况 090916
|
|
virtual LRESULT UserCall(long i,LPVOID pData);
|
|
|
|
//获取三维的壳对象
|
|
virtual int GetXBaseShell(TXShell& xShell);
|
|
|
|
//获取体的范围方块
|
|
virtual int GetBodyBox(AcDbExtents& ext) const;
|
|
|
|
// add by hh 2010-12-27 导出XML
|
|
// virtual CString GetXml() const;
|
|
virtual CString GetXml(const AcGeMatrix3d& mat) const;
|
|
|
|
// add by hh 2014-08-06 支持管件与水管遮挡
|
|
virtual Acad::ErrorStatus GetClipBoundary(TGGePoly2D& poly)const;
|
|
virtual bool IsMeClip() const;
|
|
virtual bool IsClipMe(const TEntityBase* pEnt=NULL)const;//ok是否被裁剪
|
|
|
|
public:
|
|
|
|
//{{AFX_ARX_METHODS(TImpSpecEquipment)
|
|
virtual Acad::ErrorStatus ExplodeOrDraw2d(XExplodeDraw &mode) const;
|
|
virtual Acad::ErrorStatus ExplodeOrDraw3d(XExplodeDraw &mode) const;
|
|
virtual void list() const;
|
|
virtual Acad::ErrorStatus transformBy(const AcGeMatrix3d& xform);
|
|
virtual Acad::ErrorStatus moveGripPointsAt(const AcDbIntArray& indices,
|
|
const AcGeVector3d& offset);
|
|
virtual Acad::ErrorStatus moveStretchPointsAt(const AcDbIntArray& indices,
|
|
const AcGeVector3d& offset);
|
|
|
|
Acad::ErrorStatus getStretchPoints(AcGePoint3dArray& stretchPoints) const;
|
|
virtual Acad::ErrorStatus intersectWith(const AcDbEntity* pEnt,
|
|
AcDb::Intersect intType,
|
|
const AcGePlane& projPlane,
|
|
AcGePoint3dArray& points,
|
|
INT_PTR thisGsMarker = 0,
|
|
INT_PTR otherGsMarker = 0) const;
|
|
virtual Acad::ErrorStatus intersectWith(const AcDbEntity* pEnt,
|
|
AcDb::Intersect intType,
|
|
AcGePoint3dArray& points,
|
|
INT_PTR thisGsMarker = 0,
|
|
INT_PTR otherGsMarker = 0) const;
|
|
virtual Acad::ErrorStatus getOsnapPoints(AcDb::OsnapMode osnapMode,
|
|
INT_PTR gsSelectionMark,
|
|
const AcGePoint3d& pickPoint,
|
|
const AcGePoint3d& lastPoint,
|
|
const AcGeMatrix3d& viewXform,
|
|
AcGePoint3dArray& snapPoints,
|
|
AcDbIntArray& geomIds) const;
|
|
virtual Acad::ErrorStatus getGripPoints(AcGePoint3dArray& gripPoints,
|
|
AcDbIntArray& osnapModes,
|
|
AcDbIntArray& geomIds) const;
|
|
virtual Acad::ErrorStatus getGeomExtents(AcDbExtents& extents) const;
|
|
virtual Acad::ErrorStatus getClassID(CLSID* pClsid) const;
|
|
virtual Acad::ErrorStatus explode(AcDbVoidPtrArray& entitySet) const;
|
|
virtual BOOL OPMInfo(LPCTSTR pszName, TDb::OPMInfo* pInfo);
|
|
//}}AFX_ARX_METHODS
|
|
|
|
|
|
private:
|
|
void DrawText(XExplodeDraw &mode) const;
|
|
void DelLabelText(AcDbBlockTableRecord *pBlockMis) const;
|
|
Acad::ErrorStatus Draw2dBox(XExplodeDraw &mode) const;
|
|
BOOL GetBoxPts(AcGePoint3dArray &arPts) const;
|
|
AcGeVector3d GetNormal() const;
|
|
AcGePoint3d GetStartPt() const;
|
|
AcGePoint3d GetEndPt() const;
|
|
AcGePoint3d GetHandPt() const;
|
|
AcGePoint3d GetLabelPt() const;
|
|
Acad::ErrorStatus ExplodeBlock(XExplodeDraw &mode, AcDbObjectId idBlock, AcGePoint3d ptBase, AcDbObjectIdArray& arObjs, int nType = 0) const;
|
|
BOOL GetInterfaceSizeData(int nIndex, TInterface& pipeInterface) const;
|
|
double GetEdgeLineWidth() const;
|
|
double GetBlkOldLength() const;
|
|
double GetBlkOldWidth() const;
|
|
double GetEndLineWidth() const;
|
|
|
|
// 是否在连接的风管内移动, 没有连接风管也返回FALSE
|
|
BOOL IsMovedWithInDuct(const AcGeVector3d &vtOffset);
|
|
// 找出连接的风管
|
|
BOOL GetConnectDuct(AcDbObjectId &idSta, AcDbObjectId &idEnd);
|
|
|
|
// add by hh 2011-08-08 处理多叶阀等动态增减叶片数量的阀门
|
|
Acad::ErrorStatus ExplodeBlockEx(XExplodeDraw &mode, AcDbObjectId idBlock,
|
|
AcGePoint3d ptBase, AcDbObjectIdArray& arObjs, int nType = 0) const;
|
|
// kyf add 处理消声器超出风管边线的尺寸
|
|
Acad::ErrorStatus ExplodeBlockSilen(XExplodeDraw &mode, AcDbObjectId idBlock,
|
|
AcGePoint3d ptBase, AcDbObjectIdArray& arObjs, int nType = 0) const;
|
|
|
|
// add by hh 2011-08-08 判断是否多叶阀
|
|
BOOL IsMultibladeValve(AcDbObjectId idBlock) const;
|
|
//kyf add判断是否是消声器
|
|
BOOL IsSilencer(AcDbObjectId idBlock) const;
|
|
|
|
};
|
|
|
|
#endif //_THIMPHVACVALVE_H__
|