Dmitry Khaneft | 12 May 12:37
Picon

problem with QwtRasterData value(double x, double y)

Hallo. This is almost copy of class SpectromData by Matthias Pospiech. I tried to use it in the same
purposes. Below the code as I use it. Data in a array are transferred from QList from other class. This QList
contains only one element. In comments actually transferred values are shown.

A problem that I see distort picture on a plot. I think I made a mistake with filling of array or something
else. Where is my mistake?

**********************header**********************

class SpectrogramData: public QwtRasterData
{
private:
	double *m_Array;

	struct structMinMax{
		double min;
		double max;
	};
	structMinMax m_RangeX;
	structMinMax m_RangeY;
	structMinMax m_RangeZ;

	struct structXY{
		double x;
		double y;
	};
	structXY m_DataSize;
	structXY m_RealToArray;

public:
(Continue reading)

Uwe Rathmann | 12 May 20:20
Picon

Re: problem with QwtRasterData value(double x, double y)

On Monday 12 May 2008 12:39, Dmitry Khaneft wrote:

> A problem that I see distort picture on a plot. I think I made a mistake
> with filling of array or something else. Where is my mistake?

Your code shows how the raster data object is filled from some dataContainer 
we don't know ( and don't want to know). 

I suggest, that you take the spectrogram example and replace the 
SpectrogramData class by something, where we can see your data and how values 
and ranges are calculated.

Uwe

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane