#define SPHERE_SLICE_COUNT 6
#define DOT_SIZE_CORRECTION_FAC 0.3
-#define HUGE_NUMBER 99999999999
typedef enum { nodshapedot,nodeshapecircle} node_shape;
typedef enum { leftmousebutton,rightmousebutton,thirdmousebutton} clicked_mouse_button;
#include "selection.h"
#include "topviewdata.h"
#include "hier.h"
+#include "arith.h"
#include "topfisheyeview.h"
#ifdef WIN32
#include "regex_win32.h"
/*find out if 2D or 3 d, count commas*/
if (!buf)
return 0;
- for (ind;ind < (int)strlen(buf); ind=ind +1)
+ for (;ind < (int)strlen(buf); ind=ind +1)
{
if( buf[ind]==',')
commacount ++;
void settvposinfo(Agraph_t* g,topview* t)
{
int ind;
- float maxedgelen,len,minedgelen;
+ float maxedgelen,len,minedgelen;
maxedgelen=0;
- minedgelen=HUGE_NUMBER;
+ minedgelen=MAXFLOAT;
/*loop nodes*/
for (ind=0;ind < t->Nodecount ; ind ++)
{
Agedge_t *e;
Agsym_t *sym;
int ind, ind2, data_type_count; //number of columns for custom view->Topview data ,IP ,HOST, etc
- int maxlabelsize=0;
- float maxedgelen,minedgelen,edgelength;
+ float maxedgelen,minedgelen,edgelength;
- maxedgelen=0;
- minedgelen=(float)99999999.00000; //FIX ME if you have a giant graph or fix your graph
- edgelength=0;
+ maxedgelen=0;
+ minedgelen=MAXFLOAT;
+ edgelength=0;
ind = 0;
ind2 = 0;
#ifdef WIN32
Agraph_t* a=exec_gvpr(prog,g);
#endif
- return 1;
}
float interpol(float minv,float maxv,float minc,float maxc,float x)
{