Debian Codegraph @

src/model/ac3dmodel.h

raw symbols SCIP
1 /***************************************************************************
2 AC3DModel.h - description
3 -------------------
4 begin : june 29th, 05
5 copyright : (C) 2005-2007 by Duong Khang NGUYEN
6 email : neoneurone @ gmail com
7
8 $Id: ac3dmodel.h 375 2008-10-28 14:47:15Z neoneurone $
9 ***************************************************************************/
10
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * any later version. *
17 * *
18 ***************************************************************************/
19
20 #ifndef _OPENCITY_AC3DAC3DMODEL_H_
21 #define _OPENCITY_AC3DAC3DMODEL_H_ 1
22
23 #include "ac3dmaterial.h"
24
25 #include <vector>
26 #include <string>
27
28 using std::vector;
29 using std::string;
30
31 namespace AC3D {
32
33 class AC3DObject;
34
35 //========================================================================
36 /** An independant AC3DModel loader
37 */
38 class AC3DModel{
39 public:
40 AC3DModel(string fileName);
41
42 ~AC3DModel();
43
44 const vector<AC3DMaterial> &
45 GetVMaterial() const;
46
47 const AC3DObject* const
48 GetPObject() const;
49
50 bool IsGood() const;
51 string ToStr() const; // debug method
52
53 private:
54 bool bGood;
55 string strHeader; ///< "AC3Dx"
56 string strFileName;
57 vector<AC3DMaterial> vMaterial;
58 AC3DObject* pObject; ///< The "world" object
59
60 bool ac3dmodelParse();
61 };
62
63 }
64
65 #endif
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95