[vtkusers] Viewing a chart

David Doria daviddoria+vtk at gmail.com
Fri Dec 11 11:57:21 EST 2009


On Fri, Dec 11, 2009 at 10:12 AM, Marcus D. Hanwell
<marcus.hanwell at kitware.com> wrote:
> 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

Thanks, it works great now. This chart functionality is an excellent
addition. I know many people who have been looking for a good "matlab
style plot" replacement for c++ for a long time, so hopefully this
will fill that gap nicely.

Thanks,

David



More information about the vtkusers mailing list