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_OPTIONS_H_
|
---|
24 | #define _OGREMAYA_OPTIONS_H_
|
---|
25 |
|
---|
26 | #include "OgreMayaCommon.h"
|
---|
27 |
|
---|
28 | #include <maya/MString.h>
|
---|
29 | #include <maya/MStringArray.h>
|
---|
30 |
|
---|
31 | #include <map>
|
---|
32 | #include <string>
|
---|
33 |
|
---|
34 | namespace OgreMaya {
|
---|
35 |
|
---|
36 | // using namespace std;
|
---|
37 | using std::map;
|
---|
38 | using std::string;
|
---|
39 |
|
---|
40 |
|
---|
41 | class Options {
|
---|
42 | public:
|
---|
43 | static Options& Options::instance();
|
---|
44 |
|
---|
45 | void reset();
|
---|
46 | void debugOutput();
|
---|
47 |
|
---|
48 | public:
|
---|
49 | struct KeyframeRange {
|
---|
50 | KeyframeRange(int from=0, int to=0, int step=1): from(from), to(to), step(1) {}
|
---|
51 | bool isValid() {return from>0 && to>0;}
|
---|
52 | int from;
|
---|
53 | int to;
|
---|
54 | int step;
|
---|
55 | };
|
---|
56 |
|
---|
57 | typedef map<string, KeyframeRange> KeyframeRangeMap;
|
---|
58 |
|
---|
59 | string
|
---|
60 | inFile,
|
---|
61 |
|
---|
62 | outMeshFile,
|
---|
63 | outSkelFile,
|
---|
64 | outMatFile,
|
---|
65 |
|
---|
66 | matPrefix;
|
---|
67 |
|
---|
68 | bool
|
---|
69 | verboseMode,
|
---|
70 |
|
---|
71 | exportSelected,
|
---|
72 |
|
---|
73 | exportMesh,
|
---|
74 | exportSkeleton,
|
---|
75 | exportVBA,
|
---|
76 | exportNormals,
|
---|
77 | exportColours,
|
---|
78 | exportUVs,
|
---|
79 | exportMaterial;
|
---|
80 |
|
---|
81 | KeyframeRangeMap
|
---|
82 | animations;
|
---|
83 |
|
---|
84 | bool
|
---|
85 | valid;
|
---|
86 |
|
---|
87 | private:
|
---|
88 | Options();
|
---|
89 | };
|
---|
90 |
|
---|
91 | } // namespace OgreMaya
|
---|
92 |
|
---|
93 | #define OPTIONS Options::instance()
|
---|
94 |
|
---|
95 | #endif |
---|