Blender V2.61 - r43446
Defines | Functions

BKE_scene.h File Reference

Go to the source code of this file.

Defines

#define SCE_COPY_NEW   0
#define SCE_COPY_EMPTY   1
#define SCE_COPY_LINK_OB   2
#define SCE_COPY_LINK_DATA   3
#define SCE_COPY_FULL   4
#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)

Functions

struct Base_setlooper_base_step (struct Scene **sce_iter, struct Base *base)
void free_avicodecdata (struct AviCodecData *acd)
void free_qtcodecdata (struct QuicktimeCodecData *acd)
void free_scene (struct Scene *sce)
struct Sceneadd_scene (const char *name)
struct Baseobject_in_scene (struct Object *ob, struct Scene *sce)
void set_scene_bg (struct Main *bmain, struct Scene *sce)
struct Sceneset_scene_name (struct Main *bmain, const char *name)
struct Scenecopy_scene (struct Scene *sce, int type)
void unlink_scene (struct Main *bmain, struct Scene *sce, struct Scene *newsce)
int next_object (struct Scene **scene, int val, struct Base **base, struct Object **ob)
struct Objectscene_find_camera (struct Scene *sc)
struct Objectscene_camera_switch_find (struct Scene *scene)
int scene_camera_switch_update (struct Scene *scene)
char * scene_find_marker_name (struct Scene *scene, int frame)
char * scene_find_last_marker_name (struct Scene *scene, int frame)
struct Basescene_add_base (struct Scene *sce, struct Object *ob)
void scene_deselect_all (struct Scene *sce)
void scene_select_base (struct Scene *sce, struct Base *selbase)
int scene_check_setscene (struct Main *bmain, struct Scene *sce)
float BKE_curframe (struct Scene *scene)
float BKE_frame_to_ctime (struct Scene *scene, const float frame)
void scene_update_tagged (struct Main *bmain, struct Scene *sce)
void scene_update_for_newframe (struct Main *bmain, struct Scene *sce, unsigned int lay)
struct SceneRenderLayerscene_add_render_layer (struct Scene *sce, const char *name)
int scene_remove_render_layer (struct Main *main, struct Scene *scene, struct SceneRenderLayer *srl)
int get_render_subsurf_level (struct RenderData *r, int level)
int get_render_child_particle_number (struct RenderData *r, int num)
int get_render_shadow_samples (struct RenderData *r, int samples)
float get_render_aosss_error (struct RenderData *r, float error)
int scene_use_new_shading_nodes (struct Scene *scene)

Detailed Description

Since:
March 2001
Author:
nzc

Definition in file BKE_scene.h.


Define Documentation

#define SCE_COPY_EMPTY   1

Definition at line 53 of file BKE_scene.h.

Referenced by copy_scene(), and SCENE_OT_new().

#define SCE_COPY_FULL   4

Definition at line 56 of file BKE_scene.h.

Referenced by copy_scene(), scene_new_exec(), and SCENE_OT_new().

#define SCE_COPY_LINK_DATA   3

Definition at line 55 of file BKE_scene.h.

Referenced by copy_scene(), scene_new_exec(), and SCENE_OT_new().

#define SCE_COPY_LINK_OB   2

Definition at line 54 of file BKE_scene.h.

Referenced by SCENE_OT_new().

#define SCE_COPY_NEW   0

Definition at line 52 of file BKE_scene.h.

Referenced by scene_new_exec(), and SCENE_OT_new().

#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)

Function Documentation

struct Base* _setlooper_base_step ( struct Scene **  sce_iter,
struct Base base 
) [read]

Definition at line 1177 of file scene.c.

References Base::next, NULL, and Scene::set.

struct Scene* add_scene ( const char *  name) [read]

Definition at line 324 of file scene.c.

