Blender V2.61 - r43446
Defines | Functions

space_time.c File Reference

#include <string.h>
#include <stdio.h>
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_dlrbTree.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_screen.h"
#include "BKE_pointcache.h"
#include "ED_anim_api.h"
#include "ED_keyframes_draw.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "ED_space_api.h"
#include "ED_markers.h"
#include "time_intern.h"

Go to the source code of this file.

Defines

#define CACHE_DRAW_HEIGHT   3.0f

Functions

static void time_draw_sfra_efra (Scene *scene, View2D *v2d)
static void time_draw_cache (SpaceTime *stime, Object *ob)
static void time_cache_free (SpaceTime *stime)
static void time_cache_refresh (SpaceTime *stime)
static ActKeyColumntime_cfra_find_ak (ActKeyColumn *ak, float cframe)
static void time_draw_idblock_keyframes (View2D *v2d, ID *id, short onlysel)
static void time_draw_keyframes (const bContext *C, SpaceTime *stime, ARegion *ar)
static void time_refresh (const bContext *UNUSED(C), ScrArea *sa)
static void time_listener (ScrArea *sa, wmNotifier *wmn)
static void time_main_area_init (wmWindowManager *wm, ARegion *ar)
static void time_main_area_draw (const bContext *C, ARegion *ar)
static void time_main_area_listener (ARegion *ar, wmNotifier *wmn)
static void time_header_area_init (wmWindowManager *UNUSED(wm), ARegion *ar)
static void time_header_area_draw (const bContext *C, ARegion *ar)
static void time_header_area_listener (ARegion *ar, wmNotifier *wmn)
static SpaceLinktime_new (const bContext *C)
static void time_free (SpaceLink *sl)
static void time_init (wmWindowManager *UNUSED(wm), ScrArea *sa)
static SpaceLinktime_duplicate (SpaceLink *sl)
void ED_spacetype_time (void)

Detailed Description

Definition in file space_time.c.


Define Documentation

#define CACHE_DRAW_HEIGHT   3.0f

Definition at line 93 of file space_time.c.

Referenced by time_draw_cache().


Function Documentation

void ED_spacetype_time ( void  )
static void time_cache_free ( SpaceTime stime) [static]
static void time_cache_refresh ( SpaceTime stime) [static]

Definition at line 249 of file space_time.c.

References time_cache_free().

Referenced by time_refresh().

static ActKeyColumn* time_cfra_find_ak ( ActKeyColumn ak,
float  cframe 
) [static]

Definition at line 256 of file space_time.c.

References ActKeyColumn::cfra, ActKeyColumn::left, NULL, and ActKeyColumn::right.

Referenced by time_draw_idblock_keyframes().

static void time_draw_cache ( SpaceTime stime,
Object ob 
) [static]
static void time_draw_idblock_keyframes ( View2D v2d,
ID id,
short  onlysel 
) [static]
static void time_draw_keyframes ( const bContext C,
SpaceTime stime,
ARegion ar 
) [static]
static void time_draw_sfra_efra ( Scene scene,
View2D v2d 
) [static]
static SpaceLink* time_duplicate ( SpaceLink sl) [static]

Definition at line 645 of file space_time.c.

References SpaceTime::caches, ListBase::first, ListBase::last, MEM_dupallocN(), and NULL.

Referenced by ED_spacetype_time().

static void time_free ( SpaceLink sl) [static]

Definition at line 624 of file space_time.c.

References time_cache_free().

Referenced by ED_spacetype_time().

static void time_header_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 540 of file space_time.c.

References ED_region_header().

Referenced by ED_spacetype_time().

static void time_header_area_init ( wmWindowManager UNUSEDwm,
ARegion ar 
) [static]

Definition at line 535 of file space_time.c.

References ED_region_header_init().

Referenced by ED_spacetype_time().

static void time_header_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static void time_init ( wmWindowManager UNUSEDwm,
ScrArea sa 
) [static]
static void time_listener ( ScrArea sa,
wmNotifier wmn 
) [static]
static void time_main_area_draw ( const bContext C,
ARegion ar 
) [static]
static void time_main_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static void time_main_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static SpaceLink* time_new ( const bContext C) [static]
static void time_refresh ( const bContext UNUSEDC,
ScrArea sa 
) [static]