~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/collada/collada_utils.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <vector>
36
36
#include <map>
37
37
 
 
38
extern "C" {
38
39
#include "DNA_object_types.h"
 
40
#include "DNA_mesh_types.h"
39
41
#include "DNA_customdata_types.h"
40
42
#include "DNA_texture_types.h"
 
43
#include "DNA_scene_types.h"
 
44
 
 
45
#include "RNA_access.h"
 
46
 
 
47
#include "BLI_linklist.h"
 
48
#include "BLI_utildefines.h"
 
49
 
41
50
#include "BKE_context.h"
42
 
#include "DNA_scene_types.h"
43
 
 
44
 
typedef std::map<COLLADAFW::TextureMapId, std::vector<MTex*> > TexIndexTextureArrayMap;
 
51
#include "BKE_object.h"
 
52
#include "BKE_DerivedMesh.h"
 
53
#include "BKE_scene.h"
 
54
}
 
55
 
 
56
#include "ExportSettings.h"
 
57
#include "collada_internal.h"
 
58
 
 
59
typedef std::map<COLLADAFW::TextureMapId, std::vector<MTex *> > TexIndexTextureArrayMap;
45
60
 
46
61
extern float bc_get_float_value(const COLLADAFW::FloatOrDoubleArray& array, unsigned int index);
47
 
 
48
62
extern int bc_test_parent_loop(Object *par, Object *ob);
49
 
extern int bc_set_parent(Object *ob, Object *par, bContext *C, bool is_parent_space=true);
 
63
extern int bc_set_parent(Object *ob, Object *par, bContext *C, bool is_parent_space = true);
 
64
extern Object *bc_add_object(Scene *scene, int type, const char *name);
 
65
extern Mesh *bc_to_mesh_apply_modifiers(Scene *scene, Object *ob, BC_export_mesh_type export_mesh_type);
 
66
 
 
67
extern Object *bc_get_assigned_armature(Object *ob);
 
68
extern Object *bc_get_highest_selected_ancestor_or_self(LinkNode *export_set, Object *ob);
 
69
extern bool bc_is_base_node(LinkNode *export_set, Object *ob);
 
70
extern bool bc_is_in_Export_set(LinkNode *export_set, Object *ob);
 
71
extern bool bc_has_object_type(LinkNode *export_set, short obtype);
 
72
 
 
73
extern int bc_is_marked(Object *ob);
 
74
extern void bc_remove_mark(Object *ob);
 
75
extern void bc_set_mark(Object *ob);
 
76
 
50
77
extern char *bc_CustomData_get_layer_name(const CustomData *data, int type, int n);
51
78
extern char *bc_CustomData_get_active_layer_name(const CustomData *data, int type);
52
 
extern Object *bc_add_object(Scene *scene, int type, const char *name);
53
 
 
 
79
 
 
80
extern void bc_bubble_sort_by_Object_name(LinkNode *export_set);
 
81
extern bool bc_is_root_bone(Bone *aBone, bool deform_bones_only);
 
82
extern int  bc_get_active_UVLayer(Object *ob);
 
83
 
 
84
extern std::string bc_replace_string(std::string data, const std::string& pattern, const std::string& replacement); 
 
85
extern std::string bc_url_encode(std::string data); 
 
86
extern void bc_match_scale(std::vector<Object *> *objects_done, Scene &sce, UnitConverter &unit_converter);
54
87
#endif