##// END OF EJS Templates
Temporal parameters of the selected variables can be updated using the...
Temporal parameters of the selected variables can be updated using the time widget.

File last commit:

r298:3a08c66e4df2
r304:08349e12a7ef
Show More
Variable.cpp
87 lines | 2.0 KiB | text/x-c | CppLexer
Alexandre Leroux
Changes Variable from struct to class
r163 #include "Variable/Variable.h"
Alexandre Leroux
Adds data series to a variable
r164 #include <Data/IDataSeries.h>
Variable slot is called when x range of its graph changed
r226 #include <Data/SqpDateTime.h>
Q_LOGGING_CATEGORY(LOG_Variable, "Variable")
Alexandre Leroux
Adds data series to a variable
r164
Alexandre Leroux
Changes Variable from struct to class
r163 struct Variable::VariablePrivate {
A variable is now created with its dateTime too....
r228 explicit VariablePrivate(const QString &name, const QString &unit, const QString &mission,
const SqpDateTime &dateTime)
: m_Name{name},
m_Unit{unit},
m_Mission{mission},
m_DateTime{dateTime},
m_DataSeries{nullptr}
Alexandre Leroux
Changes Variable from struct to class
r163 {
}
QString m_Name;
QString m_Unit;
QString m_Mission;
Variable slot is called when x range of its graph changed
r226
SqpDateTime m_DateTime; // The dateTime available in the view and loaded. not the cache.
Alexandre Leroux
Adds data series to a variable
r164 std::unique_ptr<IDataSeries> m_DataSeries;
Alexandre Leroux
Changes Variable from struct to class
r163 };
A variable is now created with its dateTime too....
r228 Variable::Variable(const QString &name, const QString &unit, const QString &mission,
const SqpDateTime &dateTime)
: impl{spimpl::make_unique_impl<VariablePrivate>(name, unit, mission, dateTime)}
Alexandre Leroux
Changes Variable from struct to class
r163 {
}
QString Variable::name() const noexcept
{
return impl->m_Name;
}
QString Variable::mission() const noexcept
{
return impl->m_Mission;
}
QString Variable::unit() const noexcept
{
return impl->m_Unit;
}
Alexandre Leroux
Adds data series to a variable
r164
The mock plugin can now create data with view operation
r235 SqpDateTime Variable::dateTime() const noexcept
{
return impl->m_DateTime;
}
Implementation of the new Dela T computation strategy
r260 void Variable::setDateTime(const SqpDateTime &dateTime) noexcept
{
impl->m_DateTime = dateTime;
}
The mock plugin can now create data with view operation
r235 void Variable::setDataSeries(std::unique_ptr<IDataSeries> dataSeries) noexcept
Alexandre Leroux
Adds data series to a variable
r164 {
if (!impl->m_DataSeries) {
impl->m_DataSeries = std::move(dataSeries);
}
The mock plugin can now create data with view operation
r235 }
void Variable::onAddDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept
{
if (impl->m_DataSeries) {
impl->m_DataSeries->merge(dataSeries.get());
Fix the cosinus bug....
r298 emit updated();
The mock plugin can now create data with view operation
r235 }
Alexandre Leroux
Adds data series to a variable
r164 }
Alexandre Leroux
Handles creations for scalar series
r182
IDataSeries *Variable::dataSeries() const noexcept
{
return impl->m_DataSeries.get();
}
Variable slot is called when x range of its graph changed
r226
Correction for pull request
r243 bool Variable::contains(const SqpDateTime &dateTime)
Variable slot is called when x range of its graph changed
r226 {
Implementation of the new Dela T computation strategy
r260 return impl->m_DateTime.contains(dateTime);
Variable slot is called when x range of its graph changed
r226 }
Add intersect méthode on variable and sqpDateTime...
r258
bool Variable::intersect(const SqpDateTime &dateTime)
{
return impl->m_DateTime.intersect(dateTime);
}