Blender
V3.3
|
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 |
V3DSnapCursorState * | snap_state |
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 |
enum ePlace_SnapTo | snap_to |
Definition at line 70 of file view3d_placement.c.
anonymous enum |
Can index into InteractivePlaceData.step.
Enumerator | |
---|---|
STEP_BASE | |
STEP_DEPTH |
Definition at line 141 of file view3d_placement.c.
ScrArea* InteractivePlaceData::area |
Definition at line 73 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 96 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 80 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 126 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 116 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 121 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 78 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 88 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 88 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 105 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 94 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 94 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
bool InteractivePlaceData::is_snap_found |
Definition at line 137 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
bool InteractivePlaceData::is_snap_invert |
Definition at line 137 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 152 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 133 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 134 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 95 of file view3d_placement.c.
Referenced by draw_primitive_view_impl(), view3d_interactive_add_begin(), and view3d_interactive_add_modal().
enum ePlace_PrimType InteractivePlaceData::primitive_type |
Definition at line 138 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 75 of file view3d_placement.c.
Referenced by draw_primitive_view(), draw_primitive_view_impl(), view3d_interactive_add_begin(), view3d_interactive_add_exit(), view3d_interactive_add_invoke(), and view3d_interactive_add_modal().
Scene* InteractivePlaceData::scene |
Definition at line 72 of file view3d_placement.c.
Referenced by view3d_interactive_add_invoke(), and view3d_interactive_add_modal().
float InteractivePlaceData::snap_co[3] |
Definition at line 138 of file view3d_placement.c.
Referenced by view3d_interactive_add_modal().
V3DSnapCursorState* InteractivePlaceData::snap_state |
Definition at line 136 of file view3d_placement.c.
Referenced by idp_rna_plane_axis_get_fn(), idp_rna_plane_axis_set_fn(), idp_rna_plane_depth_get_fn(), idp_rna_plane_depth_set_fn(), idp_rna_plane_orient_get_fn(), idp_rna_plane_orient_set_fn(), idp_rna_snap_target_get_fn(), idp_rna_snap_target_set_fn(), idp_rna_use_plane_axis_auto_get_fn(), idp_rna_use_plane_axis_auto_set_fn(), preview_plane_free_fn(), view3d_interactive_add_begin(), view3d_interactive_add_exit(), view3d_interactive_add_modal(), and WIDGETGROUP_placement_setup().
enum ePlace_SnapTo InteractivePlaceData::snap_to |
Definition at line 155 of file view3d_placement.c.
Referenced by idp_rna_snap_target_set_fn(), view3d_interactive_add_begin(), 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 137 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 149 of file view3d_placement.c.
Referenced by view3d_interactive_add_begin(), and view3d_interactive_add_modal().
View3D* InteractivePlaceData::v3d |
Definition at line 74 of file view3d_placement.c.
Referenced by draw_primitive_view(), 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 131 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 155 of file view3d_placement.c.
Referenced by view3d_interactive_add_invoke(), and view3d_interactive_add_modal().