Blender  V3.3
Classes | Macros | Functions
info_stats.cc File Reference
#include <cstdio>
#include <cstring>
#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_space_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_action.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 "BKE_subdiv_modifier.h"
#include "DEG_depsgraph_query.h"
#include "ED_info.h"
#include "WM_api.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)
 

Functions

static bool stats_mesheval (const Mesh *me_eval, bool is_selected, SceneStats *stats)
 
static void stats_object (Object *ob, const View3D *v3d_local, SceneStats *stats, GSet *objects_gset)
 
static void stats_object_edit (Object *obedit, SceneStats *stats)
 
static void stats_object_pose (const Object *ob, SceneStats *stats)
 
static bool stats_is_object_dynamic_topology_sculpt (const Object *ob)
 
static void stats_object_sculpt (const Object *ob, SceneStats *stats)
 
static void stats_update (Depsgraph *depsgraph, ViewLayer *view_layer, View3D *v3d_local, SceneStats *stats)
 
void ED_info_stats_clear (wmWindowManager *wm, ViewLayer *view_layer)
 
static bool format_stats (Main *bmain, Scene *scene, ViewLayer *view_layer, View3D *v3d_local, SceneStatsFmt *stats_fmt)
 
static void get_stats_string (char *info, int len, size_t *ofs, ViewLayer *view_layer, SceneStatsFmt *stats_fmt)
 
const char * ED_info_statusbar_string_ex (Main *bmain, Scene *scene, ViewLayer *view_layer, const 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, View3D *v3d_local, int x, int *y, int height)
 

Macro Definition Documentation

◆ MAX_INFO_NUM_LEN

#define MAX_INFO_NUM_LEN   16

Definition at line 63 of file info_stats.cc.

◆ SCENE_STATS_FMT_INT

#define SCENE_STATS_FMT_INT (   _id)    BLI_str_format_uint64_grouped(stats_fmt->_id, stats->_id)

Function Documentation

◆ ED_info_draw_stats()

void ED_info_draw_stats ( struct Main bmain,
struct Scene scene,
struct ViewLayer view_layer,
struct View3D v3d_local,
int  x,
int *  y,
int  height 
)

◆ ED_info_statistics_string()

const char* ED_info_statistics_string ( Main bmain,
Scene scene,
ViewLayer view_layer 
)

◆ ED_info_stats_clear()

void ED_info_stats_clear ( wmWindowManager wm,
ViewLayer view_layer 
)

◆ ED_info_statusbar_string()

const char* ED_info_statusbar_string ( Main bmain,
Scene scene,
ViewLayer view_layer 
)

Definition at line 692 of file info_stats.cc.

References ED_info_statusbar_string_ex(), and scene.

Referenced by uiTemplateStatusInfo().

◆ ED_info_statusbar_string_ex()

const char* ED_info_statusbar_string_ex ( Main bmain,
Scene scene,
ViewLayer view_layer,
const char  statusbar_flag 
)

◆ format_stats()

static bool format_stats ( Main bmain,
Scene scene,
ViewLayer view_layer,
View3D v3d_local,
SceneStatsFmt stats_fmt 
)
static

◆ get_stats_string()

static void get_stats_string ( char *  info,
int  len,
size_t *  ofs,
ViewLayer view_layer,
SceneStatsFmt stats_fmt 
)
static

◆ stats_is_object_dynamic_topology_sculpt()

static bool stats_is_object_dynamic_topology_sculpt ( const Object ob)
static

◆ stats_mesheval()

static bool stats_mesheval ( const Mesh me_eval,
bool  is_selected,
SceneStats stats 
)
static

◆ stats_object()

static void stats_object ( Object ob,
const View3D v3d_local,
SceneStats stats,
GSet objects_gset 
)
static

◆ stats_object_edit()

static void stats_object_edit ( Object obedit,
SceneStats stats 
)
static

◆ stats_object_pose()

static void stats_object_pose ( const Object ob,
SceneStats stats 
)
static

◆ stats_object_sculpt()

static void stats_object_sculpt ( const Object ob,
SceneStats stats 
)
static

◆ stats_row()

static void stats_row ( int  col1,
const char *  key,
int  col2,
const char *  value1,
const char *  value2,
int *  y,
int  height 
)
static

Definition at line 706 of file info_stats.cc.

References BLF_draw_default(), BLI_snprintf(), height, and y.

Referenced by ED_info_draw_stats().

◆ stats_update()

static void stats_update ( Depsgraph depsgraph,
ViewLayer view_layer,
View3D v3d_local,
SceneStats stats 
)
static