References RecastData::agentheight, RecastData::agentmaxclimb, RecastData::agentmaxslope, RecastData::agentradius, alloc_libblock(), GameDome::angle, Scene::audio, FFMpegCodecData::audio_bitrate, FFMpegCodecData::audio_channels, FFMpegCodecData::audio_mixrate, FFMpegCodecData::audio_volume, UserDef::autokey_mode, ToolSettings::autokey_mode, RenderData::bake_filter, RenderData::bake_flag, RenderData::bake_mode, RenderData::bake_normal_space, RenderData::bake_osa, RenderData::bg_stamp, BLI_init_rctf(), BLI_strncpy(), RenderData::blurfac, RenderData::border, ParticleEditSettings::brush, ParticleEditSettings::brushtype, RecastData::cellheight, RecastData::cellsize, RenderData::cfra, RenderData::color_mgt_flag, ToolSettings::cornertype, ParticleBrushData::count, ToolSettings::degr, GameData::depth, RecastData::detailsampledist, RecastData::detailsamplemaxerror, RenderData::displaymode, AudioData::distance_model, GameData::dome, DOME_FISHEYE, AudioData::doppler_factor, ToolSettings::doublimit, ParticleEditSettings::draw_step, RenderData::edgeint, RecastData::edgemaxerror, RecastData::edgemaxlen, ToolSettings::editbutflag, RenderData::efra, ParticleEditSettings::emitterdist, RenderData::engine, ToolSettings::extr_offs, GameData::eyeseparation, ParticleEditSettings::fade_frames, RenderData::ffcodecdata, RenderData::fg_stamp, RenderData::filtertype, GameData::flag, ParticleEditSettings::flag, PhysicsSettings::flag, RenderData::framapto, RenderData::frame_step, RenderData::framelen, GameData::freqplay, RenderData::frs_sec, RenderData::frs_sec_base, G, GAME_DISPLAY_LISTS, GAME_MAT_MULTITEX, RenderData::gauss, Scene::gm, GameData::gravity, PhysicsSettings::gravity, ID_SCE, RenderData::im_format, RenderData::images, ImageFormatData::imtype, ToolSettings::jointrilimit, Scene::lay, Scene::layact, GameData::levelHeight, M_PI, GameData::matmode, GameData::maxlogicstep, GameData::maxphystep, RenderData::mblur_samples, MEM_callocN(), GameData::mode, GameDome::mode, RenderData::mode, ToolSettings::normalsize, NULL, OB_SOLID, GameData::obstacleSimulation, OBSTSIMULATION_NONE, GameData::occlusionRes, RenderData::ocres, RenderData::osa, ToolSettings::particle, PE_AUTO_VELOCITY, PE_BRUSH_CUT, PE_BRUSH_NONE, PE_DEFLECT_EMITTER, PE_KEEP_LENGTHS, PE_LOCK_FIRST, PE_TOT_BRUSH, PHYS_GLOBAL_GRAVITY, Scene::physics_settings, GameData::physicsEngine, GameData::physubstep, RenderData::pic, ImageFormatData::planes, RenderData::postgamma, RenderData::posthue, RenderData::postsat, ToolSettings::proportional_size, ImageFormatData::quality, Scene::r, R_BAKE_CLEAR, R_BAKE_SPACE_TANGENT, R_COLOR_MANAGEMENT, R_DOCOMP, R_DOSEQ, R_ENVMAP, R_EXTENSION, R_FILTER_MITCH, R_GAMMA, R_IMF_IMTYPE_PNG, R_IMF_PLANES_RGB, R_OSA, R_OUTPUT_AREA, R_RAYTRACE, R_RAYTRACE_USE_INSTANCES, R_SEQ_GL_PREV, R_SHADOW, R_SSS, R_STAMP_CAMERA, R_STAMP_DATE, R_STAMP_FILENAME, R_STAMP_FRAME, R_STAMP_RENDERTIME, R_STAMP_SCENE, R_STAMP_TIME, RenderData::raytrace_options, GameData::recastData, RecastData::regionmergesize, RecastData::regionminsize, UserDef::renderdir, GameDome::res, GameDome::resbuf, ToolSettings::rings, RenderData::safety, UnitSettings::scale_length, SCE_SELECT_PATH, SCE_SELECT_VERTEX, RenderData::scemode, Main::scene, scene_add_render_layer(), ToolSettings::segments, ToolSettings::select_thresh, ParticleEditSettings::selectmode, ToolSettings::selectmode, RenderData::seq_flag, RenderData::seq_prev_type, RenderData::seq_rend_type, RenderData::sfra, RenderData::simplify_aosss, RenderData::simplify_particles, RenderData::simplify_shadowsamples, RenderData::simplify_subsurf, ParticleBrushData::size, RenderData::size, ToolSettings::skgen_angle_limit, ToolSettings::skgen_correlation_limit, SKGEN_FILTER_EXTERNAL, SKGEN_FILTER_INTERNAL, SKGEN_FILTER_SMART, SKGEN_HARMONIC, ToolSettings::skgen_length_limit, ToolSettings::skgen_length_ratio, ToolSettings::skgen_options, ToolSettings::skgen_postpro, ToolSettings::skgen_postpro_passes, ToolSettings::skgen_resolution, SKGEN_SMOOTH, SKGEN_STICK_TO_EMBEDDING, SKGEN_SUB_ANGLE, SKGEN_SUB_CORRELATION, SKGEN_SUB_LENGTH, ToolSettings::skgen_subdivisions, ToolSettings::skgen_symmetry_limit, ToolSettings::skgen_threshold_external, ToolSettings::skgen_threshold_internal, sound_create_scene(), AudioData::speed_of_sound, RenderData::stamp, RenderData::stamp_font_id, ParticleBrushData::step, ToolSettings::step, STEREO_ANAGLYPH, STEREO_NOSTEREO, GameData::stereoflag, GameData::stereomode, ParticleBrushData::strength, RenderData::threads, GameData::ticrate, GameDome::tilt, Scene::toolsettings, ParticleEditSettings::totaddkey, ParticleEditSettings::totrekey, ToolSettings::turn, U, Scene::unit, ToolSettings::unwrapper, UV_SELECT_VERTEX, ToolSettings::uv_selectmode, ToolSettings::uvcalc_cubesize, ToolSettings::uvcalc_mapalign, ToolSettings::uvcalc_mapdir, ToolSettings::uvcalc_radius, ToolSettings::vertices, RecastData::vertsperpoly, AudioData::volume, WOPHY_BULLET, RenderData::xasp, rctf::xmax, rctf::xmin, RenderData::xparts, GameData::xplay, RenderData::xsch, RenderData::yasp, rctf::ymax, rctf::ymin, RenderData::yparts, GameData::yplay, and RenderData::ysch.

