16 Apr 20:09
Re: Help with understanding QwtRasterData needed
From: Matthias Pospiech <matthias.pospiech <at> gmx.de>
Subject: Re: Help with understanding QwtRasterData needed
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-16 18:09:01 GMT
Subject: Re: Help with understanding QwtRasterData needed
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-16 18:09:01 GMT
Uwe Rathmann schrieb: > On Wednesday 16 April 2008 18:09, Matthias Pospiech wrote: > > >> I now created my own SpectrogramData version. But in the end I found out >> that SpectrogramData fails to use my own values in the value function. >> > > Your implementation of copy returns an uninitialized data object - not a > clone. > > It is the copy from the example code. I have no idea how to change it to be correct. > I recommend to use one of the Qt containers (f.e QVector or QList ) instead of > the plain double arrays. These containers implicitely share your data, what > makes copying an unexpensive operation and the handling of the memory is much > easier. Especially if you don't feel comfortable with C/C++, you should use > them. > I have to deal with no-Qt libaries, especially math libaries which require double arrays. Using QVector arrays would definetly be nicer, but would mean that I have to copy the array multiple times between each libary. The way I implemented it is how it works across the whole Code so far and I understand that part. Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
RSS Feed