⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oopfeview.h

📁 一个计算悬臂梁的有限元vc源码
💻 H
字号:
// OOPFEView.h : interface of the COOPFEView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_OOPFEVIEW_H__0EF79D0C_559E_11D5_B917_444553540000__INCLUDED_)
#define AFX_OOPFEVIEW_H__0EF79D0C_559E_11D5_B917_444553540000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class COOPFEView : public CScrollView
{
protected: // create from serialization only
	COOPFEView();
	DECLARE_DYNCREATE(COOPFEView)

// Attributes
public:
	COOPFEDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COOPFEView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void DisplayAxialForce(CDC *pDC, COOPFEDoc *pDoc);
	void DisplayVibration(CDC *pDC, COOPFEDoc *pDoc);
	void BeamDeflection(CBaseElement* pEle,CNode& Node,double* adNodeDisp,double* adFy,double& dUei,double& dUej);
	void DisplayModeShapes(CDC *pDC, COOPFEDoc *pDoc);
	void OutputDxfElement(ofstream& fout);
	void SetFont(CFont& font, char* sFontName,int nFontHeight,double dAngle);
	void DisplayData(CDC *pDC, COOPFEDoc *pDoc);
	void DisplayCompressionStress(CDC *pDC, COOPFEDoc *pDoc);
	void DisplayTensionStress(CDC* pDC,COOPFEDoc* pDoc);
	void DisplayDeformation(CDC *pDC,COOPFEDoc* pDoc);
	void DisplayShear(CDC *pDC,COOPFEDoc* pDoc);
	void DisplayMoment(CDC *pDC,COOPFEDoc* pDoc);
	void DisplayElement(CDC *pDC,COOPFEDoc* pDoc);
	virtual ~COOPFEView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(COOPFEView)
	afx_msg void OnDisplayMoment();
	afx_msg void OnDisplayShear();
	afx_msg void OnDisplayDeformation();
	afx_msg void OnDisplayCompressionStress();
	afx_msg void OnDisplayTensionStress();
	afx_msg void OnDisplayZoomIn();
	afx_msg void OnDisplayZoomOut();
	afx_msg void OnDisplayElement();
	afx_msg void OnDisplayData();
	afx_msg void OnDispalySettings();
	afx_msg void OnOutputDxfDeformation();
	afx_msg void OnOutputDxfMoment();
	afx_msg void OnOutputDxfShear();
	afx_msg void OnOutputDxfTensionStress();
	afx_msg void OnOutputDxfCompressionStress();
	afx_msg void OnDisplayModeShapesPrevious();
	afx_msg void OnDisplayModeShapesNext();
	afx_msg void OnDisplayVibration();
	afx_msg void OnOutputDxfModeShapes();
	afx_msg void OnDisplayAnimationQuick();
	afx_msg void OnDisplayAnimationSlow();
	afx_msg void OnDisplayAxialForce();
	afx_msg void OnOutputDxfAxialForce();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_iAnimationSpeed;
	void DXFLine(ofstream& fout,double dX,double dY,double dX1,double dY1);
	void DXFPline(ofstream &fout, double dX, double dY,double dX1, double dY1, double dWidth);
	void DXFText(ofstream &fout,double dX,double dY,double dHeight,double dAngle,CString sText);
	UINT m_nFontSize;
	void SetPenColor(CPen* aPen);
	double m_dMinX,m_dMinY;
	double m_dZoomTimes;
	int m_nMaxDispDot;
	int m_nMaxMomentDot;
	int m_nMaxShearDot;
    int m_nMaxAxialForceDot;
	double m_dScaleRtoD,m_dInitScaleRtoD;
	CPoint m_ptBase;
	CSize m_sizeInitTotal;

};

#ifndef _DEBUG  // debug version in OOPFEView.cpp
inline COOPFEDoc* COOPFEView::GetDocument()
   { return (COOPFEDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_OOPFEVIEW_H__0EF79D0C_559E_11D5_B917_444553540000__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -