Graphviz  2.41.20171026.1811
Functions
tcldot-util.c File Reference
#include "tcldot.h"
Include dependency graph for tcldot-util.c:

Go to the source code of this file.

Functions

size_t Tcldot_string_writer (GVJ_t *job, const char *s, size_t len)
 
size_t Tcldot_channel_writer (GVJ_t *job, const char *s, size_t len)
 
Agraph_tcmd2g (char *cmd)
 
Agnode_tcmd2n (char *cmd)
 
Agedge_tcmd2e (char *cmd)
 
char * obj2cmd (void *obj)
 
void deleteEdge (gctx_t *gctx, Agraph_t *g, Agedge_t *e)
 
void deleteNode (gctx_t *gctx, Agraph_t *g, Agnode_t *n)
 
void deleteGraph (gctx_t *gctx, Agraph_t *g)
 
void setgraphattributes (Agraph_t *g, char *argv[], int argc)
 
void setedgeattributes (Agraph_t *g, Agedge_t *e, char *argv[], int argc)
 
void setnodeattributes (Agraph_t *g, Agnode_t *n, char *argv[], int argc)
 
void listGraphAttrs (Tcl_Interp *interp, Agraph_t *g)
 
void listNodeAttrs (Tcl_Interp *interp, Agraph_t *g)
 
void listEdgeAttrs (Tcl_Interp *interp, Agraph_t *g)
 
void tcldot_layout (GVC_t *gvc, Agraph_t *g, char *engine)
 

Function Documentation

Agedge_t* cmd2e ( char *  cmd)

Definition at line 44 of file tcldot-util.c.

References NULL.

Referenced by edgecmd().

Agraph_t* cmd2g ( char *  cmd)

Definition at line 30 of file tcldot-util.c.

References NULL.

Referenced by graphcmd().

Agnode_t* cmd2n ( char *  cmd)

Definition at line 37 of file tcldot-util.c.

References NULL.

Referenced by graphcmd(), and nodecmd().

void deleteEdge ( gctx_t gctx,
Agraph_t g,
Agedge_t e 
)

Definition at line 68 of file tcldot-util.c.

References agdelete(), gctx_t::g, gctx_t::ictx, ictx_t::interp, and obj2cmd().

Referenced by edgecmd().

void deleteGraph ( gctx_t gctx,
Agraph_t g 
)
void deleteNode ( gctx_t gctx,
Agraph_t g,
Agnode_t n 
)

Definition at line 87 of file tcldot-util.c.

References agdelete(), gctx_t::g, gctx_t::ictx, ictx_t::interp, and obj2cmd().

Referenced by nodecmd().

void listEdgeAttrs ( Tcl_Interp *  interp,
Agraph_t g 
)

Definition at line 210 of file tcldot-util.c.

References AGEDGE, agnxtattr(), Agsym_s::name, and NULL.

Referenced by edgecmd(), and graphcmd().

void listGraphAttrs ( Tcl_Interp *  interp,
Agraph_t g 
)

Definition at line 196 of file tcldot-util.c.

References agnxtattr(), AGRAPH, Agsym_s::name, and NULL.

Referenced by graphcmd().

void listNodeAttrs ( Tcl_Interp *  interp,
Agraph_t g 
)

Definition at line 203 of file tcldot-util.c.

References AGNODE, agnxtattr(), Agsym_s::name, and NULL.

Referenced by graphcmd(), and nodecmd().

char* obj2cmd ( void *  obj)

Definition at line 55 of file tcldot-util.c.

References AGINEDGE, AGNODE, AGOUTEDGE, AGRAPH, and AGTYPE.

Referenced by deleteEdge(), deleteGraph(), deleteNode(), edgecmd(), graphcmd(), and nodecmd().

void setedgeattributes ( Agraph_t g,
Agedge_t e,
char *  argv[],
int  argc 
)

Definition at line 155 of file tcldot-util.c.

References agattr(), AGEDGE, agfindedgeattr, and agroot().

Referenced by edgecmd(), graphcmd(), and nodecmd().

void setgraphattributes ( Agraph_t g,
char *  argv[],
int  argc 
)

Definition at line 143 of file tcldot-util.c.

References agattr(), agfindgraphattr, AGRAPH, and agroot().

Referenced by graphcmd().

void setnodeattributes ( Agraph_t g,
Agnode_t n,
char *  argv[],
int  argc 
)

Definition at line 178 of file tcldot-util.c.

References agattr(), agfindnodeattr, AGNODE, and agroot().

Referenced by graphcmd(), and nodecmd().

size_t Tcldot_channel_writer ( GVJ_t job,
const char *  s,
size_t  len 
)

Definition at line 23 of file tcldot-util.c.

References GVJ_s::output_file.

Referenced by graphcmd().

void tcldot_layout ( GVC_t gvc,
Agraph_t g,
char *  engine 
)
size_t Tcldot_string_writer ( GVJ_t job,
const char *  s,
size_t  len 
)

Definition at line 17 of file tcldot-util.c.

References GVJ_s::context, and NULL.

Referenced by graphcmd().