##// END OF EJS Templates
Separate the initialization of the properties of the graph of the update of the units of the graph....
Separate the initialization of the properties of the graph of the update of the units of the graph. The initialization of the properties is carried out when adding a variable in the graph, the update of the units is carried out when loading the data of this variable

File last commit:

r987:2928e8449245
r1254:41b7c6aab8be
Show More
SpectrogramSeries.h
40 lines | 1.5 KiB | text/x-c | CLexer
#ifndef SCIQLOP_SPECTROGRAMSERIES_H
#define SCIQLOP_SPECTROGRAMSERIES_H
#include "CoreGlobal.h"
#include <Data/DataSeries.h>
/**
* @brief The SpectrogramSeries class is the implementation for a data series representing a
* spectrogram.
*
* It defines values on a x-axis and a y-axis.
*/
class SCIQLOP_CORE_EXPORT SpectrogramSeries : public DataSeries<2> {
public:
/// Ctor
explicit SpectrogramSeries(std::vector<double> xAxisData, std::vector<double> yAxisData,
std::vector<double> valuesData, const Unit &xAxisUnit,
const Unit &yAxisUnit, const Unit &valuesUnit,
double xResolution = std::numeric_limits<double>::quiet_NaN());
/// Ctor directly with the y-axis
explicit SpectrogramSeries(std::shared_ptr<ArrayData<1> > xAxisData, const Unit &xAxisUnit,
std::shared_ptr<ArrayData<2> > valuesData, const Unit &valuesUnit,
OptionalAxis yAxis,
double xResolution = std::numeric_limits<double>::quiet_NaN());
/// @sa DataSeries::clone()
std::unique_ptr<IDataSeries> clone() const override;
/// @sa DataSeries::subDataSeries()
std::shared_ptr<IDataSeries> subDataSeries(const SqpRange &range) override;
inline double xResolution() const noexcept { return m_XResolution; }
private:
double m_XResolution; ///< Resolution used on x-axis to build the spectrogram
};
#endif // SCIQLOP_SPECTROGRAMSERIES_H