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