Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions | Variables

keyframes_draw.c File Reference

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_dlrbTree.h"
#include "BLI_utildefines.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_camera_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_key_types.h"
#include "DNA_lamp_types.h"
#include "DNA_lattice_types.h"
#include "DNA_mesh_types.h"
#include "DNA_material_types.h"
#include "DNA_meta_types.h"
#include "DNA_node_types.h"
#include "DNA_particle_types.h"
#include "DNA_speaker_types.h"
#include "DNA_world_types.h"
#include "DNA_gpencil_types.h"
#include "BKE_key.h"
#include "BKE_material.h"
#include "BKE_global.h"
#include "BIF_gl.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "ED_anim_api.h"
#include "ED_keyframes_draw.h"

Go to the source code of this file.

Classes

struct  ActBeztColumn

Defines

#define MAX_ABK_BUFSIZE   4

Typedefs

typedef struct ActBeztColumn ActBeztColumn

Functions

short compare_ak_cfraPtr (void *node, void *data)
static short compare_ak_bezt (void *node, void *data)
static DLRBT_Nodenalloc_ak_bezt (void *data)
static void nupdate_ak_bezt (void *node, void *data)
static short compare_ak_gpframe (void *node, void *data)
static DLRBT_Nodenalloc_ak_gpframe (void *data)
static void nupdate_ak_gpframe (void *node, void *data)
static void add_bezt_to_keycolumns_list (DLRBT_Tree *keys, BezTriple *bezt)
static void add_gpframe_to_keycolumns_list (DLRBT_Tree *keys, bGPDframe *gpf)
static short compare_abk_bezt (void *node, void *data)
static DLRBT_Nodenalloc_abk_bezt (void *data)
static void nupdate_abk_bezt (void *node, void *data)
static BezTripleabk_get_bezt_with_value (ActBeztColumn *abk, float value)
short compare_ab_cfraPtr (void *node, void *data)
static ActKeyBlockbezts_to_new_actkeyblock (BezTriple *prev, BezTriple *beztn)
static void add_bezt_to_keyblocks_list (DLRBT_Tree *blocks, DLRBT_Tree *beztTree, BezTriple *beztn)
static void set_touched_actkeycolumn (ActKeyColumn *ak)
static void set_touched_actkeyblock (ActKeyBlock *ab)
short actkeyblock_is_valid (ActKeyBlock *ab, DLRBT_Tree *keys)
void draw_keyframe_shape (float x, float y, float xscale, float hsize, short sel, short key_type, short mode, float alpha)
static void draw_keylist (View2D *v2d, DLRBT_Tree *keys, DLRBT_Tree *blocks, float ypos, short channelLocked)
void draw_summary_channel (View2D *v2d, bAnimContext *ac, float ypos)
void draw_scene_channel (View2D *v2d, bDopeSheet *ads, Scene *sce, float ypos)
void draw_object_channel (View2D *v2d, bDopeSheet *ads, Object *ob, float ypos)
void draw_fcurve_channel (View2D *v2d, AnimData *adt, FCurve *fcu, float ypos)
void draw_agroup_channel (View2D *v2d, AnimData *adt, bActionGroup *agrp, float ypos)
void draw_action_channel (View2D *v2d, AnimData *adt, bAction *act, float ypos)
void draw_gpl_channel (View2D *v2d, bDopeSheet *ads, bGPDlayer *gpl, float ypos)
void summary_to_keylist (bAnimContext *ac, DLRBT_Tree *keys, DLRBT_Tree *blocks)
void scene_to_keylist (bDopeSheet *ads, Scene *sce, DLRBT_Tree *keys, DLRBT_Tree *blocks)
void ob_to_keylist (bDopeSheet *ads, Object *ob, DLRBT_Tree *keys, DLRBT_Tree *blocks)
void fcurve_to_keylist (AnimData *adt, FCurve *fcu, DLRBT_Tree *keys, DLRBT_Tree *blocks)
void agroup_to_keylist (AnimData *adt, bActionGroup *agrp, DLRBT_Tree *keys, DLRBT_Tree *blocks)
void action_to_keylist (AnimData *adt, bAction *act, DLRBT_Tree *keys, DLRBT_Tree *blocks)
void gpl_to_keylist (bDopeSheet *UNUSED(ads), bGPDlayer *gpl, DLRBT_Tree *keys)

Variables

static const float _unit_diamond_shape [4][2]

Detailed Description

Definition in file keyframes_draw.c.


Define Documentation

#define MAX_ABK_BUFSIZE   4

Definition at line 210 of file keyframes_draw.c.

Referenced by nupdate_abk_bezt().


Typedef Documentation

typedef struct ActBeztColumn ActBeztColumn

Function Documentation

