1 | /*
|
---|
2 | ============================================================================
|
---|
3 | This source file is part of the Ogre-Maya Tools.
|
---|
4 | Distributed as part of Ogre (Object-oriented Graphics Rendering Engine).
|
---|
5 | Copyright (C) 2003 Fifty1 Software Inc., Bytelords
|
---|
6 |
|
---|
7 | This program is free software; you can redistribute it and/or
|
---|
8 | modify it under the terms of the GNU General Public License
|
---|
9 | as published by the Free Software Foundation; either version 2
|
---|
10 | of the License, or (at your option) any later version.
|
---|
11 |
|
---|
12 | This program is distributed in the hope that it will be useful,
|
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | GNU General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License
|
---|
18 | along with this program; if not, write to the Free Software
|
---|
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
20 | or go to http://www.gnu.org/licenses/gpl.txt
|
---|
21 | ============================================================================
|
---|
22 | */
|
---|
23 | #ifndef _OGREMAYA_SCENE_H_
|
---|
24 | #define _OGREMAYA_SCENE_H_
|
---|
25 |
|
---|
26 | #include "OgreMayaCommon.h"
|
---|
27 |
|
---|
28 | #include <maya/MString.h>
|
---|
29 |
|
---|
30 | #include <string>
|
---|
31 |
|
---|
32 | namespace OgreMaya {
|
---|
33 |
|
---|
34 | // using namespace std;
|
---|
35 |
|
---|
36 | // ===========================================================================
|
---|
37 | /** \class SceneMgr
|
---|
38 | \author John Van Vliet, Fifty1 Software Inc.
|
---|
39 | \version 1.0
|
---|
40 | \date June 2003
|
---|
41 |
|
---|
42 | Loads and unloads a Maya scene for non-plugin exporters. Initializes the
|
---|
43 | Maya library if required on the first load, and cleans up the Maya library
|
---|
44 | in the destructor.
|
---|
45 | */
|
---|
46 | // ===========================================================================
|
---|
47 | class SceneMgr {
|
---|
48 | public:
|
---|
49 |
|
---|
50 | /// Constructor.
|
---|
51 | SceneMgr();
|
---|
52 |
|
---|
53 | /// Destructor.
|
---|
54 | virtual ~SceneMgr();
|
---|
55 |
|
---|
56 | /// Load the Maya scene file defined in the options (initializes Maya library first if required)
|
---|
57 | bool load();
|
---|
58 |
|
---|
59 |
|
---|
60 | protected:
|
---|
61 | bool mbInitialized;
|
---|
62 | };
|
---|
63 | }
|
---|
64 |
|
---|
65 | #endif
|
---|