
Originally Posted by
jwxiang
should be: line[0] = vertex[2].toPoint();
Indeed, fixed in SVN: trunk and the 6.0 and 5.2 branches.
if ( ignoreOutOfRange )
{
if ( !range.contains( zMin ) || !range.contains( zMax ) )
continue;
}
this is not correct.
AFAIR IgnoreOutOfRange is a flag to filter out invalid values of raster data with gaps, that are indicated by some special value outside the valid range. Of course this is somehow mysterious and I couldn't hardly remember the use case myself ( I will add note to the docs ). So the code above is correct - even if being the reason for the missing lines in the example.
I modified the default setting of IgnoreOutOfRange ( to off ) in SVN trunk. For earlier versions I recommend to disable this flag in application code:
spectrogram
->setConrecFlag
( QwtRasterData::IgnoreOutOfRange,
false );
spectrogram->setConrecFlag( QwtRasterData::IgnoreOutOfRange, false );
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks