57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
#if !defined(ARX__TDBCABLEWATCH_H__20080828_130858)
|
|
#define ARX__TDBCABLEWATCH_H__20080828_130858
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "dbmain.h"
|
|
|
|
#pragma warning(disable: 4275 4251)
|
|
|
|
class TDbCableWatch : public TDbCurveEntity
|
|
{
|
|
public:
|
|
|
|
TDbCableWatch();
|
|
virtual ~TDbCableWatch();
|
|
|
|
public:
|
|
void SetCenPoint(const AcGePoint3d &pt);
|
|
void SetAverageAngle(double dAng);
|
|
void SetStartVector(const AcGeVector3d& vt);
|
|
void SetNormal(const AcGeVector3d &vtNorm);
|
|
void SetText(const AcGePoint3d& pt,LPCTSTR lpText);
|
|
void SetPanState(BOOL bClose);
|
|
|
|
void GetNormal(AcGeVector3d &vtNorm);
|
|
//{{AFX_ARX_METHODS(TDbCableWatch)
|
|
virtual Acad::ErrorStatus ExplodeOrDraw2d(XExplodeDraw &mode) const;
|
|
//}}AFX_ARX_METHODS
|
|
|
|
//{{AFX_ARX_DATA_ACCESS(TDbCableWatch)
|
|
//}}AFX_ARX_DATA_ACCESS
|
|
|
|
private:
|
|
//{{AFX_ARX_DATA(TDbCableWatch)
|
|
//}}AFX_ARX_DATA
|
|
|
|
private:
|
|
|
|
void *operator new[](size_t nSize) { return 0; }
|
|
void operator delete[](void *p) {};
|
|
void *operator new[](size_t nSize, const char *file, int line) { return 0; }
|
|
void PixelToWcs(int nPixel,double& dGet) const;
|
|
|
|
private:
|
|
AcGePoint3d m_ptCen;
|
|
AcGePoint3d m_ptTextPosition;
|
|
CString m_sText;
|
|
double m_dAverageAng;
|
|
AcGeVector3d m_vtStart;
|
|
AcGeVector3d m_vtNormal;
|
|
AcDbText *m_pTextAng;
|
|
|
|
BOOL m_bClosePan;
|
|
};
|
|
#endif // !defined(ARX__TDBCABLEWATCH_H__20080828_130858)
|