|
Blender
V2.93
|
#include <stdio.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_armature_types.h"#include "DNA_collection_types.h"#include "DNA_curve_types.h"#include "DNA_gpencil_types.h"#include "DNA_lattice_types.h"#include "DNA_mesh_types.h"#include "DNA_meta_types.h"#include "DNA_scene_types.h"#include "DNA_windowmanager_types.h"#include "BLF_api.h"#include "BLI_listbase.h"#include "BLI_math.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_armature.h"#include "BKE_blender_version.h"#include "BKE_context.h"#include "BKE_curve.h"#include "BKE_displist.h"#include "BKE_editmesh.h"#include "BKE_gpencil.h"#include "BKE_key.h"#include "BKE_layer.h"#include "BKE_main.h"#include "BKE_object.h"#include "BKE_paint.h"#include "BKE_particle.h"#include "BKE_pbvh.h"#include "BKE_scene.h"#include "BKE_subdiv_ccg.h"#include "DEG_depsgraph_query.h"#include "ED_info.h"#include "UI_resources.h"#include "GPU_capabilities.h"Go to the source code of this file.
Classes | |
| struct | SceneStats |
| struct | SceneStatsFmt |
Macros | |
| #define | MAX_INFO_NUM_LEN 16 |
| #define | SCENE_STATS_FMT_INT(_id) BLI_str_format_uint64_grouped(stats_fmt->_id, stats->_id) |
Typedefs | |
| typedef struct SceneStats | SceneStats |
| typedef struct SceneStatsFmt | SceneStatsFmt |
Functions | |
| static bool | stats_mesheval (Mesh *me_eval, bool is_selected, SceneStats *stats) |
| static void | stats_object (Object *ob, SceneStats *stats, GSet *objects_gset) |
| static void | stats_object_edit (Object *obedit, SceneStats *stats) |
| static void | stats_object_pose (Object *ob, SceneStats *stats) |
| static bool | stats_is_object_dynamic_topology_sculpt (Object *ob) |
| static void | stats_object_sculpt (Object *ob, SceneStats *stats) |
| static void | stats_update (Depsgraph *depsgraph, ViewLayer *view_layer) |
| void | ED_info_stats_clear (ViewLayer *view_layer) |
| static bool | format_stats (Main *bmain, Scene *scene, ViewLayer *view_layer, SceneStatsFmt *stats_fmt) |
| static void | get_stats_string (char *info, int len, size_t *ofs, ViewLayer *view_layer, SceneStatsFmt *stats_fmt) |
| static const char * | info_statusbar_string (Main *bmain, Scene *scene, ViewLayer *view_layer, char statusbar_flag) |
| const char * | ED_info_statusbar_string (Main *bmain, Scene *scene, ViewLayer *view_layer) |
| const char * | ED_info_statistics_string (Main *bmain, Scene *scene, ViewLayer *view_layer) |
| static void | stats_row (int col1, const char *key, int col2, const char *value1, const char *value2, int *y, int height) |
| void | ED_info_draw_stats (Main *bmain, Scene *scene, ViewLayer *view_layer, int x, int *y, int height) |
| #define MAX_INFO_NUM_LEN 16 |
Definition at line 70 of file info_stats.c.
| #define SCENE_STATS_FMT_INT | ( | _id | ) | BLI_str_format_uint64_grouped(stats_fmt->_id, stats->_id) |
| typedef struct SceneStats SceneStats |
| typedef struct SceneStatsFmt SceneStatsFmt |
| void ED_info_draw_stats | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| int | x, | ||
| int * | y, | ||
| int | height | ||
| ) |
Definition at line 685 of file info_stats.c.
References BLF_default(), BLF_disable(), BLF_enable(), BLF_shadow(), BLF_SHADOW, BLF_shadow_offset(), BLF_width(), format_stats(), height, IFACE_, max_ii(), Object::mode, NULL, OB_ARMATURE, OB_GPENCIL, OB_MESH, OB_MODE_OBJECT, OB_MODE_POSE, OB_MODE_SCULPT, OBACT, OBEDIT_FROM_OBACT, scene, stats_is_object_dynamic_topology_sculpt(), stats_row(), STRNCPY, TH_TEXT_HI, SceneStatsFmt::totbone, SceneStatsFmt::totbonesel, SceneStatsFmt::totedge, SceneStatsFmt::totedgesel, SceneStatsFmt::totface, SceneStatsFmt::totfacesculpt, SceneStatsFmt::totfacesel, SceneStatsFmt::totgpframe, SceneStatsFmt::totgplayer, SceneStatsFmt::totgppoint, SceneStatsFmt::totgpstroke, SceneStatsFmt::totobj, SceneStatsFmt::totobjsel, SceneStatsFmt::tottri, SceneStatsFmt::totvert, SceneStatsFmt::totvertsculpt, SceneStatsFmt::totvertsel, Object::type, UI_FontThemeColor(), x, and y.
Referenced by view3d_draw_region_info().
Definition at line 661 of file info_stats.c.
References info_statusbar_string(), scene, STATUSBAR_SHOW_MEMORY, STATUSBAR_SHOW_STATS, and STATUSBAR_SHOW_VERSION.
| void ED_info_stats_clear | ( | ViewLayer * | view_layer | ) |
Definition at line 439 of file info_stats.c.
References MEM_freeN, NULL, and ViewLayer::stats.
Referenced by wm_event_do_notifiers().
Definition at line 656 of file info_stats.c.
References info_statusbar_string(), and scene.
|
static |
Definition at line 447 of file info_stats.c.
References BKE_scene_ensure_depsgraph(), depsgraph, ListBase::first, wmWindowManager::is_interface_locked, scene, SCENE_STATS_FMT_INT, ViewLayer::stats, stats_update(), and Main::wm.
Referenced by ED_info_draw_stats(), and info_statusbar_string().
|
static |
Definition at line 499 of file info_stats.c.
References ViewLayer::active_collection, BKE_collection_ui_name_get(), BKE_keyblock_from_object(), BLI_snprintf(), BLI_strncpy_rlen(), LayerCollection::collection, Object::id, len, Object::mode, ID::name, OB_ARMATURE, OB_GPENCIL, OB_MESH, OB_MODE_OBJECT, OB_MODE_POSE, OB_MODE_SCULPT, OBACT, OBEDIT_FROM_OBACT, stats_is_object_dynamic_topology_sculpt(), TIP_, SceneStatsFmt::totbone, SceneStatsFmt::totbonesel, SceneStatsFmt::totedge, SceneStatsFmt::totedgesel, SceneStatsFmt::totface, SceneStatsFmt::totfacesculpt, SceneStatsFmt::totfacesel, SceneStatsFmt::totgpframe, SceneStatsFmt::totgplayer, SceneStatsFmt::totgppoint, SceneStatsFmt::totgpstroke, SceneStatsFmt::totobj, SceneStatsFmt::totobjsel, SceneStatsFmt::tottri, SceneStatsFmt::totvert, SceneStatsFmt::totvertsculpt, SceneStatsFmt::totvertsel, and Object::type.
Referenced by info_statusbar_string().
|
static |
Definition at line 593 of file info_stats.c.
References BKE_blender_version_string(), BLI_snprintf(), BLI_str_format_byte_unit(), format_stats(), get_stats_string(), GPU_mem_stats_get(), GPU_mem_stats_supported(), len, MEM_get_memory_in_use, mem_in_use, scene, STATUSBAR_SHOW_MEMORY, STATUSBAR_SHOW_STATS, STATUSBAR_SHOW_VERSION, STATUSBAR_SHOW_VRAM, and TIP_.
Referenced by ED_info_statistics_string(), and ED_info_statusbar_string().
|
static |
Definition at line 354 of file info_stats.c.
References SculptSession::bm, Object::mode, NULL, OB_MODE_SCULPT, and Object::sculpt.
Referenced by ED_info_draw_stats(), get_stats_string(), and stats_update().
|
static |
Definition at line 96 of file info_stats.c.
References BKE_subdiv_ccg_topology_counters(), NULL, poly_to_tri_count(), Mesh::runtime, Mesh_Runtime::subdiv_ccg, SceneStats::totedge, Mesh::totedge, SceneStats::totface, SceneStats::totfacesel, Mesh::totloop, Mesh::totpoly, SceneStats::tottri, SceneStats::totvert, Mesh::totvert, and SceneStats::totvertsel.
Referenced by stats_object().
|
static |
Definition at line 126 of file info_stats.c.
References ATTR_FALLTHROUGH, Object::base_flag, BASE_SELECTED, BASE_VISIBLE_VIEWLAYER, BKE_displist_count(), BKE_gpencil_stats_update(), BKE_object_get_evaluated_mesh(), BLI_gset_add(), Object_Runtime::curve_cache, Object::data, CurveCache::disp, ListBase::first, if(), NULL, OB_CURVE, OB_FONT, OB_GPENCIL, OB_HAIR, OB_LAMP, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, Object::runtime, stats_mesheval(), SceneStats::totface, SceneStats::totfacesel, bGPdata::totframe, SceneStats::totgpframe, SceneStats::totgplayer, SceneStats::totgppoint, SceneStats::totgpstroke, SceneStats::totlamp, SceneStats::totlampsel, bGPdata::totlayer, SceneStats::totobj, SceneStats::totobjsel, bGPdata::totpoint, bGPdata::totstroke, SceneStats::tottri, SceneStats::totvert, SceneStats::totvertsel, and Object::type.
Referenced by stats_update().
|
static |
Definition at line 217 of file info_stats.c.
References Freestyle::a, Nurb::bezt, BKE_curve_editNurbs_get(), BKE_editmesh_from_object(), BMEditMesh::bm, BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Nurb::bp, CU_BEZIER, Object::data, Lattice::def, bArmature::edbo, MetaBall::editelems, Lattice::editlatt, ELEM, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, ListBase::first, EditBone::flag, MetaElem::flag, EditLatt::latt, EditBone::next, Nurb::next, MetaElem::next, OB_ARMATURE, OB_CURVE, OB_LATTICE, OB_MBALL, OB_MESH, OB_SURF, EditBone::parent, Nurb::pntsu, Lattice::pntsu, Nurb::pntsv, Lattice::pntsv, Lattice::pntsw, SELECT, SceneStats::totbone, SceneStats::totbonesel, BMesh::totedge, SceneStats::totedge, BMesh::totedgesel, SceneStats::totedgesel, BMesh::totface, SceneStats::totface, BMesh::totfacesel, SceneStats::totfacesel, BMEditMesh::tottri, SceneStats::tottri, BMesh::totvert, SceneStats::totvert, BMesh::totvertsel, SceneStats::totvertsel, Nurb::type, and Object::type.
Referenced by stats_update().
|
static |
Definition at line 337 of file info_stats.c.
References bPoseChannel::bone, BONE_SELECTED, bPose::chanbase, Object::data, ListBase::first, Bone::flag, Bone::layer, bArmature::layer, bPoseChannel::next, Object::pose, SceneStats::totbone, and SceneStats::totbonesel.
Referenced by stats_update().
|
static |
Definition at line 363 of file info_stats.c.
References BKE_pbvh_get_grid_num_faces(), BKE_pbvh_get_grid_num_vertices(), BKE_pbvh_type(), SculptSession::bm, NULL, SculptSession::pbvh, PBVH_BMESH, PBVH_FACES, PBVH_GRIDS, Object::sculpt, BMesh::totface, SculptSession::totfaces, SceneStats::totfacesculpt, SceneStats::tottri, SculptSession::totvert, BMesh::totvert, and SceneStats::totvertsculpt.
Referenced by stats_update().
|
static |
Definition at line 670 of file info_stats.c.
References BLF_draw_default(), BLI_snprintf(), height, and y.
Referenced by ED_info_draw_stats().
Definition at line 389 of file info_stats.c.
References BASE_VISIBLE_VIEWLAYER, BLI_ghashutil_ptrcmp(), BLI_ghashutil_ptrhash(), BLI_gset_free(), BLI_gset_new(), DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN, DEG_OBJECT_ITER_FOR_RENDER_ENGINE_END, depsgraph, FOREACH_OBJECT_BEGIN, FOREACH_OBJECT_END, MEM_callocN, Object::mode, NULL, OB_MODE_EDIT, OB_MODE_POSE, OB_MODE_SCULPT, OBACT, OBEDIT_FROM_VIEW_LAYER, ViewLayer::stats, stats_is_object_dynamic_topology_sculpt(), stats_object(), stats_object_edit(), stats_object_pose(), stats_object_sculpt(), SceneStats::totobj, and SceneStats::totobjsel.
Referenced by format_stats().