📄 ww.h
字号:
#include "math.h"
class circle{
public:
CPoint xy;
double radio;
};
class smithpoint{
public:
smithpoint():m_Q(false),m_R(false),m_X(false),m_F(false),prior(NULL),next(NULL)
{};
public:
CPoint point;
smithpoint * prior;
smithpoint * next;
bool m_Q;
bool m_R;
bool m_X;
bool m_F;
};
class dsmith{
public:
CRect DrawBCircle(CDC* pdc,double B);
dsmith():m_a(2),m_A(1),m_R(true),m_G(false),m_point(0,0),m_F(false),m_Q
(false),m_mouse(true),m_look(false),m_X(true),m_onlbuttondown(false),m_onrbuttondown
(false),points_first(NULL),points_last(NULL) {};
~dsmith(){deleteallpoints();};
CPoint Bigger(CPoint cxy,CPoint xy,double cw,double ch);
double GetR(CPoint cxy);
double GetX(CPoint cxy);
circle GetRCircle(double R);
circle GetXCircle(double X);
double GetDistance(CPoint cxy);
void GetAmplify(){m_A*=m_a;}
void GetRad(){m_r*=m_a;}
CRect DrawRCircle(CDC* pdc,double R);
CRect DrawXCircle(CDC* pdc,double X);
CRect DrawFCircle(CDC* pdc,double F);
CPoint GetXCircleEnd(double X);
bool DrawRXCircle(CDC* pdc,CPoint point,CRect rect);
CRect DrawQCircle(CDC * pdc,double Q,CPoint point);
double GetQ(CPoint point);
double GetF(CPoint point);
bool DrawBackGround(CDC * pDC,CRect rect);
circle GetBCircle(double B);
CRect DrawGCircle(CDC * pdc,double G);
circle GetGCircle(double G);
bool deleteallpoints();
CPoint GetPoint(double r,double x);
double m_f;
double m_x;
double m_re;
bool m_X;
smithpoint * points_first;
smithpoint * points_last;
bool m_onrbuttondown;
bool m_onlbuttondown;
double m_a;
double m_A;
double m_r;
double m_dx;
double m_dy;
bool m_G;
bool m_R;
CPoint m_point;
bool m_F;
double m_fi;
double m_fr;
double m_swr;
bool m_Q;
double m_ql;
bool m_look;
bool m_mouse;
};
class CComplex {
public:
double re;
double im;
double ab;
public:
CComplex(){};
CComplex(double r,double i):re(r),im(i){ab=sqrt(r*r+i*i);};
~CComplex(){};
CComplex operator + (CComplex a);
CComplex operator + (double a);
CComplex operator - (CComplex a);
CComplex operator * (CComplex a);
CComplex operator * (double a);
CComplex operator / (CComplex a);
void operator = (CComplex a);
void operator = (double a);
double Abs();
};
class CShowTrans {
public:
double beta;
double omga;
double l;
double Umax;
CComplex Zl;
CComplex Zg;
CComplex Zc;
CComplex Tl;
CComplex Ts;
bool sinwave;
bool dcwave;
public:
CShowTrans():sinwave(true),dcwave(false){};
~CShowTrans(){};
double SetTl();
double SetTs();
double GetY(double time,double x);
private:
double GetYSin(double time,double x);
double GetYDc(double time,double x);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -