[vtk-developers] Charts in VTK and ParaView

Eric E. Monson emonson at cs.duke.edu
Tue Mar 23 10:34:57 EDT 2010


Hey Pat,

Sounds good! I'll have time in a day or two to start using it, and I'll let you know if I run across anything out of the ordinary.

Thanks for letting me know.
-Eric


On Mar 23, 2010, at 10:25 AM, pat marion wrote:

> Hi Eric,
> 
> I just pushed some fixes to the paraview proxy classes that manage the charts.  If you have some time this week could you try banging on the charts in paraview to make sure they work for what you're trying to do.  I'm mostly interested in knowing about any functionality/behavior changes from the previous charts.
> 
> Some of the fixes include- visibility icon in pipeline browser works, state is remembered, adding sources to the chart doesn't clear what was already in the chart.
> 
> Pat
> 
> On Thu, Mar 11, 2010 at 11:50 AM, Marcus D. Hanwell <marcus.hanwell at kitware.com> wrote:
> On Tuesday 09 March 2010 14:46:19 Eric E. Monson wrote:
> > Hey Marcus,
> >
> > I'll attach my little python script that I've been using to try out the
> > Charts stuff, but I'm not sure that it will be helpful to you because,
> > even though I wrote it by translating TestLinePlot into Python, it uses an
> > interator and a render window and isn't written as a python "test" (which
> > I don't really know how to do...).
> 
> I would be happy to work on converting it. It will be my first Python test, but
> I think it would be good to ensure the Python bindings the the new charts is
> working everywhere. I will see about getting something added soon.
> >
> > I'll bring up two issues I've run into, and then I promise I'll break it
> > off into another thread in the future. :)
> 
> The feedback is great, sorry about the delay in getting back to you.
> >
> > 1. (I noticed this in ParaView, too.) On my machine CIRCLE marker style is
> > drawn as a solid square rather than a circle. It looks like since you're
> > using painter->DrawPoints(f,n) for drawing circles in vtkPlotLine, you
> > must be relying on OpenGL vertices being circles? On my graphics card they
> > get rendered as squares... Do you think it would be too confusing to call
> > this one something else (like point or vertex) and make the circle marker
> > paint option call DrawEllipse()?
> 
> I was thinking of doing this. I just got a Windows test system set up, with a
> much less fancy graphics card in it and am seeing the same issue. I could may
> be go with points and then draw ellipses (would be the slowest of the shapes).
> I may also looking into rendering the shape once, and then drawing point
> sprites or textured quads. That would be much more efficient than the current
> approach.
> >
> > 2. It would be kind of nice to be able to control the width of the pen used
> > to draw the markers, as well as the marker size (and it doesn't look like
> > this would be too hard to expose).
> 
> No, I would just need to add an extra field in the dialog. I will see about
> getting this in, but I am currently working through a list of bugs that must
> be fixed before we make the next release... You are right that the API is
> already there.
> >
> > 3. (Sorry if this is ignorant since I've only looked at the code for a
> > little while now) Are you sort of straddling two charting models right
> > now? When I look at something like vtkPlotLine, it looks like a
> > traditional "plot one hard coded shape for each point" model. When I look
> > at vtkMark and vtkDataElement (as used in TestMarks.cxx) it looks like
> > more of a Protovis type model (which I've only glanced at and not really
> > used)... So, I guess I'm just curious whether you're still playing with
> > which type of model to support, or might they both exist in the new API as
> > it solidifies? (Or, maybe these things aren't as much two separate ways of
> > working as I'm imagining.)
> 
> You are very astute. I see the charts as becoming a simpler, but probably less
> configurable, API on top of the marks. The mark API is still quite new, and
> will likely not make it into the next VTK release. I do hope to have the
> charts using the marks API to take care of the rendering, but I think that
> both APIs have a place in VTK.
> 
> I would certainly welcome your thoughts if you have a chance to take a look at
> it. We are working on the marks API with the Protoviz developers and Sandia
> (TITAN), and that API is still in flux, we need to ensure things still scale
> and balance the use of things like lambda functions with existing VTK
> conventions.
> 
> Thanks,
> 
> Marcus
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100323/dd4efaa7/attachment.html>


More information about the vtk-developers mailing list