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

poseSlide.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_dynstr.h"
#include "BLI_dlrbTree.h"
#include "BLI_utildefines.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_fcurve.h"
#include "BKE_context.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_armature.h"
#include "ED_keyframes_draw.h"
#include "ED_markers.h"
#include "ED_screen.h"
#include "armature_intern.h"

Go to the source code of this file.

Classes

struct  tPoseSlideOp
union  tPosePropagate_ModeData

Typedefs

typedef struct tPoseSlideOp tPoseSlideOp
typedef enum ePoseSlide_Modes ePoseSlide_Modes
typedef enum
ePosePropagate_Termination 
ePosePropagate_Termination
typedef union
tPosePropagate_ModeData 
tPosePropagate_ModeData

Enumerations

enum  ePoseSlide_Modes { POSESLIDE_PUSH = 0, POSESLIDE_RELAX, POSESLIDE_BREAKDOWN }
enum  ePosePropagate_Termination {
  POSE_PROPAGATE_SMART_HOLDS = 0, POSE_PROPAGATE_LAST_KEY, POSE_PROPAGATE_NEXT_KEY, POSE_PROPAGATE_BEFORE_FRAME,
  POSE_PROPAGATE_BEFORE_END, POSE_PROPAGATE_SELECTED_MARKERS
}

Functions

static int pose_slide_init (bContext *C, wmOperator *op, short mode)
static void pose_slide_exit (wmOperator *op)
static void pose_slide_refresh (bContext *C, tPoseSlideOp *pso)
static void pose_slide_apply_val (tPoseSlideOp *pso, FCurve *fcu, float *val)
static void pose_slide_apply_vec3 (tPoseSlideOp *pso, tPChanFCurveLink *pfl, float vec[3], const char propName[])
static void pose_slide_apply_props (tPoseSlideOp *pso, tPChanFCurveLink *pfl)
static void pose_slide_apply_quat (tPoseSlideOp *pso, tPChanFCurveLink *pfl)
static void pose_slide_apply (bContext *C, tPoseSlideOp *pso)
static void pose_slide_autoKeyframe (bContext *C, tPoseSlideOp *pso)
static void pose_slide_reset (tPoseSlideOp *pso)
static void pose_slide_draw_status (tPoseSlideOp *pso)
static int pose_slide_invoke_common (bContext *C, wmOperator *op, tPoseSlideOp *pso)
static int pose_slide_modal (bContext *C, wmOperator *op, wmEvent *evt)
static int pose_slide_cancel (bContext *UNUSED(C), wmOperator *op)
static int pose_slide_exec_common (bContext *C, wmOperator *op, tPoseSlideOp *pso)
static void pose_slide_opdef_properties (wmOperatorType *ot)
static int pose_slide_push_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(evt))
static int pose_slide_push_exec (bContext *C, wmOperator *op)
void POSE_OT_push (wmOperatorType *ot)
static int pose_slide_relax_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(evt))
static int pose_slide_relax_exec (bContext *C, wmOperator *op)
void POSE_OT_relax (wmOperatorType *ot)
static int pose_slide_breakdown_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(evt))
static int pose_slide_breakdown_exec (bContext *C, wmOperator *op)
void POSE_OT_breakdown (wmOperatorType *ot)
static float pose_propagate_get_boneHoldEndFrame (Object *ob, tPChanFCurveLink *pfl, float startFrame)
static short pose_propagate_get_refVal (Object *ob, FCurve *fcu, float *value)
static void pose_propagate_fcurve (wmOperator *op, Object *ob, FCurve *fcu, float startFrame, tPosePropagate_ModeData modeData)
static int pose_propagate_exec (bContext *C, wmOperator *op)
void POSE_OT_propagate (wmOperatorType *ot)

Detailed Description

Definition in file poseSlide.c.


Typedef Documentation

typedef struct tPoseSlideOp tPoseSlideOp

Enumeration Type Documentation

Enumerator:
POSE_PROPAGATE_SMART_HOLDS 
POSE_PROPAGATE_LAST_KEY 
POSE_PROPAGATE_NEXT_KEY 
POSE_PROPAGATE_BEFORE_FRAME 
POSE_PROPAGATE_BEFORE_END 
POSE_PROPAGATE_SELECTED_MARKERS 

Definition at line 901 of file poseSlide.c.

Enumerator:
POSESLIDE_PUSH 
POSESLIDE_RELAX 
POSESLIDE_BREAKDOWN 

Definition at line 114 of file poseSlide.c.


Function Documentation

void POSE_OT_breakdown ( wmOperatorType ot)
void POSE_OT_propagate ( wmOperatorType ot)
void POSE_OT_push ( wmOperatorType ot)
void POSE_OT_relax ( wmOperatorType ot)
static int pose_propagate_exec ( bContext C,
wmOperator op 
) [static]
static void pose_propagate_fcurve ( wmOperator op,
Object ob,
FCurve fcu,
float  startFrame,
tPosePropagate_ModeData  modeData 
) [static]
static float pose_propagate_get_boneHoldEndFrame ( Object ob,
tPChanFCurveLink pfl,
float  startFrame 
) [static]
static short pose_propagate_get_refVal ( Object ob,
FCurve fcu,
float *  value 
) [static]
static void pose_slide_apply ( bContext C,
tPoseSlideOp pso 
) [static]
static void pose_slide_apply_props ( tPoseSlideOp pso,
tPChanFCurveLink pfl 
) [static]
static void pose_slide_apply_quat ( tPoseSlideOp pso,
tPChanFCurveLink pfl 
) [static]
static void pose_slide_apply_val ( tPoseSlideOp pso,
FCurve fcu,
float *  val 
) [static]
static void pose_slide_apply_vec3 ( tPoseSlideOp pso,
tPChanFCurveLink pfl,
float  vec[3],
const char  propName[] 
) [static]
static void pose_slide_autoKeyframe ( bContext C,
tPoseSlideOp pso 
) [static]
static int pose_slide_breakdown_exec ( bContext C,
wmOperator op 
) [static]
static int pose_slide_breakdown_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevt 
) [static]
static int pose_slide_cancel ( bContext UNUSEDC,
wmOperator op 
) [static]

Definition at line 696 of file poseSlide.c.

References OPERATOR_CANCELLED, and pose_slide_exit().

Referenced by POSE_OT_breakdown(), POSE_OT_push(), and POSE_OT_relax().

static void pose_slide_draw_status ( tPoseSlideOp pso) [static]
static int pose_slide_exec_common ( bContext C,
wmOperator op,
tPoseSlideOp pso 
) [static]
static void pose_slide_exit ( wmOperator op) [static]
static int pose_slide_init ( bContext C,
wmOperator op,
short  mode 
) [static]
static int pose_slide_invoke_common ( bContext C,
wmOperator op,
tPoseSlideOp pso 
) [static]
static int pose_slide_modal ( bContext C,
wmOperator op,
wmEvent evt 
) [static]
static void pose_slide_opdef_properties ( wmOperatorType ot) [static]
static int pose_slide_push_exec ( bContext C,
wmOperator op 
) [static]
static int pose_slide_push_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevt 
) [static]
static void pose_slide_refresh ( bContext C,
tPoseSlideOp pso 
) [static]
static int pose_slide_relax_exec ( bContext C,
wmOperator op 
) [static]
static int pose_slide_relax_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevt 
) [static]
static void pose_slide_reset ( tPoseSlideOp pso) [static]

Definition at line 515 of file poseSlide.c.

References tPoseSlideOp::pfLinks, and poseAnim_mapping_reset().

Referenced by pose_slide_modal().