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

depsgraph_private.h File Reference

#include "BKE_depsgraph.h"
#include "DNA_constraint_types.h"
#include "BKE_constraint.h"

Go to the source code of this file.

Classes

struct  DagAdjList
struct  DagNode
struct  DagNodeQueueElem
struct  DagNodeQueue
struct  DagForest

Defines

#define DEPSX   5.0f
#define DEPSY   1.8f
#define DAGQUEUEALLOC   50

Typedefs

typedef struct DagAdjList DagAdjList
typedef struct DagNode DagNode
typedef struct DagNodeQueueElem DagNodeQueueElem
typedef struct DagNodeQueue DagNodeQueue
typedef struct DagForest DagForest

Enumerations

enum  { DAG_WHITE = 0, DAG_GRAY = 1, DAG_BLACK = 2 }

Functions

DagNodeQueuequeue_create (int slots)
void queue_raz (DagNodeQueue *queue)
void push_queue (DagNodeQueue *queue, DagNode *node)
void push_stack (DagNodeQueue *queue, DagNode *node)
DagNodepop_queue (DagNodeQueue *queue)
DagNodeget_top_node_queue (DagNodeQueue *queue)
DagForestgetMainDag (void)
void setMainDag (DagForest *dag)
DagForestdag_init (void)
DagNodedag_find_node (DagForest *forest, void *fob)
DagNodedag_add_node (DagForest *forest, void *fob)
DagNodedag_get_node (DagForest *forest, void *fob)
DagNodedag_get_sub_node (DagForest *forest, void *fob)
void dag_add_relation (DagForest *forest, DagNode *fob1, DagNode *fob2, short rel, const char *name)
void graph_bfs (void)
DagNodeQueuegraph_dfs (void)
void set_node_xy (DagNode *node, float x, float y)
void graph_print_queue (DagNodeQueue *nqueue)
void graph_print_queue_dist (DagNodeQueue *nqueue)
void graph_print_adj_list (void)
int build_deps (short mask)

Detailed Description

Definition in file depsgraph_private.h.


Define Documentation

#define DAGQUEUEALLOC   50
#define DEPSX   5.0f

Definition at line 38 of file depsgraph_private.h.

Referenced by graph_bfs(), and graph_dfs().

#define DEPSY   1.8f

Definition at line 39 of file depsgraph_private.h.

Referenced by graph_bfs(), and graph_dfs().


Typedef Documentation

typedef struct DagAdjList DagAdjList
typedef struct DagForest DagForest
typedef struct DagNode DagNode
typedef struct DagNodeQueue DagNodeQueue

Enumeration Type Documentation

anonymous enum
Enumerator:
DAG_WHITE 
DAG_GRAY 
DAG_BLACK 

Definition at line 43 of file depsgraph_private.h.


Function Documentation

int build_deps ( short  mask)
DagNode* dag_add_node ( DagForest forest,
void *  fob 
)
void dag_add_relation ( DagForest forest,
DagNode fob1,
DagNode fob2,
short  rel,
const char *  name 
)
DagNode* dag_find_node ( DagForest forest,
void *  fob 
)
DagNode* dag_get_node ( DagForest forest,
void *  fob 
)
DagNode* dag_get_sub_node ( DagForest forest,
void *  fob 
)
DagForest* dag_init ( void  )

Definition at line 288 of file depsgraph.c.

References MEM_callocN().

Referenced by build_dag(), and DAG_pose_sort().

DagNode* get_top_node_queue ( DagNodeQueue queue)
DagForest* getMainDag ( void  )

Definition at line 1078 of file depsgraph.c.

References MainDag.

Referenced by graph_print_adj_list().

void graph_bfs ( void  )
DagNodeQueue* graph_dfs ( void  )
void graph_print_adj_list ( void  )
void graph_print_queue ( DagNodeQueue nqueue)
void graph_print_queue_dist ( DagNodeQueue nqueue)
DagNode* pop_queue ( DagNodeQueue queue)
void push_queue ( DagNodeQueue queue,
DagNode node 
)
void push_stack ( DagNodeQueue queue,
DagNode node 
)
DagNodeQueue* queue_create ( int  slots)
void queue_raz ( DagNodeQueue queue)
void set_node_xy ( DagNode node,
float  x,
float  y 
)

Definition at line 1591 of file depsgraph.c.

References DagNode::x, and DagNode::y.

Referenced by graph_bfs(), and graph_dfs().

void setMainDag ( DagForest dag)

Definition at line 1084 of file depsgraph.c.