Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

ac3dmodel.h

00001 /***************************************************************************
00002                           AC3DModel.h  -  description
00003           $Id: ac3dmodel.h 3 2006-06-11 08:16:14Z neoneurone $
00004                              -------------------
00005     begin                : mer juin 29 05
00006     copyright            : (C) 2005 by Duong-Khang NGUYEN
00007     email                : neoneurone @ users sourceforge net
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   any later version.                                                    *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef _OPENCITY_AC3DAC3DMODEL_H_
00020 #define _OPENCITY_AC3DAC3DMODEL_H_ 1
00021 
00022 #include "ac3dmaterial.h"
00023 
00024 #include <vector>
00025 #include <string>
00026 
00027 using std::vector;
00028 using std::string;
00029 
00030 namespace AC3D {
00031 
00032 class AC3DObject;
00033 
00034 //========================================================================
00038 class AC3DModel{
00039 public:
00040     AC3DModel(string fileName);
00041 
00042     ~AC3DModel();
00043 
00044     const vector<AC3DMaterial> &
00045     GetVMaterial() const;
00046 
00047     const AC3DObject* const
00048     GetPObject() const;
00049 
00050     bool IsGood() const;
00051     string ToStr() const;       // debug method
00052 
00053 private:
00054     bool bGood;
00055     string strHeader;           // "AC3Dx"
00056     string strFileName; 
00057     vector<AC3DMaterial> vMaterial;
00058     AC3DObject* pObject;        // The "world" object
00059 
00060     bool ac3dmodelParse();
00061 };
00062 
00063 }
00064 
00065 #endif
00066 
00067 
00068 
00069 
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 
00082 
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 

Generated on Sat Nov 11 10:21:09 2006 for OpenCity by  doxygen 1.4.2