static BezTriple* abk_get_bezt_with_value ( ActBeztColumn abk,
float  value 
) [static]
void action_to_keylist ( AnimData adt,
bAction act,
DLRBT_Tree keys,
DLRBT_Tree blocks 
)
short actkeyblock_is_valid ( ActKeyBlock ab,
DLRBT_Tree keys 
)
static void add_bezt_to_keyblocks_list ( DLRBT_Tree blocks,
DLRBT_Tree beztTree,
BezTriple beztn 
) [static]
static void add_bezt_to_keycolumns_list ( DLRBT_Tree keys,
BezTriple bezt 
) [static]
static void add_gpframe_to_keycolumns_list ( DLRBT_Tree keys,
bGPDframe gpf 
) [static]
void agroup_to_keylist ( AnimData adt,
bActionGroup agrp,
DLRBT_Tree keys,
DLRBT_Tree blocks 
)
static ActKeyBlock* bezts_to_new_actkeyblock ( BezTriple prev,
BezTriple beztn 
) [static]
short compare_ab_cfraPtr ( void *  node,
void *  data 
)

Definition at line 315 of file keyframes_draw.c.

References data, and ActKeyBlock::start.

Referenced by pose_propagate_get_boneHoldEndFrame().

static short compare_abk_bezt ( void *  node,
void *  data 
) [static]

Definition at line 236 of file keyframes_draw.c.

References ActBeztColumn::cfra, and BezTriple::vec.

Referenced by add_bezt_to_keyblocks_list(), and fcurve_to_keylist().

static short compare_ak_bezt ( void *  node,
void *  data 
) [static]

Definition at line 99 of file keyframes_draw.c.

References ActKeyColumn::cfra, and BezTriple::vec.

Referenced by add_bezt_to_keycolumns_list().

short compare_ak_cfraPtr ( void *  node,
void *  data 
)
static short compare_ak_gpframe ( void *  node,
void *  data 
) [static]

Definition at line 147 of file keyframes_draw.c.

References ActKeyColumn::cfra, and bGPDframe::framenum.

Referenced by add_gpframe_to_keycolumns_list().

void draw_action_channel ( View2D v2d,
AnimData adt,
bAction act,
float  ypos 
)
void draw_agroup_channel ( View2D v2d,
AnimData adt,
bActionGroup agrp,
float  ypos 
)
void draw_fcurve_channel ( View2D v2d,
AnimData adt,
FCurve fcu,
float  ypos 
)
void draw_gpl_channel ( View2D v2d,
bDopeSheet ads,
bGPDlayer gpl,
float  ypos 
)
void draw_keyframe_shape ( float  x,
float  y,
float  xscale,
float  hsize,
short  sel,
short  key_type,
short  mode,
float  alpha 
)
static void draw_keylist ( View2D v2d,
DLRBT_Tree keys,
DLRBT_Tree blocks,
float  ypos,
short  channelLocked 
) [static]
void draw_object_channel ( View2D v2d,
bDopeSheet ads,
Object ob,
float  ypos 
)
void draw_scene_channel ( View2D v2d,
bDopeSheet ads,
Scene sce,
float  ypos 
)
void draw_summary_channel ( View2D v2d,
bAnimContext ac,
float  ypos 
)
void fcurve_to_keylist ( AnimData adt,
FCurve fcu,
DLRBT_Tree keys,
DLRBT_Tree blocks 
)
void gpl_to_keylist ( bDopeSheet UNUSEDads,
bGPDlayer gpl,
DLRBT_Tree keys 
)
static DLRBT_Node* nalloc_abk_bezt ( void *  data) [static]
static DLRBT_Node* nalloc_ak_bezt ( void *  data) [static]
static DLRBT_Node* nalloc_ak_gpframe ( void *  data) [static]
static void nupdate_abk_bezt ( void *  node,
void *  data 
) [static]

Definition at line 263 of file keyframes_draw.c.

References ActBeztColumn::bezts, G, G_DEBUG, MAX_ABK_BUFSIZE, and ActBeztColumn::numBezts.

Referenced by fcurve_to_keylist().

static void nupdate_ak_bezt ( void *  node,
void *  data 
) [static]
static void nupdate_ak_gpframe ( void *  node,
void *  data 
) [static]
void ob_to_keylist ( bDopeSheet ads,
Object ob,
DLRBT_Tree keys,
DLRBT_Tree blocks 
)
void scene_to_keylist ( bDopeSheet ads,
Scene sce,
DLRBT_Tree keys,
DLRBT_Tree blocks 
)
static void set_touched_actkeyblock ( ActKeyBlock ab) [static]
static void set_touched_actkeycolumn ( ActKeyColumn ak) [static]
void summary_to_keylist ( bAnimContext ac,
DLRBT_Tree keys,
DLRBT_Tree blocks 
)

Variable Documentation

const float _unit_diamond_shape[4][2] [static]
Initial value:
 {
    {0.0f, 1.0f},   
    {1.0f, 0.0f},   
    {0.0f, -1.0f},  
    {-1.0f, 0.0f}   
}

Definition at line 489 of file keyframes_draw.c.

Referenced by draw_keyframe_shape().