Blender V2.61 - r43446

collada_utils.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * Contributor(s): Chingiz Dyussenov, Arystanbek Dyussenov, Nathan Letwory.
00019  *
00020  * ***** END GPL LICENSE BLOCK *****
00021  */
00022 
00027 #ifndef __BC_UTILS_H__
00028 #define __BC_UTILS_H__
00029 
00030 #include "COLLADAFWMeshPrimitive.h"
00031 #include "COLLADAFWGeometry.h"
00032 #include "COLLADAFWFloatOrDoubleArray.h"
00033 #include "COLLADAFWTypes.h"
00034 
00035 #include <vector>
00036 #include <map>
00037 
00038 #include "DNA_object_types.h"
00039 #include "DNA_customdata_types.h"
00040 #include "DNA_texture_types.h"
00041 #include "BKE_context.h"
00042 
00043 typedef std::map<COLLADAFW::TextureMapId, std::vector<MTex*> > TexIndexTextureArrayMap;
00044 
00045 extern float bc_get_float_value(const COLLADAFW::FloatOrDoubleArray& array, unsigned int index);
00046 
00047 extern int bc_test_parent_loop(Object *par, Object *ob);
00048 extern int bc_set_parent(Object *ob, Object *par, bContext *C, bool is_parent_space=true);
00049 extern char *bc_CustomData_get_layer_name(const CustomData *data, int type, int n);
00050 extern char *bc_CustomData_get_active_layer_name(const CustomData *data, int type);
00051 
00052 #endif