// PipeLine.h: interface for the CPipeLine class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_PIPELINE_H__D9B4F6AD_1777_4A64_940D_251F89E037AA__INCLUDED_) #define AFX_PIPELINE_H__D9B4F6AD_1777_4A64_940D_251F89E037AA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 /*============================================================================* * Copyright(c), 1994-2007, Beijing Tangent Engineering Software Co.Ltd. * 文 件 名: PipeLine.h * 版 本: 3.0 * 作 者: * 创建时间: * 描 述: * 归属项目: 暖通 * 历史记录: 1. sg modify,增加了有关颜色的内容 2. 2007-10-30 sg modify,增加了有关线宽的内容 =============================================================================*/ class CPipeLine { public: CPipeLine(); CPipeLine(ads_point PtStart, double dbPGAngle, double dbLength, double dbAssisAng, double dbNormAng); virtual ~CPipeLine(); public: void SetAngle(double dbAngle); double GetAngle(); void SetStartPt(ads_point PtStart); void GetStartPt(ads_point& PtStart); void SetEndPt(ads_point PtEnd); void GetEndPt(ads_point& PtEnd); double GetLength(); public: bool DrawTheLine(); // sg modify // bool DrawTheLine(XExplodeDraw &dc); bool DrawTheLine(XExplodeDraw &dc, const BOOL &bWeight = FALSE, const int &nColorIndex = 4, const double &dLineWeight = 0.35); protected: ads_point m_PtStart; // 起点 ads_point m_PtEnd; // 终点 double m_dbAngle; // 直线的倾斜角度 double m_dbLength; // 直线长度 AcDbObjectId m_LineID; // 直线ID }; #endif // !defined(AFX_PIPELINE_H__D9B4F6AD_1777_4A64_940D_251F89E037AA__INCLUDED_)