Blender  V2.93
Classes | Typedefs | Enumerations | Functions | Variables
graph_slider_ops.c File Reference
#include <float.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "UI_interface.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_numinput.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "graph_intern.h"

Go to the source code of this file.

Classes

struct  tDecimateGraphOp
 
struct  tBeztCopyData
 

Typedefs

typedef struct tDecimateGraphOp tDecimateGraphOp
 
typedef struct tBeztCopyData tBeztCopyData
 
typedef enum tDecimModes tDecimModes
 

Enumerations

enum  tDecimModes { DECIM_RATIO = 1 , DECIM_ERROR }
 

Functions

static void decimate_graph_keys (bAnimContext *ac, float remove_ratio, float error_sq_max)
 
static void decimate_reset_bezts (tDecimateGraphOp *dgo)
 
static void decimate_exit (bContext *C, wmOperator *op)
 
static void decimate_draw_status_header (wmOperator *op, tDecimateGraphOp *dgo)
 
static void decimate_mouse_update_percentage (tDecimateGraphOp *dgo, wmOperator *op, const wmEvent *event)
 
static int graphkeys_decimate_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static void graphkeys_decimate_modal_update (bContext *C, wmOperator *op)
 
static int graphkeys_decimate_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int graphkeys_decimate_exec (bContext *C, wmOperator *op)
 
static bool graphkeys_decimate_poll_property (const bContext *UNUSED(C), wmOperator *op, const PropertyRNA *prop)
 
static char * graphkeys_decimate_desc (bContext *UNUSED(C), wmOperatorType *UNUSED(op), PointerRNA *ptr)
 
void GRAPH_OT_decimate (wmOperatorType *ot)
 

Variables

static const EnumPropertyItem decimate_mode_items []
 

Typedef Documentation

◆ tBeztCopyData

typedef struct tBeztCopyData tBeztCopyData

◆ tDecimateGraphOp

◆ tDecimModes

typedef enum tDecimModes tDecimModes

Enumeration Type Documentation

◆ tDecimModes

Enumerator
DECIM_RATIO 
DECIM_ERROR 

Definition at line 105 of file graph_slider_ops.c.

Function Documentation

◆ decimate_draw_status_header()

static void decimate_draw_status_header ( wmOperator op,
tDecimateGraphOp dgo 
)
static

◆ decimate_exit()

static void decimate_exit ( bContext C,
wmOperator op 
)
static

◆ decimate_graph_keys()

static void decimate_graph_keys ( bAnimContext ac,
float  remove_ratio,
float  error_sq_max 
)
static

◆ decimate_mouse_update_percentage()

static void decimate_mouse_update_percentage ( tDecimateGraphOp dgo,
wmOperator op,
const wmEvent event 
)
static

◆ decimate_reset_bezts()

static void decimate_reset_bezts ( tDecimateGraphOp dgo)
static

◆ GRAPH_OT_decimate()

void GRAPH_OT_decimate ( wmOperatorType ot)

◆ graphkeys_decimate_desc()

static char* graphkeys_decimate_desc ( bContext UNUSEDC,
wmOperatorType UNUSEDop,
PointerRNA ptr 
)
static

Definition at line 452 of file graph_slider_ops.c.

References BLI_strdup(), DECIM_ERROR, NULL, ptr, and RNA_enum_get().

Referenced by GRAPH_OT_decimate().

◆ graphkeys_decimate_exec()

static int graphkeys_decimate_exec ( bContext C,
wmOperator op 
)
static

◆ graphkeys_decimate_invoke()

static int graphkeys_decimate_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ graphkeys_decimate_modal()

static int graphkeys_decimate_modal ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ graphkeys_decimate_modal_update()

static void graphkeys_decimate_modal_update ( bContext C,
wmOperator op 
)
static

◆ graphkeys_decimate_poll_property()

static bool graphkeys_decimate_poll_property ( const bContext UNUSEDC,
wmOperator op,
const PropertyRNA prop 
)
static

Variable Documentation

◆ decimate_mode_items

const EnumPropertyItem decimate_mode_items[]
static
Initial value:
= {
"RATIO",
0,
"Ratio",
"Use a percentage to specify how many keyframes you want to remove"},
"ERROR",
0,
"Error Margin",
"Use an error margin to specify how much the curve is allowed to deviate from the original "
"path"},
{0, NULL, 0, NULL, NULL},
}
@ DECIM_RATIO
@ DECIM_ERROR

Definition at line 466 of file graph_slider_ops.c.

Referenced by GRAPH_OT_decimate().