attr = agattr(g, AGTYPE(obj), attr_name,0);
return late_bool(obj, attr,def);
}
+/* Differs from getAttrBool in that a value of "" returns def */
+int getAttrBool1(Agraph_t* g,void* obj,char* attr_name,int def)
+{
+ Agsym_t* attr;
+ char* s;
+ if ((attr = agattr(g, AGTYPE(obj), attr_name,0))) {
+ s = agxget (obj, attr);
+ if (*s) return mapbool(s);
+ else return def;
+ }
+ else return def;
+}
int getAttrInt(Agraph_t* g,void* obj,char* attr_name,int def)
{
Agsym_t* attr;
extern int l_int(void *obj, Agsym_t * attr, int def);
extern float l_float(void *obj, Agsym_t * attr, float def);
extern int getAttrBool(Agraph_t* g,void* obj,char* attr_name,int def);
+extern int getAttrBool1(Agraph_t* g,void* obj,char* attr_name,int def);
extern int getAttrInt(Agraph_t* g,void* obj,char* attr_name,int def);
extern float getAttrFloat(Agraph_t* g,void* obj,char* attr_name,float def);
extern char* getAttrStr(Agraph_t* g,void* obj,char* attr_name,char* def);
Alpha=getAttrFloat(g,agraphof(obj),"defaultedgealpha",1);
if(objType==AGNODE)
Alpha=getAttrFloat(g,agraphof(obj),"defaultnodealpha",1);
- if(!getAttrBool(g,obj,"visible",1))
+ if(!getAttrBool1(g,obj,"visible",1))
return 0;
/*get edge's color attribute */
+ setColorScheme (agget (obj, "colorscheme"));
bf=getAttrStr(g,obj,"color",NULL);
if((bf)&&(strlen(bf)>0))
{
void renderSmGraph(Agraph_t * g,topview* t)
{
+ glEnable(GL_POINT_SMOOTH);
if(view->drawnodes)
{