Blender V2.61 - r43446
Defines | Functions

graph_draw.c File Reference

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <float.h>
#include <unistd.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_space_types.h"
#include "DNA_windowmanager_types.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_fcurve.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "ED_anim_api.h"
#include "graph_intern.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"

Go to the source code of this file.

Defines

#define drawFCurveFade(fcu)   ( ((fcu)->flag & FCURVE_SELECTED)? 1.0f : 0.25f )
#define cpackA(intVC, alpha)

Functions

static void draw_fcurve_modifier_controls_envelope (FModifier *fcm, View2D *v2d)
static void draw_fcurve_vertices_keyframes (FCurve *fcu, SpaceIpo *UNUSED(sipo), View2D *v2d, short edit, short sel)
static void draw_fcurve_handle_control (float x, float y, float xscale, float yscale, float hsize)
static void draw_fcurve_vertices_handles (FCurve *fcu, SpaceIpo *sipo, View2D *v2d, short sel, short sel_handle_only)
static void set_fcurve_vertex_color (FCurve *fcu, short sel)
static void draw_fcurve_vertices (SpaceIpo *sipo, ARegion *ar, FCurve *fcu, short do_handles, short sel_handle_only)
static int draw_fcurve_handles_check (SpaceIpo *sipo, FCurve *fcu)
static void draw_fcurve_handles (SpaceIpo *sipo, FCurve *fcu)
static void draw_fcurve_sample_control (float x, float y, float xscale, float yscale, float hsize)
static void draw_fcurve_samples (SpaceIpo *sipo, ARegion *ar, FCurve *fcu)
static void draw_fcurve_curve (bAnimContext *ac, ID *id, FCurve *fcu, View2D *v2d, View2DGrid *grid)
static void draw_fcurve_curve_samples (bAnimContext *ac, ID *id, FCurve *fcu, View2D *v2d)
static void draw_fcurve_curve_bezts (bAnimContext *ac, ID *id, FCurve *fcu, View2D *v2d)
void graph_draw_ghost_curves (bAnimContext *ac, SpaceIpo *sipo, ARegion *ar)
void graph_draw_curves (bAnimContext *ac, SpaceIpo *sipo, ARegion *ar, View2DGrid *grid, short sel)
void graph_draw_channel_names (bContext *C, bAnimContext *ac, ARegion *ar)

Detailed Description

Definition in file graph_draw.c.


Define Documentation

#define cpackA (   intVC,
  alpha 
)
Value:
{                                                                         \
        float _cpackCol[3];                                                   \
        cpack_to_rgb(intVC, &_cpackCol[0], &_cpackCol[1], &_cpackCol[2]);     \
        glColor4f(_cpackCol[0], _cpackCol[1], _cpackCol[2], alpha);           \
    }

Definition at line 81 of file graph_draw.c.

#define drawFCurveFade (   fcu)    ( ((fcu)->flag & FCURVE_SELECTED)? 1.0f : 0.25f )

Definition at line 75 of file graph_draw.c.

Referenced by draw_fcurve_handles(), graph_draw_curves(), and set_fcurve_vertex_color().


Function Documentation

static void draw_fcurve_curve ( bAnimContext ac,
ID id,
FCurve fcu,
View2D v2d,
View2DGrid grid 
) [static]
static void draw_fcurve_curve_bezts ( bAnimContext ac,
ID id,
FCurve fcu,
View2D v2d 
) [static]
static void draw_fcurve_curve_samples ( bAnimContext ac,
ID id,
FCurve fcu,
View2D v2d 
) [static]
static void draw_fcurve_handle_control ( float  x,
float  y,
float  xscale,
float  yscale,
float  hsize 
) [static]

Definition at line 184 of file graph_draw.c.

Referenced by draw_fcurve_vertices_handles().

static void draw_fcurve_handles ( SpaceIpo sipo,
FCurve fcu 
) [static]
static int draw_fcurve_handles_check ( SpaceIpo sipo,
FCurve fcu 
) [static]
static void draw_fcurve_modifier_controls_envelope ( FModifier fcm,
View2D v2d 
) [static]
static void draw_fcurve_sample_control ( float  x,
float  y,
float  xscale,
float  yscale,
float  hsize 
) [static]

Definition at line 427 of file graph_draw.c.

Referenced by draw_fcurve_samples().

static void draw_fcurve_samples ( SpaceIpo sipo,
ARegion ar,
FCurve fcu 
) [static]
static void draw_fcurve_vertices ( SpaceIpo sipo,
ARegion ar,
FCurve fcu,
short  do_handles,
short  sel_handle_only 
) [static]
static void draw_fcurve_vertices_handles ( FCurve fcu,
SpaceIpo sipo,
View2D v2d,
short  sel,
short  sel_handle_only 
) [static]
static void draw_fcurve_vertices_keyframes ( FCurve fcu,
SpaceIpo UNUSEDsipo,
View2D v2d,
short  edit,
short  sel 
) [static]
void graph_draw_channel_names ( bContext C,
bAnimContext ac,
ARegion ar 
)
void graph_draw_curves ( bAnimContext ac,
SpaceIpo sipo,
ARegion ar,
View2DGrid grid,
short  sel 
)
void graph_draw_ghost_curves ( bAnimContext ac,
SpaceIpo sipo,
ARegion ar 
)
static void set_fcurve_vertex_color ( FCurve fcu,
short  sel 
) [static]