source: golgotha/src/max_plugin/sdk_inc/impexp.h @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
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
18void ImportFile();
19void ExportFile();
20
21class ImpInterface;
22class ExpInterface;
23class 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
32class SceneImport {
33public:
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
49class SceneExport {
50public:
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_
Note: See TracBrowser for help on using the repository browser.