6spsview.h
来自「此算法是牛顿欧拉法(在VC环境下)」· C头文件 代码 · 共 88 行
H
88 行
// 6spsView.h : interface of the CMy6spsView class
//
/////////////////////////////////////////////////////////////////////////////
#include "math.h"
#include "setdia.h"
#define pi 3.1415926535897
#if !defined(AFX_6SPSVIEW_H__8710148C_D9A8_4F22_AF80_C4DBEB859648__INCLUDED_)
#define AFX_6SPSVIEW_H__8710148C_D9A8_4F22_AF80_C4DBEB859648__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMy6spsView : public CView
{
protected: // create from serialization only
CMy6spsView();
DECLARE_DYNCREATE(CMy6spsView)
// Attributes
public:
CMy6spsDoc* GetDocument();
double t,sp[6],vp[6],ap[6],bb[6][3],tb[6][3],aa[6][3],l[6][4],alp,bet,gam,tr[3][3],nt[3];
double cma,cmb,cmc,cmd,cme,cmf,cmg,cmh,cmi,el[6][3],ja[6][6],vl[6][7];
double al[6][6];
double at[6][3],ah[6][3],fh[6][3],ft[6][3],fd[7][3],md[7][3],fe[6],mp[3],fp[6],mgh[3],mgt[3],mgp[3],fto[6],jt[6][6],fr[6],lt,lh,mh,mt;
int judg,i,j,k;
double numi,ji[6][6],numa,numb,end;
char str[15];
bool cons;
double inu[4],ind[4],ml[6][3];
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy6spsView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMy6spsView();
void cal(void);
void cbl(void);
void crossmul(void);
void drawdis(void);
void drawvelo(void);
void drawfor(void);
void matrcal(void);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMy6spsView)
afx_msg void Ondisplacement();
afx_msg void Onforce();
afx_msg void Onvelocity();
afx_msg void Onset();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in 6spsView.cpp
inline CMy6spsDoc* CMy6spsView::GetDocument()
{ return (CMy6spsDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_6SPSVIEW_H__8710148C_D9A8_4F22_AF80_C4DBEB859648__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?