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

ipo.c File Reference

#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include "DNA_anim_types.h"
#include "DNA_constraint_types.h"
#include "DNA_camera_types.h"
#include "DNA_lamp_types.h"
#include "DNA_ipo_types.h"
#include "DNA_key_types.h"
#include "DNA_material_types.h"
#include "DNA_nla_types.h"
#include "DNA_sequence_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_dynstr.h"
#include "BLI_utildefines.h"
#include "BKE_ipo.h"
#include "BKE_animsys.h"
#include "BKE_action.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_nla.h"
#include "BKE_sequencer.h"
#include "MEM_guardedalloc.h"

Go to the source code of this file.

Classes

struct  AdrBit2Path

Defines

#define DNA_DEPRECATED_ALLOW
#define RET_ABP(items)

Typedefs

typedef struct AdrBit2Path AdrBit2Path

Functions

void free_ipo (Ipo *ipo)
static AdrBit2Pathadrcode_bitmaps_to_paths (int blocktype, int adrcode, int *tot)
static const char * ob_adrcodes_to_paths (int adrcode, int *array_index)
static const char * pchan_adrcodes_to_paths (int adrcode, int *array_index)
static const char * constraint_adrcodes_to_paths (int adrcode, int *array_index)
static char * shapekey_adrcodes_to_paths (int adrcode, int *UNUSED(array_index))
static const char * mtex_adrcodes_to_paths (int adrcode, int *UNUSED(array_index))
static const char * texture_adrcodes_to_paths (int adrcode, int *array_index)
static const char * material_adrcodes_to_paths (int adrcode, int *array_index)
static const char * camera_adrcodes_to_paths (int adrcode, int *array_index)
static const char * lamp_adrcodes_to_paths (int adrcode, int *array_index)
static const char * sound_adrcodes_to_paths (int adrcode, int *array_index)
static const char * world_adrcodes_to_paths (int adrcode, int *array_index)
static const char * particle_adrcodes_to_paths (int adrcode, int *array_index)
static char * get_rna_access (int blocktype, int adrcode, char actname[], char constname[], Sequence *seq, int *array_index)
static short adrcode_to_dtar_transchan (short adrcode)
static ChannelDriveridriver_to_cdriver (IpoDriver *idriver)
static void fcurve_add_to_list (ListBase *groups, ListBase *list, FCurve *fcu, char *grpname, int muteipo)
static void icu_to_fcurves (ID *id, ListBase *groups, ListBase *list, IpoCurve *icu, char *actname, char *constname, Sequence *seq, int muteipo)
static void ipo_to_animato (ID *id, Ipo *ipo, char actname[], char constname[], Sequence *seq, ListBase *animgroups, ListBase *anim, ListBase *drivers)
static void action_to_animato (ID *id, bAction *act, ListBase *groups, ListBase *curves, ListBase *drivers)
static void ipo_to_animdata (ID *id, Ipo *ipo, char actname[], char constname[], Sequence *seq)
static void action_to_animdata (ID *id, bAction *act)
static void nlastrips_to_animdata (ID *id, ListBase *strips)
void do_versions_ipos_to_animato (Main *main)

Variables

static AdrBit2Path ob_layer_bits []
static AdrBit2Path ma_mode_bits []

Detailed Description

Definition in file ipo.c.


Define Documentation

#define DNA_DEPRECATED_ALLOW

Definition at line 47 of file ipo.c.

#define RET_ABP (   items)
Value:
{ \
        *tot= sizeof(items)/sizeof(AdrBit2Path); \
        return items; \
    }

Definition at line 155 of file ipo.c.

Referenced by adrcode_bitmaps_to_paths().


Typedef Documentation

typedef struct AdrBit2Path AdrBit2Path

Function Documentation

static void action_to_animato ( ID id,
bAction act,
ListBase groups,
ListBase curves,
ListBase drivers 
) [static]
static void action_to_animdata ( ID id,
bAction act 
) [static]
static AdrBit2Path* adrcode_bitmaps_to_paths ( int  blocktype,
int  adrcode,
int *  tot 
) [static]

Definition at line 162 of file ipo.c.

References ID_MA, ID_OB, MA_MODE, NULL, OB_LAY, and RET_ABP.

Referenced by icu_to_fcurves().

static short adrcode_to_dtar_transchan ( short  adrcode) [static]
static const char* camera_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]

Definition at line 572 of file ipo.c.

References CAM_END, CAM_LENS, CAM_ORTHO, CAM_SHIFT_X, CAM_SHIFT_Y, CAM_STA, CAM_YF_APERT, CAM_YF_FDIST, and NULL.

Referenced by get_rna_access().

static const char* constraint_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]

Definition at line 304 of file ipo.c.

References CO_ENFORCE, CO_HEADTAIL, and NULL.

Referenced by get_rna_access().

void do_versions_ipos_to_animato ( Main main)
static void fcurve_add_to_list ( ListBase groups,
ListBase list,
FCurve fcu,
char *  grpname,
int  muteipo 
) [static]
void free_ipo ( Ipo ipo)
static char* get_rna_access ( int  blocktype,
int  adrcode,
char  actname[],
char  constname[],
Sequence seq,
int *  array_index 
) [static]
static void icu_to_fcurves ( ID id,
ListBase groups,
ListBase list,
IpoCurve icu,
char *  actname,
char *  constname,
Sequence seq,
int  muteipo 
) [static]

