Graphviz 13.0.0~dev.20241220.2304
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 (const colorschemaset sc, float l, float maxl, glCompColor *c)
 
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 
)
extern

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

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

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

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:

◆ getcolorfromschema()

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

Definition at line 550 of file viewport.c.

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

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

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

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

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: