]> granicus.if.org Git - graphviz/commitdiff
few changes for stable release (sfdp proj files including new library rbtree + couple...
authorarif <devnull@localhost>
Thu, 18 Jun 2009 20:32:42 +0000 (20:32 +0000)
committerarif <devnull@localhost>
Thu, 18 Jun 2009 20:32:42 +0000 (20:32 +0000)
13 files changed:
cmd/smyrna/glexpose.c
cmd/smyrna/glmotion.c
cmd/smyrna/smyrnadefs.h
cmd/smyrna/topview.c
cmd/smyrna/viewport.c
cmd/tools/mm2gv.vcproj
graphviz.sln
lib/glcomp/glutils.c
lib/rbtree/Makefile.am
lib/rbtree/rbtree.vcproj [new file with mode: 0644]
lib/sfdpgen/sfdp.vcproj
lib/xdot/xdot.c
plugin/neato_layout/gvplugin_neato_layout.vcproj

index f9efe31f30522fd795aadb5806d4dc74963db98c..63d5fd170eee3ba2496af1b2618939cfb3b2634a 100644 (file)
@@ -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));
index 98a06a0f2435dc1cf1533bfa44cd6328f4bf19d1..5a2442deb4406f0adfb12db1899f986858f80391 100644 (file)
@@ -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)
 {
index 3c8dff5e2ac7c689fb8bee02d5b54c5b6a120df7..46bab5a9378edefd98c986fc6cf6ad3385e90d8a 100644 (file)
@@ -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;
index 232dbc3ca3ef82e32a5a6f948a64eee10011e641..60dbe87f51eeaa1c33b5a8edddb2caa7e324177d 100755 (executable)
@@ -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;
 
 }
index 58e121e1fe2abea961df735cc75e12c227707d4b..4eaa83364575414dc2a98a8f388a53838c34d93a 100755 (executable)
@@ -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)
index 0c939a19742cd165cbf60c682be29030feac22d2..5ee50e1b1b346be8c38aa765106857a3811faccf 100644 (file)
@@ -60,7 +60,7 @@
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="libpng.lib gtk-win32-2.0.lib asprintf.lib atk-1.0.lib bz2.lib cairo.lib charset.lib croco-0.6.lib expat.lib expatw.lib glade-2.0.lib fontconfig.lib freetype.lib gdk_pixbuf-2.0.lib gdkglext-win32-1.0.lib gdk-win32-2.0.lib glib-2.0.lib pathplan.lib gmodule-2.0.lib gobject-2.0.lib gsf-1.lib gsf-win32-1.lib gthread-2.0.lib gtkglext-win32-1.0.lib iconv.lib intl.lib jpeg.lib libexpat.lib libexpatw.lib pango-1.0.lib pangocairo-1.0.lib pangoft2-1.0.lib pangowin32-1.0.lib popt.lib rsvg-2.lib tiff.lib xml2.lib libgdkglext-win32-1.0.dll.a libgtkglext-win32-1.0.dll.a glu32.lib opengl32.lib ltdl.lib hs_regex.lib zdll.lib cdt.lib graph.lib gvc.lib circogen.lib neatogen.lib fdpgen.lib patchwork.lib sparse.lib twopigen.lib cgraph.lib ingraphs.lib $(NOINHERIT)"
+                               AdditionalDependencies="libpng.lib gtk-win32-2.0.lib asprintf.lib atk-1.0.lib bz2.lib cairo.lib charset.lib croco-0.6.lib expat.lib expatw.lib glade-2.0.lib fontconfig.lib freetype.lib gdk_pixbuf-2.0.lib gdkglext-win32-1.0.lib gdk-win32-2.0.lib glib-2.0.lib pathplan.lib gmodule-2.0.lib gobject-2.0.lib gsf-1.lib gsf-win32-1.lib gthread-2.0.lib gtkglext-win32-1.0.lib iconv.lib intl.lib jpeg.lib libexpat.lib libexpatw.lib pango-1.0.lib pangocairo-1.0.lib pangoft2-1.0.lib pangowin32-1.0.lib popt.lib rsvg-2.lib tiff.lib xml2.lib libgdkglext-win32-1.0.dll.a libgtkglext-win32-1.0.dll.a glu32.lib opengl32.lib ltdl.lib hs_regex.lib zdll.lib cdt.lib gvc.lib circogen.lib neatogen.lib fdpgen.lib patchwork.lib sparse.lib twopigen.lib cgraph.lib ingraphs.lib $(NOINHERIT)"
                                OutputFile="c:/graphviz-ms/bin/$(ProjectName).exe"
                                LinkIncremental="2"
                                AdditionalLibraryDirectories="C:\graphviz-ms\bin;C:\gtk\lib"
