custom_timeseries.cpp
Go to the documentation of this file.
00001 #include "custom_timeseries.h"
00002 
00003 
00004 CustomTimeseries::CustomTimeseries(const PlotData *source_data,
00005                                    const SnippetData &snippet,
00006                                    PlotDataMapRef &mapped_data):
00007     TimeseriesQwt( source_data, &_cached_data ),
00008     _transform(source_data->name(), snippet),
00009     _mapped_data(mapped_data)
00010 {
00011     updateCache();
00012 }
00013 
00014 bool CustomTimeseries::updateCache()
00015 {
00016     if(_source_data->size() == 0)
00017     {
00018         _cached_data.clear();
00019         _bounding_box = QRectF();
00020         return true;
00021     }
00022 
00023     _transform.calculate( _mapped_data, &_cached_data );
00024     calculateBoundingBox();
00025 
00026     return true;
00027 }


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:04