|
Blender
V2.93
|
Public Types | |
| enum | { STEP_BASE = 0 , STEP_DEPTH = 1 } |
Public Attributes | |
| Scene * | scene |
| ScrArea * | area |
| View3D * | v3d |
| ARegion * | region |
| void * | draw_handle_view |
| float | co_src [3] |
| struct { | |
| bool is_centered | |
| bool is_centered_init | |
| bool is_fixed_aspect | |
| bool is_fixed_aspect_init | |
| float plane [4] | |
| float co_dst [3] | |
| bool is_degenerate_view_align | |
| float degenerate_diagonal [3] | |
| float degenerate_diagonal_display [3] | |
| int degenerate_axis | |
| } | step [2] |
| float | view_plane [4] |
| float | matrix_orient [3][3] |
| int | orient_axis |
| bool | use_snap |
| bool | is_snap_found |
| bool | is_snap_invert |
| float | snap_co [3] |
| enum InteractivePlaceData:: { ... } | step_index |
| enum ePlace_PrimType | primitive_type |
| bool | use_tool |
| short | launch_event |
| bool | wait_for_input |
| wmGizmo * | snap_gizmo |
| enum ePlace_SnapTo | snap_to |
Definition at line 115 of file view3d_placement.c.
| anonymous enum |
Can index into InteractivePlaceData.step.
| Enumerator | |
|---|---|
| STEP_BASE | |
| STEP_DEPTH | |
Definition at line 185 of file view3d_placement.c.
| ScrArea* InteractivePlaceData::area |
Definition at line 118 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), view3d_interactive_add_invoke(), and view3d_interactive_add_modal().
| float InteractivePlaceData::co_dst[3] |
Definition at line 141 of file view3d_placement.c.
Referenced by calc_bbox(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| float InteractivePlaceData::co_src[3] |
Definition at line 125 of file view3d_placement.c.
Referenced by calc_bbox(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| int InteractivePlaceData::degenerate_axis |
Index into matrix_orient which is degenerate.
Definition at line 171 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin().
| float InteractivePlaceData::degenerate_diagonal[3] |
When view aligned, use a diagonal offset (cavalier projection) to give user feedback about the depth being set.
Currently this is only used for orthogonal views since perspective views nearly always show some depth, even when view aligned.
Definition at line 161 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| float InteractivePlaceData::degenerate_diagonal_display[3] |
Corrected for display, so what's shown on-screen doesn't loop to be reversed in relation to cursor-motion.
Definition at line 166 of file view3d_placement.c.
Referenced by draw_primitive_view_impl(), and view3d_interactive_add_begin().
| void* InteractivePlaceData::draw_handle_view |
Draw object preview region draw callback.
Definition at line 123 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_exit().
| bool InteractivePlaceData::is_centered |
When centered, drag out the shape from the center. Toggling the setting flips the value from it's initial state.
Definition at line 133 of file view3d_placement.c.
Referenced by calc_bbox(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::is_centered_init |
Definition at line 133 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::is_degenerate_view_align |
We can't project the mouse cursor onto plane, in this case view3d_win_to_3d_on_plane_maybe_fallback is used.
Definition at line 150 of file view3d_placement.c.
Referenced by draw_primitive_view(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::is_fixed_aspect |
When fixed, constrain the X/Y aspect for the initial STEP_BASE drag. For STEP_DEPTH match the maximum X/Y dimension. Toggling the setting flips the value from it's initial state.
Definition at line 139 of file view3d_placement.c.
Referenced by calc_bbox(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::is_fixed_aspect_init |
Definition at line 139 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::is_snap_found |
Definition at line 181 of file view3d_placement.c.
Referenced by view3d_interactive_add_calc_plane(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::is_snap_invert |
Definition at line 181 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| short InteractivePlaceData::launch_event |
Event used to start the operator.
Definition at line 196 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| float InteractivePlaceData::matrix_orient[3][3] |
Definition at line 178 of file view3d_placement.c.
Referenced by calc_bbox(), draw_primitive_view_impl(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| int InteractivePlaceData::orient_axis |
Definition at line 179 of file view3d_placement.c.
Referenced by calc_bbox(), draw_primitive_view_impl(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| float InteractivePlaceData::plane[4] |
Definition at line 140 of file view3d_placement.c.
Referenced by draw_primitive_view_impl(), view3d_interactive_add_begin(), view3d_interactive_add_calc_plane(), and view3d_interactive_add_modal().
| enum ePlace_PrimType InteractivePlaceData::primitive_type |
Definition at line 182 of file view3d_placement.c.
Referenced by draw_primitive_view_impl(), view3d_interactive_add_begin(), view3d_interactive_add_modal(), and VIEW3D_OT_interactive_add().
| ARegion* InteractivePlaceData::region |
Definition at line 120 of file view3d_placement.c.
Referenced by draw_primitive_view(), draw_primitive_view_impl(), gizmo_plane_update_cursor(), view3d_interactive_add_begin(), view3d_interactive_add_calc_plane(), view3d_interactive_add_exit(), view3d_interactive_add_invoke(), and view3d_interactive_add_modal().
| Scene* InteractivePlaceData::scene |
Definition at line 117 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), view3d_interactive_add_invoke(), and view3d_interactive_add_modal().
| float InteractivePlaceData::snap_co[3] |
Definition at line 182 of file view3d_placement.c.
Referenced by view3d_interactive_add_modal().
| wmGizmo* InteractivePlaceData::snap_gizmo |
Optional snap gizmo, needed for snapping.
Definition at line 202 of file view3d_placement.c.
Referenced by gizmo_plane_update_cursor(), view3d_interactive_add_begin(), view3d_interactive_add_calc_plane(), and view3d_interactive_add_modal().
| enum ePlace_SnapTo InteractivePlaceData::snap_to |
Definition at line 202 of file view3d_placement.c.
Referenced by gizmo_plane_update_cursor(), view3d_interactive_add_begin(), view3d_interactive_add_calc_plane(), and view3d_interactive_add_modal().
| struct { ... } InteractivePlaceData::step[2] |
Primary & secondary steps.
Referenced by calc_bbox(), draw_primitive_view(), draw_primitive_view_impl(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| enum { ... } InteractivePlaceData::step_index |
Can index into InteractivePlaceData.step.
Referenced by calc_bbox(), draw_primitive_view(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::use_snap |
Definition at line 181 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::use_tool |
Activated from the tool-system.
Definition at line 193 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| View3D* InteractivePlaceData::v3d |
Definition at line 119 of file view3d_placement.c.
Referenced by draw_primitive_view(), gizmo_plane_update_cursor(), view3d_interactive_add_begin(), view3d_interactive_add_calc_plane(), view3d_interactive_add_invoke(), and view3d_interactive_add_modal().
| float InteractivePlaceData::view_plane[4] |
When we can't project onto the real plane, use this in it's place.
Definition at line 176 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
| bool InteractivePlaceData::wait_for_input |
When activated without a tool.
Definition at line 199 of file view3d_placement.c.
Referenced by view3d_interactive_add_invoke(), and view3d_interactive_add_modal().