/***************************************************************************** * * Copyright (c) 1999, KL GROUP INC. All Rights Reserved. * http://www.klgroup.com * * This file is provided for demonstration and educational uses only. * Permission to use, copy, modify and distribute this file for * any purpose and without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies, and that the name of KL Group not be used in advertising * or publicity pertaining to this material without the specific, * prior written permission of an authorized representative of * KL Group. * * KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY * DAMAGES SUFFERED BY USERS AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ // mathView.h : interface of the CMathView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MATHVIEW_H__4C72EDC2_B13A_11D2_9BE7_00105AE62ECE__INCLUDED_) #define AFX_MATHVIEW_H__4C72EDC2_B13A_11D2_9BE7_00105AE62ECE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "MathOutWnd.h" class CMathView : public CFormView { protected: // create from serialization only CMathView(); DECLARE_DYNCREATE(CMathView) public: //{{AFX_DATA(CMathView) enum { IDD = IDD_MATH_FORM }; CButton m_ZonesChk; CButton m_ZonedFloorChk; CButton m_ZonedCeilingChk; CButton m_YMeshChk; CButton m_XMeshChk; CButton m_SolidChk; CButton m_ShadedChk; CEdit m_ScaleYEdit; CEdit m_PerspectiveEdit; CEdit m_ScaleXEdit; CSpinButtonCtrl m_NumlinesYSpin; CSpinButtonCtrl m_NumlinesXSpin; CEdit m_MinYEdit; CEdit m_MinXEdit; CButton m_MeshChk; CEdit m_MaxYEdit; CEdit m_MaxXEdit; CButton m_LegendChk; CButton m_HiddenlinesChk; CButton m_GridlinesZYZChk; CButton m_GridlinesZXZChk; CButton m_GridlinesYYZChk; CButton m_GridlinesYXYChk; CButton m_GridlinesXXZChk; CButton m_GridlinesXXYChk; CButton m_DoubleBufferChk; CSpinButtonCtrl m_ContoursSpin; CEdit m_ContoursEdit; CButton m_ContourCeilingChk; CButton m_ContourFloorChk; CButton m_ContourChk; CEdit m_AngleZEdit; CButton m_AngleZChk; CEdit m_AngleYEdit; CButton m_AngleYChk; CButton m_AngleXChk; CEdit m_AngleXEdit; CEdit m_NumlinesYEdit; CEdit m_NumlinesXEdit; CComboBox m_FunctionCmb; //}}AFX_DATA // Attributes public: CMathDoc* GetDocument(); // Operations // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMathView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void OnInitialUpdate(); // called first time after construct //}}AFX_VIRTUAL // Implementation public: virtual ~CMathView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CMathView) afx_msg void OnExitButton(); afx_msg void OnApplyButton(); afx_msg void OnSelendokFunctionCombobox(); afx_msg void OnMeshCheck(); afx_msg void OnDeltaposNumlinesXSpin(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDeltaposNumlinesYSpin(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDeltaposContoursSpin(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnChangeNumlinesXEdit(); afx_msg void OnChangeNumlinesYEdit(); afx_msg void OnChangeMaxXEdit(); afx_msg void OnChangeMaxYEdit(); afx_msg void OnChangeMinXEdit(); afx_msg void OnChangeMinYEdit(); afx_msg void OnKillfocusContoursEdit(); afx_msg void OnKillfocusAngleXEdit(); afx_msg void OnKillfocusAngleYEdit(); afx_msg void OnKillfocusAngleZEdit(); afx_msg void OnKillfocusMaxXEdit(); afx_msg void OnKillfocusMaxYEdit(); afx_msg void OnKillfocusMinXEdit(); afx_msg void OnKillfocusMinYEdit(); afx_msg void OnKillfocusPerspectiveEdit(); afx_msg void OnKillfocusNumlinesXEdit(); afx_msg void OnKillfocusNumlinesYEdit(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() // member data private: CMathOutWnd m_OutWnd; void InitialFormSetup(void); public: CMathOutWnd* GetOutWnd(); void SetXYZAngleEdit(char* XRot, char* YRot, char* ZRot); // Some Flags private: bool m_DataChange; bool m_XSpin, m_YSpin, m_ZSpin; }; #ifndef _DEBUG // debug version in mathView.cpp inline CMathDoc* CMathView::GetDocument() { return (CMathDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MATHVIEW_H__4C72EDC2_B13A_11D2_9BE7_00105AE62ECE__INCLUDED_)