Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "BLI_bitmap.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_ccg.h"
#include "BKE_context.h"
#include "BKE_mesh.h"
#include "BKE_multires.h"
#include "BKE_paint.h"
#include "BKE_pbvh.h"
#include "BKE_subsurf.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "bmesh.h"
#include "paint_intern.h"
#include "sculpt_intern.h"
Go to the source code of this file.
Implements the PBVH node hiding operator.
Definition in file paint_hide.c.
|
static |
Definition at line 281 of file paint_hide.c.
References C, depsgraph, ED_view3d_clipping_calc(), ED_view3d_viewcontext_init(), ViewContext::obact, ViewContext::region, and view3d_operator_needs_opengl().
Referenced by hide_show_exec().
|
static |
Definition at line 298 of file paint_hide.c.
References BKE_pbvh_node_frustum_contain_AABB(), BKE_pbvh_node_frustum_exclude_AABB(), BKE_pbvh_search_gather(), NULL, PARTIALVIS_ALL, PARTIALVIS_INSIDE, PARTIALVIS_MASKED, PARTIALVIS_OUTSIDE, and PBVHFrustumPlanes::planes.
Referenced by hide_show_exec().
|
static |
Definition at line 320 of file paint_hide.c.
References blender::compositor::area(), BKE_mesh_flush_hidden_from_verts(), BKE_pbvh_type(), BKE_sculpt_object_pbvh_ensure(), BLI_assert, C, clip_planes_from_rect(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), Object::data, DEG_id_tag_update(), depsgraph, ED_region_tag_redraw(), get_pbvh_nodes(), Object::id, ID_RECALC_SHADING, MEM_freeN, negate_m4(), OPERATOR_FINISHED, PARTIALVIS_HIDE, PARTIALVIS_SHOW, partialvis_update_bmesh(), partialvis_update_grids(), partialvis_update_mesh(), SculptSession::pbvh, PBVH_BMESH, PBVH_FACES, PBVH_GRIDS, wmOperator::ptr, rect_from_props(), RNA_enum_get(), Object::sculpt, SCULPT_undo_push_begin(), SCULPT_undo_push_end(), and SCULPT_visibility_sync_all_vertex_to_face_sets().
Referenced by PAINT_OT_hide_show().
|
static |
Definition at line 395 of file paint_hide.c.
References blender::compositor::area(), C, ELEM, wmOperatorType::exec, PARTIALVIS_ALL, PARTIALVIS_MASKED, wmOperator::ptr, RNA_enum_get(), wmOperator::type, and WM_gesture_box_invoke().
Referenced by PAINT_OT_hide_show().
|
static |
Definition at line 47 of file paint_hide.c.
References blender::compositor::area(), isect_point_planes_v3(), mask(), PARTIALVIS_ALL, PARTIALVIS_INSIDE, PARTIALVIS_MASKED, and PARTIALVIS_OUTSIDE.
Referenced by partialvis_update_bmesh_verts(), partialvis_update_grids(), and partialvis_update_mesh().
void PAINT_OT_hide_show | ( | struct wmOperatorType * | ot | ) |
Definition at line 405 of file paint_hide.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_exec(), hide_show_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_REGISTER, ot, PARTIALVIS_ALL, PARTIALVIS_HIDE, PARTIALVIS_INSIDE, PARTIALVIS_MASKED, PARTIALVIS_OUTSIDE, PARTIALVIS_SHOW, wmOperatorType::poll, RNA_def_enum(), SCULPT_mode_poll_view3d(), wmOperatorType::srna, WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by ED_operatortypes_paint().
|
static |
Definition at line 242 of file paint_hide.c.
References blender::compositor::area(), BKE_pbvh_bmesh_node_faces(), BKE_pbvh_bmesh_node_other_verts(), BKE_pbvh_bmesh_node_unique_verts(), BKE_pbvh_get_bmesh(), BKE_pbvh_node_fully_hidden_set(), BKE_pbvh_node_mark_rebuild_draw(), bm, faces, node, partialvis_update_bmesh_faces(), partialvis_update_bmesh_verts(), SCULPT_UNDO_HIDDEN, and SCULPT_undo_push_node().
Referenced by hide_show_exec().
Definition at line 226 of file paint_hide.c.
References BLI_gsetIterator_getKey(), BM_elem_flag_disable, BM_elem_flag_enable, BM_ELEM_HIDDEN, faces, GSET_ITER, and paint_is_bmesh_face_hidden().
Referenced by partialvis_update_bmesh().
|
static |
Definition at line 195 of file paint_hide.c.
References blender::compositor::area(), BLI_gsetIterator_getKey(), bm, BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, BM_ELEM_HIDDEN, CD_PAINT_MASK, BMVert::co, CustomData_bmesh_get(), BMHeader::data, GSET_ITER, BMVert::head, is_effected(), PARTIALVIS_HIDE, v, BMesh::vdata, and verts.
Referenced by partialvis_update_bmesh().
|
static |
Definition at line 111 of file paint_hide.c.
References blender::compositor::area(), BKE_pbvh_get_grid_key(), BKE_pbvh_grid_hidden(), BKE_pbvh_node_fully_hidden_set(), BKE_pbvh_node_get_grids(), BKE_pbvh_node_mark_rebuild_draw(), BLI_BITMAP_NEW, BLI_BITMAP_SET, BLI_BITMAP_TEST, CCG_elem_co(), CCG_elem_mask(), CCG_grid_elem(), depsgraph, usdtokens::g(), CCGKey::grid_area, CCGKey::grid_size, CCGKey::has_mask, is_effected(), mask(), MEM_freeN, MULTIRES_HIDDEN_MODIFIED, multires_mark_as_modified(), node, NULL, PARTIALVIS_ALL, PARTIALVIS_HIDE, PARTIALVIS_SHOW, SCULPT_UNDO_HIDDEN, SCULPT_undo_push_node(), x, and y.
Referenced by hide_show_exec().
|
static |
Definition at line 63 of file paint_hide.c.
References blender::compositor::area(), BKE_pbvh_node_fully_hidden_set(), BKE_pbvh_node_get_verts(), BKE_pbvh_node_mark_rebuild_draw(), BKE_pbvh_node_num_verts(), CD_PAINT_MASK, BMVert::co, CustomData_get_layer(), Object::data, is_effected(), ME_HIDE, node, NULL, PARTIALVIS_HIDE, SCULPT_UNDO_HIDDEN, SCULPT_undo_push_node(), v, and Mesh::vdata.
Referenced by hide_show_exec().
|
static |
Definition at line 273 of file paint_hide.c.
References ptr, RNA_int_get(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by hide_show_exec().