Blender V4.3
transform_constraints.hh File Reference

Go to the source code of this file.

Functions

void constraintNumInput (TransInfo *t, float vec[3])
 
void transform_constraint_snap_axis_to_edge (const TransInfo *t, const float axis[3], float r_out[3])
 
void transform_constraint_snap_axis_to_face (const TransInfo *t, const float axis[3], float r_out[3])
 
void transform_constraint_get_nearest (const TransInfo *t, const blender::float3 &vec, float r_vec[3])
 
void setConstraint (TransInfo *t, int mode, const char text[])
 
void setAxisMatrixConstraint (TransInfo *t, int mode, const char text[])
 
void setLocalConstraint (TransInfo *t, int mode, const char text[])
 
void setUserConstraint (TransInfo *t, int mode, const char text_[])
 
void drawConstraint (TransInfo *t)
 
void drawPropCircle (TransInfo *t)
 
void drawPropRange (TransInfo *t)
 
void startConstraint (TransInfo *t)
 
void stopConstraint (TransInfo *t)
 
void initSelectConstraint (TransInfo *t)
 
void selectConstraint (TransInfo *t)
 
void postSelectConstraint (TransInfo *t)
 
void setNearestAxis (TransInfo *t)
 
int constraintModeToIndex (const TransInfo *t)
 
char constraintModeToChar (const TransInfo *t)
 
bool isLockConstraint (const TransInfo *t)
 
int getConstraintSpaceDimension (const TransInfo *t)
 

Function Documentation

◆ constraintModeToChar()

char constraintModeToChar ( const TransInfo * t)

◆ constraintModeToIndex()

int constraintModeToIndex ( const TransInfo * t)

Definition at line 1228 of file transform_constraints.cc.

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

Referenced by saveTransform().

◆ constraintNumInput()

◆ drawConstraint()

◆ drawPropCircle()

◆ drawPropRange()

◆ getConstraintSpaceDimension()

int getConstraintSpaceDimension ( const TransInfo * t)

Returns the dimension of the constraint space.

For that reason, the flags always needs to be set to properly evaluate here, even if they aren't actually used in the callback function. (Which could happen for weird constraints not yet designed. Along a path for example.)

Definition at line 1267 of file transform_constraints.cc.

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

Referenced by constraintNumInput(), startConstraint(), and transform_constraint_get_nearest().

◆ initSelectConstraint()

◆ isLockConstraint()

bool isLockConstraint ( const TransInfo * t)

Definition at line 1248 of file transform_constraints.cc.

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

Referenced by applyPushPull().

◆ postSelectConstraint()

void postSelectConstraint ( TransInfo * t)

Definition at line 1098 of file transform_constraints.cc.

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

Referenced by transformEvent().

◆ selectConstraint()

void selectConstraint ( TransInfo * t)

◆ setAxisMatrixConstraint()

◆ setConstraint()

◆ setLocalConstraint()

void setLocalConstraint ( TransInfo * t,
int mode,
const char text[] )

◆ setNearestAxis()

◆ setUserConstraint()

void setUserConstraint ( TransInfo * t,
int mode,
const char text_[] )

◆ startConstraint()

◆ stopConstraint()

◆ transform_constraint_get_nearest()

void transform_constraint_get_nearest ( const TransInfo * t,
const blender::float3 & vec,
float r_vec[3] )

◆ transform_constraint_snap_axis_to_edge()

void transform_constraint_snap_axis_to_edge ( const TransInfo * t,
const float axis[3],
float r_out[3] )

◆ transform_constraint_snap_axis_to_face()

void transform_constraint_snap_axis_to_face ( const TransInfo * t,
const float axis[3],
float r_out[3] )