source: OGRE/trunk/ogrenew/Tools/MayaExport/shared/include/OgreMayaOptions.h @ 657

Revision 657, 2.4 KB checked in by mattausch, 19 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1/*
2============================================================================
3This source file is part of the Ogre-Maya Tools.
4Distributed as part of Ogre (Object-oriented Graphics Rendering Engine).
5Copyright (C) 2003 Fifty1 Software Inc., Bytelords
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; either version 2
10of the License, or (at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20or 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
34namespace 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
Note: See TracBrowser for help on using the repository browser.