Talk:Plotting Parallel Data (PGraph)
This is a good place to capture discussions about PGraph. When editing, please follow the standard convention of talk pages (http://en.wikipedia.org/wiki/Wikipedia:Talk_page). In particular, indent responses from what they are responding to with colons (:) and make sure you sign your entries with four tildes (~~~~)
Is Array Representation Sufficient?
The entire approach depends on representing plot data as 1D or 2D arrays? Will this always be the case? Are there use cases otherwise?
--Kmorel 19:54, 4 Jan 2006 (EST)
- Yes and no. The plotting components will probably always draw sampled data stored in 1D arrays, 2D arrays, or perhaps arrays of tuples. However, the plots may need extra information about the sampling, for example spaces between irregular samples. These can be captured by storing the arrays as point or cell arrays in various instances of vtkDataSet.
- See #Why image data? for more details.
- --Kmorel 13:38, 18 Jan 2006 (EST)
Non Qt plotting components?
Is it too restrictive to say that the plotting components will be in Qt? There may be some cases to use VTK to generate some of the plots.
For example, the easiest way to implement an X-Y-Z plot is with a 3D drawing package like OpenGL. And if we are using OpenGL anyway, why not let VTK do the work? This is how Prism does its X-Y-Z plots.
Also, it may be handy to have both Qt component plotting and VTK plotting for other types. That would make it possible to do plotting on a tiled display. I know, people say plotting on a tiled display is pointless, but what about putting up lots of plots for comparative vis? What about really detailed scatter plot for a large amount of data?
There may even be cause to have a "plotting component" that is neither Qt nor VTK/OpenGL. What about a component that outputs an image file such as an encapsulated postscript, pdf, or image? What about a component that outputs a data file to be imported in another package such as excel or grace?
Ultimately, I think there are two questions. First, should references to "Qt Plotting Components" be changed to the more generic "Plotting Components"? Second, should there be some consideration for plots that happen on the server side?
--Kmorel 19:54, 4 Jan 2006 (EST)
- I don't think we should use Qt for 3D drawing. We should definitely use VTK or something similar for the X-Y-Z Plots. If Qt has better font support, we could combine the two. I'm not sure how well that would work though.
- Mark Richardson 13:32, 9 Jan 2006 (EST)
- We should keep in mind that python users will probably want access to plotting as well. Although there are relatively decent 2D plotting packages for python, the 3D support is not as good. If we were to use VTK or some similar 3D plotting library accessible through python, it would make python users happy.
- Berk 14:25, 11 Jan 2006 (EST)
- I've removed any mention of Qt from the document. It now mearly says that a plotting component interfaces with the GUI. The actual implementation of the components are, for the most part, beyond the scope of this document.
- --Kmorel 17:18, 17 Jan 2006 (EST)
Curves vs. lines
Ken, when I talked to Dean Dobranich about temporal support, he was almost more interested in plotting than in temporal support. One particular request from him was the ability to examine values along a circular curve rather than along a line – when he looks at datasets with cylindrical features, he often finds himself interested in tangential as well as radial values. That is why I've altered the use case for the "line probe".
David Thompson 19:53, 6 Jan 2006 (EST)
- Good call. I've changed the name of the entry in the table to "Curve Probe" to be more specific.
- I'm hoping others will chime in on users requests. Are users interested in a similar extension of "Plane Probe" to work on other types of surfaces? Are there other ways to define curves in space? I've heard (second- or third-hand) about requests to define a curve along an existing surface. I could fill the table with all sorts of interesting ways to make plots, but that would be pointless if they are of no use to anyone.
- --Kmorel 12:24, 10 Jan 2006 (EST)
Why image data?
Can't there be cases where we want to visualize other types of (small) data on the client side? Maybe we should not restrict reduction and delivery from server to client to only image data?
Berk 09:21, 17 Jan 2006 (EST)
- After discussing this at our last ParaQ meeting, we determined that other subclasses of vtkDataSet can be used to store information about plot data. For examples, the spacing of an irregularly sampled function can be captured in the spacing of samples in a vtkRectilinearData. A curve or plane probe can represent the geometry of the probe with a vtkPolyData. The geometry of the poly data can then be used to determine spacing in the plot or help relate the plot back to the original geometry.
- I've made changes in the document to reflect that not all plot data will be vtkImageData.
- --Kmorel 13:43, 18 Jan 2006 (EST)
Plots on Parallel Displays
In the demo PostMortemOverview#Plotting, a user brought up plots on tile display. Putting the plot on the tile display should be pretty straightforward. Instead of (or in addition to) moving data to the client, we distribute data to all the render servers. Then we just draw the plot as we would in any other render module.
The caveat here is that in order to draw something on the tile display, it must draw the plot using OpenGL. However, most plots will be Qt components on the client. We would need two versions of most of the plot types. Thus, I am hesitant to add this functionality to the design document now, as I don't think we want to tackle that on the first attempt.
--Kmorel 08:47, 31 Jan 2006 (EST)
Implementation Order
Here is the order in which we will implement PGraph. Thanks to its distributed nature, we can do an incremental implementation.
- Implement Extraction algoritms in vtkAlgorithm objects. These algorithms already exist somewhere (they are, after all being done). At this point, we just need to wrap the algorithms in vtkAlgorithm. Existing Qt plotting components may need to be modified to accept the outputs of vtkAlgorithm.
- Implement the display and render manager proxy objects. This should not effect the overall operation, but will allow us to progress to the next step, which involve parallel code.
- Implement moving data from server to client.
- Implement Parallel Combination algorithms and integrate into display proxy objects.
--Kmorel 15:39, 14 Mar 2006 (EST)