|
Blender
V2.59
|
00001 /* 00002 * $Id: image_intern.h 38908 2011-08-02 04:28:05Z merwin $ 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 * 00024 * Contributor(s): Blender Foundation 00025 * 00026 * ***** END GPL LICENSE BLOCK ***** 00027 */ 00028 00034 #ifndef ED_IMAGE_INTERN_H 00035 #define ED_IMAGE_INTERN_H 00036 00037 /* internal exports only */ 00038 struct bContext; 00039 struct ARegion; 00040 struct ARegionType; 00041 struct ScrArea; 00042 struct SpaceImage; 00043 struct Object; 00044 struct Image; 00045 struct ImBuf; 00046 struct wmOperatorType; 00047 struct Scene; 00048 struct bNodeTree; 00049 00050 /* space_image.c */ 00051 struct ARegion *image_has_buttons_region(struct ScrArea *sa); 00052 struct ARegion *image_has_scope_region(struct ScrArea *sa); 00053 00054 extern const char *image_context_dir[]; /* doc access */ 00055 00056 /* image_header.c */ 00057 void image_header_buttons(const struct bContext *C, struct ARegion *ar); 00058 00059 void IMAGE_OT_toolbox(struct wmOperatorType *ot); 00060 00061 /* image_draw.c */ 00062 void draw_image_main(struct SpaceImage *sima, struct ARegion *ar, struct Scene *scene); 00063 void draw_image_info(struct ARegion *ar, int color_manage, int channels, int x, int y, char *cp, float *fp, int *zp, float *zpf); 00064 void draw_image_grease_pencil(struct bContext *C, short onlyv2d); 00065 00066 /* image_ops.c */ 00067 int space_image_main_area_poll(struct bContext *C); 00068 00069 void IMAGE_OT_view_all(struct wmOperatorType *ot); 00070 void IMAGE_OT_view_pan(struct wmOperatorType *ot); 00071 void IMAGE_OT_view_selected(struct wmOperatorType *ot); 00072 void IMAGE_OT_view_zoom(struct wmOperatorType *ot); 00073 void IMAGE_OT_view_zoom_in(struct wmOperatorType *ot); 00074 void IMAGE_OT_view_zoom_out(struct wmOperatorType *ot); 00075 void IMAGE_OT_view_zoom_ratio(struct wmOperatorType *ot); 00076 void IMAGE_OT_view_ndof(struct wmOperatorType *ot); 00077 00078 void IMAGE_OT_new(struct wmOperatorType *ot); 00079 void IMAGE_OT_open(struct wmOperatorType *ot); 00080 void IMAGE_OT_replace(struct wmOperatorType *ot); 00081 void IMAGE_OT_reload(struct wmOperatorType *ot); 00082 void IMAGE_OT_save(struct wmOperatorType *ot); 00083 void IMAGE_OT_save_as(struct wmOperatorType *ot); 00084 void IMAGE_OT_save_sequence(struct wmOperatorType *ot); 00085 void IMAGE_OT_pack(struct wmOperatorType *ot); 00086 void IMAGE_OT_unpack(struct wmOperatorType *ot); 00087 00088 void IMAGE_OT_invert(struct wmOperatorType *ot); 00089 00090 void IMAGE_OT_cycle_render_slot(struct wmOperatorType *ot); 00091 00092 void IMAGE_OT_sample(struct wmOperatorType *ot); 00093 void IMAGE_OT_sample_line(struct wmOperatorType *ot); 00094 void IMAGE_OT_curves_point_set(struct wmOperatorType *ot); 00095 00096 void IMAGE_OT_record_composite(struct wmOperatorType *ot); 00097 00098 /* image_panels.c */ 00099 struct ImageUser *ntree_get_active_iuser(struct bNodeTree *ntree); 00100 void image_buttons_register(struct ARegionType *art); 00101 void IMAGE_OT_properties(struct wmOperatorType *ot); 00102 void IMAGE_OT_scopes(struct wmOperatorType *ot); 00103 00104 #endif /* ED_IMAGE_INTERN_H */ 00105