www.pudn.com > VTK-MFC-SDI.rar > 123Doc.h


// 123Doc.h : interface of the CMy123Doc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_123DOC_H__ECFE1675_FC7D_493E_90ED_BF78ED30B732__INCLUDED_) 
#define AFX_123DOC_H__ECFE1675_FC7D_493E_90ED_BF78ED30B732__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CMy123Doc : public CDocument 
{ 
protected: // create from serialization only 
	CMy123Doc(); 
	DECLARE_DYNCREATE(CMy123Doc) 
 
// Attributes 
public: 
 
// Operations 
public: 
 
private: 
	vtkDataSetReader *pvtkDataSetReader;   //class to read any type of vtk dataset  
	 
private: 
	void ExecutePipeline(); 
	void RemoveActors(); 
	 
	vtkDataSetMapper  *pvtkDataSetMapper; 
	vtkActor      *pvtkActor; 
	 
	vtkActor2D      *pvtkActor2D; 
	vtkTextMapper    *pvtkTextMapper; 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMy123Doc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); 
	virtual void OnCloseDocument(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CMy123Doc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMy123Doc) 
		// NOTE - the ClassWizard will add and remove member functions here. 
		//    DO NOT EDIT what you see in these blocks of generated code ! 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_123DOC_H__ECFE1675_FC7D_493E_90ED_BF78ED30B732__INCLUDED_)