Graphviz  2.41.20171026.1811
Data Structures | Macros | Functions | Variables
tcldot.h File Reference
#include <tcl.h>
#include "render.h"
#include "gvc.h"
#include "gvio.h"
#include "tclhandle.h"
Include dependency graph for tcldot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ictx_t
 
struct  gctx_t
 
struct  rdr_t
 

Macros

#define USE_NON_CONST
 
#define CONST84
 

Functions

int graphcmd (ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
 
int nodecmd (ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
 
int edgecmd (ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
 
int myiodisc_afread (void *channel, char *ubuf, int n)
 
int myiodisc_memiofread (void *chan, char *buf, int bufsize)
 
Agraph_tagread_usergets (ictx_t *ictx, FILE *fp, int(*usergets)(void *chan, char *buf, int bufsize))
 
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 listGraphAttrs (Tcl_Interp *interp, Agraph_t *g)
 
void listNodeAttrs (Tcl_Interp *interp, Agraph_t *g)
 
void listEdgeAttrs (Tcl_Interp *interp, 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)
 
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)
 
void tcldot_layout (GVC_t *gvc, Agraph_t *g, char *engine)
 

Variables

Agiddisc_t myiddisc
 

Macro Definition Documentation

#define CONST84

Definition at line 25 of file tcldot.h.

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

#define USE_NON_CONST

Definition at line 17 of file tcldot.h.

Function Documentation

Agraph_t* agread_usergets ( ictx_t ictx,
FILE *  fp,
int(*)(void *chan, char *buf, int bufsize)  usergets 
)

Referenced by gvNextInputGraph().

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().

int edgecmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
char *  argv[] 
)
int graphcmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
char *  argv[] 
)
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().

int myiodisc_afread ( void *  channel,
char *  ubuf,
int  n 
)

Definition at line 31 of file tcldot-io.c.

int myiodisc_memiofread ( void *  chan,
char *  buf,
int  bufsize 
)

Definition at line 86 of file tcldot-io.c.

References rdr_t::cur, rdr_t::data, and rdr_t::len.

int nodecmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
char *  argv[] 
)
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().

Variable Documentation

Agiddisc_t myiddisc

Definition at line 99 of file tcldot-id.c.

Referenced by Tcldot_Init().