Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
smyrna_utils.c File Reference
#include "smyrna_utils.h"
#include <assert.h>
#include <common/types.h>
#include <common/utils.h>
#include <limits.h>
#include <stddef.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_t *selPoly, glCompPoint p)
 

Function Documentation

◆ getAttrBool()

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

Definition at line 33 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 45 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 39 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 51 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 58 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 23 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 18 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_t *  selPoly,
glCompPoint  p 
)

Definition at line 64 of file smyrna_utils.c.

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

Referenced by select_polygon().

Here is the caller graph for this function: