// Medium.h: interface for the CMedium class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_MEDIUM_H__550BE83A_C6A0_4FC0_8248_815040DA9AEC__INCLUDED_) #define AFX_MEDIUM_H__550BE83A_C6A0_4FC0_8248_815040DA9AEC__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Medium.h : header file // #include "FIR.h" ///////////////////////////////////////////////////////////////////////////// // CMedium window class CMedium : public CButton // this class defines all properties of the medium of a simulation project. // Construction { public: CMedium(int NumofTx=0,int NumofRx=0); // Attributes public: int NumRx;// number of receivers . int NumTx;// number of transmitters. CFIR*** H;// "H" is a two-dimentional matrix that each H[i][j] specifics an array that contains the coeficients of a FIR filter from Tx[i] Rx[j]. // BYTE CurrentSubChip; // float signal; // float attenuation; // float delay; // Operations public: void CoupleData();// this function can not be really used here by medium object but maybe used in future purposes. // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMedium) public: virtual void Serialize(CArchive& ar);// is used to storing or loading this medium object variables from a Carchive (=ar) object. //}}AFX_VIRTUAL // Implementation public: BOOL moved;// specifics that the button of this medium object have been moved (=1) or not (=0) POINT PreviousPoint;// the last axis (x,y) of the button of this medium object have been moved from there. BOOL created;// 1= if the button of this medium object have been created 0= otherwise RECT position;// the axises of the top-right and down-left points of the rectangular button of this medium object. virtual ~CMedium();// the default deconstructor of this object. // Generated message map functions protected: //{{AFX_MSG(CMedium) afx_msg void OnClicked();// called when user clicks the button of this object. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);// called when user holds the left mouse button on the button of this object. afx_msg void OnMouseMove(UINT nFlags, CPoint point);// called when user moves the mouse on button of this object. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);// called when user releases the left mouse button on the button of this object. //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MEDIUM_H__550BE83A_C6A0_4FC0_8248_815040DA9AEC__INCLUDED_)