1 | /**********************************************************************
|
---|
2 | *<
|
---|
3 | FILE: impexp.h
|
---|
4 |
|
---|
5 | DESCRIPTION: Includes for importing and exporting geometry files
|
---|
6 |
|
---|
7 | CREATED BY: Tom Hudson
|
---|
8 |
|
---|
9 | HISTORY: Created 26 December 1994
|
---|
10 |
|
---|
11 | *> Copyright (c) 1994, All Rights Reserved.
|
---|
12 | **********************************************************************/
|
---|
13 |
|
---|
14 |
|
---|
15 | #ifndef _IMPEXP_H_
|
---|
16 | #define _IMPEXP_H_
|
---|
17 |
|
---|
18 | void ImportFile();
|
---|
19 | void ExportFile();
|
---|
20 |
|
---|
21 | class ImpInterface;
|
---|
22 | class ExpInterface;
|
---|
23 | class Interface;
|
---|
24 |
|
---|
25 | // Returned by DoImport, DoExport
|
---|
26 | #define IMPEXP_FAIL 0
|
---|
27 | #define IMPEXP_SUCCESS 1
|
---|
28 | #define IMPEXP_CANCEL 2
|
---|
29 |
|
---|
30 | // The scene import/export classes. Right now, these are very similar, but this may change as things develop
|
---|
31 |
|
---|
32 | class SceneImport {
|
---|
33 | public:
|
---|
34 | SceneImport() {};
|
---|
35 | virtual ~SceneImport() {};
|
---|
36 | virtual int ExtCount() = 0; // Number of extemsions supported
|
---|
37 | virtual const TCHAR * Ext(int n) = 0; // Extension #n (i.e. "3DS")
|
---|
38 | virtual const TCHAR * LongDesc() = 0; // Long ASCII description (i.e. "Autodesk 3D Studio File")
|
---|
39 | virtual const TCHAR * ShortDesc() = 0; // Short ASCII description (i.e. "3D Studio")
|
---|
40 | virtual const TCHAR * AuthorName() = 0; // ASCII Author name
|
---|
41 | virtual const TCHAR * CopyrightMessage() = 0; // ASCII Copyright message
|
---|
42 | virtual const TCHAR * OtherMessage1() = 0; // Other message #1
|
---|
43 | virtual const TCHAR * OtherMessage2() = 0; // Other message #2
|
---|
44 | virtual unsigned int Version() = 0; // Version number * 100 (i.e. v3.01 = 301)
|
---|
45 | virtual void ShowAbout(HWND hWnd) = 0; // Show DLL's "About..." box
|
---|
46 | virtual int DoImport(const TCHAR *name,ImpInterface *ii,Interface *i) = 0; // Import file
|
---|
47 | };
|
---|
48 |
|
---|
49 | class SceneExport {
|
---|
50 | public:
|
---|
51 | SceneExport() {};
|
---|
52 | virtual ~SceneExport() {};
|
---|
53 | virtual int ExtCount() = 0; // Number of extemsions supported
|
---|
54 | virtual const TCHAR * Ext(int n) = 0; // Extension #n (i.e. "3DS")
|
---|
55 | virtual const TCHAR * LongDesc() = 0; // Long ASCII description (i.e. "Autodesk 3D Studio File")
|
---|
56 | virtual const TCHAR * ShortDesc() = 0; // Short ASCII description (i.e. "3D Studio")
|
---|
57 | virtual const TCHAR * AuthorName() = 0; // ASCII Author name
|
---|
58 | virtual const TCHAR * CopyrightMessage() = 0; // ASCII Copyright message
|
---|
59 | virtual const TCHAR * OtherMessage1() = 0; // Other message #1
|
---|
60 | virtual const TCHAR * OtherMessage2() = 0; // Other message #2
|
---|
61 | virtual unsigned int Version() = 0; // Version number * 100 (i.e. v3.01 = 301)
|
---|
62 | virtual void ShowAbout(HWND hWnd) = 0; // Show DLL's "About..." box
|
---|
63 | virtual int DoExport(const TCHAR *name,ExpInterface *ei,Interface *i) = 0; // Export file
|
---|
64 | };
|
---|
65 |
|
---|
66 |
|
---|
67 | #endif // _IMPEXP_H_
|
---|