Blender V2.61 - r43446
|
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_armature_types.h"
#include "DNA_curve_types.h"
#include "DNA_group_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meta_types.h"
#include "DNA_scene_types.h"
#include "BLI_utildefines.h"
#include "BKE_anim.h"
#include "BKE_blender.h"
#include "BKE_curve.h"
#include "BKE_displist.h"
#include "BKE_DerivedMesh.h"
#include "BKE_key.h"
#include "BKE_mesh.h"
#include "BKE_particle.h"
#include "ED_info.h"
#include "ED_armature.h"
#include "ED_mesh.h"
#include "BLI_editVert.h"
Go to the source code of this file.
Classes | |
struct | SceneStats |
Typedefs | |
typedef struct SceneStats | SceneStats |
Functions | |
static void | stats_object (Object *ob, int sel, int totob, SceneStats *stats) |
static void | stats_object_edit (Object *obedit, SceneStats *stats) |
static void | stats_object_pose (Object *ob, SceneStats *stats) |
static void | stats_object_paint (Object *ob, SceneStats *stats) |
static void | stats_dupli_object (Base *base, Object *ob, SceneStats *stats) |
static void | stats_update (Scene *scene) |
static void | stats_string (Scene *scene) |
void | ED_info_stats_clear (Scene *scene) |
const char * | ED_info_stats_string (Scene *scene) |
Definition in file info_stats.c.
typedef struct SceneStats SceneStats |
void ED_info_stats_clear | ( | Scene * | scene | ) |
Definition at line 420 of file info_stats.c.
References MEM_freeN(), NULL, and Scene::stats.
Referenced by wm_event_do_notifiers().
const char* ED_info_stats_string | ( | Scene * | scene | ) |
Definition at line 428 of file info_stats.c.
References SceneStats::infostr, Scene::stats, stats_string(), and stats_update().
static void stats_dupli_object | ( | Base * | base, |
Object * | ob, | ||
SceneStats * | stats | ||
) | [static] |
Definition at line 273 of file info_stats.c.
References count_duplilist(), count_particles(), count_particles_mod(), ParticleSettings::draw_as, ParticleSettings::dup_group, Object::dup_group, ParticleSettings::dup_ob, ListBase::first, Base::flag, Group::gobject, GroupObject::next, ParticleSystem::next, GroupObject::ob, OB_DUPLIFACES, OB_DUPLIFRAMES, OB_DUPLIGROUP, OB_DUPLIPARTS, OB_DUPLIVERTS, Object::parent, ParticleSystem::part, PART_DRAW_GR, PART_DRAW_OB, Object::particlesystem, SELECT, stats_object(), SceneStats::totobj, SceneStats::totobjsel, and Object::transflag.
Referenced by stats_update().
static void stats_object | ( | Object * | ob, |
int | sel, | ||
int | totob, | ||
SceneStats * | stats | ||
) | [static] |
Definition at line 68 of file info_stats.c.
References count_displist(), Object::derivedFinal, Object::disp, ListBase::first, DerivedMesh::getNumEdges, DerivedMesh::getNumFaces, DerivedMesh::getNumVerts, OB_CURVE, OB_FONT, OB_LAMP, OB_MBALL, OB_MESH, OB_SURF, SceneStats::totcurve, SceneStats::totedge, SceneStats::totface, SceneStats::totfacesel, SceneStats::totlamp, SceneStats::totmesh, SceneStats::totvert, SceneStats::totvertsel, and Object::type.
Referenced by stats_dupli_object().
static void stats_object_edit | ( | Object * | obedit, |
SceneStats * | stats | ||
) | [static] |
Definition at line 139 of file info_stats.c.
References Nurb::bezt, BKE_mesh_get_editmesh(), BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Nurb::bp, CU_BEZIER, curve_editnurbs(), Object::data, Lattice::def, bArmature::edbo, EditMesh::edges, MetaBall::editelems, Lattice::editlatt, ELEM, EM_validate_selections(), EditEdge::f, EditVert::f, EditFace::f, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, EditMesh::faces, ListBase::first, EditBone::flag, MetaElem::flag, EditLatt::latt, EditEdge::next, EditFace::next, EditVert::next, MetaElem::next, Nurb::next, EditBone::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, SceneStats::totedge, SceneStats::totedgesel, SceneStats::totface, SceneStats::totfacesel, SceneStats::totvert, SceneStats::totvertsel, Object::type, Nurb::type, and EditMesh::verts.
Referenced by stats_update().
static void stats_object_paint | ( | Object * | ob, |
SceneStats * | stats | ||
) | [static] |
Definition at line 263 of file info_stats.c.
References Object::data, OB_MESH, SceneStats::totface, Mesh::totface, Mesh::totvert, SceneStats::totvert, and Object::type.
Referenced by stats_update().
static void stats_object_pose | ( | Object * | ob, |
SceneStats * | stats | ||
) | [static] |
Definition at line 248 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 void stats_string | ( | Scene * | scene | ) | [static] |
Definition at line 364 of file info_stats.c.
References Scene::basact, Object::id, SceneStats::infostr, MEM_get_mapped_memory_in_use(), MEM_get_memory_in_use(), mem_in_use, mmap_in_use, Object::mode, ID::name, NULL, OB_ARMATURE, ob_get_keyblock(), OB_MESH, OB_MODE_POSE, Scene::obedit, Base::object, SCE_SELECT_EDGE, SCE_SELECT_VERTEX, ToolSettings::selectmode, Scene::stats, Scene::toolsettings, SceneStats::totbone, SceneStats::totbonesel, SceneStats::totedge, SceneStats::totedgesel, SceneStats::totface, SceneStats::totfacesel, SceneStats::totlamp, SceneStats::totobj, SceneStats::totobjsel, SceneStats::totvert, SceneStats::totvertsel, Object::type, and versionstr.
Referenced by ED_info_stats_string().
static void stats_update | ( | Scene * | scene | ) | [static] |
Definition at line 333 of file info_stats.c.
References Scene::basact, Scene::base, ListBase::first, Object::flag, Scene::lay, MEM_callocN(), Object::mode, NULL, OB_MODE_ALL_PAINT, OB_MODE_POSE, Scene::obedit, Base::object, Scene::stats, stats_dupli_object(), stats_object_edit(), stats_object_paint(), and stats_object_pose().
Referenced by ED_info_stats_string().