##// END OF EJS Templates
Handles rendering of plottables (1)...
Handles rendering of plottables (1) As for the axes properties, we create a helper used to set rendering properties of the plottables depending on the type of the data series used to create these plottables. Rendering properties will be, for example: - the color of each component for a scalar or a vector - the color scale management for a spectrogram

File last commit:

r694:c050c224f3de
r918:8264fa4b2aa2
Show More
ScalarSeries.h
27 lines | 853 B | text/x-c | CLexer
#ifndef SCIQLOP_SCALARSERIES_H
#define SCIQLOP_SCALARSERIES_H
#include "CoreGlobal.h"
#include <Data/DataSeries.h>
/**
* @brief The ScalarSeries class is the implementation for a data series representing a scalar.
*/
class SCIQLOP_CORE_EXPORT ScalarSeries : public DataSeries<1> {
public:
/**
* Ctor with two vectors. The vectors must have the same size, otherwise a ScalarSeries with no
* values will be created.
* @param xAxisData x-axis data
* @param valuesData values data
*/
explicit ScalarSeries(std::vector<double> xAxisData, std::vector<double> valuesData,
const Unit &xAxisUnit, const Unit &valuesUnit);
std::unique_ptr<IDataSeries> clone() const override;
std::shared_ptr<IDataSeries> subDataSeries(const SqpRange &range) override;
};
#endif // SCIQLOP_SCALARSERIES_H