Thread: [wxVTK] about wxVTK
Brought to you by:
malat
From: f18m_217828 <f18...@ya...> - 2005-04-18 10:08:51
|
Hi, I'm the admin of the MathStudio project (http://mathstudio.sourceforge.net) and I'd like to ask you a couple of things about your wxVTK project: 1) I'm a C++ wx-user since quite much time but I've never used VTK; so, before any other question, I need to know: VTK can be used to plot math data ? 2) If yes, wxVTK allows to use VTK in this sense ? Thanks, Francesco Montorsi |
From: Mathieu M. <mma...@ny...> - 2005-04-19 01:34:12
|
Hello Francesco, Welcome to the VTK world ! Once you discover you won't go back ever :). More seriously you cannot compare gnuplot to VTK, but VTK does a pretty good job at large dataset, and tons of 3d stuff. This is an abstract layer above OpenGL. It has wrapping for Tcl, Python, Java and even octave (matlab clone). The learning curve is reasonable not too steep but keep in mind that there is almost 1000 classes just in VTK itself (not counting users contrib, example, and project like paraview). As for 2. wxVTK is only a bridge between wxWidget and VTK. So you can use it in your wx project and it allow you access to the full power of VTK. But wxVTK is pretty generic there is nothing done in particular for math user like you. HTH Mathieu f18m_217828 wrote: > Hi, > I'm the admin of the MathStudio project > (http://mathstudio.sourceforge.net) and I'd like to ask you a couple of > things about your wxVTK project: > > 1) I'm a C++ wx-user since quite much time but I've never used VTK; so, > before any other question, I need to know: VTK can be used to plot math > data ? > > 2) If yes, wxVTK allows to use VTK in this sense ? > > Thanks, > Francesco Montorsi > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > |
From: f18m_217828 <f18...@ya...> - 2005-04-19 16:36:48
|
Hi, Mathieu Malaterre wrote: > More seriously you cannot compare gnuplot to VTK, but VTK does a pretty good job at large dataset, and tons of 3d stuff. This is an abstract layer above OpenGL. It has wrapping for Tcl, Python, Java and even octave (matlab clone). The learning curve is reasonable not too steep but keep in mind that there is almost 1000 classes just in VTK itself (not counting users contrib, example, and project like paraview). well, I would like to create a plotter with two main features (which are lacking from a lot of other packages out there): 1) user-interaction: I would like to be able to intercept user clicks on the plot and then perform some actions if the click was over the function plot, some others if user clicked over the axes and so on... I could not find a plot package with something like a HitTest function which tells me which part of the plot is tied to (x,y); can VTK do this ? 2) animated plots: I would like to be able to render flickering-free animating plots (imagine a parametric function plot where the user can see the different plots for different values of the parameter in real time...); I suppose VTK should have no excessive problems to do this.... is it ? My program could give to VTK a dataset which it then would plot; another question: can I draw axes and labels with VTK ? > As for 2. wxVTK is only a bridge between wxWidget and VTK. So you can use it in your wx project and it allow you access to the full power of VTK. But wxVTK is pretty generic there is nothing done in particular for math user like you. I'm asking you because I've been searching a good plot packages flexible enough to give me those two features I told you before; I've found a LOT of plotting packages but when you select those which are: 1) open source (gnuplot, for example, is not GPL) 2) written in c++ 3) cross-platform you'll find that the list is not so long ;-) I thought that with some additional work in my program (basically to do the dataset creation) I could solve my problems with wxVTK... Thanks a lot, Francesco > f18m_217828 wrote: > >> Hi, >> I'm the admin of the MathStudio project (http://mathstudio.sourceforge.net) and I'd like to ask you a couple of things about your wxVTK project: >> >> 1) I'm a C++ wx-user since quite much time but I've never used VTK; so, before any other question, I need to know: VTK can be used to plot math data ? >> >> 2) If yes, wxVTK allows to use VTK in this sense ? >> >> Thanks, >> Francesco Montorsi >> >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Wxvtk-users mailing list >> Wxv...@li... >> https://lists.sourceforge.net/lists/listinfo/wxvtk-users >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free runtime info, > new features, or free trial, at: http://www.businessobjects.com/devxi/728 > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > |
From: Mathieu M. <mma...@ny...> - 2005-04-20 03:11:08
|
Francesco, I'll try my best to answer this, but this looks like a question more appropriate to the vtkusers mailing list (remember wxVTK does not bring anything). > well, I would like to create a plotter with two main features (which are > lacking from a lot of other packages out there): > > 1) user-interaction: I would like to be able to intercept user clicks on > the plot and then perform some actions if the click was over the > function plot, some others if user clicked over the axes and so on... I > could not find a plot package with something like a HitTest function > which tells me which part of the plot is tied to (x,y); can VTK do this ? > 2) animated plots: I would like to be able to render flickering-free > animating plots (imagine a parametric function plot where the user can > see the different plots for different values of the parameter in real > time...); I suppose VTK should have no excessive problems to do this.... > is it ? VTK definitely support user click/interaction. You should maybe download paraview just for a try. Then start paraview open a dataset that comes with it, do a 'probe', select line from the left panel. You'll get an histogram you can export as CSV file. You can move it around with 2D mouse, and if you move the probe line you'll see that the histogram reflect the dataset being probe. (a nice example to probe could be vox8_bin.vtk). > My program could give to VTK a dataset which it then would plot; another > question: can I draw axes and labels with VTK ? Yes and yes, you can select fonts for the labels... Have a look at the doxygen here: http://www.vtk.org/doc/nightly/html/classvtkXYPlotActor.html > I'm asking you because I've been searching a good plot packages flexible > enough to give me those two features I told you before; I've found a LOT > of plotting packages but when you select those which are: > > 1) open source (gnuplot, for example, is not GPL) Be carefull here, VTK is BSD like ! > 2) written in c++ ok > 3) cross-platform VTK compiles on almost any plateform / compilers out there !! > you'll find that the list is not so long ;-) > I thought that with some additional work in my program (basically to do > the dataset creation) I could solve my problems with wxVTK... Again Francesco I have to warn you, VTK is really build on top of OpenGL. So using VTK for simple 2D plot seems to me quite akward. Even if I haven't search for package as you seems to have been doing, I would have another look before staring learning VTK if you plan to only use this very subset of VTK. Mathieu Did you search for project on freshmeat.net, sf.net, gnu.org. I would also check with the gnumeric people what they use internally for displaying charts. My 2 cents, Mathieu |
From: f18m_217828 <f18...@ya...> - 2005-04-21 13:48:10
|
Hi, > I'll try my best to answer this, but this looks like a question more > appropriate to the vtkusers mailing list (remember wxVTK does not bring > anything). thanks again for your help :-) > VTK definitely support user click/interaction. good; I'll download paraview & give a look to it... >> My program could give to VTK a dataset which it then would plot; >> another question: can I draw axes and labels with VTK ? > Yes and yes, you can select fonts for the labels... Have a look at the > doxygen here: > > http://www.vtk.org/doc/nightly/html/classvtkXYPlotActor.html thanks! >> 1) open source (gnuplot, for example, is not GPL) > Be carefull here, VTK is BSD like ! > Again Francesco I have to warn you, VTK is really build on top of > OpenGL. So using VTK for simple 2D plot seems to me quite akward. Even > if I haven't search for package as you seems to have been doing, I would > have another look before staring learning VTK if you plan to only use > this very subset of VTK. I forgot to put in my required-feature for a plotter the ability to plot 2D but also 3D plots; I'll give another look around but the only open source alternative seems to be gnuplot which I don't like very much... since I require 3D plots, OpenGL is good for me ;-) > Did you search for project on freshmeat.net, sf.net, gnu.org. I would > also check with the gnumeric people what they use internally for > displaying charts. I'll make another deep research but I think that plotting with VTK will be a good occasion to learn to use it... ;-) Thanks, Francesco Montorsi |