Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
12
Добавлен:
01.05.2014
Размер:
1.83 Кб
Скачать
// SPlineView.h : interface of the CSPlineView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SPLINEVIEW_H__AA2282F5_7E4B_4C26_9855_AFAEE309B288__INCLUDED_)
#define AFX_SPLINEVIEW_H__AA2282F5_7E4B_4C26_9855_AFAEE309B288__INCLUDED_

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

#include "surface.h"

class CSPlineView : public CView
{
protected: // create from serialization only
	CSPlineView();
	DECLARE_DYNCREATE(CSPlineView)

// Attributes
public:
	CSPlineDoc* GetDocument();

	void InitObjects();
	void InitView();
	void Draw(CDC* pDC);

public:
	HGLRC m_hrc;
	SpLine curve[3];
	Surface surface;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSPlineView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSPlineView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSPlineView)
	afx_msg void OnDestroy();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SPlineView.cpp
inline CSPlineDoc* CSPlineView::GetDocument()
   { return (CSPlineDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SPLINEVIEW_H__AA2282F5_7E4B_4C26_9855_AFAEE309B288__INCLUDED_)
Соседние файлы в папке Лабораторная работа4