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

BKE_constraint.h File Reference

Go to the source code of this file.

Classes

struct  bConstraintOb
struct  bConstraintTypeInfo

Defines

#define VALID_CONS_TARGET(ct)   ((ct) && (ct->tar))

Typedefs

typedef struct bConstraintOb bConstraintOb
typedef void(* ConstraintIDFunc )(struct bConstraint *con, struct ID **idpoin, void *userdata)
typedef struct bConstraintTypeInfo bConstraintTypeInfo

Functions

bConstraintTypeInfoconstraint_get_typeinfo (struct bConstraint *con)
bConstraintTypeInfoget_constraint_typeinfo (int type)
void unique_constraint_name (struct bConstraint *con, struct ListBase *list)
void free_constraints (struct ListBase *list)
void copy_constraints (struct ListBase *dst, const struct ListBase *src, int do_extern)
void relink_constraints (struct ListBase *list)
void id_loop_constraints (struct ListBase *list, ConstraintIDFunc func, void *userdata)
void free_constraint_data (struct bConstraint *con)
struct bConstraintconstraints_get_active (struct ListBase *list)
void constraints_set_active (ListBase *list, struct bConstraint *con)
struct bConstraintconstraints_findByName (struct ListBase *list, const char *name)
struct bConstraintadd_ob_constraint (struct Object *ob, const char *name, short type)
struct bConstraintadd_pose_constraint (struct Object *ob, struct bPoseChannel *pchan, const char *name, short type)
int remove_constraint (ListBase *list, struct bConstraint *con)
void remove_constraints_type (ListBase *list, short type, short last_only)
void extract_proxylocal_constraints (struct ListBase *dst, struct ListBase *src)
short proxylocked_constraints_owner (struct Object *ob, struct bPoseChannel *pchan)
struct bConstraintObconstraints_make_evalob (struct Scene *scene, struct Object *ob, void *subdata, short datatype)
void constraints_clear_evalob (struct bConstraintOb *cob)
void constraint_mat_convertspace (struct Object *ob, struct bPoseChannel *pchan, float mat[][4], short from, short to)
void get_constraint_target_matrix (struct Scene *scene, struct bConstraint *con, int n, short ownertype, void *ownerdata, float mat[][4], float ctime)
void get_constraint_targets_for_solving (struct bConstraint *con, struct bConstraintOb *ob, struct ListBase *targets, float ctime)
void solve_constraints (struct ListBase *conlist, struct bConstraintOb *cob, float ctime)

Detailed Description

Author:
Joshua Leung (major recode 2007)

Definition in file BKE_constraint.h.


Define Documentation

#define VALID_CONS_TARGET (   ct)    ((ct) && (ct->tar))

Typedef Documentation

typedef struct bConstraintOb bConstraintOb
typedef void(* ConstraintIDFunc)(struct bConstraint *con, struct ID **idpoin, void *userdata)

Definition at line 65 of file BKE_constraint.h.


Function Documentation

struct bConstraint* add_ob_constraint ( struct Object ob,
const char *  name,
short  type 
) [read]
struct bConstraint* add_pose_constraint ( struct Object ob,
struct bPoseChannel pchan,
const char *  name,
short  type 
) [read]

Definition at line 4498 of file constraint.c.

References add_new_constraint(), and NULL.

Referenced by constraint_add_exec(), and pose_grab_with_ik_add().

bConstraintTypeInfo* constraint_get_typeinfo ( struct bConstraint con)
void constraint_mat_convertspace ( struct Object ob,
struct bPoseChannel pchan,
float  mat[][4],
short  from,
short  to 
)
void constraints_clear_evalob ( struct bConstraintOb cob)
struct bConstraint* constraints_findByName ( struct ListBase list,
const char *  name 
) [read]

Definition at line 4600 of file constraint.c.

References BLI_findstring().

Referenced by edit_constraint_property_get().

struct bConstraint* constraints_get_active ( struct ListBase list) [read]
struct bConstraintOb* constraints_make_evalob ( struct Scene scene,
struct Object ob,
void *  subdata,
short  datatype 
) [read]
void constraints_set_active ( ListBase list,
struct bConstraint con 
)
void copy_constraints ( struct ListBase dst,
const struct ListBase src,
int  do_extern 
)
void extract_proxylocal_constraints ( struct ListBase dst,
struct ListBase src 
)
void free_constraint_data ( struct bConstraint con)
void free_constraints ( struct ListBase list)
void get_constraint_target_matrix ( struct Scene scene,
struct bConstraint con,
int  n,
short  ownertype,
void *  ownerdata,
float  mat[][4],
float  ctime 
)
void get_constraint_targets_for_solving ( struct bConstraint con,
struct bConstraintOb ob,
struct ListBase targets,
float  ctime 
)
bConstraintTypeInfo* get_constraint_typeinfo ( int  type)
void id_loop_constraints ( struct ListBase list,
ConstraintIDFunc  func,
void *  userdata 
)
short proxylocked_constraints_owner ( struct Object ob,
struct bPoseChannel pchan 
)
void relink_constraints ( struct ListBase list)
int remove_constraint ( ListBase list,
struct bConstraint con 
)
void remove_constraints_type ( ListBase list,
short  type,
short  last_only 
)
void solve_constraints ( struct ListBase conlist,
struct bConstraintOb cob,
float  ctime 
)
void unique_constraint_name ( struct bConstraint con,
struct ListBase list 
)

Definition at line 104 of file constraint.c.

References BLI_uniquename(), and bConstraint::name.

Referenced by add_new_constraint().