[vtkusers] Viewing a chart

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Dec 11 10:12:02 EST 2009


On Friday 11 December 2009 07:37:24 David Doria wrote:
> On Fri, Dec 11, 2009 at 7:32 AM, Jérôme <jerome.velut at gmail.com> wrote:
> > Don't you have to Initialize() the renderwindow interactor before
> > Start()-ing it?
> >
> > Jerome
> 
> I tried that (see updated:
> http://www.vtk.org/Wiki/VTK_Examples_Chart_XY#Chart.cxx).
> It still segfaults.
> 
I fixed up your code - it works for me here without any leaks or segfaults. I 
removed a few bits that did not seem necessary in an example, such as the 
multisamples which is changed to improve uniformity in test images. It seems 
that your call to Render() was causing the segfault.

Please feel free to contact me about the code in the Charts directory. This 
code is experimental and some parts of the API will be changing. I think that 
it would be good to make some examples (I have stuff I will be adding to VTK 
examples in CVS), but please bear in mind that the API is subject to change 
right now.

I will make a post with some more details about the code in there. We will 
also be moving some classes into other parts of VTK.

Marcus
-- 
Marcus D. Hanwell, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4937



More information about the vtkusers mailing list