Blender  V3.3
Classes | Typedefs | Variables
transform_convert_action.c File Reference
#include "DNA_anim_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_mask_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
#include "BKE_key.h"
#include "BKE_mask.h"
#include "BKE_nla.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_markers.h"
#include "WM_api.h"
#include "WM_types.h"
#include "transform.h"
#include "transform_snap.h"
#include "transform_convert.h"

Go to the source code of this file.

Classes

struct  tGPFtransdata
 

Typedefs

typedef struct tGPFtransdata tGPFtransdata
 

Functions

Action Transform Creation
static int count_fcurve_keys (FCurve *fcu, char side, float cfra, bool is_prop_edit)
 
static int count_gplayer_frames (bGPDlayer *gpl, char side, float cfra, bool is_prop_edit)
 
static int count_masklayer_frames (MaskLayer *masklay, char side, float cfra, bool is_prop_edit)
 
static void TimeToTransData (TransData *td, TransData2D *td2d, BezTriple *bezt, AnimData *adt, float ypos)
 
static TransDataActionFCurveToTransData (TransData *td, TransData2D **td2dv, FCurve *fcu, AnimData *adt, char side, float cfra, bool is_prop_edit, float ypos)
 
static int GPLayerToTransData (TransData *td, tGPFtransdata *tfd, bGPDlayer *gpl, char side, float cfra, bool is_prop_edit, float ypos)
 
static int MaskLayerToTransData (TransData *td, tGPFtransdata *tfd, MaskLayer *masklay, char side, float cfra, bool is_prop_edit, float ypos)
 
static void createTransActionData (bContext *C, TransInfo *t)
 
Action Transform Flush
static void flushTransIntFrameActionData (TransInfo *t)
 
static void recalcData_actedit (TransInfo *t)
 
Special After Transform Action
static int masklay_shape_cmp_frame (void *thunk, const void *a, const void *b)
 
static void posttrans_mask_clean (Mask *mask)
 
static void posttrans_gpd_clean (bGPdata *gpd)
 
static void posttrans_action_clean (bAnimContext *ac, bAction *act)
 
static void special_aftertrans_update__actedit (bContext *C, TransInfo *t)
 

Variables

TransConvertTypeInfo TransConvertType_Action
 

Typedef Documentation

◆ tGPFtransdata

typedef struct tGPFtransdata tGPFtransdata

Function Documentation

◆ ActionFCurveToTransData()

static TransData* ActionFCurveToTransData ( TransData td,
TransData2D **  td2dv,
FCurve fcu,
AnimData adt,
char  side,
float  cfra,
bool  is_prop_edit,
float  ypos 
)
static

◆ count_fcurve_keys()

static int count_fcurve_keys ( FCurve fcu,
char  side,
float  cfra,
bool  is_prop_edit 
)
static

◆ count_gplayer_frames()

static int count_gplayer_frames ( bGPDlayer gpl,
char  side,
float  cfra,
bool  is_prop_edit 
)
static

◆ count_masklayer_frames()

static int count_masklayer_frames ( MaskLayer masklay,
char  side,
float  cfra,
bool  is_prop_edit 
)
static

◆ createTransActionData()

static void createTransActionData ( bContext C,
TransInfo t 
)
static

◆ flushTransIntFrameActionData()

static void flushTransIntFrameActionData ( TransInfo t)
static

◆ GPLayerToTransData()

static int GPLayerToTransData ( TransData td,
tGPFtransdata tfd,
bGPDlayer gpl,
char  side,
float  cfra,
bool  is_prop_edit,
float  ypos 
)
static

This function advances the address to which td points to, so it must return the new address so that the next time new transform data is added, it doesn't overwrite the existing ones: e.g. td += GPLayerToTransData(td, ...);

Parameters
sideis needed for the extend mode. 'B' = both sides, 'R'/'L' mean only data on the named side are used.

Definition at line 220 of file transform_convert_action.c.

References count, ListBase::first, bGPDframe::flag, float(), bGPDframe::framenum, FrameOnMouseSide(), bGPDlayer::frames, GP_FRAME_SELECT, TransData::ival, bGPDframe::next, tGPFtransdata::sdata, tGPFtransdata::val, and TransData::val.

Referenced by createTransActionData().

◆ masklay_shape_cmp_frame()

static int masklay_shape_cmp_frame ( void thunk,
const void a,
const void b 
)
static

◆ MaskLayerToTransData()

static int MaskLayerToTransData ( TransData td,
tGPFtransdata tfd,
MaskLayer masklay,
char  side,
float  cfra,
bool  is_prop_edit,
float  ypos 
)
static

◆ posttrans_action_clean()

static void posttrans_action_clean ( bAnimContext ac,
bAction act 
)
static

◆ posttrans_gpd_clean()

static void posttrans_gpd_clean ( bGPdata gpd)
static

◆ posttrans_mask_clean()

static void posttrans_mask_clean ( Mask mask)
static

◆ recalcData_actedit()

static void recalcData_actedit ( TransInfo t)
static

Definition at line 568 of file transform_convert_action.c.

References NULL, and t.

◆ special_aftertrans_update__actedit()

static void special_aftertrans_update__actedit ( bContext C,
TransInfo t 
)
static

◆ TimeToTransData()

static void TimeToTransData ( TransData td,
TransData2D td2d,
BezTriple bezt,
AnimData adt,
float  ypos 
)
static

Variable Documentation

◆ TransConvertType_Action

TransConvertTypeInfo TransConvertType_Action
Initial value:
= {
}
static void recalcData_actedit(TransInfo *t)
static void special_aftertrans_update__actedit(bContext *C, TransInfo *t)
static void createTransActionData(bContext *C, TransInfo *t)

Definition at line 930 of file transform_convert_action.c.

Referenced by convert_type_get(), and init_proportional_edit().