Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
SolidgraphDoc.h
Package: solidgraph_sources.zip [view]
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 1k
Category:
Graph program
Development Platform:
Visual C++
- // 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;