winapi - 2D graph drawing in windows with unmanaged code callable from excel -
i want able input list of nodes excel spreadsheet , pop zoomable window graph of nodes. requirements are: graph quite large (typically 40+ nodes, 200+ edges). project distributed minimum of dependencies. project run in minimum privilege environment. zooming , scaling of rendered graph "smooth". targeting win7 / vista sp2.
i know how build layout of graph unsure of best way render it. need render comes down list of cubic splines , rectangles.
i leaning away using excel shapes or drawings using vb6/userform performance reasons.
my current plan build render code dll (coded in c or c++) shipped spreadsheet , lives in same folder, calling dll , marshalling data no problem.
the bit unsure of best technology use in dll render graph. options see them are: 1. gdi 2. gdi+ 3. direct2d 4. direct3d
my understanding in latest version of windows gdi , gdi plus un-accelerated , relativity slow. direct2d appears needlessly complicated. direct3d appears in principal easier direct2d, has poor text/font handling in latest version.
which option 1 4 people recommend best fit requirements, there other options missing. given size of graphs , zooming requirement how weight reasonable put behind performance , how big factor should be?
Comments
Post a Comment