Blender  V2.59
BKE_scene.h
Go to the documentation of this file.
00001 /*
00002  * $Id: BKE_scene.h 35921 2011-03-31 14:33:59Z campbellbarton $ 
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) 2001-2002 by NaN Holding BV.
00021  * All rights reserved.
00022  *
00023  * The Original Code is: all of this file.
00024  *
00025  * Contributor(s): none yet.
00026  *
00027  * ***** END GPL LICENSE BLOCK *****
00028  */
00029 #ifndef BKE_SCENE_H
00030 #define BKE_SCENE_H
00031 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 struct AviCodecData;
00043 struct Base;
00044 struct bglMats;
00045 struct Main;
00046 struct Object;
00047 struct QuicktimeCodecData;
00048 struct RenderData;
00049 struct Scene;
00050 struct Text;
00051 struct Text;
00052 
00053 #define SCE_COPY_NEW            0
00054 #define SCE_COPY_EMPTY          1
00055 #define SCE_COPY_LINK_OB        2
00056 #define SCE_COPY_LINK_DATA      3
00057 #define SCE_COPY_FULL           4
00058 
00059 #define SETLOOPER(_sce_basis, _sce_iter, _base) _sce_iter= _sce_basis, _base= _setlooper_base_step(&_sce_iter, NULL); _base; _base= _setlooper_base_step(&_sce_iter, _base)
00060 struct Base *_setlooper_base_step(struct Scene **sce_iter, struct Base *base);
00061 
00062 void free_avicodecdata(struct AviCodecData *acd);
00063 void free_qtcodecdata(struct QuicktimeCodecData *acd);
00064 
00065 void free_scene(struct Scene *sce);
00066 struct Scene *add_scene(const char *name);
00067 struct Base *object_in_scene(struct Object *ob, struct Scene *sce);
00068 
00069 void set_scene_bg(struct Main *bmain, struct Scene *sce);
00070 struct Scene *set_scene_name(struct Main *bmain, const char *name);
00071 
00072 struct Scene *copy_scene(struct Scene *sce, int type);
00073 void unlink_scene(struct Main *bmain, struct Scene *sce, struct Scene *newsce);
00074 
00075 int next_object(struct Scene **scene, int val, struct Base **base, struct Object **ob);
00076 struct Object *scene_find_camera(struct Scene *sc);
00077 struct Object *scene_camera_switch_find(struct Scene *scene); // DURIAN_CAMERA_SWITCH
00078 int scene_camera_switch_update(struct Scene *scene);
00079 
00080 char *scene_find_marker_name(struct Scene *scene, int frame);
00081 char *scene_find_last_marker_name(struct Scene *scene, int frame);
00082 
00083 struct Base *scene_add_base(struct Scene *sce, struct Object *ob);
00084 void scene_deselect_all(struct Scene *sce);
00085 void scene_select_base(struct Scene *sce, struct Base *selbase);
00086 
00087 /* checks for cycle, returns 1 if it's all OK */
00088 int scene_check_setscene(struct Main *bmain, struct Scene *sce);
00089 
00090 float BKE_curframe(struct Scene *scene);
00091 
00092 void scene_update_tagged(struct Main *bmain, struct Scene *sce);
00093 void scene_update_for_newframe(struct Main *bmain, struct Scene *sce, unsigned int lay);
00094 
00095 void scene_add_render_layer(struct Scene *sce);
00096 
00097 /* render profile */
00098 int get_render_subsurf_level(struct RenderData *r, int level);
00099 int get_render_child_particle_number(struct RenderData *r, int num);
00100 int get_render_shadow_samples(struct RenderData *r, int samples);
00101 float get_render_aosss_error(struct RenderData *r, float error);
00102 
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106 
00107 #endif
00108