Blender  V2.59
ED_uvedit.h
Go to the documentation of this file.
00001 /*
00002  * $Id: ED_uvedit.h 36434 2011-05-02 11:11:57Z blendix $
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  * The Original Code is Copyright (C) 2008 Blender Foundation.
00021  * All rights reserved.
00022  * 
00023  * Contributor(s): Blender Foundation
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 
00032 #ifndef ED_UVEDIT_H
00033 #define ED_UVEDIT_H
00034 
00035 struct ARegionType;
00036 struct EditFace;
00037 struct Image;
00038 struct MTFace;
00039 struct Object;
00040 struct Scene;
00041 struct bContext;
00042 struct wmKeyConfig;
00043 
00044 /* uvedit_ops.c */
00045 void ED_operatortypes_uvedit(void);
00046 void ED_keymap_uvedit(struct wmKeyConfig *keyconf);
00047 
00048 void ED_uvedit_assign_image(struct Scene *scene, struct Object *obedit, struct Image *ima, struct Image *previma);
00049 int ED_uvedit_minmax(struct Scene *scene, struct Image *ima, struct Object *obedit, float *min, float *max);
00050 
00051 int ED_uvedit_test_silent(struct Object *obedit);
00052 int ED_uvedit_test(struct Object *obedit);
00053 
00054 /* visibility and selection */
00055 int uvedit_edge_selected(struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i);
00056 int uvedit_face_selected(struct Scene *scene, struct EditFace *efa, struct MTFace *tf);
00057 int uvedit_face_visible_nolocal(struct Scene *scene, struct EditFace *efa);
00058 int uvedit_face_visible(struct Scene *scene, struct Image *ima, struct EditFace *efa, struct MTFace *tf);
00059 int uvedit_uv_selected(struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i);
00060 void uvedit_edge_deselect(struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i);
00061 void uvedit_edge_select(struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i);
00062 void uvedit_face_deselect(struct Scene *scene, struct EditFace *efa, struct MTFace *tf);
00063 void uvedit_face_select(struct Scene *scene, struct EditFace *efa, struct MTFace *tf);
00064 void uvedit_uv_deselect(struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i);
00065 void uvedit_uv_select(struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i);
00066 
00067 
00068 int ED_uvedit_nearest_uv(struct Scene *scene, struct Object *obedit, struct Image *ima, float co[2], float uv[2]);
00069 
00070 /* uvedit_unwrap_ops.c */
00071 void ED_uvedit_live_unwrap_begin(struct Scene *scene, struct Object *obedit);
00072 void ED_uvedit_live_unwrap_re_solve(void);
00073 void ED_uvedit_live_unwrap_end(short cancel);
00074 
00075 /* single call up unwrap using scene settings, used for edge tag unwrapping */
00076 void ED_unwrap_lscm(struct Scene *scene, struct Object *obedit, const short sel);
00077 
00078 /* uvedit_draw.c */
00079 void draw_uvedit_main(struct SpaceImage *sima, struct ARegion *ar, struct Scene *scene, struct Object *obedit);
00080 
00081 /* uvedit_buttons.c */
00082 void ED_uvedit_buttons_register(struct ARegionType *art);
00083 
00084 #endif /* ED_UVEDIT_H */
00085