[Kst] Extending DataVector::DataInfo?
Nicolas Brisset
nicolas.brisset at free.fr
Tue May 21 21:47:42 UTC 2013
The question remains interesting from a technical perspective, but in that particular case I already had all I need with field scalars, since our netCDF source has one of the most advanced metadata implementations.
Nicolas
----- Mail original -----
> De: "Nicolas Brisset" <nicolas.brisset at free.fr>
> À: "kst" <kst at kde.org>
> Envoyé: Lundi 20 Mai 2013 23:03:35
> Objet: [Kst] Extending DataVector::DataInfo?
>
> Hi,
>
> Looking again at the patch proposed recently for netcdf vectors with
> "compression" where a scale and offset should be used, I realize
> that it needs to be rewritten so that we cache the required info
> instead of calling the datasource constantly to query the same
> information all the time.
> Instead of adding another QMap to hold that information, I thought
> that it may be more elegant to extend DataVector::DataInfo.
>
> struct KSTCORE_EXPORT DataInfo
> {
> DataInfo();
> DataInfo(int frameCount, int samplesPerFrame);
>
> int frameCount;
> int samplesPerFrame;
> };
>
> Peter/Barth: what do you suggest? I'd need to store a bool (use
> scaling yes/no) and two doubles (scale factor and offset) for each
> vector.
>
> Thanks,
>
> Nicolas
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
More information about the Kst
mailing list