|
Blender V4.3
|
#include <ED_grease_pencil.hh>
Definition at line 118 of file ED_grease_pencil.hh.
|
default |
Referenced by operator=(), and operator=().
| blender::ed::greasepencil::DrawingPlacement::DrawingPlacement | ( | const Scene & | scene, |
| const ARegion & | region, | ||
| const View3D & | view3d, | ||
| const Object & | eval_object, | ||
| const bke::greasepencil::Layer * | layer ) |
Definition at line 38 of file grease_pencil_utils.cc.
References blender::ed::greasepencil::Cursor, ELEM, blender::ed::greasepencil::Front, GP_LOCKAXIS_CURSOR, GP_LOCKAXIS_VIEW, GP_LOCKAXIS_X, GP_LOCKAXIS_Y, GP_LOCKAXIS_Z, GP_PROJECT_CURSOR, GP_PROJECT_DEPTH_ONLY_SELECTED, GP_PROJECT_DEPTH_STROKE, GP_PROJECT_DEPTH_VIEW, GP_PROJECT_VIEWSPACE, blender::math::invert(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::ed::greasepencil::NearestStroke, blender::ed::greasepencil::ObjectOrigin, plane_from_point_normal_v3(), blender::ed::greasepencil::Side, blender::ed::greasepencil::Surface, blender::ed::greasepencil::Top, blender::math::transform_direction(), blender::math::transpose(), and blender::ed::greasepencil::View.
| blender::ed::greasepencil::DrawingPlacement::DrawingPlacement | ( | const Scene & | scene, |
| const ARegion & | region, | ||
| const View3D & | view3d, | ||
| const Object & | eval_object, | ||
| const bke::greasepencil::Layer * | layer, | ||
| ReprojectMode | reproject_mode, | ||
| float | surface_offset = 0.0f, | ||
| ViewDepths * | view_depths = nullptr ) |
Construct the object based on a ReprojectMode enum instead of Scene values.
Definition at line 119 of file grease_pencil_utils.cc.
References blender::ed::greasepencil::Cursor, ELEM, blender::ed::greasepencil::Front, blender::math::invert(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::ed::greasepencil::ObjectOrigin, plane_from_point_normal_v3(), blender::ed::greasepencil::Side, blender::ed::greasepencil::Surface, blender::ed::greasepencil::Top, blender::math::transform_direction(), blender::math::transpose(), and blender::ed::greasepencil::View.
| blender::ed::greasepencil::DrawingPlacement::DrawingPlacement | ( | const DrawingPlacement & | other | ) |
Definition at line 196 of file grease_pencil_utils.cc.
References ViewDepths::depths, and MEM_dupallocN.
| blender::ed::greasepencil::DrawingPlacement::DrawingPlacement | ( | DrawingPlacement && | other | ) |
Definition at line 220 of file grease_pencil_utils.cc.
| blender::ed::greasepencil::DrawingPlacement::~DrawingPlacement | ( | ) |
Definition at line 261 of file grease_pencil_utils.cc.
References ED_view3d_depths_free().
| void blender::ed::greasepencil::DrawingPlacement::cache_viewport_depths | ( | Depsgraph * | depsgraph, |
| ARegion * | region, | ||
| View3D * | view3d ) |
Definition at line 278 of file grease_pencil_utils.cc.
References depsgraph, ED_view3d_depth_override(), use_project_to_surface(), V3D_DEPTH_GPENCIL_ONLY, V3D_DEPTH_NO_GPENCIL, and V3D_DEPTH_SELECTED_ONLY.
Referenced by blender::ed::greasepencil::grease_pencil_primitive_invoke().
| DrawingPlacement & blender::ed::greasepencil::DrawingPlacement::operator= | ( | const DrawingPlacement & | other | ) |
Definition at line 241 of file grease_pencil_utils.cc.
References DrawingPlacement().
| DrawingPlacement & blender::ed::greasepencil::DrawingPlacement::operator= | ( | DrawingPlacement && | other | ) |
Definition at line 251 of file grease_pencil_utils.cc.
References DrawingPlacement().
Projects a screen space coordinate to the local drawing space.
Definition at line 327 of file grease_pencil_utils.cc.
References ED_view3d_win_to_3d(), ED_view3d_win_to_3d_on_plane(), blender::ed::greasepencil::Surface, blender::math::transform_point(), and blender::ed::greasepencil::View.
Referenced by blender::ed::greasepencil::boundary_to_curves(), blender::ed::greasepencil::calculate_texture_space(), blender::ed::greasepencil::fill_strokes(), blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw(), blender::ed::greasepencil::grease_pencil_primitive_drag_all_update(), blender::ed::greasepencil::grease_pencil_primitive_drag_update(), blender::ed::greasepencil::grease_pencil_primitive_event_modal_map(), blender::ed::greasepencil::grease_pencil_primitive_extruding_update(), blender::ed::greasepencil::grease_pencil_primitive_grab_update(), blender::ed::greasepencil::grease_pencil_primitive_invoke(), blender::ed::greasepencil::grease_pencil_primitive_mouse_event(), blender::ed::greasepencil::grease_pencil_primitive_rotate_all_update(), blender::ed::greasepencil::grease_pencil_primitive_scale_all_update(), and blender::ed::greasepencil::grease_pencil_primitive_update_curves().
| void blender::ed::greasepencil::DrawingPlacement::project | ( | Span< float2 > | src, |
| MutableSpan< float3 > | dst ) const |
Definition at line 345 of file grease_pencil_utils.cc.
References blender::Span< T >::index_range(), and blender::threading::parallel_for().
Projects a 3D position (in local space) to the drawing plane.
Definition at line 354 of file grease_pencil_utils.cc.
References ED_view3d_project_float_global(), RegionView3D::is_persp, isect_ray_plane_v3(), blender::math::normalize(), pos, blender::math::transform_point(), V3D_PROJ_TEST_NOP, and RegionView3D::viewinv.
Referenced by blender::ed::greasepencil::grease_pencil_reproject_exec(), and blender::ed::sculpt_paint::greasepencil::outline_stroke().
| void blender::ed::greasepencil::DrawingPlacement::reproject | ( | Span< float3 > | src, |
| MutableSpan< float3 > | dst ) const |
Definition at line 400 of file grease_pencil_utils.cc.
References blender::Span< T >::index_range(), and blender::threading::parallel_for().
| void blender::ed::greasepencil::DrawingPlacement::set_origin_to_nearest_stroke | ( | float2 | co | ) |
Definition at line 293 of file grease_pencil_utils.cc.
References BLI_assert, ED_view3d_depth_read_cached(), ED_view3d_depth_unproject_v3(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), and plane_from_point_normal_v3().
Referenced by blender::ed::greasepencil::grease_pencil_primitive_invoke().
| float4x4 blender::ed::greasepencil::DrawingPlacement::to_world_space | ( | ) | const |
Definition at line 409 of file grease_pencil_utils.cc.
Referenced by blender::ed::greasepencil::boundary_to_curves(), blender::ed::greasepencil::draw_control_points(), and blender::ed::greasepencil::grease_pencil_primitive_update_curves().
| bool blender::ed::greasepencil::DrawingPlacement::use_project_to_nearest_stroke | ( | ) | const |
Definition at line 273 of file grease_pencil_utils.cc.
References blender::ed::greasepencil::NearestStroke.
Referenced by blender::ed::greasepencil::grease_pencil_primitive_invoke().
| bool blender::ed::greasepencil::DrawingPlacement::use_project_to_surface | ( | ) | const |
Definition at line 268 of file grease_pencil_utils.cc.
References blender::ed::greasepencil::Surface.
Referenced by cache_viewport_depths(), and blender::ed::greasepencil::grease_pencil_primitive_invoke().