Referenced by copy_scene(), and scene_new_exec().

float BKE_curframe ( struct Scene scene)
float BKE_frame_to_ctime ( struct Scene scene,
const float  frame 
)
struct Scene* copy_scene ( struct Scene sce,
int  type 
) [read]
void free_avicodecdata ( struct AviCodecData acd)
void free_qtcodecdata ( struct QuicktimeCodecData acd)

Definition at line 102 of file scene.c.

References QuicktimeCodecData::cdParms, QuicktimeCodecData::cdSize, MEM_freeN(), and NULL.

Referenced by free_scene().

void free_scene ( struct Scene sce)
float get_render_aosss_error ( struct RenderData r,
float  error 
)

Definition at line 1168 of file scene.c.

References error(), RenderData::mode, R_SIMPLIFY, and RenderData::simplify_aosss.

Referenced by occ_tree_build(), and sss_create_tree_mat().

int get_render_child_particle_number ( struct RenderData r,
int  num 
)

Definition at line 1152 of file scene.c.

References RenderData::mode, R_SIMPLIFY, and RenderData::simplify_particles.

Referenced by get_psys_child_number().

int get_render_shadow_samples ( struct RenderData r,
int  samples 
)
int get_render_subsurf_level ( struct RenderData r,
int  level 
)
int next_object ( struct Scene **  scene,
int  val,
struct Base **  base,
struct Object **  ob 
)
struct Base* object_in_scene ( struct Object ob,
struct Scene sce 
) [read]
struct Base* scene_add_base ( struct Scene sce,
struct Object ob 
) [read]
struct SceneRenderLayer* scene_add_render_layer ( struct Scene sce,
const char *  name 
) [read]
struct Object* scene_camera_switch_find ( struct Scene scene) [read]
int scene_camera_switch_update ( struct Scene scene)
int scene_check_setscene ( struct Main bmain,
struct Scene sce 
)

Definition at line 886 of file scene.c.

References ListBase::first, Scene::id, ID::next, NULL, Main::scene, and Scene::set.

Referenced by set_scene_bg().

void scene_deselect_all ( struct Scene sce)
struct Object* scene_find_camera ( struct Scene sc) [read]
char* scene_find_last_marker_name ( struct Scene scene,
int  frame 
)

Definition at line 834 of file scene.c.

References ListBase::first, TimeMarker::frame, Scene::markers, MAXFRAME, TimeMarker::name, TimeMarker::next, and NULL.

Referenced by stampdata().

char* scene_find_marker_name ( struct Scene scene,
int  frame 
)
int scene_remove_render_layer ( struct Main main,
struct Scene scene,
struct SceneRenderLayer srl 
)
void scene_select_base ( struct Scene sce,
struct Base selbase 
)

Definition at line 875 of file scene.c.

References Scene::basact, Object::flag, Base::flag, Base::object, scene_deselect_all(), and SELECT.

Referenced by add_object(), and createRepresentation().

void scene_update_for_newframe ( struct Main bmain,
struct Scene sce,
unsigned int  lay 
)
void scene_update_tagged ( struct Main bmain,
struct Scene sce 
)
int scene_use_new_shading_nodes ( struct Scene scene)
void set_scene_bg ( struct Main bmain,
struct Scene sce 
)
struct Scene* set_scene_name ( struct Main bmain,
const char *  name 
) [read]

Definition at line 604 of file scene.c.

References find_id(), G, NULL, and set_scene_bg().

Referenced by set_scene().

void unlink_scene ( struct Main bmain,
struct Scene sce,
struct Scene newsce 
)