Blender V2.61 - r43446
Functions | Variables

transform_generics.c File Reference

#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "BLO_sys_types.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_lattice_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_view3d_types.h"
#include "DNA_modifier_types.h"
#include "DNA_movieclip_types.h"
#include "RNA_access.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "BKE_animsys.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_curve.h"
#include "BKE_depsgraph.h"
#include "BKE_displist.h"
#include "BKE_fcurve.h"
#include "BKE_lattice.h"
#include "BKE_mesh.h"
#include "BKE_nla.h"
#include "BKE_context.h"
#include "BKE_tracking.h"
#include "ED_anim_api.h"
#include "ED_armature.h"
#include "ED_image.h"
#include "ED_keyframing.h"
#include "ED_markers.h"
#include "ED_mesh.h"
#include "ED_particle.h"
#include "ED_screen_types.h"
#include "ED_space_api.h"
#include "ED_uvedit.h"
#include "ED_view3d.h"
#include "ED_curve.h"
#include "ED_clip.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "WM_types.h"
#include "WM_api.h"
#include "UI_resources.h"
#include "transform.h"

Go to the source code of this file.

Functions

void getViewVector (TransInfo *t, float coord[3], float vec[3])
static void clipMirrorModifier (TransInfo *t, Object *ob)
static void editmesh_apply_to_mirror (TransInfo *t)
static void animrecord_check_state (Scene *scene, ID *id, wmTimer *animtimer)
static int fcu_test_selected (FCurve *fcu)
static void recalcData_actedit (TransInfo *t)
static void recalcData_graphedit (TransInfo *t)
static void recalcData_nla (TransInfo *t)
static void recalcData_image (TransInfo *t)
static void recalcData_clip (TransInfo *t)
static void recalcData_view3d (TransInfo *t)
void recalcData (TransInfo *t)
void drawLine (TransInfo *t, float *center, float *dir, char axis, short options)
void resetTransRestrictions (TransInfo *t)
int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
void postTrans (bContext *C, TransInfo *t)
void applyTransObjects (TransInfo *t)
static void restoreElement (TransData *td)
void restoreTransObjects (TransInfo *t)
void calculateCenter2D (TransInfo *t)
void calculateCenterCursor (TransInfo *t)
void calculateCenterCursor2D (TransInfo *t)
static void calculateCenterCursorGraph2D (TransInfo *t)
void calculateCenterMedian (TransInfo *t)
void calculateCenterBound (TransInfo *t)
void calculateCenter (TransInfo *t)
void calculatePropRatio (TransInfo *t)

Variables

ListBase editelems

Detailed Description

Definition in file transform_generics.c.


Function Documentation

static void animrecord_check_state ( Scene scene,
ID id,
wmTimer animtimer 
) [static]
void applyTransObjects ( TransInfo t)
void calculateCenter ( TransInfo t)
void calculateCenter2D ( TransInfo t)
void calculateCenterBound ( TransInfo t)
void calculateCenterCursor ( TransInfo t)
void calculateCenterCursor2D ( TransInfo t)
static void calculateCenterCursorGraph2D ( TransInfo t) [static]
void calculateCenterMedian ( TransInfo t)
void calculatePropRatio ( TransInfo t)
static void clipMirrorModifier ( TransInfo t,
Object ob 
) [static]
void drawLine ( TransInfo t,
float *  center,
float *  dir,
char  axis,
short  options 
)
static void editmesh_apply_to_mirror ( TransInfo t) [static]
static int fcu_test_selected ( FCurve fcu) [static]

Definition at line 315 of file transform_generics.c.

References BEZSELECTED, FCurve::bezt, i, NULL, and FCurve::totvert.

void getViewVector ( TransInfo t,
float  coord[3],
float  vec[3] 
)
int initTransInfo ( bContext C,
TransInfo t,
wmOperator op,
wmEvent event 
)

Definition at line 974 of file transform_generics.c.

