Blender V2.61 - r43446
Defines | Functions

graph_buttons.c File Reference

#include <string.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BLF_translation.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_fcurve.h"
#include "BKE_main.h"
#include "BKE_screen.h"
#include "BKE_unit.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "ED_anim_api.h"
#include "ED_keyframing.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "graph_intern.h"

Go to the source code of this file.

Defines

#define UI_FLT_MAX   10000.0f
#define B_REDR   1
#define B_IPO_DEPCHANGE   10
#define B_FMODIFIER_REDRAW   20

Functions

static void do_graph_region_buttons (bContext *UNUSED(C), void *UNUSED(arg), int event)
static int graph_panel_context (const bContext *C, bAnimListElem **ale, FCurve **fcu)
static int graph_panel_poll (const bContext *C, PanelType *UNUSED(pt))
static void graph_panel_view (const bContext *C, Panel *pa)
static void graph_panel_properties (const bContext *C, Panel *pa)
static short get_active_fcurve_keyframe_edit (FCurve *fcu, BezTriple **bezt, BezTriple **prevbezt)
static void graphedit_activekey_update_cb (bContext *C, void *fcu_ptr, void *UNUSED(bezt_ptr))
static void graphedit_activekey_handles_cb (bContext *C, void *fcu_ptr, void *bezt_ptr)
static void graph_panel_key_properties (const bContext *C, Panel *pa)
static void do_graph_region_driver_buttons (bContext *C, void *UNUSED(arg), int event)
static void driver_remove_cb (bContext *C, void *ale_v, void *UNUSED(arg))
static void driver_add_var_cb (bContext *UNUSED(C), void *driver_v, void *UNUSED(arg))
static void driver_delete_var_cb (bContext *UNUSED(C), void *driver_v, void *dvar_v)
static void driver_update_flags_cb (bContext *UNUSED(C), void *fcu_v, void *UNUSED(arg))
static int graph_panel_drivers_poll (const bContext *C, PanelType *UNUSED(pt))
static void graph_panel_driverVar__singleProp (uiLayout *layout, ID *id, DriverVar *dvar)
static void graph_panel_driverVar__rotDiff (uiLayout *layout, ID *id, DriverVar *dvar)
static void graph_panel_driverVar__locDiff (uiLayout *layout, ID *id, DriverVar *dvar)
static void graph_panel_driverVar__transChan (uiLayout *layout, ID *id, DriverVar *dvar)
static void graph_panel_drivers (const bContext *C, Panel *pa)
static void do_graph_region_modifier_buttons (bContext *C, void *UNUSED(arg), int event)
static void graph_panel_modifiers (const bContext *C, Panel *pa)
void graph_buttons_register (ARegionType *art)
static int graph_properties (bContext *C, wmOperator *UNUSED(op))
void GRAPH_OT_properties (wmOperatorType *ot)

Detailed Description

Definition in file graph_buttons.c.


Define Documentation

#define B_FMODIFIER_REDRAW   20

Definition at line 726 of file graph_buttons.c.

Referenced by do_graph_region_modifier_buttons().

#define B_IPO_DEPCHANGE   10

Definition at line 375 of file graph_buttons.c.

Referenced by do_graph_region_driver_buttons(), and graph_panel_drivers().

#define B_REDR   1

Definition at line 81 of file graph_buttons.c.

#define UI_FLT_MAX   10000.0f

Definition at line 76 of file graph_buttons.c.


Function Documentation

static void do_graph_region_buttons ( bContext UNUSEDC,
void *  UNUSEDarg,
int  event 
) [static]

Definition at line 85 of file graph_buttons.c.

Referenced by graph_panel_key_properties(), and graph_panel_properties().

static void do_graph_region_driver_buttons ( bContext C,
void *  UNUSEDarg,
int  event 
) [static]
static void do_graph_region_modifier_buttons ( bContext C,
void *  UNUSEDarg,
int  event 
) [static]

Definition at line 728 of file graph_buttons.c.

References B_FMODIFIER_REDRAW, NC_ANIMATION, NULL, and WM_event_add_notifier().

Referenced by graph_panel_modifiers().

static void driver_add_var_cb ( bContext UNUSEDC,
void *  driver_v,
void *  UNUSEDarg 
) [static]

Definition at line 415 of file graph_buttons.c.

References driver_add_new_variable().

Referenced by graph_panel_drivers().

static void driver_delete_var_cb ( bContext UNUSEDC,
void *  driver_v,
void *  dvar_v 
) [static]

Definition at line 424 of file graph_buttons.c.

References driver_free_variable().

Referenced by graph_panel_drivers().

static void driver_remove_cb ( bContext C,
void *  ale_v,
void *  UNUSEDarg 
) [static]
static void driver_update_flags_cb ( bContext UNUSEDC,
void *  fcu_v,
void *  UNUSEDarg 
) [static]
static short get_active_fcurve_keyframe_edit ( FCurve fcu,
BezTriple **  bezt,
BezTriple **  prevbezt 
) [static]

Definition at line 214 of file graph_buttons.c.

References BEZSELECTED, FCurve::bezt, i, NULL, and FCurve::totvert.

Referenced by graph_panel_key_properties().

void graph_buttons_register ( ARegionType art)
void GRAPH_OT_properties ( wmOperatorType ot)
static int graph_panel_context ( const bContext C,
bAnimListElem **  ale,
FCurve **  fcu 
) [static]
static void graph_panel_drivers ( const bContext C,
Panel pa 
) [static]
static int graph_panel_drivers_poll ( const bContext C,
PanelType UNUSEDpt 
) [static]
static void graph_panel_driverVar__locDiff ( uiLayout layout,
ID id,
DriverVar dvar 
) [static]
static void graph_panel_driverVar__rotDiff ( uiLayout layout,
ID id,
DriverVar dvar 
) [static]
static void graph_panel_driverVar__singleProp ( uiLayout layout,
ID id,
DriverVar dvar 
) [static]
static void graph_panel_driverVar__transChan ( uiLayout layout,
ID id,
DriverVar dvar 
) [static]
static void graph_panel_key_properties ( const bContext C,
Panel pa 
) [static]
static void graph_panel_modifiers ( const bContext C,
Panel pa 
) [static]
static int graph_panel_poll ( const bContext C,
PanelType UNUSEDpt 
) [static]

Definition at line 125 of file graph_buttons.c.

References graph_panel_context(), and NULL.

Referenced by graph_buttons_register().

static void graph_panel_properties ( const bContext C,
Panel pa 
) [static]
static void graph_panel_view ( const bContext C,
Panel pa 
) [static]
static int graph_properties ( bContext C,
wmOperator UNUSEDop 
) [static]
static void graphedit_activekey_handles_cb ( bContext C,
void *  fcu_ptr,
void *  bezt_ptr 
) [static]
static void graphedit_activekey_update_cb ( bContext C,
void *  fcu_ptr,
void *  UNUSEDbezt_ptr 
) [static]