Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

68 lines
2.1 KiB
C++

// Jig.h: interface for the TComposingEdJig class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_JIG_H__D043059B_8DD6_4703_89CA_44F546045AAD__INCLUDED_)
#define AFX_JIG_H__D043059B_8DD6_4703_89CA_44F546045AAD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "EdJigEx.h"
#include <dbSymbolAnnotate.h>
#include "TAPI.h"
//**********************************************************************
// 焓湿图
//**********************************************************************
extern CString g_csDimStyle;
extern double g_nScaleDim, g_nDimHeight;
extern double JS_PQB_FROM_T(double ttt);
extern double JS_D(double pqba, double fai, double pair);
extern double JS_FAI(double Pqb, double d, double B);
extern double JS_PQ(double B, double d);
extern double JS_TL(double Pq);
extern double JS_FAIA(double pq, double pqb);
extern double JS_HAN(double t, double d);
extern double JS_PQA(double pqb, double fai);
extern double JS_I(double Ts);
extern double JS_TS(double t, double i, double B);
extern double JS_T(double ts, double i, double fai, double B);
extern double JS_T(double nPqb);
extern double JS_T(double i, double fai, double B);
//extern void HideDialog(CWnd *pWnd, BOOL Flag);
extern void DrawPLine(XPoint ptStart, XPoint ptEnd, double dWidth, int iColor = 256);
class TComposingEdJig : public TSymbEdJig {
public:
enum TComposingOper {kNone=0, kTextLine=1, kTurnPoint=2, kDimPos=3};
//add for 多管引出标注
XPoint m_ptLeftUp,
m_ptRightUp,
m_ptLeftDown;
protected:
TComposingOper m_nOperCode;
CString m_cs1;
CString m_cs2;
// I/O
TDbSymbComposing *m_pDrawEnt;
public:
TComposingEdJig(TDbSymbComposing *);
virtual int DoIt(int *pKeyIndex=NULL);
DragStatus GetPoint(XPoint &pt);
protected:
virtual Adesk::Boolean update();
virtual AcDbEntity* entity() const;
public:
void SetOperCode(TComposingEdJig::TComposingOper opCode) {
m_nOperCode=opCode;
}
};
#endif // !defined(AFX_JIG_H__D043059B_8DD6_4703_89CA_44F546045AAD__INCLUDED_)