116 lines
4.3 KiB
C++
116 lines
4.3 KiB
C++
#ifndef _THIMPHVACVRVBRPIPE_H__
|
|
#define _THIMPHVACVRVBRPIPE_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "TImpSpecEquipment.h"
|
|
|
|
class THImpHvacVRVBrPipe : public TImpSpecEquipment
|
|
{
|
|
public:
|
|
THImpHvacVRVBrPipe();
|
|
virtual ~THImpHvacVRVBrPipe();
|
|
|
|
// 接口描述对象
|
|
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);
|
|
|
|
// 获取2维显示的所有曲线
|
|
virtual BOOL MakeCurves(TComplexCurve& cplCurve) const;
|
|
|
|
// 获取2维显示的边界pl线
|
|
virtual AcDbPolyline* MakePolyCurve() const;
|
|
|
|
// 获取2维边界围城的面
|
|
virtual BOOL MakePolyCurveFaces(AcDbVoidPtrArray& arFaces);
|
|
|
|
// 获取对象类型名称 [es. 弯头--> TCH_EELBOW]
|
|
virtual void GetKindName(CString& sName);
|
|
|
|
// 解释夹点
|
|
virtual TDb::Position ExplainGripIndex(int nIndex) const;
|
|
|
|
// 夹点提示
|
|
virtual Acad::ErrorStatus GetGripText(int i, CString &cs) const;
|
|
|
|
// 对象查询
|
|
virtual void GetTips(CMapStringToString& mapLable2Tip) const;
|
|
|
|
//获取三维的壳对象
|
|
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;
|
|
|
|
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 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 getClassID(CLSID* pClsid) const;
|
|
virtual BOOL OPMInfo(LPCTSTR pszName, TDb::OPMInfo* pInfo);
|
|
|
|
//}}AFX_ARX_METHODS
|
|
|
|
|
|
private:
|
|
//得到图形画法的所有点
|
|
BOOL GetPts(AcGePoint3dArray& arpts) const;
|
|
BOOL GetBoxPts(AcGePoint3dArray& arpts) const;
|
|
|
|
//--得到xmap中的参数
|
|
AcGeVector3d GetNormal() const;
|
|
AcGeVector3d GetVtMain() const;
|
|
double GetLength() const;
|
|
CString GetMediaPipeDn() const;
|
|
double GetEndLineWidth() const;
|
|
AcDbObjectId GetEndLayer() const;
|
|
int GetDrawType() const;
|
|
void DrawElbow(XExplodeDraw &mode) const;
|
|
//--
|
|
BOOL GetPtOnArcExt(AcGePoint3d &ptStartArc, const AcGePoint3d &ptCorStart, AcGePoint3d &ptEndArc, const AcGePoint3d &ptCorEnd, AcGePoint3d &ptOnArcOut, double &dPlusEdge) const;
|
|
BOOL GetIntersectWith(AcGePoint3d &pt1,AcGePoint3d &pt2,AcGeVector3d &vt1,AcGeVector3d &vt2,AcGePoint3d &ptIntersect) const;
|
|
|
|
XPoint TransformPoint(const XPoint& point, double angle, const XPoint& basePoint) const;
|
|
void TransformVecor(CString sAngle, AcGeVector3d& vt) const;
|
|
BOOL IsSysMode() const;
|
|
BOOL GetInterfaceSizeData(int nIndex, TInterface& pipeInterface) const;
|
|
};
|
|
|
|
#endif //_THIMPHVACVRVBRPIPE_H__
|