index e83ce65844db229d3dad764e58abf7fc695310bf..5fe434854f2f7f97ba24ee5d7e406a5345596855 100644 (file)
@@ -199,6 +199,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gvprlib", "cmd\gvprlib\gvpr
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sfdp", "lib\sfdpgen\sfdp.vcproj", "{443EB1A7-C634-4292-9F2D-C752BB2BF40F}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rbtree", "lib\rbtree\rbtree.vcproj", "{D6CEB142-BF8E-471C-AE16-4300F2D5DEDA}"
+EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -429,6 +431,10 @@ Global
                {443EB1A7-C634-4292-9F2D-C752BB2BF40F}.Debug|Win32.Build.0 = Debug|Win32
                {443EB1A7-C634-4292-9F2D-C752BB2BF40F}.Release|Win32.ActiveCfg = Release|Win32
                {443EB1A7-C634-4292-9F2D-C752BB2BF40F}.Release|Win32.Build.0 = Release|Win32
+               {D6CEB142-BF8E-471C-AE16-4300F2D5DEDA}.Debug|Win32.ActiveCfg = Debug|Win32
+               {D6CEB142-BF8E-471C-AE16-4300F2D5DEDA}.Debug|Win32.Build.0 = Debug|Win32
+               {D6CEB142-BF8E-471C-AE16-4300F2D5DEDA}.Release|Win32.ActiveCfg = Release|Win32
+               {D6CEB142-BF8E-471C-AE16-4300F2D5DEDA}.Release|Win32.Build.0 = Release|Win32
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 514d4e2129e6f47ea8b3e057f6136f96064241dd..e4c3d4cd2104b6778db924c34373632db897127d 100644 (file)
@@ -32,14 +32,14 @@ int GetFixedOGLPos(int x, int y, float kts, GLfloat * X, GLfloat * Y,
 
        glColor4f((GLfloat)0,(GLfloat)0,(GLfloat)0,(GLfloat)0.001);
        glBegin(GL_POINTS);
-    glVertex3f((GLfloat)10.00, (GLfloat)10.00, (GLfloat)1.00);
+    glVertex3f((GLfloat)-100.00, (GLfloat)-100.00, (GLfloat)1.00);
     glEnd();
        
        glGetDoublev(GL_MODELVIEW_MATRIX, modelview);
     glGetDoublev(GL_PROJECTION_MATRIX, projection);
     glGetIntegerv(GL_VIEWPORT, viewport);
 
-    gluProject(10.0, 10.0, 1.00, modelview, projection, viewport, &wwinX,
+    gluProject(-100.0, -100.0, 1.00, modelview, projection, viewport, &wwinX,
               &wwinY, &wwinZ);
 
     winX = (float) x;
@@ -77,9 +77,9 @@ int GetOGLPosRef(int x, int y, float *X, float *Y, float *Z)
        glColor4f((GLfloat)0,(GLfloat)0,(GLfloat)0,(GLfloat)0.001);
 
        glBegin(GL_POINTS);
-    glVertex3f(10.00, 10.00, 0.00);
+    glVertex3f(-100.00, -100.00, 0.00);
     glEnd();
-    gluProject(10.0, 10.0, 0.00, modelview, projection, viewport, &wwinX,
+    gluProject(-100.0, -100.0, 0.00, modelview, projection, viewport, &wwinX,
               &wwinY, &wwinZ);
     winX = (float) x;
     winY = (float) viewport[3] - (float) y;
index cab22864cf6c09667ee17595181914551cdfdb58..537023673a584a6e1d81f3cb529edf11ae00cf4d 100644 (file)
@@ -11,7 +11,7 @@ librbtree_C_la_SOURCES = misc.c red_black_tree.c stack.c
 CLEANFILES = inkpot_lib_*.dat
 
 EXTRA_DIST = LICENSE CHANGES makefile.txt test_red_black_tree.c \
-            simple_test.sh test_rb
+            simple_test.sh test_rb rbtree.vcproj
 
 DISTCLEANFILES = 
 
diff --git a/lib/rbtree/rbtree.vcproj b/lib/rbtree/rbtree.vcproj
new file mode 100644 (file)
index 0000000..a8bb183
--- /dev/null
@@ -0,0 +1,192 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+       ProjectType="Visual C++"
+       Version="8.00"
+       Name="rbtree"
+       ProjectGUID="{D6CEB142-BF8E-471C-AE16-4300F2D5DEDA}"
+       RootNamespace="rbtree"
+       Keyword="Win32Proj"
+       >
+       <Platforms>
+               <Platform
+                       Name="Win32"
+               />
+       </Platforms>
+       <ToolFiles>
+       </ToolFiles>
+       <Configurations>
+               <Configuration
+                       Name="Debug|Win32"
+                       OutputDirectory="Debug"
+                       IntermediateDirectory="Debug"
+                       ConfigurationType="4"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               Optimization="0"
+                               PreprocessorDefinitions="WIN32;_DEBUG;_LIB;"
+                               MinimalRebuild="true"
+                               BasicRuntimeChecks="3"
+                               RuntimeLibrary="3"
+                               UsePrecompiledHeader="0"
+                               WarningLevel="3"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="4"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLibrarianTool"
+                               OutputFile="c:/graphviz-ms/bin/$(ProjectName).lib"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|Win32"
+                       OutputDirectory="Release"
+                       IntermediateDirectory="Release"
+                       ConfigurationType="4"
+                       >
+                       <Tool
+                               Name="VCPreBuildEventTool"
+                       />
+                       <Tool
+                               Name="VCCustomBuildTool"
+                       />
+                       <Tool
+                               Name="VCXMLDataGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCWebServiceProxyGeneratorTool"
+                       />
+                       <Tool
+                               Name="VCMIDLTool"
+                       />
+                       <Tool
+                               Name="VCCLCompilerTool"
+                               PreprocessorDefinitions="WIN32;NDEBUG;_LIB;"
+                               RuntimeLibrary="2"
+                               UsePrecompiledHeader="0"
+                               WarningLevel="3"
+                               Detect64BitPortabilityProblems="true"
+                               DebugInformationFormat="3"
+                       />
+                       <Tool
+                               Name="VCManagedResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCResourceCompilerTool"
+                       />
+                       <Tool
+                               Name="VCPreLinkEventTool"
+                       />
+                       <Tool
+                               Name="VCLibrarianTool"
+                               OutputFile="c:/graphviz-ms/bin/$(ProjectName).lib"
+                       />
+                       <Tool
+                               Name="VCALinkTool"
+                       />
+                       <Tool
+                               Name="VCXDCMakeTool"
+                       />
+                       <Tool
+                               Name="VCBscMakeTool"
+                       />
+                       <Tool
+                               Name="VCFxCopTool"
+                       />
+                       <Tool
+                               Name="VCPostBuildEventTool"
+                       />
+               </Configuration>
+       </Configurations>
+       <References>
+       </References>
+       <Files>
+               <Filter
+                       Name="Header Files"
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+                       >
+                       <File
+                               RelativePath=".\misc.h"
+                               >
+                       </File>
+                       <File
+                               RelativePath=".\red_black_tree.h"
+                               >
+                       </File>
+                       <File
+                               RelativePath=".\stack.h"
+                               >
+                       </File>
+               </Filter>
+               <Filter
+                       Name="Resource Files"
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+                       >
+               </Filter>
+               <Filter
+                       Name="Source Files"
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+                       >
+                       <File
+                               RelativePath=".\misc.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath=".\red_black_tree.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath=".\stack.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath=".\test_red_black_tree.c"
+                               >
+                       </File>
+               </Filter>
+       </Files>
+       <Globals>
+       </Globals>
+</VisualStudioProject>
index 6ba3711b81c5b6078974520b61d1cb4e2f682167..3802665a937303ac13062fe4a2805beafccad607 100644 (file)
@@ -60,6 +60,7 @@
                        />
                        <Tool
                                Name="VCLibrarianTool"
+                               OutputFile="c:/graphviz-ms/bin/$(ProjectName).lib"
                        />
                        <Tool
                                Name="VCALinkTool"
                        />
                        <Tool
                                Name="VCLibrarianTool"
+                               OutputFile="c:/graphviz-ms/bin/$(ProjectName).lib"
                        />
                        <Tool
                                Name="VCALinkTool"
index 7eddc9f90dba4ed3200f5a90815ee553f099c300..0e550fa746497c6560d5226d41b5cc2a70c03285 100755 (executable)
@@ -634,4 +634,3 @@ execOp (xdot_op* op,int param)
     op->drawfunc(op,param);
 }
 #endif
-
index 71e860415fa0331c79947736ec171d24822cb3b3..2f40a8c20dc7a2fba803e3e2ab855f3707056a5f 100644 (file)
@@ -60,7 +60,7 @@
                        />
                        <Tool
                                Name="VCLinkerTool"
-                               AdditionalDependencies="libpng.lib gtk-win32-2.0.lib asprintf.lib atk-1.0.lib bz2.lib cairo.lib charset.lib croco-0.6.lib expat.lib expatw.lib glade-2.0.lib fontconfig.lib freetype.lib gdk_pixbuf-2.0.lib gdkglext-win32-1.0.lib gdk-win32-2.0.lib glib-2.0.lib pathplan.lib gmodule-2.0.lib gobject-2.0.lib gsf-1.lib gsf-win32-1.lib gthread-2.0.lib gtkglext-win32-1.0.lib iconv.lib intl.lib jpeg.lib libexpat.lib libexpatw.lib pango-1.0.lib pangocairo-1.0.lib pangoft2-1.0.lib pangowin32-1.0.lib popt.lib rsvg-2.lib tiff.lib xml2.lib libgdkglext-win32-1.0.dll.a libgtkglext-win32-1.0.dll.a glu32.lib opengl32.lib ltdl.lib hs_regex.lib zdll.lib cdt.lib graph.lib gvc.lib circogen.lib neatogen.lib fdpgen.lib patchwork.lib sparse.lib twopigen.lib vpsc.lib gts.lib osage.lib $(NOINHERIT)"
+                               AdditionalDependencies="libpng.lib gtk-win32-2.0.lib asprintf.lib atk-1.0.lib bz2.lib cairo.lib charset.lib croco-0.6.lib expat.lib expatw.lib glade-2.0.lib fontconfig.lib freetype.lib gdk_pixbuf-2.0.lib gdkglext-win32-1.0.lib gdk-win32-2.0.lib glib-2.0.lib pathplan.lib gmodule-2.0.lib gobject-2.0.lib gsf-1.lib gsf-win32-1.lib gthread-2.0.lib gtkglext-win32-1.0.lib iconv.lib intl.lib jpeg.lib libexpat.lib libexpatw.lib pango-1.0.lib pangocairo-1.0.lib pangoft2-1.0.lib pangowin32-1.0.lib popt.lib rsvg-2.lib tiff.lib xml2.lib libgdkglext-win32-1.0.dll.a libgtkglext-win32-1.0.dll.a glu32.lib opengl32.lib ltdl.lib hs_regex.lib zdll.lib cdt.lib graph.lib gvc.lib circogen.lib neatogen.lib fdpgen.lib patchwork.lib sparse.lib twopigen.lib vpsc.lib gts.lib osage.lib sfdp.lib $(NOINHERIT)"
                                OutputFile="c:/graphviz-ms/bin/$(ProjectName).dll"
                                LinkIncremental="2"
                                AdditionalLibraryDirectories="C:\gtk\lib;&quot;C:\graphviz-ms\bin&quot;"