References bScreen::animtimer, TransInfo::animtimer, TransInfo::ar, SpaceIpo::around, SpaceImage::around, View3D::around, TransInfo::around, BIF_countTransformOrientation(), TransInfo::center, TransInfo::con, copy_v2_v2_int(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_tool_settings(), CTX_EDGE, CTX_NO_PET, CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), TransInfo::current_orientation, Object::data, TransInfo::data, ELEM3, TransInfo::event_type, TransInfo::ext, ListBase::first, UserDef::flag, View3D::flag, TransInfo::flag, TransInfo::handleEvent, TransInfo::helpline, HLP_NONE, TransCon::imval, TransInfo::imval, initNumInput(), TransInfo::mat, ME_EDIT_MIRROR_X, TransInfo::mirror, TransInfo::mode, TransInfo::mval, wmEvent::mval, NULL, TransInfo::num, OB_MESH, TransInfo::obedit, TransInfo::options, PROP_EDIT_CONNECTED, PROP_EDIT_OFF, PROP_EDIT_ON, ToolSettings::prop_mode, TransInfo::prop_mode, TransInfo::prop_size, ToolSettings::proportional, ToolSettings::proportional_objects, ToolSettings::proportional_size, wmOperator::ptr, TransInfo::redraw, RNA_boolean_get(), RNA_boolean_set(), RNA_enum_get(), RNA_float_get(), RNA_struct_find_property(), RNA_struct_property_is_set(), TransInfo::sa, SCE_SELECT_FACE, TransInfo::scene, ToolSettings::selectmode, TransInfo::settings, setTransformViewMatrices(), SPACE_EMPTY, SPACE_IMAGE, SPACE_IPO, SPACE_NODE, SPACE_VIEW3D, ScrArea::spacedata, ScrArea::spacetype, TransInfo::spacetype, T_MIRROR, T_MODAL, T_PROP_CONNECTED, T_PROP_EDIT, T_RELEASE_CONFIRM, T_V3D_ALIGN, TFM_CREASE, TFM_RESIZE, TFM_ROTATION, TFM_TRACKBALL, TransInfo::total, TransInfo::transform, View3D::twmode, View3D::twtype, TransInfo::twtype, Object::type, U, unit_m3(), USER_RELEASECONFIRM, ToolSettings::uvcalc_flag, UVCALC_TRANSFORM_CORRECT, ARegion::v2d, V3D_ALIGN, V3D_CENTER, V3D_LOCAL, V3D_MANIP_CUSTOM, V3D_MANIP_GLOBAL, TransInfo::val, TransInfo::vec, and TransInfo::view.

Referenced by calculateTransformCenter(), and initTransform().

void postTrans ( bContext C,
TransInfo t 
)
void recalcData ( TransInfo t)
static void recalcData_actedit ( TransInfo t) [static]

Definition at line 331 of file transform_generics.c.

References ListBase::first, NULL, TransInfo::sa, TransInfo::scene, and ScrArea::spacedata.

Referenced by recalcData().

static void recalcData_clip ( TransInfo t) [static]
static void recalcData_graphedit ( TransInfo t) [static]

Definition at line 379 of file transform_generics.c.

References ListBase::first, NULL, TransInfo::sa, and ScrArea::spacedata.

Referenced by recalcData().

static void recalcData_image ( TransInfo t) [static]
static void recalcData_nla ( TransInfo t) [static]
static void recalcData_view3d ( TransInfo t) [static]

Definition at line 686 of file transform_generics.c.

References animrecord_check_state(), TransInfo::animtimer, applyProject(), ARM_DELAYDEFORM, ARM_MIRROR_EDIT, autokeyframe_ob_cb_func(), autokeyframe_pose_cb_func(), TransData::axismtx, Scene::basact, BONE_CONNECTED, BONE_TIPSEL, calchandlesNurb(), clipMirrorModifier(), TransInfo::context, copy_v3_v3(), CTX_NO_MIRROR, curve_editnurbs(), DAG_id_tag_update(), TransInfo::data, Object::data, EditBone::dist, ED_rollBoneToVector(), bArmature::edbo, Lattice::editlatt, editmesh_apply_to_mirror(), ELEM, TransData::extra, FALSE, ListBase::first, TransData::flag, bArmature::flag, EditBone::flag, TransInfo::flag, Lattice::flag, flushTransParticles(), EditBone::head, i, Object::id, IS_AUTOKEY_ON, EditLatt::latt, len_v3v3(), EditBone::length, LT_OUTSIDE, TransInfo::mat, Object::mode, TransInfo::mode, mul_m3_v3(), mul_qt_v3(), EditBone::next, Nurb::next, normalize_v3(), TransData::ob, OB_ARMATURE, OB_CURVE, OB_LATTICE, OB_MESH, OB_MODE_PARTICLE_EDIT, OB_RECALC_DATA, OB_RECALC_OB, OB_SURF, TransInfo::obedit, Base::object, EditBone::oldlength, TransInfo::options, outside_lattice(), EditBone::parent, PE_get_current(), TransInfo::poseobj, EditBone::rad_head, EditBone::rad_tail, recalc_editnormals(), EditBone::roll, rotation_between_vecs_to_quat(), TransInfo::scene, TransInfo::state, sub_v3_v3v3(), T_AUTOIK, T_MIRROR, T_POSE, EditBone::tail, TD_NOACTION, TD_SKIP, test2DNurb(), TFM_BONE_ENVELOPE, TFM_BONE_ROLL, TFM_ROTATION, TransInfo::total, TRANS_CANCEL, transform_armature_mirror_update(), Object::type, TransInfo::view, and where_is_pose().

Referenced by recalcData().

void resetTransRestrictions ( TransInfo t)

Definition at line 968 of file transform_generics.c.

References TransInfo::flag, and T_ALL_RESTRICTIONS.

Referenced by transformEvent().

static void restoreElement ( TransData td) [static]
void restoreTransObjects ( TransInfo t)

Variable Documentation