Alphabetical Class Index   File Members   Compound Members   File List  

CHoopsDoc.h
00001 //
00002 // Copyright (c) 2000 by Tech Soft 3D, LLC.
00003 // The information contained herein is confidential and proprietary to
00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under
00005 // civil and criminal statutes.  Tech Soft 3D shall pursue its civil
00006 // and criminal remedies in the event of unauthorized use or misappropriation
00007 // of its trade secrets.  Use of this information by anyone other than
00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a
00009 // written non-disclosure agreement, expressly prescribing the scope and
00010 // manner of such use.
00011 //
00012 // $Id$
00013 //
00014 
00015 // CHoopsDoc.h : interface of the CHoopsDoc class, derived from CDocument
00016 // Adds encapsulation of a HOOPS Model Object, which corresponds to a segment
00017 // in the HOOPS Include Library
00018 
00019 #ifndef hoops_doc
00020 #define hoops_doc 
00021 
00022 
00023 #include "HBaseModel.h"
00024 #include "HMFCGlobals.h"
00025 
00027 
00032 class HMFC_API CHoopsDoc : public CDocument
00033 {
00034 protected: // create from serialization only
00035     CHoopsDoc();
00036     DECLARE_DYNCREATE(CHoopsDoc);  
00037 
00038     
00039     HBaseModel*     m_pHoopsModel;  
00044     HC_KEY          m_include_key;  
00045 
00046 // Operations
00047 public:
00048 
00050     HBaseModel* GetHoopsModel( void ) { return m_pHoopsModel; }
00051 
00054     HC_KEY      GetIncludeKey( void) { return m_include_key; }
00055 
00056 // Overrides
00057     // ClassWizard generated virtual function overrides
00058     //{{AFX_VIRTUAL(CHoopsDoc)
00059     public:
00060     virtual BOOL OnNewDocument();    
00061     virtual void Serialize(CArchive& ar);  
00062 #ifdef _UNICODE
00063     virtual BOOL OnOpenDocument(__wchar_t const * lpszPathName);  
00064 #ifdef H_USHORT_OVERLOAD
00065     virtual BOOL OnOpenDocument(unsigned short const * lpszPathName);  
00066 #endif
00067 #else
00068     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);  
00069 #endif
00070     //}}AFX_VIRTUAL
00071 
00072 // Implementation
00073 public:
00074     virtual ~CHoopsDoc();
00075 #ifdef _DEBUG
00076     virtual void AssertValid() const;
00077     virtual void Dump(CDumpContext& dc) const;
00078 #endif
00079 
00080 protected:
00081 
00082 // Generated message map functions
00083 protected:
00084     //{{AFX_MSG(CHoopsDoc)
00085         // NOTE - the ClassWizard will add and remove member functions here.
00086         //    DO NOT EDIT what you see in these blocks of generated code !
00087     //}}AFX_MSG
00088     DECLARE_MESSAGE_MAP()
00089 };
00090 
00091 #endif
00092