Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
smyrna_utils.h File Reference
#include "smyrnadefs.h"
#include <cgraph/cgraph.h>
Include dependency graph for smyrna_utils.h:
This graph shows which files directly or indirectly include this file:

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)
 
void getcolorfromschema (colorschemaset *sc, float l, float maxl, glCompColor *c)
 
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 
)
extern

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 
)
extern

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 
)
extern

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 
)
extern

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:

◆ getcolorfromschema()

void getcolorfromschema ( colorschemaset sc,
float  l,
float  maxl,
glCompColor c 
)
extern

Definition at line 553 of file viewport.c.

References glCompColor::A, glCompColor::B, colorschema::c, glCompColor::G, interpol(), colorschema::perc, glCompColor::R, colorschemaset::s, colorschemaset::schemacount, and colorschemaset::smooth.

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)
extern

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 
)
extern

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 
)
extern

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 
)
extern

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: