Blender V2.61 - r43446
Functions

transform_constraints.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "BKE_context.h"
#include "ED_image.h"
#include "ED_view3d.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLI_string.h"
#include "UI_resources.h"
#include "transform.h"

Go to the source code of this file.

Functions

static void drawObjectConstraint (TransInfo *t)
static void constraintAutoValues (TransInfo *t, float vec[3])
void constraintNumInput (TransInfo *t, float vec[3])
static void postConstraintChecks (TransInfo *t, float vec[3], float pvec[3])
static void viewAxisCorrectCenter (TransInfo *t, float t_con_center[3])
static void axisProjection (TransInfo *t, float axis[3], float in[3], float out[3])
static void planeProjection (TransInfo *t, float in[3], float out[3])
static void applyAxisConstraintVec (TransInfo *t, TransData *td, float in[3], float out[3], float pvec[3])
static void applyObjectConstraintVec (TransInfo *t, TransData *td, float in[3], float out[3], float pvec[3])
static void applyAxisConstraintSize (TransInfo *t, TransData *td, float smat[3][3])
static void applyObjectConstraintSize (TransInfo *t, TransData *td, float smat[3][3])
static void applyAxisConstraintRot (TransInfo *t, TransData *td, float vec[3], float *angle)
static void applyObjectConstraintRot (TransInfo *t, TransData *td, float vec[3], float *angle)
void setConstraint (TransInfo *t, float space[3][3], int mode, const char text[])
void setLocalConstraint (TransInfo *t, int mode, const char text[])
void setUserConstraint (TransInfo *t, short orientation, int mode, const char ftext[])
void drawConstraint (TransInfo *t)
void drawPropCircle (const struct bContext *C, TransInfo *t)
void startConstraint (TransInfo *t)
void stopConstraint (TransInfo *t)
void getConstraintMatrix (TransInfo *t)
void initSelectConstraint (TransInfo *t, float mtx[3][3])
void selectConstraint (TransInfo *t)
void postSelectConstraint (TransInfo *t)
static void setNearestAxis2d (TransInfo *t)
static void setNearestAxis3d (TransInfo *t)
void setNearestAxis (TransInfo *t)
char constraintModeToChar (TransInfo *t)
int isLockConstraint (TransInfo *t)
int getConstraintSpaceDimension (TransInfo *t)

Detailed Description

Definition in file transform_constraints.c.


Function Documentation

static void applyAxisConstraintRot ( TransInfo t,
TransData td,
float  vec[3],
float *  angle 
) [static]
static void applyAxisConstraintSize ( TransInfo t,
TransData td,
float  smat[3][3] 
) [static]
static void applyAxisConstraintVec ( TransInfo t,
TransData td,
float  in[3],
float  out[3],
float  pvec[3] 
) [static]
static void applyObjectConstraintRot ( TransInfo t,
TransData td,
float  vec[3],
float *  angle 
) [static]
static void applyObjectConstraintSize ( TransInfo t,
TransData td,
float  smat[3][3] 
) [static]
static void applyObjectConstraintVec ( TransInfo t,
TransData td,
float  in[3],
float  out[3],
float  pvec[3] 
) [static]
static void axisProjection ( TransInfo t,
float  axis[3],
float  in[3],
float  out[3] 
) [static]
static void constraintAutoValues ( TransInfo t,
float  vec[3] 
) [static]
char constraintModeToChar ( TransInfo t)

Definition at line 984 of file transform_constraints.c.

References TransInfo::con, CON_APPLY, CON_AXIS0, CON_AXIS1, CON_AXIS2, and TransCon::mode.

Referenced by transformEvent().

void constraintNumInput ( TransInfo t,
float  vec[3] 
)
void drawConstraint ( TransInfo t)
static void drawObjectConstraint ( TransInfo t) [static]
void drawPropCircle ( const struct bContext C,
TransInfo t 
)
void getConstraintMatrix ( TransInfo t)
int getConstraintSpaceDimension ( TransInfo t)
void initSelectConstraint ( TransInfo t,
float  mtx[3][3] 
)
int isLockConstraint ( TransInfo t)

Definition at line 1005 of file transform_constraints.c.

References TransInfo::con, CON_AXIS0, CON_AXIS1, CON_AXIS2, and TransCon::mode.

Referenced by PushPull().

static void planeProjection ( TransInfo t,
float  in[3],
float  out[3] 
) [static]
static void postConstraintChecks ( TransInfo t,
float  vec[3],
float  pvec[3] 
) [static]
void postSelectConstraint ( TransInfo t)
void selectConstraint ( TransInfo t)
void setConstraint ( TransInfo t,
float  space[3][3],
int  mode,
const char  text[] 
)
void setLocalConstraint ( TransInfo t,
int  mode,
const char  text[] 
)
void setNearestAxis ( TransInfo t)
static void setNearestAxis2d ( TransInfo t) [static]
static void setNearestAxis3d ( TransInfo t) [static]
void setUserConstraint ( TransInfo t,
short  orientation,
int  mode,
const char  ftext[] 
)
void startConstraint ( TransInfo t)
void stopConstraint ( TransInfo t)
static void viewAxisCorrectCenter ( TransInfo t,
float  t_con_center[3] 
) [static]