Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

outliner_tree.c File Reference

#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_camera_types.h"
#include "DNA_group_types.h"
#include "DNA_key_types.h"
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_particle_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_sequence_types.h"
#include "DNA_speaker_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_math_base.h"
#include <fnmatch.h>
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_depsgraph.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_group.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_sequencer.h"
#include "ED_armature.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "WM_api.h"
#include "WM_types.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "outliner_intern.h"

Go to the source code of this file.

Classes

struct  tTreeSort

Defines

#define _GNU_SOURCE
#define TS_CHUNK   128
#define LOG2I(x)   (int)(log(x)/M_LN2)

Typedefs

typedef struct tTreeSort tTreeSort

Functions

static void outliner_storage_cleanup (SpaceOops *soops)
static void check_persistent (SpaceOops *soops, TreeElement *te, ID *id, short type, short nr)
void outliner_free_tree (ListBase *lb)
void outliner_cleanup_tree (SpaceOops *soops)
static TreeElementoutliner_find_tree_element (ListBase *lb, int store_index)
TreeElementoutliner_find_tse (SpaceOops *soops, TreeStoreElem *tse)
TreeElementoutliner_find_id (SpaceOops *soops, ListBase *lb, ID *id)
IDoutliner_search_back (SpaceOops *soops, TreeElement *te, short idcode)
static TreeElementoutliner_add_element (SpaceOops *soops, ListBase *lb, void *idv, TreeElement *parent, short type, short index)
static void outliner_add_bone (SpaceOops *soops, ListBase *lb, ID *id, Bone *curBone, TreeElement *parent, int *a)
static void outliner_add_passes (SpaceOops *soops, TreeElement *tenla, ID *id, SceneRenderLayer *srl)
static void outliner_add_scene_contents (SpaceOops *soops, ListBase *lb, Scene *sce, TreeElement *te)
static void outliner_add_object_contents (SpaceOops *soops, TreeElement *te, TreeStoreElem *tselem, Object *ob)
static void outliner_add_id_contents (SpaceOops *soops, TreeElement *te, TreeStoreElem *tselem, ID *id)
static int need_add_seq_dup (Sequence *seq)
static void outliner_add_seq_dup (SpaceOops *soops, Sequence *seq, TreeElement *te, short index)
static void outliner_make_hierarchy (SpaceOops *soops, ListBase *lb)
static int treesort_alpha (const void *v1, const void *v2)
static void outliner_sort (SpaceOops *soops, ListBase *lb)
static int outliner_filter_has_name (TreeElement *te, const char *name, int flags)
static int outliner_filter_tree (SpaceOops *soops, ListBase *lb)
void outliner_build_tree (Main *mainvar, Scene *scene, SpaceOops *soops)

Detailed Description

Definition in file outliner_tree.c.


Define Documentation

#define _GNU_SOURCE

Definition at line 64 of file outliner_tree.c.

#define LOG2I (   x)    (int)(log(x)/M_LN2)

Definition at line 328 of file outliner_tree.c.

Referenced by outliner_add_passes().

#define TS_CHUNK   128

Definition at line 109 of file outliner_tree.c.

Referenced by check_persistent().


Typedef Documentation

typedef struct tTreeSort tTreeSort

Function Documentation

static void check_persistent ( SpaceOops soops,
TreeElement te,
ID id,
short  type,
short  nr 
) [static]
static int need_add_seq_dup ( Sequence seq) [static]
static void outliner_add_bone ( SpaceOops soops,
ListBase lb,
ID id,
Bone curBone,
TreeElement parent,
int *  a 
) [static]
static TreeElement * outliner_add_element ( SpaceOops soops,
ListBase lb,
void *  idv,
TreeElement parent,
short  type,
short  index 
) [static]
static void outliner_add_id_contents ( SpaceOops soops,
TreeElement te,
TreeStoreElem tselem,
ID id 
) [static]
static void outliner_add_object_contents ( SpaceOops soops,
TreeElement te,
TreeStoreElem tselem,
Object ob 
) [static]
static void outliner_add_passes ( SpaceOops soops,
TreeElement tenla,
ID id,
SceneRenderLayer srl 
) [static]
static void outliner_add_scene_contents ( SpaceOops soops,
ListBase lb,
Scene sce,
TreeElement te 
) [static]
static void outliner_add_seq_dup ( SpaceOops soops,
Sequence seq,
TreeElement te,
short  index 
) [static]
void outliner_build_tree ( Main mainvar,
Scene scene,
SpaceOops soops 
)
void outliner_cleanup_tree ( SpaceOops soops)
static int outliner_filter_has_name ( TreeElement te,
const char *  name,
int  flags 
) [static]
static int outliner_filter_tree ( SpaceOops soops,
ListBase lb 
) [static]
TreeElement* outliner_find_id ( SpaceOops soops,
ListBase lb,
ID id 
)
static TreeElement* outliner_find_tree_element ( ListBase lb,
int  store_index 
) [static]
TreeElement* outliner_find_tse ( SpaceOops soops,
TreeStoreElem tse 
)
void outliner_free_tree ( ListBase lb)
static void outliner_make_hierarchy ( SpaceOops soops,
ListBase lb 
) [static]
ID* outliner_search_back ( SpaceOops soops,
TreeElement te,
short  idcode 
) [read]
static void outliner_sort ( SpaceOops soops,
ListBase lb 
) [static]
static void outliner_storage_cleanup ( SpaceOops soops) [static]
static int treesort_alpha ( const void *  v1,
const void *  v2 
) [static]

Definition at line 1212 of file outliner_tree.c.

References ID_OB, tTreeSort::idcode, and tTreeSort::name.

Referenced by outliner_sort().