|
Blender V5.0
|
Classes | |
| struct | DualBuffer |
| struct | DualBitBuffer |
| struct | HideShowOperation |
Internal Visibility Utilities | |
Functions that assist with applying changes to the different bke::pbvh::Tree types. | |
| enum class | VisAction { Hide = 0 , Show = 1 } |
| static bool | action_to_hide (const VisAction action) |
| static void | calc_face_hide (const Span< int > node_faces, const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< bool > hide_vert, MutableSpan< bool > hide_face) |
| static void | flush_face_changes_node (Mesh &mesh, bke::pbvh::Tree &pbvh, const IndexMask &node_mask, const Span< bool > hide_vert) |
| static void | flush_face_changes (Mesh &mesh, const Span< bool > hide_vert) |
| static void | flush_edge_changes (Mesh &mesh, const Span< bool > hide_vert) |
| static void | vert_hide_update (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const FunctionRef< void(Span< int >, MutableSpan< bool >)> calc_hide) |
| static void | grid_hide_update (Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const FunctionRef< void(const int, MutableBoundedBitSpan)> calc_hide) |
| static void | partialvis_update_bmesh_verts (const Set< BMVert *, 0 > &verts, const VisAction action, const FunctionRef< bool(BMVert *v)> should_update, bool *any_changed, bool *any_visible) |
| static void | partialvis_update_bmesh_faces (const Set< BMFace *, 0 > &faces) |
| static void | partialvis_update_bmesh_nodes (const Depsgraph &depsgraph, Object &ob, const IndexMask &node_mask, const VisAction action, const FunctionRef< bool(BMVert *v)> vert_test_fn) |
Global Visibility Operators | |
Operators that act upon the entirety of a given object's mesh. | |
| static constexpr float | VERTEX_ITERATION_THRESHOLD = 50000.0f |
| static void | partialvis_all_update_mesh (const Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_all_update_grids (Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_all_update_bmesh (const Depsgraph &depsgraph, Object &ob, const VisAction action, const IndexMask &node_mask) |
| static wmOperatorStatus | hide_show_all_exec (bContext *C, wmOperator *op) |
| static void | partialvis_masked_update_mesh (const Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_masked_update_grids (Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_masked_update_bmesh (const Depsgraph &depsgraph, Object &ob, const VisAction action, const IndexMask &node_mask) |
| static wmOperatorStatus | hide_show_masked_exec (bContext *C, wmOperator *op) |
| static void | hide_show_operator_properties (wmOperatorType *ot) |
| void | PAINT_OT_hide_show_masked (wmOperatorType *ot) |
| void | PAINT_OT_hide_show_all (wmOperatorType *ot) |
| static void | invert_visibility_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static void | invert_visibility_grids (Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static void | invert_visibility_bmesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static wmOperatorStatus | visibility_invert_exec (bContext *C, wmOperator *op) |
| void | PAINT_OT_visibility_invert (wmOperatorType *ot) |
| template<bool value> | |
| static void | affect_visibility_mesh (const IndexRange face, const Span< int > corner_verts, const Span< bool > read_buffer, MutableSpan< bool > write_buffer) |
| static void | propagate_vertex_visibility (Mesh &mesh, DualBuffer &buffers, const VArraySpan< bool > &hide_poly, const VisAction action, const int iterations) |
| static void | update_undo_state (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const Span< bool > old_hide_vert, const Span< bool > new_hide_vert) |
| static void | update_node_visibility_from_face_changes (bke::pbvh::Tree &pbvh, const IndexMask &node_mask, const Span< bool > orig_hide_poly, const Span< bool > new_hide_poly, const Span< bool > hide_vert) |
| static void | grow_shrink_visibility_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const VisAction action, const int iterations) |
| static void | grow_shrink_visibility_grid (Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const VisAction action, const int iterations) |
| static Array< bool > | duplicate_visibility_bmesh (const Object &object) |
| static void | grow_shrink_visibility_bmesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const VisAction action, const int iterations) |
| static wmOperatorStatus | visibility_filter_exec (bContext *C, wmOperator *op) |
| void | PAINT_OT_visibility_filter (wmOperatorType *ot) |
|
strong |
| Enumerator | |
|---|---|
| Hide | |
| Show | |
Definition at line 183 of file paint_hide.cc.
|
static |
Definition at line 188 of file paint_hide.cc.
References Hide.
Referenced by grow_shrink_visibility_bmesh(), grow_shrink_visibility_grid(), partialvis_gesture_update_grids(), partialvis_gesture_update_mesh(), partialvis_masked_update_grids(), and partialvis_masked_update_mesh().
|
static |
Definition at line 833 of file paint_hide.cc.
References blender::bke::mesh::face_corner_next(), blender::bke::mesh::face_corner_prev(), and next.
|
static |
Definition at line 194 of file paint_hide.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), faces, i, blender::Span< T >::index_range(), blender::Span< T >::slice(), and v.
Referenced by flush_face_changes_node().
|
static |
Definition at line 1081 of file paint_hide.cc.
References bm, SculptSession::bm, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_vert_at_index(), duplicate_visibility_bmesh(), i, result, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by duplicate_visibility_bmesh(), and grow_shrink_visibility_bmesh().
|
static |
Definition at line 269 of file paint_hide.cc.
References blender::bke::Edge, blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::mesh_edge_hide_from_vert(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by grow_shrink_visibility_mesh(), and vert_hide_update().
|
static |
Definition at line 257 of file paint_hide.cc.
References blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::mesh_face_hide_from_vert(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by propagate_vertex_visibility().
|
static |
Definition at line 208 of file paint_hide.cc.
References calc_face_hide(), blender::bke::Face, faces, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::ed::sculpt_paint::gather_data_mesh(), i, blender::array_utils::indexed_data_equal(), blender::index_mask::IndexMask::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_visibility_mesh(), blender::bke::pbvh::Tree::nodes(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::Span< T >::size(), blender::bke::SpanAttributeWriter< T >::span, and blender::bke::pbvh::Tree::tag_visibility_changed().
Referenced by vert_hide_update().
|
static |
Definition at line 320 of file paint_hide.cc.
References blender::IndexRange::begin(), BKE_pbvh_sync_visibility_from_verts(), BKE_subdiv_ccg_grid_hidden_ensure(), depsgraph, blender::IndexRange::end(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::group_size(), blender::ed::sculpt_paint::undo::HideVert, i, blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::index_mask::IndexMask::min_array_size(), MULTIRES_HIDDEN_MODIFIED, multires_mark_as_modified(), blender::bke::pbvh::node_update_visibility_grids(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::Span< T >::size(), and blender::bke::pbvh::Tree::tag_visibility_changed().
Referenced by partialvis_all_update_grids(), partialvis_gesture_update_grids(), and partialvis_masked_update_grids().
| void blender::ed::sculpt_paint::hide::grids_show_all | ( | Depsgraph & | depsgraph, |
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 147 of file paint_hide.cc.
References blender::Span< T >::begin(), BKE_pbvh_sync_visibility_from_verts(), BKE_subdiv_ccg_grid_hidden_free(), depsgraph, blender::Span< T >::end(), blender::IndexMask::from_predicate(), blender::ed::sculpt_paint::undo::HideVert, i, blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::index_mask::IndexMask::is_empty(), MULTIRES_HIDDEN_MODIFIED, multires_mark_as_modified(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), blender::bke::pbvh::Tree::tag_visibility_changed(), and blender::bke::pbvh::Tree::update_visibility().
Referenced by partialvis_all_update_grids(), and blender::ed::sculpt_paint::face_set::show_all().
|
static |
Definition at line 1093 of file paint_hide.cc.
References action_to_hide(), BM_elem_index_get, depsgraph, duplicate_visibility_bmesh(), grow_shrink_visibility_bmesh(), i, partialvis_update_bmesh_nodes(), UNUSED_VARS, and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by grow_shrink_visibility_bmesh(), and visibility_filter_exec().
|
static |
Definition at line 1008 of file paint_hide.cc.
References action_to_hide(), BKE_pbvh_sync_visibility_from_verts(), BKE_subdiv_ccg_grid_hidden_ensure(), BKE_subdiv_ccg_key_top_level(), BKE_subdiv_ccg_neighbor_coords_get(), buffers, CCG_grid_xy_to_index(), SubdivCCGNeighbors::coords, depsgraph, blender::index_mask::IndexMask::foreach_index(), IndexMask::from_bools(), SubdivCCGCoord::grid_index, CCGKey::grid_size, grow_shrink_visibility_grid(), blender::ed::sculpt_paint::undo::HideVert, i, MULTIRES_HIDDEN_MODIFIED, multires_mark_as_modified(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_visibility_changed(), blender::bke::pbvh::Tree::update_visibility(), SubdivCCGCoord::x, x, SubdivCCGCoord::y, and y.
Referenced by grow_shrink_visibility_grid(), and visibility_filter_exec().
|
static |
Definition at line 952 of file paint_hide.cc.
References buffers, blender::bke::AttributeAccessor::contains(), blender::array_utils::copy(), depsgraph, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), flush_edge_changes(), grow_shrink_visibility_mesh(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::object::pbvh_get(), blender::bke::Point, propagate_vertex_visibility(), blender::bke::SpanAttributeWriter< T >::span, update_node_visibility_from_face_changes(), and update_undo_state().
Referenced by grow_shrink_visibility_mesh(), and visibility_filter_exec().
|
static |
Definition at line 506 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, blender::bke::pbvh::Grids, Hide, blender::ed::sculpt_paint::islands::invalidate(), blender::bke::pbvh::Mesh, OPERATOR_FINISHED, partialvis_all_update_bmesh(), partialvis_all_update_grids(), partialvis_all_update_mesh(), blender::bke::object::pbvh_ensure(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin_ex(), blender::ed::sculpt_paint::undo::push_end(), RNA_enum_get(), Object::sculpt, Show, tag_update_visibility(), and blender::bke::pbvh::Tree::type().
Referenced by PAINT_OT_hide_show_all().
|
static |
Definition at line 1292 of file paint_hide.cc.
References blender::bke::pbvh::BMesh, C, CTX_data_depsgraph_pointer(), depsgraph, blender::bke::pbvh::Grids, hide_show_apply_for_symmetry_pass(), blender::bke::pbvh::Mesh, ViewContext::obact, partialvis_gesture_update_bmesh(), partialvis_gesture_update_grids(), partialvis_gesture_update_mesh(), blender::bke::object::pbvh_get(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_apply_for_symmetry_pass(), and hide_show_init_properties().
|
static |
Definition at line 1282 of file paint_hide.cc.
References C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, hide_show_begin(), blender::bke::object::pbvh_ensure(), and blender::ed::sculpt_paint::undo::push_begin().
Referenced by hide_show_begin(), and hide_show_init_properties().
|
static |
Definition at line 1308 of file paint_hide.cc.
References C, hide_show_end(), blender::ed::sculpt_paint::islands::invalidate(), ViewContext::obact, blender::ed::sculpt_paint::undo::push_end(), Object::sculpt, tag_update_visibility(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_end(), and hide_show_init_properties().
|
static |
Definition at line 1332 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_box_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_box(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_box_exec(), and PAINT_OT_hide_show().
|
static |
Definition at line 1343 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_lasso_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_lasso(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_lasso_exec(), and PAINT_OT_hide_show_lasso_gesture().
|
static |
Definition at line 1354 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_line_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_line(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_line_exec(), and PAINT_OT_hide_show_line_gesture().
|
static |
Definition at line 1365 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_polyline_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_polyline(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_polyline_exec(), and PAINT_OT_hide_show_polyline_gesture().
|
static |
Definition at line 1315 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, blender::ed::sculpt_paint::gesture::Operation::apply_for_symmetry_pass, blender::ed::sculpt_paint::gesture::Operation::begin, blender::ed::sculpt_paint::gesture::Operation::end, hide_show_apply_for_symmetry_pass(), hide_show_begin(), hide_show_end(), hide_show_init_properties(), MEM_callocN(), blender::ed::sculpt_paint::hide::HideShowOperation::op, blender::ed::sculpt_paint::gesture::GestureData::operation, wmOperator::ptr, RNA_enum_get(), and blender::ed::sculpt_paint::gesture::GestureData::selection_type.
Referenced by hide_show_gesture_box_exec(), hide_show_gesture_lasso_exec(), hide_show_gesture_line_exec(), hide_show_gesture_polyline_exec(), and hide_show_init_properties().
|
static |
Definition at line 623 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, blender::bke::pbvh::Grids, Hide, blender::ed::sculpt_paint::islands::invalidate(), blender::bke::pbvh::Mesh, OPERATOR_FINISHED, partialvis_masked_update_bmesh(), partialvis_masked_update_grids(), partialvis_masked_update_mesh(), blender::bke::object::pbvh_ensure(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin_ex(), blender::ed::sculpt_paint::undo::push_end(), RNA_enum_get(), Object::sculpt, Show, tag_update_visibility(), and blender::bke::pbvh::Tree::type().
Referenced by PAINT_OT_hide_show_masked().
|
static |
Definition at line 1376 of file paint_hide.cc.
References hide_show_operator_gesture_properties(), blender::ed::sculpt_paint::gesture::Inside, ot, blender::ed::sculpt_paint::gesture::Outside, and RNA_def_enum().
Referenced by hide_show_operator_gesture_properties(), PAINT_OT_hide_show(), PAINT_OT_hide_show_lasso_gesture(), PAINT_OT_hide_show_line_gesture(), and PAINT_OT_hide_show_polyline_gesture().
|
static |
Definition at line 667 of file paint_hide.cc.
References Hide, ot, RNA_def_enum(), and Show.
Referenced by PAINT_OT_hide_show(), PAINT_OT_hide_show_all(), PAINT_OT_hide_show_lasso_gesture(), PAINT_OT_hide_show_line_gesture(), PAINT_OT_hide_show_masked(), and PAINT_OT_hide_show_polyline_gesture().
|
static |
Definition at line 762 of file paint_hide.cc.
References BKE_pbvh_bmesh_node_faces(), BKE_pbvh_bmesh_node_unique_verts(), BKE_pbvh_node_fully_hidden_set(), BM_elem_flag_test_bool, BM_elem_flag_toggle, BM_ELEM_HIDDEN, depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::undo::HideVert, i, blender::bke::pbvh::Tree::nodes(), partialvis_update_bmesh_faces(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), and blender::bke::pbvh::Tree::tag_visibility_changed().
Referenced by visibility_invert_exec().
|
static |
Definition at line 739 of file paint_hide.cc.
References BKE_pbvh_sync_visibility_from_verts(), BKE_subdiv_ccg_grid_hidden_ensure(), depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::undo::HideVert, i, blender::bits::invert(), MULTIRES_HIDDEN_MODIFIED, multires_mark_as_modified(), blender::bke::pbvh::node_update_visibility_grids(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), and blender::bke::pbvh::Tree::tag_visibility_changed().
Referenced by visibility_invert_exec().
|
static |
Definition at line 713 of file paint_hide.cc.
References depsgraph, blender::bke::Face, faces, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::undo::HideFace, i, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::mesh_hide_face_flush(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::pbvh::Tree::tag_visibility_changed(), and blender::bke::pbvh::Tree::update_visibility().
Referenced by visibility_invert_exec().
| void blender::ed::sculpt_paint::hide::mesh_show_all | ( | const Depsgraph & | depsgraph, |
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 122 of file paint_hide.cc.
References depsgraph, blender::IndexMask::from_predicate(), blender::ed::sculpt_paint::undo::HideVert, i, blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::mesh_hide_vert_flush(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::undo::push_nodes(), blender::bke::MutableAttributeAccessor::remove(), blender::bke::pbvh::Tree::tag_visibility_changed(), blender::bke::pbvh::Tree::update_visibility(), and verts.
Referenced by partialvis_all_update_mesh(), partialvis_masked_update_mesh(), and blender::ed::sculpt_paint::face_set::show_all().
| Span< int > blender::ed::sculpt_paint::hide::node_visible_verts | ( | const bke::pbvh::MeshNode & | node, |
| const Span< bool > | hide_vert, | ||
| Vector< int > & | indices ) |
Definition at line 20 of file sculpt_hide.cc.
References BKE_pbvh_node_fully_hidden_get(), indices, blender::Span< T >::is_empty(), blender::bke::pbvh::MeshNode::verts(), and verts.
Referenced by blender::ed::sculpt_paint::smooth::blur_geometry_data_array(), blender::ed::sculpt_paint::mask::decrease_contrast_mask_mesh(), blender::ed::sculpt_paint::cloth::ensure_nodes_constraints(), blender::ed::sculpt_paint::mask::fill_mask_mesh(), blender::ed::sculpt_paint::pose::grow_factors_mesh(), blender::ed::sculpt_paint::mask::increase_contrast_mask_mesh(), blender::ed::sculpt_paint::mask::update_mask_mesh(), and blender::ed::sculpt_paint::mask::write_mask_mesh().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show | ( | wmOperatorType * | ot | ) |
Definition at line 1400 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::Box, hide_show_gesture_box_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_REGISTER, ot, PAINT_OT_hide_show(), SCULPT_mode_poll_view3d(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by ED_operatortypes_paint(), and PAINT_OT_hide_show().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_all | ( | wmOperatorType * | ot | ) |
Definition at line 698 of file paint_hide.cc.
References hide_show_all_exec(), hide_show_operator_properties(), OPTYPE_REGISTER, ot, and SCULPT_mode_poll_view3d().
Referenced by ED_operatortypes_paint().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_lasso_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1420 of file paint_hide.cc.
References hide_show_gesture_lasso_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::ed::sculpt_paint::gesture::Lasso, blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, PAINT_OT_hide_show_lasso_gesture(), SCULPT_mode_poll_view3d(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), and WM_operator_properties_gesture_lasso().
Referenced by ED_operatortypes_paint(), and PAINT_OT_hide_show_lasso_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_line_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1440 of file paint_hide.cc.
References hide_show_gesture_line_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::ed::sculpt_paint::gesture::Line, blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_REGISTER, ot, PAINT_OT_hide_show_line_gesture(), SCULPT_mode_poll_view3d(), WM_CURSOR_EDIT, WM_gesture_straightline_active_side_invoke(), WM_gesture_straightline_oneshot_modal(), and WM_operator_properties_gesture_straightline().
Referenced by ED_operatortypes_paint(), and PAINT_OT_hide_show_line_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_masked | ( | wmOperatorType * | ot | ) |
Definition at line 683 of file paint_hide.cc.
References hide_show_masked_exec(), hide_show_operator_properties(), OPTYPE_REGISTER, ot, and SCULPT_mode_poll_view3d().
Referenced by ED_operatortypes_paint().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_polyline_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1460 of file paint_hide.cc.
References hide_show_gesture_polyline_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::ed::sculpt_paint::gesture::Lasso, blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, PAINT_OT_hide_show_polyline_gesture(), SCULPT_mode_poll_view3d(), WM_gesture_polyline_invoke(), WM_gesture_polyline_modal(), and WM_operator_properties_gesture_polyline().
Referenced by ED_operatortypes_paint(), and PAINT_OT_hide_show_polyline_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_visibility_filter | ( | wmOperatorType * | ot | ) |
Definition at line 1157 of file paint_hide.cc.
References Hide, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PAINT_OT_visibility_filter(), RNA_def_boolean(), RNA_def_enum(), RNA_def_int(), SCULPT_mode_poll_view3d(), Show, and visibility_filter_exec().
Referenced by ED_operatortypes_paint(), and PAINT_OT_visibility_filter().
| void blender::ed::sculpt_paint::hide::PAINT_OT_visibility_invert | ( | wmOperatorType * | ot | ) |
Definition at line 815 of file paint_hide.cc.
References OPTYPE_REGISTER, ot, SCULPT_mode_poll_view3d(), and visibility_invert_exec().
Referenced by ED_operatortypes_paint().
|
static |
Definition at line 497 of file paint_hide.cc.
References depsgraph, and partialvis_update_bmesh_nodes().
Referenced by hide_show_all_exec().
|
static |
Definition at line 479 of file paint_hide.cc.
References depsgraph, grid_hide_update(), grids_show_all(), Hide, and Show.
Referenced by hide_show_all_exec().
|
static |
Definition at line 454 of file paint_hide.cc.
References blender::bke::AttributeAccessor::contains(), depsgraph, Hide, mesh_show_all(), Show, and vert_hide_update().
Referenced by hide_show_all_exec().
|
static |
Definition at line 1267 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, ViewContext::depsgraph, blender::ed::sculpt_paint::gesture::is_affected(), blender::ed::sculpt_paint::gesture::GestureData::node_mask, ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, partialvis_gesture_update_bmesh(), partialvis_update_bmesh_nodes(), v, and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_apply_for_symmetry_pass(), and partialvis_gesture_update_bmesh().
|
static |
Definition at line 1242 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, action_to_hide(), BKE_subdiv_ccg_key_top_level(), depsgraph, grid_hide_update(), blender::bke::ccg::grid_range(), i, blender::Span< T >::index_range(), blender::ed::sculpt_paint::gesture::is_affected(), blender::ed::sculpt_paint::gesture::GestureData::node_mask, normals, SubdivCCG::normals, ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, partialvis_gesture_update_grids(), SubdivCCG::positions, blender::Span< T >::slice(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_apply_for_symmetry_pass(), and partialvis_gesture_update_grids().
|
static |
Definition at line 1214 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, action_to_hide(), blender::bke::AttributeAccessor::contains(), depsgraph, ViewContext::depsgraph, i, blender::ed::sculpt_paint::gesture::is_affected(), blender::ed::sculpt_paint::gesture::GestureData::node_mask, normals, ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, partialvis_gesture_update_mesh(), Show, blender::ed::sculpt_paint::gesture::GestureData::vc, vert_hide_update(), blender::bke::pbvh::vert_normals_eval(), blender::bke::pbvh::vert_positions_eval(), and verts.
Referenced by hide_show_apply_for_symmetry_pass(), and partialvis_gesture_update_mesh().
|
static |
Definition at line 608 of file paint_hide.cc.
References bm, SculptSession::bm, BM_ELEM_CD_GET_FLOAT, CD_PROP_FLOAT, CustomData_get_offset_named(), depsgraph, partialvis_update_bmesh_nodes(), Object::sculpt, and v.
Referenced by hide_show_masked_exec().
|
static |
Definition at line 579 of file paint_hide.cc.
References action_to_hide(), BKE_subdiv_ccg_key_top_level(), depsgraph, grid_hide_update(), blender::bke::ccg::grid_range(), i, blender::Span< T >::index_range(), blender::Span< T >::is_empty(), SubdivCCG::masks, and blender::Span< T >::slice().
Referenced by hide_show_masked_exec().
|
static |
Definition at line 550 of file paint_hide.cc.
References action_to_hide(), blender::bke::AttributeAccessor::contains(), depsgraph, i, blender::bke::AttributeAccessor::lookup(), mesh_show_all(), blender::bke::Point, Show, vert_hide_update(), and verts.
Referenced by hide_show_masked_exec().
|
static |
Definition at line 396 of file paint_hide.cc.
References BM_elem_flag_disable, BM_elem_flag_enable, BM_ELEM_HIDDEN, faces, and paint_is_bmesh_face_hidden().
Referenced by invert_visibility_bmesh(), and partialvis_update_bmesh_nodes().
|
static |
Definition at line 408 of file paint_hide.cc.
References BKE_pbvh_bmesh_node_faces(), BKE_pbvh_bmesh_node_other_verts(), BKE_pbvh_bmesh_node_unique_verts(), BKE_pbvh_node_fully_hidden_set(), depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::undo::HideVert, i, blender::bke::pbvh::Tree::nodes(), partialvis_update_bmesh_faces(), partialvis_update_bmesh_verts(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::bke::pbvh::Tree::tag_visibility_changed(), blender::bke::pbvh::Tree::update_visibility(), and v.
Referenced by grow_shrink_visibility_bmesh(), partialvis_all_update_bmesh(), partialvis_gesture_update_bmesh(), and partialvis_masked_update_bmesh().
|
static |
Definition at line 373 of file paint_hide.cc.
References BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_HIDDEN, Hide, v, and verts.
Referenced by partialvis_update_bmesh_nodes().
|
static |
Definition at line 869 of file paint_hide.cc.
References buffers, faces, flush_face_changes(), i, and blender::threading::parallel_for().
Referenced by grow_shrink_visibility_mesh().
| void blender::ed::sculpt_paint::hide::sync_all_from_faces | ( | Object & | object | ) |
Definition at line 55 of file paint_hide.cc.
References BKE_sculpt_sync_face_visibility_to_grids(), bm, SculptSession::bm, BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_FACES_OF_MESH, BM_ITER_MESH, blender::bke::pbvh::BMesh, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::islands::invalidate(), l, BMFace::l_first, blender::bke::pbvh::Mesh, blender::bke::mesh_hide_face_flush(), blender::bke::object::pbvh_get(), and SculptSession::subdiv_ccg.
Referenced by blender::ed::sculpt_paint::face_set::face_hide_update(), and blender::ed::sculpt_paint::undo::restore_list().
| void blender::ed::sculpt_paint::hide::tag_update_visibility | ( | const bContext & | C | ) |
Definition at line 107 of file paint_hide.cc.
References BKE_sculptsession_use_pbvh_draw(), C, CTX_data_active_object(), CTX_wm_region(), CTX_wm_region_view3d(), DEG_id_tag_update(), ED_region_tag_redraw(), Object::id, ID_RECALC_GEOMETRY, ID_RECALC_SHADING, NC_OBJECT, ND_DRAW, and WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::face_set::change_visibility_exec(), hide_show_all_exec(), hide_show_end(), hide_show_masked_exec(), visibility_filter_exec(), and visibility_invert_exec().
|
static |
Definition at line 919 of file paint_hide.cc.
References blender::bke::pbvh::Tree::draw_data, blender::index_mask::IndexMask::foreach_index(), IndexMask::from_bools(), i, indices, blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_visibility_mesh(), blender::bke::pbvh::Tree::nodes(), and update_node_visibility_from_face_changes().
Referenced by grow_shrink_visibility_mesh(), and update_node_visibility_from_face_changes().
|
static |
Definition at line 900 of file paint_hide.cc.
References depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::undo::HideVert, i, blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), update_undo_state(), and verts.
Referenced by grow_shrink_visibility_mesh(), and update_undo_state().
| bool blender::ed::sculpt_paint::hide::vert_all_faces_visible_get | ( | BMVert * | vert | ) |
Definition at line 63 of file sculpt_hide.cc.
References BM_DISK_EDGE_NEXT, BM_elem_flag_test, BM_ELEM_HIDDEN, BMVert::e, BMLoop::f, BMEdge::l, and BMLoop::radial_next.
| bool blender::ed::sculpt_paint::hide::vert_all_faces_visible_get | ( | const Span< bool > | hide_poly, |
| const GroupedSpan< int > | vert_to_face_map, | ||
| const int | vert ) |
Definition at line 39 of file sculpt_hide.cc.
References blender::Span< T >::is_empty().
Referenced by blender::ed::sculpt_paint::boundary::vert_is_boundary().
| bool blender::ed::sculpt_paint::hide::vert_all_faces_visible_get | ( | const Span< bool > | hide_poly, |
| const SubdivCCG & | subdiv_ccg, | ||
| const SubdivCCGCoord | vert ) |
Definition at line 55 of file sculpt_hide.cc.
References BKE_subdiv_ccg_grid_to_face_index(), and SubdivCCGCoord::grid_index.
|
static |
Definition at line 279 of file paint_hide.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), depsgraph, blender::bke::SpanAttributeWriter< T >::finish(), flush_edge_changes(), flush_face_changes_node(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::undo::HideVert, i, blender::array_utils::indexed_data_equal(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::undo::push_node(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::bke::SpanAttributeWriter< T >::span, and verts.
Referenced by partialvis_all_update_mesh(), partialvis_gesture_update_mesh(), and partialvis_masked_update_mesh().
|
static |
Definition at line 1114 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, blender::bke::pbvh::Grids, grow_shrink_visibility_bmesh(), grow_shrink_visibility_grid(), grow_shrink_visibility_mesh(), blender::ed::sculpt_paint::islands::invalidate(), blender::bke::pbvh::Mesh, OPERATOR_FINISHED, blender::bke::object::pbvh_ensure(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), RNA_boolean_get(), RNA_enum_get(), RNA_int_get(), SCULPT_vertex_count_get(), tag_update_visibility(), blender::bke::pbvh::Tree::type(), VERTEX_ITERATION_THRESHOLD, and visibility_filter_exec().
Referenced by PAINT_OT_visibility_filter(), and visibility_filter_exec().
|
static |
Definition at line 784 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::islands::invalidate(), invert_visibility_bmesh(), invert_visibility_grids(), invert_visibility_mesh(), blender::bke::pbvh::Mesh, OPERATOR_FINISHED, blender::bke::object::pbvh_ensure(), blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), tag_update_visibility(), and blender::bke::pbvh::Tree::type().
Referenced by PAINT_OT_visibility_invert().
|
staticconstexpr |
Definition at line 828 of file paint_hide.cc.
Referenced by visibility_filter_exec().