##// END OF EJS Templates
The mock plugin can now create data with view operation
The mock plugin can now create data with view operation

File last commit:

r219:746eaca503e3
r219:746eaca503e3
Show More
Variable.h
54 lines | 1.2 KiB | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r107 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Variable slot is called when x range of its graph changed
r210 #include <Data/SqpDateTime.h>
Alexandre Leroux
Changes Variable from struct to class
r151
Variable slot is called when x range of its graph changed
r210 #include <QLoggingCategory>
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r158 #include <QObject>
Variable slot is called when x range of its graph changed
r210 #include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_Variable)
Alexandre Leroux
Adds data series to a variable
r152 class IDataSeries;
Alexandre Leroux
Changes Variable from struct to class
r151 class QString;
Alexandre Leroux
Creates the variable model...
r107
/**
Alexandre Leroux
Changes Variable from struct to class
r151 * @brief The Variable class represents a variable in SciQlop.
Alexandre Leroux
Creates the variable model...
r107 */
The mock plugin can now create data with view operation
r219 class Variable : public QObject {
Q_OBJECT
Alexandre Leroux
Changes Variable from struct to class
r151 public:
A variable is now created with its dateTime too....
r212 explicit Variable(const QString &name, const QString &unit, const QString &mission,
const SqpDateTime &dateTime);
Alexandre Leroux
Changes Variable from struct to class
r151
QString name() const noexcept;
QString mission() const noexcept;
QString unit() const noexcept;
The mock plugin can now create data with view operation
r219 SqpDateTime dateTime() const noexcept;
Alexandre Leroux
Adds data series to a variable
r152
Alexandre Leroux
Handles creations for scalar series
r169 /// @return the data of the variable, nullptr if there is no data
IDataSeries *dataSeries() const noexcept;
The mock plugin can now create data with view operation
r219 bool contains(SqpDateTime dateTime);
void setDataSeries(std::unique_ptr<IDataSeries> dataSeries) noexcept;
Variable slot is called when x range of its graph changed
r210 public slots:
The mock plugin can now create data with view operation
r219 void onAddDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept;
signals:
void dataCacheUpdated();
Variable slot is called when x range of its graph changed
r210
Alexandre Leroux
Changes Variable from struct to class
r151 private:
class VariablePrivate;
spimpl::unique_impl_ptr<VariablePrivate> impl;
Alexandre Leroux
Creates the variable model...
r107 };
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r158 // Required for using shared_ptr in signals/slots
Q_DECLARE_METATYPE(std::shared_ptr<Variable>)
Alexandre Leroux
Creates the variable model...
r107 #endif // SCIQLOP_VARIABLE_H