|
Blender V4.3
|
#include <ED_grease_pencil.hh>
Definition at line 118 of file ED_grease_pencil.hh.
|
default |
References depsgraph, DrawingPlacement(), and pos.
Referenced by DrawingPlacement(), DrawingPlacement(), DrawingPlacement(), DrawingPlacement(), 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 ToolSettings::gp_sculpt, blender::math::invert(), GP_Sculpt_Settings::lock_axis, blender::bke::greasepencil::Layer::to_world_space(), and Scene::toolsettings.
| 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, Scene::cursor, DrawingPlacement(), ELEM, blender::ed::greasepencil::Front, blender::math::invert(), View3DCursor::location, blender::ed::greasepencil::ObjectOrigin, plane_from_point_normal_v3(), blender::ed::greasepencil::Side, blender::ed::greasepencil::Surface, blender::bke::greasepencil::Layer::to_world_space(), 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, DrawingPlacement(), and MEM_dupallocN.
| blender::ed::greasepencil::DrawingPlacement::DrawingPlacement | ( | DrawingPlacement && | other | ) |
Definition at line 220 of file grease_pencil_utils.cc.
References DrawingPlacement().
| 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::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 363 of file grease_pencil_utils.cc.
References blender::Span< T >::index_range(), and blender::threading::parallel_for().
Projects a screen space coordinate to the local drawing space including camera shift.
Definition at line 345 of file grease_pencil_utils.cc.
References ED_view3d_win_to_3d_on_plane(), ED_view3d_win_to_3d_with_shift(), blender::ed::greasepencil::Surface, blender::math::transform_point(), and blender::ed::greasepencil::View.
Referenced by blender::ed::greasepencil::boundary_to_curves().
Projects a 3D position (in local space) to the drawing plane.
Definition at line 372 of file grease_pencil_utils.cc.
References ED_view3d_project_float_global(), RegionView3D::is_persp, isect_ray_plane_v3(), blender::math::normalize(), plane_from_point_normal_v3(), pos, blender::ed::greasepencil::Surface, blender::math::transform_point(), V3D_PROJ_TEST_NOP, blender::ed::greasepencil::View, 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 416 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(), 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 425 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().