97 lines
3.5 KiB
C++
97 lines
3.5 KiB
C++
// DbDuctTapered.h: interface for the TDbDuctTapered class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_DBDUCTTAPERED_H__7B006BB5_F366_4FA4_A973_C47D63489DE1__INCLUDED_)
|
|
#define AFX_DBDUCTTAPERED_H__7B006BB5_F366_4FA4_A973_C47D63489DE1__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
/*============================================================================*
|
|
* Copyright(c), 1994-2007, Beijing Tangent Engineering Software Co.Ltd.
|
|
* 文 件 名: DbDuctTapered.h
|
|
* 版 本: 1.0
|
|
* 作 者: sg
|
|
* 创建时间:
|
|
* 描 述: 风管中的“变径节点”实体,未使用
|
|
* 归属项目: 暖通
|
|
* 历史记录:
|
|
=============================================================================*/
|
|
|
|
|
|
class PS_EXP TDbDuctTapered : public TDbEntity
|
|
{
|
|
DECLARE_TENTBASE();
|
|
ACRX_DECLARE_MEMBERS(TDbDuctTapered);
|
|
private:
|
|
static const Adesk::UInt8 g_nVersion;
|
|
public:
|
|
TDbDuctTapered();
|
|
protected:
|
|
XPoint m_ptStart, m_ptEnd;
|
|
double m_nStartWidth;
|
|
double m_nEndWidth;
|
|
double m_nPipeWeight; // 管线的显示宽度
|
|
XVector3D m_vtLocation;
|
|
public:
|
|
void SetStartPoint(XPoint pt) {
|
|
assertWriteEnabled();
|
|
m_ptStart=pt;
|
|
}
|
|
const XPoint & GetStartPoint() const {
|
|
return m_ptStart;
|
|
}
|
|
void SetEndPoint(XPoint pt) {
|
|
assertWriteEnabled();
|
|
m_ptEnd=pt;
|
|
}
|
|
const XPoint & GetEndPoint() const {
|
|
return m_ptEnd;
|
|
}
|
|
void SetStartWidth(double nWidth) {
|
|
assertWriteEnabled();
|
|
m_nStartWidth = nWidth;
|
|
}
|
|
double GetStartWidth() const {
|
|
return m_nStartWidth;
|
|
}
|
|
void SetEndWidth(double nWidth) {
|
|
assertWriteEnabled();
|
|
m_nEndWidth = nWidth;
|
|
}
|
|
double GetEndWidth() const {
|
|
return m_nEndWidth;
|
|
}
|
|
|
|
void SetDirection(const XVector3D &vt) {
|
|
assertWriteEnabled();
|
|
m_vtLocation = vt;
|
|
}
|
|
XVector3D GetDirection() const {
|
|
return m_vtLocation;
|
|
}
|
|
double GetLength();
|
|
|
|
public: // Override TDbEntity
|
|
virtual void CopyPropertiesFrom(AcDbEntity *pSrc, unsigned gMatchFlag);
|
|
virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
|
|
virtual Acad::ErrorStatus ExplodeOrDraw2d(XExplodeDraw &dc) const;
|
|
virtual void GetTips(DList<TObjInfoUnit> &) const; //取动态属性显示数据
|
|
public: // Override AcDbEntity
|
|
Acad::ErrorStatus subGetOsnapPoints(AcDb::OsnapMode osnapMode, INT_PTR gsSelectionMark, const AcGePoint3d& ptPick, const AcGePoint3d& lastPoint, const AcGeMatrix3d& viewXform, AcGePoint3dArray& snapPoints, AcDbIntArray& geomIds) const;
|
|
virtual Acad::ErrorStatus subGetGripPoints(AcGePoint3dArray& gripPoints, AcDbIntArray& osnapModes, AcDbIntArray& geomIds) const;
|
|
virtual Acad::ErrorStatus subGetStretchPoints(AcGePoint3dArray & stretchPoints) const;
|
|
virtual Acad::ErrorStatus subMoveGripPointsAt(const AcDbIntArray& indices, const AcGeVector3d& offset);
|
|
virtual Acad::ErrorStatus subMoveStretchPointsAt(const AcDbIntArray& indices, const AcGeVector3d& offset);
|
|
virtual Acad::ErrorStatus subTransformBy(const AcGeMatrix3d& xform);
|
|
|
|
virtual Acad::ErrorStatus dwgInFields (AcDbDwgFiler*);
|
|
virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler*) const;
|
|
virtual Acad::ErrorStatus dxfInFields (AcDbDxfFiler*);
|
|
virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler*) const;
|
|
|
|
};
|
|
|
|
#endif // !defined(AFX_DBDUCTTAPERED_H__7B006BB5_F366_4FA4_A973_C47D63489DE1__INCLUDED_)
|