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

ED_transform.h File Reference

Go to the source code of this file.

Classes

struct  DepthPeel

Defines

#define CTX_NONE   0
#define CTX_TEXTURE   1
#define CTX_EDGE   2
#define CTX_NO_PET   4
#define CTX_TWEAK   8
#define CTX_NO_MIRROR   16
#define CTX_AUTOCONFIRM   32
#define CTX_BMESH   64
#define CTX_NDOF   128
#define CTX_MOVIECLIP   256
#define P_MIRROR   (1 << 0)
#define P_PROPORTIONAL   (1 << 1)
#define P_AXIS   (1 << 2)
#define P_SNAP   (1 << 3)
#define P_GEO_SNAP   (P_SNAP|(1 << 4))
#define P_ALIGN_SNAP   (P_GEO_SNAP|(1 << 5))
#define P_CONSTRAINT   (1 << 6)
#define P_OPTIONS   (1 << 7)
#define P_CORRECT_UV   (1 << 8)
#define SNAP_MIN_DISTANCE   30

Typedefs

typedef struct DepthPeel DepthPeel
typedef enum SnapMode SnapMode

Enumerations

enum  {
  TFM_INIT = -1, TFM_DUMMY, TFM_TRANSLATION, TFM_ROTATION,
  TFM_RESIZE, TFM_TOSPHERE, TFM_SHEAR, TFM_WARP,
  TFM_SHRINKFATTEN, TFM_TILT, TFM_TRACKBALL, TFM_PUSHPULL,
  TFM_CREASE, TFM_MIRROR, TFM_BONESIZE, TFM_BONE_ENVELOPE,
  TFM_CURVE_SHRINKFATTEN, TFM_BONE_ROLL, TFM_TIME_TRANSLATE, TFM_TIME_SLIDE,
  TFM_TIME_SCALE, TFM_TIME_EXTEND, TFM_TIME_DUPLICATE, TFM_BAKE_TIME,
  TFM_BEVEL, TFM_BWEIGHT, TFM_ALIGN, TFM_EDGE_SLIDE,
  TFM_SEQ_SLIDE
}
enum  SnapMode { SNAP_ALL = 0, SNAP_NOT_SELECTED = 1, SNAP_NOT_OBEDIT = 2 }

Functions

void transform_keymap_for_space (struct wmKeyConfig *keyconf, struct wmKeyMap *keymap, int spaceid)
void transform_operatortypes (void)
int calculateTransformCenter (struct bContext *C, int centerMode, float *vec)
int BIF_snappingSupported (struct Object *obedit)
void BIF_clearTransformOrientation (struct bContext *C)
void BIF_removeTransformOrientation (struct bContext *C, struct TransformOrientation *ts)
void BIF_removeTransformOrientationIndex (struct bContext *C, int index)
void BIF_createTransformOrientation (struct bContext *C, struct ReportList *reports, char *name, int use, int overwrite)
int BIF_menuselectTransformOrientation (void)
void BIF_selectTransformOrientation (struct bContext *C, struct TransformOrientation *ts)
void BIF_selectTransformOrientationValue (struct bContext *C, int orientation)
void ED_getTransformOrientationMatrix (const struct bContext *C, float orientation_mat[][3], int activeOnly)
struct EnumPropertyItemBIF_enumTransformOrientation (struct bContext *C)
const char * BIF_menustringTransformOrientation (const struct bContext *C, const char *title)
int BIF_countTransformOrientation (const struct bContext *C)
void BIF_TransformSetUndo (const char *str)
void BIF_selectOrientation (void)
void Transform_Properties (struct wmOperatorType *ot, int flags)
int BIF_do_manipulator (struct bContext *C, struct wmEvent *event, struct wmOperator *op)
void BIF_draw_manipulator (const struct bContext *C)
int peelObjectsTransForm (struct TransInfo *t, struct ListBase *depth_peels, const float mval[2])
int peelObjectsContext (struct bContext *C, struct ListBase *depth_peels, const float mval[2])
int snapObjectsTransform (struct TransInfo *t, const float mval[2], int *r_dist, float r_loc[3], float r_no[3], SnapMode mode)
int snapObjectsContext (struct bContext *C, const float mval[2], int *r_dist, float r_loc[3], float r_no[3], SnapMode mode)

Variables

enum { ... }  TfmMode

Detailed Description

Definition in file ED_transform.h.


Define Documentation

#define CTX_AUTOCONFIRM   32

Definition at line 94 of file ED_transform.h.

Referenced by special_aftertrans_update(), transform_exec(), and transformApply().

#define CTX_BMESH   64

Definition at line 95 of file ED_transform.h.

Referenced by createTransData().

#define CTX_EDGE   2

Definition at line 90 of file ED_transform.h.

Referenced by createTransData(), and initTransInfo().

#define CTX_MOVIECLIP   256

Definition at line 97 of file ED_transform.h.

Referenced by initTransform(), and transformEvent().

#define CTX_NDOF   128

Definition at line 96 of file ED_transform.h.

#define CTX_NO_MIRROR   16

Definition at line 93 of file ED_transform.h.

Referenced by recalcData_view3d().

#define CTX_NO_PET   4

Definition at line 91 of file ED_transform.h.

Referenced by initTransInfo().

#define CTX_NONE   0

Definition at line 88 of file ED_transform.h.