Definition at line 1142 of file ipo.c.

References AC_EUL_X, AC_EUL_Y, AC_EUL_Z, add_fmodifier(), IpoCurve::adrcode, adrcode_bitmaps_to_paths(), FMod_Cycles::after_mode, AdrBit2Path::array_index, FCurve::array_index, FMod_Cycles::before_mode, IpoCurve::bezt, FCurve::bezt, BEZT_IPO_CONST, BEZT_KEYTYPE_KEYFRAME, AdrBit2Path::bit, BLI_strdup(), IpoCurve::blocktype, IpoCurve::bp, copy_fcurve(), FModifier::data, data, IpoCurve::driver, FCurve::driver, DTAR_TRANSCHAN_ROTX, DTAR_TRANSCHAN_ROTY, DTAR_TRANSCHAN_ROTZ, ELEM3, Sequence::enddisp, FCurve::extend, IpoCurve::extrap, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET, FCURVE_ACTIVE, fcurve_add_to_list(), FCURVE_DISABLED, FCURVE_DISCRETE_VALUES, FCURVE_INT_VALUES, FCURVE_MUTED, FCURVE_PROTECTED, FCURVE_SELECTED, FCURVE_VISIBLE, ListBase::first, Sequence::flag, FCurve::flag, IpoCurve::flag, FMODIFIER_TYPE_CYCLES, G, G_DEBUG, get_rna_access(), GS, BezTriple::h1, BezTriple::h2, HD_AUTO, HD_AUTO_ANIM, BezTriple::hide, i, ID_OB, ID_PO, idriver_to_cdriver(), if(), BezTriple::ipo, IpoCurve::ipo, IPO_ACTIVE, IPO_AUTO_HORIZ, IPO_CYCL, IPO_CYCLX, IPO_DIR, IPO_HORIZ, IPO_MIXED, IPO_MUTE, IPO_PROTECT, IPO_SELECT, IPO_VISIBLE, M_PI, MEM_callocN(), FCurve::modifiers, mul(), ID::name, NULL, OB_ROT_X, OB_ROT_Y, OB_ROT_Z, AdrBit2Path::path, Curve::pathlen, FCurve::rna_path, SEQ_IPO_FRAME_LOCKED, Sequence::startdisp, DriverVar::targets, IpoCurve::totvert, FCurve::totvert, DriverTarget::transChan, ChannelDriver::variables, and BezTriple::vec.

Referenced by ipo_to_animato().

static ChannelDriver* idriver_to_cdriver ( IpoDriver idriver) [static]
static void ipo_to_animato ( ID id,
Ipo ipo,
char  actname[],
char  constname[],
Sequence seq,
ListBase animgroups,
ListBase anim,
ListBase drivers 
) [static]
static void ipo_to_animdata ( ID id,
Ipo ipo,
char  actname[],
char  constname[],
Sequence seq 
) [static]
static const char* lamp_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]
static const char* material_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]
static const char* mtex_adrcodes_to_paths ( int  adrcode,
int *  UNUSEDarray_index 
) [static]
static void nlastrips_to_animdata ( ID id,
ListBase strips 
) [static]
static const char* ob_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]
static const char* particle_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]
static const char* pchan_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]
static char* shapekey_adrcodes_to_paths ( int  adrcode,
int *  UNUSEDarray_index 
) [static]

Definition at line 324 of file ipo.c.

References BLI_snprintf().

Referenced by get_rna_access().

static const char* sound_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]

Definition at line 654 of file ipo.c.

References NULL, SND_ATTEN, SND_PITCH, and SND_VOLUME.

Referenced by get_rna_access().

static const char* texture_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]
static const char* world_adrcodes_to_paths ( int  adrcode,
int *  array_index 
) [static]

Variable Documentation

Initial value:
 {




    {MA_RAYTRANSP, "transparency", 0},
    {MA_RAYMIRROR, "raytrace_mirror.enabled", 0},

}

Definition at line 142 of file ipo.c.

Initial value:
 {
    {(1<<0), "layers", 0},
    {(1<<1), "layers", 1},
    {(1<<2), "layers", 2},
    {(1<<3), "layers", 3},
    {(1<<4), "layers", 4},
    {(1<<5), "layers", 5},
    {(1<<6), "layers", 6},
    {(1<<7), "layers", 7},
    {(1<<8), "layers", 8},
    {(1<<9), "layers", 9},
    {(1<<10), "layers", 10},
    {(1<<11), "layers", 11},
    {(1<<12), "layers", 12},
    {(1<<13), "layers", 13},
    {(1<<14), "layers", 14},
    {(1<<15), "layers", 15},
    {(1<<16), "layers", 16},
    {(1<<17), "layers", 17},
    {(1<<18), "layers", 18},
    {(1<<19), "layers", 19}
}

Definition at line 118 of file ipo.c.