SolidgraphDoc.h
上传用户:kairuinn
上传日期:2009-02-07
资源大小:2922k
文件大小:1k
- // SolidgraphDoc.h : interface of the CSolidgraphDoc class
- //
- #pragma once
- //#ifndef __PRECISION__
- #define PREC_COUNT 6
- static float precisions[PREC_COUNT] = {0.001f, 0.01f, 0.1f, 1.0f, 10.0f, 100.0f};
- #define __PRECISION__
- //#endif
- typedef struct
- {
- unsigned char CurrentLayer;
- unsigned char CurrentColor;
- unsigned char CurrentLineThickness;
- unsigned char CurrentLineType;
- unsigned char CurrentPrecision;
- } SCENE_SETUPS;
- class CSolidgraphDoc : public CDocument
- {
- protected: // create from serialization only
- CSolidgraphDoc();
- DECLARE_DYNCREATE(CSolidgraphDoc)
- private:
- SCENE_SETUPS m_scene_setups;
- // Attributes
- public:
- virtual BOOL IsModified();
- // Operations
- public:
- void SetSceneSetups(const SCENE_SETUPS&);
- void GetSceneSetups(SCENE_SETUPS&);
- // Overrides
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- // Implementation
- public:
- virtual ~CSolidgraphDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
- virtual void OnCloseDocument();
- afx_msg void OnDxfExport();
- afx_msg void OnDxfImport();
- afx_msg void OnSTLExport();
- afx_msg void OnSTLImport();
- };
- extern CSolidgraphDoc* global_3D_document;