From 2404712fc82f6903cd33ef8bc09752397f11c087 Mon Sep 17 00:00:00 2001 From: arif Date: Thu, 18 Jun 2009 20:32:42 +0000 Subject: [PATCH] few changes for stable release (sfdp proj files including new library rbtree + couple fixes) --- cmd/smyrna/glexpose.c | 5 + cmd/smyrna/glmotion.c | 5 + cmd/smyrna/smyrnadefs.h | 11 + cmd/smyrna/topview.c | 3 +- cmd/smyrna/viewport.c | 3 +- cmd/tools/mm2gv.vcproj | 2 +- graphviz.sln | 6 + lib/glcomp/glutils.c | 8 +- lib/rbtree/Makefile.am | 2 +- lib/rbtree/rbtree.vcproj | 192 ++++++++++++++++++ lib/sfdpgen/sfdp.vcproj | 2 + lib/xdot/xdot.c | 1 - .../neato_layout/gvplugin_neato_layout.vcproj | 2 +- 13 files changed, 232 insertions(+), 10 deletions(-) create mode 100644 lib/rbtree/rbtree.vcproj diff --git a/cmd/smyrna/glexpose.c b/cmd/smyrna/glexpose.c index f9efe31f3..63d5fd170 100644 --- a/cmd/smyrna/glexpose.c +++ b/cmd/smyrna/glexpose.c @@ -52,10 +52,15 @@ int glupdatecamera(ViewInfo * view) gluLookAt(view->cameras[view->active_camera]->targetx, view->cameras[view->active_camera]->targety, 20, view->cameras[view->active_camera]->targetx, view->cameras[view->active_camera]->targety, 0.0, 0.0, 1.0, 0.0); // glTranslatef(view->cameras[view->active_camera]->targetx/pow(view->cameras[view->active_camera]->r,0.125),view->cameras[view->active_camera]->targety/pow(view->cameras[view->active_camera]->r,0.125),0); +/* glRotatef(view->cameras[view->active_camera]->angley,1,0,0); + glRotatef(view->cameras[view->active_camera]->anglex,0,1,0); + glRotatef(view->cameras[view->active_camera]->anglez,0,0,1);*/ + glRotatef(view->cameras[view->active_camera]->angley,1,0,0); glRotatef(view->cameras[view->active_camera]->anglex,0,1,0); glRotatef(view->cameras[view->active_camera]->anglez,0,0,1); + } GetOGLPosRef(1, view->h - 5, &(view->clipX1), &(view->clipY1), &(view->clipZ1)); diff --git a/cmd/smyrna/glmotion.c b/cmd/smyrna/glmotion.c index 98a06a0f2..5a2442deb 100644 --- a/cmd/smyrna/glmotion.c +++ b/cmd/smyrna/glmotion.c @@ -159,6 +159,11 @@ void glmotion_adjust_pan(ViewInfo* v,float panx,float pany) redraw = TRUE; +} +static float mod_angle(float angle) +{ +// if (angle > 360) + } void glmotion_rotate(ViewInfo * v) { diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 3c8dff5e2..46bab5a93 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -99,6 +99,12 @@ typedef struct{ }colorschema; +typedef struct{ + char* script; + char* args; + char* attr_name; /*attribute name to identify script in the graph*/ +}gvprscript; + typedef struct{ int schemacount; colorschema* s; @@ -322,6 +328,8 @@ typedef struct { float fitin_zoom; } topview; + + enum { COL_NAME = 0, COL_FILENAME, @@ -554,6 +562,9 @@ typedef struct _ViewInfo char* attr_file; int flush; line interpol; + gvprscript* scripts; + int script_count; /*# of scripts*/ + } ViewInfo; extern ViewInfo *view; diff --git a/cmd/smyrna/topview.c b/cmd/smyrna/topview.c index 232dbc3ca..60dbe87f5 100755 --- a/cmd/smyrna/topview.c +++ b/cmd/smyrna/topview.c @@ -251,7 +251,8 @@ void settvcolorinfo(Agraph_t* g,topview* t) } /*update node size values in case node size is changed*/ - t->init_node_size = t->avgedgelength*2/GetOGLDistance(2)*atoi(agget(view->g[view->activeGraph],"nodesize"))/100.0*5.00; + t->init_node_size = + t->avgedgelength*2/GetOGLDistance(2)*atoi(agget(view->g[view->activeGraph],"nodesize"))/100.0*5.00; t->init_zoom = view->zoom; } diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 58e121e1f..4eaa83364 100755 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -67,7 +67,8 @@ void clear_viewport(ViewInfo * view) cleartopview(view->Topview); if (view->graphCount) agclose(view->g[view->activeGraph]); - + if (view->script_count) + clear_scripts(view); // init_viewport(view); } static void* get_glut_font(int ind) diff --git a/cmd/tools/mm2gv.vcproj b/cmd/tools/mm2gv.vcproj index 0c939a197..5ee50e1b1 100644 --- a/cmd/tools/mm2gv.vcproj +++ b/cmd/tools/mm2gv.vcproj @@ -60,7 +60,7 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/sfdpgen/sfdp.vcproj b/lib/sfdpgen/sfdp.vcproj index 6ba3711b8..3802665a9 100644 --- a/lib/sfdpgen/sfdp.vcproj +++ b/lib/sfdpgen/sfdp.vcproj @@ -60,6 +60,7 @@ /> drawfunc(op,param); } #endif - diff --git a/plugin/neato_layout/gvplugin_neato_layout.vcproj b/plugin/neato_layout/gvplugin_neato_layout.vcproj index 71e860415..2f40a8c20 100644 --- a/plugin/neato_layout/gvplugin_neato_layout.vcproj +++ b/plugin/neato_layout/gvplugin_neato_layout.vcproj @@ -60,7 +60,7 @@ />