Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
smyrna_utils.c File Reference
#include "smyrna_utils.h"
#include <common/types.h>
#include <common/utils.h>
#include <limits.h>
#include <stdio.h>
Include dependency graph for smyrna_utils.c:

Go to the source code of this file.

Functions

int l_int (void *obj, Agsym_t *attr, int def)
 
float l_float (void *obj, Agsym_t *attr, float def)
 
int getAttrBool (Agraph_t *g, void *obj, char *attr_name, int def)
 
int getAttrInt (Agraph_t *g, void *obj, char *attr_name, int def)
 
float getAttrFloat (Agraph_t *g, void *obj, char *attr_name, float def)
 
char * getAttrStr (Agraph_t *g, void *obj, char *attr_name, char *def)
 
glCompPoint getPointFromStr (const char *str)
 
int point_in_polygon (glCompPoly *selPoly, glCompPoint p)
 

Function Documentation

◆ getAttrBool()

int getAttrBool ( Agraph_t g,
void *  obj,
char *  attr_name,
int  def 
)

Definition at line 31 of file smyrna_utils.c.

References agattr(), AGTYPE, and late_bool().

Referenced by pick_object(), and renderSelectedNodes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttrFloat()

float getAttrFloat ( Agraph_t g,
void *  obj,
char *  attr_name,
float  def 
)

Definition at line 43 of file smyrna_utils.c.

References agattr(), AGTYPE, and l_float().

Referenced by object_color().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttrInt()

int getAttrInt ( Agraph_t g,
void *  obj,
char *  attr_name,
int  def 
)

Definition at line 37 of file smyrna_utils.c.

References agattr(), AGTYPE, and l_int().

Referenced by renderNodes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttrStr()

char * getAttrStr ( Agraph_t g,
void *  obj,
char *  attr_name,
char *  def 
)

Definition at line 49 of file smyrna_utils.c.

References agattr(), AGTYPE, and late_string().

Referenced by object_color().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPointFromStr()

glCompPoint getPointFromStr ( const char *  str)

Definition at line 56 of file smyrna_utils.c.

References str, glCompPoint::x, glCompPoint::y, and glCompPoint::z.

Referenced by edge_seg(), getEdgeHead(), getEdgeTail(), renderNodes(), and set_boundaries().

Here is the caller graph for this function:

◆ l_float()

float l_float ( void *  obj,
Agsym_t attr,
float  def 
)

Definition at line 21 of file smyrna_utils.c.

References agxget().

Referenced by getAttrFloat(), and renderNodes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ l_int()

int l_int ( void *  obj,
Agsym_t attr,
int  def 
)

Definition at line 16 of file smyrna_utils.c.

References late_int().

Referenced by getAttrInt(), and renderNodes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ point_in_polygon()

int point_in_polygon ( glCompPoly selPoly,
glCompPoint  p 
)

Definition at line 62 of file smyrna_utils.c.

References glCompPoly::cnt, glCompPoly::pts, glCompPoint::x, and glCompPoint::y.

Referenced by select_polygon().

Here is the caller graph for this function: