|
Blender V4.3
|
Classes | |
| struct | DualBitBuffer |
| struct | DualBuffer |
| 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 int | 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 int | 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 int | 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 (MutableSpan< bke::pbvh::MeshNode > nodes, 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 int | visibility_filter_exec (bContext *C, wmOperator *op) |
| void | PAINT_OT_visibility_filter (wmOperatorType *ot) |
|
strong |
| Enumerator | |
|---|---|
| Hide | |
| Show | |
Definition at line 187 of file paint_hide.cc.
|
static |
Definition at line 192 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 837 of file paint_hide.cc.
References blender::bke::mesh::face_corner_next(), blender::bke::mesh::face_corner_prev(), and next.
|
static |
Definition at line 198 of file paint_hide.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), blender::Span< T >::index_range(), blender::Span< T >::slice(), and v.
Referenced by flush_face_changes_node().
|
static |
Definition at line 1083 of file paint_hide.cc.
References bm, SculptSession::bm, BM_elem_flag_test_bool, BM_ELEM_HIDDEN, BM_mesh_elem_table_ensure(), BM_VERT, BM_vert_at_index(), duplicate_visibility_bmesh(), result, and BMesh::totvert.
Referenced by duplicate_visibility_bmesh(), and grow_shrink_visibility_bmesh().
|
static |
Definition at line 273 of file paint_hide.cc.
References blender::bke::Edge, blender::bke::SpanAttributeWriter< T >::finish(), 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 261 of file paint_hide.cc.
References blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::mesh_face_hide_from_vert(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by propagate_vertex_visibility().
|
static |
Definition at line 212 of file paint_hide.cc.
References calc_face_hide(), blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::index_mask::IndexMask::from_bools(), blender::ed::sculpt_paint::gather_data_mesh(), blender::array_utils::indexed_data_equal(), blender::index_mask::IndexMask::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), 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 324 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::index_mask::IndexMask::from_bools(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::group_size(), blender::ed::sculpt_paint::undo::HideVert, 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 151 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::index_mask::IndexMask::from_predicate(), blender::ed::sculpt_paint::undo::HideVert, 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::update_visibility().
Referenced by partialvis_all_update_grids().
|
static |
Definition at line 1095 of file paint_hide.cc.
References action_to_hide(), BM_elem_index_get, depsgraph, duplicate_visibility_bmesh(), grow_shrink_visibility_bmesh(), 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 1010 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(), blender::ed::sculpt_paint::hide::DualBitBuffer::front, SubdivCCGCoord::grid_index, CCGKey::grid_size, grow_shrink_visibility_grid(), MULTIRES_HIDDEN_MODIFIED, multires_mark_as_modified(), blender::bke::pbvh::Tree::nodes(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_visibility_changed(), x, and y.
Referenced by grow_shrink_visibility_grid(), and visibility_filter_exec().
|
static |
Definition at line 950 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::DualBuffer::back, buffers, depsgraph, blender::bke::SpanAttributeWriter< T >::finish(), flush_edge_changes(), grow_shrink_visibility_mesh(), propagate_vertex_visibility(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), 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 510 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, 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 1294 of file paint_hide.cc.
References CTX_data_depsgraph_pointer(), depsgraph, hide_show_apply_for_symmetry_pass(), ViewContext::obact, partialvis_gesture_update_bmesh(), partialvis_gesture_update_grids(), partialvis_gesture_update_mesh(), 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 1284 of file paint_hide.cc.
References CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, and hide_show_begin().
Referenced by hide_show_begin(), and hide_show_init_properties().
|
static |
Definition at line 1310 of file paint_hide.cc.
References hide_show_end(), ViewContext::obact, 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 1334 of file paint_hide.cc.
References hide_show_gesture_box_exec(), hide_show_init_properties(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_box_exec(), and PAINT_OT_hide_show().
|
static |
Definition at line 1345 of file paint_hide.cc.
References hide_show_gesture_lasso_exec(), hide_show_init_properties(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_lasso_exec(), and PAINT_OT_hide_show_lasso_gesture().
|
static |
Definition at line 1356 of file paint_hide.cc.
References hide_show_gesture_line_exec(), hide_show_init_properties(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_line_exec(), and PAINT_OT_hide_show_line_gesture().
|
static |
Definition at line 1367 of file paint_hide.cc.
References hide_show_gesture_polyline_exec(), hide_show_init_properties(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by hide_show_gesture_polyline_exec(), and PAINT_OT_hide_show_polyline_gesture().
|
static |
Definition at line 1317 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(), 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 627 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, 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 1378 of file paint_hide.cc.
References hide_show_operator_gesture_properties(), int, ot, RNA_def_enum(), and wmOperatorType::srna.
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 671 of file paint_hide.cc.
References Hide, int, ot, RNA_def_enum(), Show, and wmOperatorType::srna.
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 766 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, 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 743 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, 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 717 of file paint_hide.cc.
References depsgraph, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::undo::HideFace, 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::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 126 of file paint_hide.cc.
References depsgraph, blender::index_mask::IndexMask::from_predicate(), blender::ed::sculpt_paint::undo::HideVert, blender::Span< T >::is_empty(), 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::pbvh::Tree::tag_visibility_changed(), blender::bke::pbvh::update_visibility(), and verts.
Referenced by partialvis_all_update_mesh(), and partialvis_masked_update_mesh().
| 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 21 of file sculpt_hide.cc.
References BKE_pbvh_node_fully_hidden_get(), indices, blender::Span< T >::is_empty(), 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::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 1402 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_gesture_box_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, ot, PAINT_OT_hide_show(), wmOperatorType::poll, SCULPT_mode_poll_view3d(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by PAINT_OT_hide_show().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_all | ( | wmOperatorType * | ot | ) |
Definition at line 702 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_all_exec(), hide_show_operator_properties(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, and SCULPT_mode_poll_view3d().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_lasso_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1422 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_gesture_lasso_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, PAINT_OT_hide_show_lasso_gesture(), wmOperatorType::poll, SCULPT_mode_poll_view3d(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), and WM_operator_properties_gesture_lasso().
Referenced by PAINT_OT_hide_show_lasso_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_line_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1442 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_gesture_line_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, ot, PAINT_OT_hide_show_line_gesture(), wmOperatorType::poll, 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 PAINT_OT_hide_show_line_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_masked | ( | wmOperatorType * | ot | ) |
Definition at line 687 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_masked_exec(), hide_show_operator_properties(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, and SCULPT_mode_poll_view3d().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_polyline_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1462 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_gesture_polyline_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, PAINT_OT_hide_show_polyline_gesture(), wmOperatorType::poll, SCULPT_mode_poll_view3d(), WM_gesture_polyline_invoke(), WM_gesture_polyline_modal(), and WM_operator_properties_gesture_polyline().
Referenced by PAINT_OT_hide_show_polyline_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_visibility_filter | ( | wmOperatorType * | ot | ) |
Definition at line 1159 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, int, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PAINT_OT_visibility_filter(), wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), RNA_def_int(), SCULPT_mode_poll_view3d(), wmOperatorType::srna, and visibility_filter_exec().
Referenced by PAINT_OT_visibility_filter().
| void blender::ed::sculpt_paint::hide::PAINT_OT_visibility_invert | ( | wmOperatorType * | ot | ) |
Definition at line 819 of file paint_hide.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, SCULPT_mode_poll_view3d(), and visibility_invert_exec().
|
static |
Definition at line 501 of file paint_hide.cc.
References depsgraph, and partialvis_update_bmesh_nodes().
Referenced by hide_show_all_exec().
|
static |
Definition at line 483 of file paint_hide.cc.
References depsgraph, blender::bits::MutableBitSpan::fill(), grid_hide_update(), grids_show_all(), Hide, and Show.
Referenced by hide_show_all_exec().
|
static |
Definition at line 458 of file paint_hide.cc.
References depsgraph, blender::MutableSpan< T >::fill(), Hide, mesh_show_all(), Show, and vert_hide_update().
Referenced by hide_show_all_exec().
|
static |
Definition at line 1269 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, BMVert::co, ViewContext::depsgraph, BMVert::no, 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 1244 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::Span< T >::index_range(), blender::ed::sculpt_paint::gesture::GestureData::node_mask, 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 1216 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, action_to_hide(), depsgraph, ViewContext::depsgraph, blender::ed::sculpt_paint::gesture::GestureData::node_mask, ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, partialvis_gesture_update_mesh(), blender::ed::sculpt_paint::gesture::GestureData::vc, vert_hide_update(), and verts.
Referenced by hide_show_apply_for_symmetry_pass(), and partialvis_gesture_update_mesh().
|
static |
Definition at line 612 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, v, and BMesh::vdata.
Referenced by hide_show_masked_exec().
|
static |
Definition at line 583 of file paint_hide.cc.
References action_to_hide(), BKE_subdiv_ccg_key_top_level(), depsgraph, blender::bits::MutableBitSpan::fill(), grid_hide_update(), blender::bke::ccg::grid_range(), blender::Span< T >::index_range(), SubdivCCG::masks, and blender::Span< T >::slice().
Referenced by hide_show_masked_exec().
|
static |
Definition at line 554 of file paint_hide.cc.
References action_to_hide(), depsgraph, mesh_show_all(), blender::bke::Point, Show, vert_hide_update(), and verts.
Referenced by hide_show_masked_exec().
|
static |
Definition at line 400 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 412 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, 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(), and blender::bke::pbvh::update_visibility().
Referenced by grow_shrink_visibility_bmesh(), partialvis_all_update_bmesh(), partialvis_gesture_update_bmesh(), and partialvis_masked_update_bmesh().
|
static |
Definition at line 377 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 873 of file paint_hide.cc.
References buffers, flush_face_changes(), 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 59 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, BMLoop::e, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::islands::invalidate(), l, BMFace::l_first, blender::bke::pbvh::Mesh, blender::bke::mesh_hide_face_flush(), BMLoop::next, blender::bke::object::pbvh_get(), SculptSession::subdiv_ccg, and BMLoop::v.
| void blender::ed::sculpt_paint::hide::tag_update_visibility | ( | const bContext & | C | ) |
Definition at line 111 of file paint_hide.cc.
References BKE_sculptsession_use_pbvh_draw(), 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 hide_show_all_exec(), hide_show_end(), hide_show_masked_exec(), visibility_filter_exec(), and visibility_invert_exec().
|
static |
Definition at line 923 of file paint_hide.cc.
References blender::index_mask::IndexMask::foreach_index(), indices, blender::index_mask::IndexMask::min_array_size(), and update_node_visibility_from_face_changes().
Referenced by grow_shrink_visibility_mesh(), and update_node_visibility_from_face_changes().
|
static |
Definition at line 904 of file paint_hide.cc.
References depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Tree::nodes(), and update_undo_state().
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 64 of file sculpt_hide.cc.
References BM_DISK_EDGE_NEXT, BM_elem_flag_test, BM_ELEM_HIDDEN, BMVert::e, BMLoop::f, 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 40 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 56 of file sculpt_hide.cc.
References BKE_subdiv_ccg_grid_to_face_index(), and SubdivCCGCoord::grid_index.
|
static |
Definition at line 283 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, blender::array_utils::indexed_data_equal(), blender::threading::EnumerableThreadSpecific< T >::local(), 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 1116 of file paint_hide.cc.
References CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, grow_shrink_visibility_bmesh(), grow_shrink_visibility_grid(), grow_shrink_visibility_mesh(), int, OPERATOR_FINISHED, wmOperator::ptr, 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 788 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, 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 832 of file paint_hide.cc.
Referenced by visibility_filter_exec().