Blender V2.61 - r43446
Functions

scene.c File Reference

#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_group_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_callbacks.h"
#include "BKE_anim.h"
#include "BKE_animsys.h"
#include "BKE_depsgraph.h"
#include "BKE_global.h"
#include "BKE_group.h"
#include "BKE_idprop.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_pointcache.h"
#include "BKE_scene.h"
#include "BKE_sequencer.h"
#include "BKE_world.h"
#include "BKE_sound.h"
#include "RE_engine.h"
#include <sys/time.h>

Go to the source code of this file.

Functions

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

Detailed Description

Definition in file scene.c.


Function Documentation

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

Definition at line 1177 of file scene.c.

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

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 ( Scene scene)
float BKE_frame_to_ctime ( Scene scene,
const float  frame 
)
Scene* copy_scene ( Scene sce,
int  type 
) [read]
void free_avicodecdata ( AviCodecData acd)
void free_qtcodecdata ( QuicktimeCodecData qcd)

Definition at line 102 of file scene.c.

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

Referenced by free_scene().

void free_scene ( Scene sce)
float get_render_aosss_error ( 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 ( 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 ( RenderData r,
int  samples 
)
int get_render_subsurf_level ( RenderData r,
int  lvl 
)
int next_object ( Scene **  scene,
int  val,
Base **  base,
Object **  ob 
)
Base* object_in_scene ( Object ob,
Scene sce 
) [read]
Base* scene_add_base ( Scene sce,
Object ob 
) [read]
SceneRenderLayer* scene_add_render_layer ( Scene sce,
const char *  name 
) [read]
int scene_camera_switch_update ( Scene scene)
int scene_check_setscene ( Main bmain,
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 ( Scene sce)
Object* scene_find_camera ( Scene sc) [read]
char* scene_find_last_marker_name ( 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 ( Scene scene,
int  frame 
)
int scene_remove_render_layer ( Main bmain,
Scene scene,
SceneRenderLayer srl 
)
void scene_select_base ( Scene sce,
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().

static void scene_update_drivers ( Main UNUSEDbmain,
Scene scene 
) [static]
void scene_update_for_newframe ( Main bmain,
Scene sce,
unsigned int  lay 
)
void scene_update_tagged ( Main bmain,
Scene scene 
)
static void scene_update_tagged_recursive ( Main bmain,
Scene scene,
Scene scene_parent 
) [static]
int scene_use_new_shading_nodes ( Scene scene)
void set_scene_bg ( Main bmain,
Scene scene 
)
Scene* set_scene_name ( 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 ( Main bmain,
Scene sce,
Scene newsce 
)