Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_transform_snap_object_context.h
| Context not available. | |||||
| unsigned int ob_uuid; | unsigned int ob_uuid; | ||||
| }; | }; | ||||
| /** parameters that define which objects will be used to snap. */ | |||||
| struct SnapObjectParams { | |||||
| /* special context sensitive handling for the active or selected object */ | |||||
| char snap_select; | |||||
| /* use editmode cage */ | |||||
| unsigned int use_object_edit_cage : 1; | |||||
| }; | |||||
| typedef struct SnapObjectContext SnapObjectContext; | typedef struct SnapObjectContext SnapObjectContext; | ||||
| SnapObjectContext *ED_transform_snap_object_context_create( | SnapObjectContext *ED_transform_snap_object_context_create( | ||||
| struct Main *bmain, struct Scene *scene, struct SceneLayer *sl, int flag); | struct Main *bmain, struct Scene *scene, struct SceneLayer *sl, const SnapSelect snap_select, bool use_object_edit_cage); | ||||
| SnapObjectContext *ED_transform_snap_object_context_create_view3d( | SnapObjectContext *ED_transform_snap_object_context_create_view3d( | ||||
| struct Main *bmain, struct Scene *scene, struct SceneLayer *sl, int flag, | struct Main *bmain, struct Scene *scene, struct SceneLayer *sl, const SnapSelect snap_select, bool use_object_edit_cage, | ||||
| /* extra args for view3d */ | /* extra args for view3d */ | ||||
| const struct ARegion *ar, const struct View3D *v3d); | const struct ARegion *ar, const struct View3D *v3d, const int out_bound_dist); | ||||
| void ED_transform_snap_object_context_destroy(SnapObjectContext *sctx); | void ED_transform_snap_object_context_destroy(SnapObjectContext *sctx); | ||||
| /* callbacks to filter how snap works */ | /* callbacks to filter how snap works */ | ||||
| Context not available. | |||||
| bool ED_transform_snap_object_project_ray_ex( | bool ED_transform_snap_object_project_ray_ex( | ||||
| struct SnapObjectContext *sctx, | struct SnapObjectContext *sctx, | ||||
| const struct SnapObjectParams *params, | |||||
| const float ray_start[3], const float ray_normal[3], float *ray_depth, | const float ray_start[3], const float ray_normal[3], float *ray_depth, | ||||
| /* return args */ | /* return args */ | ||||
| float r_loc[3], float r_no[3], int *r_index, | float r_loc[3], float r_no[3], int *r_index, | ||||
| struct Object **r_ob, float r_obmat[4][4]); | struct Object **r_ob, float r_obmat[4][4]); | ||||
| bool ED_transform_snap_object_project_ray( | bool ED_transform_snap_object_project_ray( | ||||
| SnapObjectContext *sctx, | SnapObjectContext *sctx, | ||||
| const struct SnapObjectParams *params, | |||||
| const float ray_origin[3], const float ray_direction[3], float *ray_depth, | const float ray_origin[3], const float ray_direction[3], float *ray_depth, | ||||
| float r_co[3], float r_no[3]); | float r_co[3], float r_no[3]); | ||||
| bool ED_transform_snap_object_project_ray_all( | bool ED_transform_snap_object_project_ray_all( | ||||
| SnapObjectContext *sctx, | SnapObjectContext *sctx, | ||||
| const struct SnapObjectParams *params, | |||||
| const float ray_start[3], const float ray_normal[3], | const float ray_start[3], const float ray_normal[3], | ||||
| float ray_depth, bool sort, | float ray_depth, bool sort, | ||||
| struct ListBase *r_hit_list); | struct ListBase *r_hit_list); | ||||
| bool ED_transform_snap_object_project_view3d_ex( | unsigned short ED_transform_snap_object_project_view3d_ex( | ||||
| struct SnapObjectContext *sctx, | struct SnapObjectContext *sctx, | ||||
| const unsigned short snap_to, | const unsigned short snap_to, | ||||
| const struct SnapObjectParams *params, | |||||
| const float mval[2], float *dist_px, | const float mval[2], float *dist_px, | ||||
| float *ray_depth, | float *ray_depth, | ||||
| float r_loc[3], float r_no[3], int *r_index); | float r_loc[3], float r_no[3], int *r_index); | ||||
| bool ED_transform_snap_object_project_view3d( | bool ED_transform_snap_object_project_view3d( | ||||
| struct SnapObjectContext *sctx, | struct SnapObjectContext *sctx, | ||||
| const unsigned short snap_to, | const unsigned short snap_to, | ||||
| const struct SnapObjectParams *params, | |||||
| const float mval[2], float *dist_px, | const float mval[2], float *dist_px, | ||||
| float *ray_depth, | float *ray_depth, | ||||
| /* return args */ | /* return args */ | ||||
| float r_loc[3], float r_no[3]); | float r_loc[3], float r_no[3]); | ||||
| bool ED_transform_snap_object_project_view3d_mixed( | bool ED_transform_snap_object_project_view3d_mixed( | ||||
| SnapObjectContext *sctx, | SnapObjectContext *sctx, | ||||
| const unsigned short snap_to_flag, | const unsigned short snap_to_flag, | ||||
| const struct SnapObjectParams *params, | |||||
| const float mval_fl[2], float *dist_px, | const float mval_fl[2], float *dist_px, | ||||
| bool use_depth, | bool use_depth, | ||||
| float r_co[3], float r_no[3]); | float r_co[3], float r_no[3]); | ||||
| bool ED_transform_snap_object_project_all_view3d_ex( | bool ED_transform_snap_object_project_all_view3d_ex( | ||||
| SnapObjectContext *sctx, | SnapObjectContext *sctx, | ||||
| const struct SnapObjectParams *params, | |||||
| const float mval[2], | const float mval[2], | ||||
| float ray_depth, bool sort, | float ray_depth, bool sort, | ||||
| ListBase *r_hit_list); | ListBase *r_hit_list); | ||||
| Context not available. | |||||