Blender V2.61 - r43446
Defines | Functions | Variables

fmodifier_ui.c File Reference

#include <string.h>
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "ED_anim_api.h"
#include "ED_util.h"

Go to the source code of this file.

Defines

#define UI_FLT_MAX   10000.0f
#define B_REDR   1
#define B_FMODIFIER_REDRAW   20
#define DRAW_BACKDROP(height)
#define BINARYSEARCH_FRAMEEQ_THRESH   0.0001f

Functions

static void validate_fmodifier_cb (bContext *UNUSED(C), void *fcm_v, void *UNUSED(arg))
static void delete_fmodifier_cb (bContext *C, void *fmods_v, void *fcm_v)
static void draw_modifier__generator (uiLayout *layout, ID *id, FModifier *fcm, short width)
static void draw_modifier__fn_generator (uiLayout *layout, ID *id, FModifier *fcm, short UNUSED(width))
static void draw_modifier__cycles (uiLayout *layout, ID *id, FModifier *fcm, short UNUSED(width))
static void draw_modifier__noise (uiLayout *layout, ID *id, FModifier *fcm, short UNUSED(width))
static int binarysearch_fcm_envelopedata_index (FCM_EnvelopeData array[], float frame, int arraylen, short *exists)
static void fmod_envelope_addpoint_cb (bContext *C, void *fcm_dv, void *UNUSED(arg))
static void fmod_envelope_deletepoint_cb (bContext *UNUSED(C), void *fcm_dv, void *ind_v)
static void draw_modifier__envelope (uiLayout *layout, ID *id, FModifier *fcm, short UNUSED(width))
static void draw_modifier__limits (uiLayout *layout, ID *id, FModifier *fcm, short UNUSED(width))
static void draw_modifier__stepped (uiLayout *layout, ID *id, FModifier *fcm, short UNUSED(width))
void ANIM_uiTemplate_fmodifier_draw (uiLayout *layout, ID *id, ListBase *modifiers, FModifier *fcm)
void free_fmodifiers_copybuf (void)
short ANIM_fmodifiers_copy_to_buf (ListBase *modifiers, short active)
short ANIM_fmodifiers_paste_from_buf (ListBase *modifiers, short replace)

Variables

static ListBase fmodifier_copypaste_buf = {NULL, NULL}

Detailed Description

Definition in file fmodifier_ui.c.


Define Documentation

#define B_FMODIFIER_REDRAW   20

Definition at line 73 of file fmodifier_ui.c.

Referenced by draw_modifier__envelope(), and draw_modifier__generator().

#define B_REDR   1
#define BINARYSEARCH_FRAMEEQ_THRESH   0.0001f

Definition at line 305 of file fmodifier_ui.c.

Referenced by binarysearch_fcm_envelopedata_index().

#define DRAW_BACKDROP (   height)
Value:
{ \
        uiDefBut(block, ROUNDBOX, B_REDR, "", -3, yco-height, width+3, height-1, NULL, 5.0, 0.0, 12.0, (float)rb_col, ""); \
    }

Definition at line 77 of file fmodifier_ui.c.

#define UI_FLT_MAX   10000.0f

Definition at line 70 of file fmodifier_ui.c.

Referenced by draw_modifier__envelope(), and draw_modifier__generator().


Function Documentation

short ANIM_fmodifiers_copy_to_buf ( ListBase modifiers,
short  active 
)
short ANIM_fmodifiers_paste_from_buf ( ListBase modifiers,
short  replace 
)
void ANIM_uiTemplate_fmodifier_draw ( uiLayout layout,
ID id,
ListBase modifiers,
FModifier fcm 
)
static int binarysearch_fcm_envelopedata_index ( FCM_EnvelopeData  array[],
float  frame,
int  arraylen,
short *  exists 
) [static]

Definition at line 310 of file fmodifier_ui.c.

References BINARYSEARCH_FRAMEEQ_THRESH, IS_EQT, NULL, and FCM_EnvelopeData::time.

Referenced by fmod_envelope_addpoint_cb().

static void delete_fmodifier_cb ( bContext C,
void *  fmods_v,
void *  fcm_v 
) [static]
static void draw_modifier__cycles ( uiLayout layout,
ID id,
FModifier fcm,
short   UNUSEDwidth 
) [static]
static void draw_modifier__envelope ( uiLayout layout,
ID id,
FModifier fcm,
short   UNUSEDwidth 
) [static]
static void draw_modifier__fn_generator ( uiLayout layout,
ID id,
FModifier fcm,
short   UNUSEDwidth 
) [static]
static void draw_modifier__generator ( uiLayout layout,
ID id,
FModifier fcm,
short  width 
) [static]
static void draw_modifier__limits ( uiLayout layout,
ID id,
FModifier fcm,
short   UNUSEDwidth 
) [static]
static void draw_modifier__noise ( uiLayout layout,
ID id,
FModifier fcm,
short   UNUSEDwidth 
) [static]
static void draw_modifier__stepped ( uiLayout layout,
ID id,
FModifier fcm,
short   UNUSEDwidth 
) [static]
static void fmod_envelope_addpoint_cb ( bContext C,
void *  fcm_dv,
void *  UNUSEDarg 
) [static]
static void fmod_envelope_deletepoint_cb ( bContext UNUSEDC,
void *  fcm_dv,
void *  ind_v 
) [static]
void free_fmodifiers_copybuf ( void  )

Definition at line 745 of file fmodifier_ui.c.

References free_fmodifiers().

Referenced by graph_fmodifier_copy_exec(), nla_fmodifier_copy_exec(), and WM_exit_ext().

static void validate_fmodifier_cb ( bContext UNUSEDC,
void *  fcm_v,
void *  UNUSEDarg 
) [static]

Variable Documentation

ListBase fmodifier_copypaste_buf = {NULL, NULL} [static]

Definition at line 740 of file fmodifier_ui.c.