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

graph_select.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_utildefines.h"
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "BKE_fcurve.h"
#include "BKE_nla.h"
#include "BKE_context.h"
#include "UI_view2d.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_markers.h"
#include "WM_api.h"
#include "WM_types.h"
#include "graph_intern.h"

Go to the source code of this file.

Classes

struct  tNearestVertInfo

Defines

#define GVERTSEL_TOL   10

Typedefs

typedef struct tNearestVertInfo tNearestVertInfo
typedef enum eGraphVertIndex eGraphVertIndex

Enumerations

enum  eGraphVertIndex { NEAREST_HANDLE_LEFT = -1, NEAREST_HANDLE_KEY, NEAREST_HANDLE_RIGHT }

Functions

static void deselect_graph_keys (bAnimContext *ac, short test, short sel, short do_channels)
static int graphkeys_deselectall_exec (bContext *C, wmOperator *op)
void GRAPH_OT_select_all_toggle (wmOperatorType *ot)
static void borderselect_graphkeys (bAnimContext *ac, rcti rect, short mode, short selectmode, short incl_handles)
static int graphkeys_borderselect_exec (bContext *C, wmOperator *op)
void GRAPH_OT_select_border (wmOperatorType *ot)
static void markers_selectkeys_between (bAnimContext *ac)
static void columnselect_graph_keys (bAnimContext *ac, short mode)
static int graphkeys_columnselect_exec (bContext *C, wmOperator *op)
void GRAPH_OT_select_column (wmOperatorType *ot)
static int graphkeys_select_linked_exec (bContext *C, wmOperator *UNUSED(op))
void GRAPH_OT_select_linked (wmOperatorType *ot)
static void select_moreless_graph_keys (bAnimContext *ac, short mode)
static int graphkeys_select_more_exec (bContext *C, wmOperator *UNUSED(op))
void GRAPH_OT_select_more (wmOperatorType *ot)
static int graphkeys_select_less_exec (bContext *C, wmOperator *UNUSED(op))
void GRAPH_OT_select_less (wmOperatorType *ot)
static void graphkeys_select_leftright (bAnimContext *ac, short leftright, short select_mode)
static int graphkeys_select_leftright_exec (bContext *C, wmOperator *op)
static int graphkeys_select_leftright_invoke (bContext *C, wmOperator *op, wmEvent *event)
void GRAPH_OT_select_leftright (wmOperatorType *ot)
static int fcurve_handle_sel_check (SpaceIpo *sipo, BezTriple *bezt)
static void nearest_fcurve_vert_store (ListBase *matches, View2D *v2d, FCurve *fcu, BezTriple *bezt, FPoint *fpt, short hpoint, const int mval[2])
static void get_nearest_fcurve_verts_list (bAnimContext *ac, const int mval[2], ListBase *matches)
static tNearestVertInfoget_best_nearest_fcurve_vert (ListBase *matches)
static tNearestVertInfofind_nearest_fcurve_vert (bAnimContext *ac, const int mval[2])
static void mouse_graph_keys (bAnimContext *ac, const int mval[2], short select_mode, short curves_only)
static void graphkeys_mselect_column (bAnimContext *ac, const int mval[2], short select_mode)
static int graphkeys_clickselect_invoke (bContext *C, wmOperator *op, wmEvent *event)
void GRAPH_OT_clickselect (wmOperatorType *ot)

Variables

static EnumPropertyItem prop_column_select_types []
static EnumPropertyItem prop_graphkeys_leftright_select_types []

Detailed Description

Definition in file graph_select.c.


Define Documentation

#define GVERTSEL_TOL   10

Definition at line 902 of file graph_select.c.

Referenced by nearest_fcurve_vert_store().


Typedef Documentation


Enumeration Type Documentation

Enumerator:
NEAREST_HANDLE_LEFT 
NEAREST_HANDLE_KEY 
NEAREST_HANDLE_RIGHT 

Definition at line 894 of file graph_select.c.


Function Documentation

static void borderselect_graphkeys ( bAnimContext ac,
rcti  rect,
short  mode,
short  selectmode,
short  incl_handles 
) [static]
static void columnselect_graph_keys ( bAnimContext ac,
short  mode 
) [static]
static void deselect_graph_keys ( bAnimContext ac,
short  test,
short  sel,
short  do_channels 
) [static]
static int fcurve_handle_sel_check ( SpaceIpo sipo,
BezTriple bezt 
) [static]
static tNearestVertInfo* find_nearest_fcurve_vert ( bAnimContext ac,
const int  mval[2] 
) [static]
static tNearestVertInfo* get_best_nearest_fcurve_vert ( ListBase matches) [static]
static void get_nearest_fcurve_verts_list ( bAnimContext ac,
const int  mval[2],
ListBase matches 
) [static]
void GRAPH_OT_clickselect ( wmOperatorType ot)
void GRAPH_OT_select_all_toggle ( wmOperatorType ot)
void GRAPH_OT_select_border ( wmOperatorType ot)
void GRAPH_OT_select_column ( wmOperatorType ot)
void GRAPH_OT_select_leftright ( wmOperatorType ot)
void GRAPH_OT_select_less ( wmOperatorType ot)
void GRAPH_OT_select_linked ( wmOperatorType ot)
void GRAPH_OT_select_more ( wmOperatorType ot)
static int graphkeys_borderselect_exec ( bContext C,
wmOperator op 
) [static]
static int graphkeys_clickselect_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int graphkeys_columnselect_exec ( bContext C,
wmOperator op 
) [static]
static int graphkeys_deselectall_exec ( bContext C,
wmOperator op 
) [static]
static void graphkeys_mselect_column ( bAnimContext ac,
const int  mval[2],
short  select_mode 
) [static]
static void graphkeys_select_leftright ( bAnimContext ac,
short  leftright,
short  select_mode 
) [static]
static int graphkeys_select_leftright_exec ( bContext C,
wmOperator op 
) [static]
static int graphkeys_select_leftright_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int graphkeys_select_less_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int graphkeys_select_linked_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int graphkeys_select_more_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void markers_selectkeys_between ( bAnimContext ac) [static]
static void mouse_graph_keys ( bAnimContext ac,
const int  mval[2],
short  select_mode,
short  curves_only 
) [static]
static void nearest_fcurve_vert_store ( ListBase matches,
View2D v2d,
FCurve fcu,
BezTriple bezt,
FPoint fpt,
short  hpoint,
const int  mval[2] 
) [static]
static void select_moreless_graph_keys ( bAnimContext ac,
short  mode 
) [static]

Variable Documentation

Initial value:
 {
    {GRAPHKEYS_COLUMNSEL_KEYS, "KEYS", 0, "On Selected Keyframes", ""},
    {GRAPHKEYS_COLUMNSEL_CFRA, "CFRA", 0, "On Current Frame", ""},
    {GRAPHKEYS_COLUMNSEL_MARKERS_COLUMN, "MARKERS_COLUMN", 0, "On Selected Markers", ""},
    {GRAPHKEYS_COLUMNSEL_MARKERS_BETWEEN, "MARKERS_BETWEEN", 0, "Between Min/Max Selected Markers", ""},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 382 of file graph_select.c.

Initial value:
 {
    {GRAPHKEYS_LRSEL_TEST, "CHECK", 0, "Check if Select Left or Right", ""},
    {GRAPHKEYS_LRSEL_LEFT, "LEFT", 0, "Before current frame", ""},
    {GRAPHKEYS_LRSEL_RIGHT, "RIGHT", 0, "After current frame", ""},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 727 of file graph_select.c.