Referenced by calculateTransformCenter().

#define CTX_TEXTURE   1

Definition at line 89 of file ED_transform.h.

Referenced by createTransData(), initTransform(), and transformEvent().

#define CTX_TWEAK   8

Definition at line 92 of file ED_transform.h.

#define P_ALIGN_SNAP   (P_GEO_SNAP|(1 << 5))
#define P_AXIS   (1 << 2)
#define P_CONSTRAINT   (1 << 6)
#define P_CORRECT_UV   (1 << 8)

Definition at line 152 of file ED_transform.h.

Referenced by TRANSFORM_OT_edge_slide(), and Transform_Properties().

#define P_GEO_SNAP   (P_SNAP|(1 << 4))

Definition at line 148 of file ED_transform.h.

Referenced by TRANSFORM_OT_resize(), TRANSFORM_OT_rotate(), and Transform_Properties().

#define P_MIRROR   (1 << 0)
#define P_OPTIONS   (1 << 7)
#define P_PROPORTIONAL   (1 << 1)
#define P_SNAP   (1 << 3)
#define SNAP_MIN_DISTANCE   30

Definition at line 184 of file ED_transform.h.

Referenced by CalcSnapGeometry(), sk_getStrokeSnapPoint(), and sk_updateOverdraw().


Typedef Documentation

typedef struct DepthPeel DepthPeel
typedef enum SnapMode SnapMode

Enumeration Type Documentation

anonymous enum
Enumerator:
TFM_INIT 
TFM_DUMMY 
TFM_TRANSLATION 
TFM_ROTATION 
TFM_RESIZE 
TFM_TOSPHERE 
TFM_SHEAR 
TFM_WARP 
TFM_SHRINKFATTEN 
TFM_TILT 
TFM_TRACKBALL 
TFM_PUSHPULL 
TFM_CREASE 
TFM_MIRROR 
TFM_BONESIZE 
TFM_BONE_ENVELOPE 
TFM_CURVE_SHRINKFATTEN 
TFM_BONE_ROLL 
TFM_TIME_TRANSLATE 
TFM_TIME_SLIDE 
TFM_TIME_SCALE 
TFM_TIME_EXTEND 
TFM_TIME_DUPLICATE 
TFM_BAKE_TIME 
TFM_BEVEL 
TFM_BWEIGHT 
TFM_ALIGN 
TFM_EDGE_SLIDE 
TFM_SEQ_SLIDE 

Definition at line 55 of file ED_transform.h.

enum SnapMode
Enumerator:
SNAP_ALL 
SNAP_NOT_SELECTED 
SNAP_NOT_OBEDIT 

Definition at line 177 of file ED_transform.h.


Function Documentation

void BIF_clearTransformOrientation ( struct bContext C)
int BIF_countTransformOrientation ( const struct bContext C)
void BIF_createTransformOrientation ( struct bContext C,
struct ReportList reports,
char *  name,
int  use,
int  overwrite 
)
int BIF_do_manipulator ( struct bContext C,
struct wmEvent event,
struct wmOperator op 
)
void BIF_draw_manipulator ( const struct bContext C)
struct EnumPropertyItem* BIF_enumTransformOrientation ( struct bContext C) [read]
int BIF_menuselectTransformOrientation ( void  )
const char* BIF_menustringTransformOrientation ( const struct bContext C,
const char *  title 
)
void BIF_removeTransformOrientation ( struct bContext C,
struct TransformOrientation ts 
)
void BIF_removeTransformOrientationIndex ( struct bContext C,
int  index 
)
void BIF_selectOrientation ( void  )

Definition at line 379 of file transform.c.

References BIF_menustringTransformOrientation(), G, MEM_freeN(), pupmenu(), and simple_enum_gen::val.

Referenced by transformEvent().

void BIF_selectTransformOrientation ( struct bContext C,
struct TransformOrientation ts 
)
void BIF_selectTransformOrientationValue ( struct bContext C,
int  orientation 
)

Definition at line 368 of file transform_orientations.c.

References CTX_wm_view3d(), and View3D::twmode.

Referenced by select_orientation_exec().

int BIF_snappingSupported ( struct Object obedit)

Referenced by handleSnapping().

void BIF_TransformSetUndo ( const char *  str)
int calculateTransformCenter ( struct bContext C,
int  centerMode,
float *  vec 
)
void ED_getTransformOrientationMatrix ( const struct bContext C,
float  orientation_mat[][3],
int  activeOnly 
)
int peelObjectsContext ( struct bContext C,
struct ListBase depth_peels,
const float  mval[2] 
)
int peelObjectsTransForm ( struct TransInfo t,
struct ListBase depth_peels,
const float  mval[2] 
)
int snapObjectsContext ( struct bContext C,
const float  mval[2],
int *  r_dist,
float  r_loc[3],
float  r_no[3],
SnapMode  mode 
)
int snapObjectsTransform ( struct TransInfo t,
const float  mval[2],
int *  r_dist,
float  r_loc[3],
float  r_no[3],
SnapMode  mode 
)
void transform_keymap_for_space ( struct wmKeyConfig keyconf,
struct wmKeyMap keymap,
int  spaceid 
)
void transform_operatortypes ( void  )
void Transform_Properties ( struct wmOperatorType ot,
int  flags 
)

Variable Documentation

enum { ... } TfmMode