##// END OF EJS Templates
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
Renamed SqpRange to DateTimeRange, introduced VariableController2 to replace current implementation Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1346:d8cb4bff8c14
r1346:d8cb4bff8c14
Show More
Variable.h
95 lines | 3.3 KiB | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r112 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Alexandre Leroux
Exports core module as a shared library...
r461 #include "CoreGlobal.h"
Alexandre Leroux
Fixed untimely update of the range to be displayed in the variable widget
r654 #include <Data/DataSeriesIterator.h>
Alexandre Leroux
Reads variable's metadata to retrieve the type of data series (scalar, vector, spectrogram)
r1279 #include <Data/DataSeriesType.h>
Change SqpRange for SqpDateTime
r512 #include <Data/SqpRange.h>
Variable slot is called when x range of its graph changed
r226
#include <QLoggingCategory>
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170 #include <QObject>
Alexandre Leroux
Centralization of qregistermetatype management
r308 #include <Common/MetaTypes.h>
Variable slot is called when x range of its graph changed
r226 #include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_Variable)
Alexandre Leroux
Adds data series to a variable
r164 class IDataSeries;
Alexandre Leroux
Changes Variable from struct to class
r163 class QString;
Alexandre Leroux
Creates the variable model...
r112
/**
Alexandre Leroux
Changes Variable from struct to class
r163 * @brief The Variable class represents a variable in SciQlop.
Alexandre Leroux
Creates the variable model...
r112 */
Alexandre Leroux
Exports core module as a shared library...
r461 class SCIQLOP_CORE_EXPORT Variable : public QObject {
The mock plugin can now create data with view operation
r235
Q_OBJECT
Alexandre Leroux
Changes Variable from struct to class
r163 public:
Fix bug when creating two variables crash the app. ...
r756 explicit Variable(const QString &name, const QVariantHash &metadata = {});
Alexandre Leroux
Changes Variable from struct to class
r163
Alexandre Leroux
Clones variable
r707 /// Copy ctor
explicit Variable(const Variable &other);
std::shared_ptr<Variable> clone() const;
Alexandre Leroux
Changes Variable from struct to class
r163 QString name() const noexcept;
Alexandre Leroux
Sets variable name
r686 void setName(const QString &name) noexcept;
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 DateTimeRange range() const noexcept;
void setRange(const DateTimeRange &range) noexcept;
DateTimeRange cacheRange() const noexcept;
void setCacheRange(const DateTimeRange &cacheRange) noexcept;
Alexandre Leroux
Adds data series to a variable
r164
Alexandre Leroux
Creates attribute to get nb points of a variable
r716 /// @return the number of points hold by the variable. The number of points is updated each time
/// the data series changes
int nbPoints() const noexcept;
Alexandre Leroux
Fixed untimely update of the range to be displayed in the variable widget
r654 /// Returns the real range of the variable, i.e. the min and max x-axis values of the data
/// series between the range of the variable. The real range is updated each time the variable
/// range or the data series changed
/// @return the real range, invalid range if the data series is null or empty
/// @sa setDataSeries()
/// @sa setRange()
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 DateTimeRange realRange() const noexcept;
Alexandre Leroux
Fixed untimely update of the range to be displayed in the variable widget
r654
Alexandre Leroux
Handles creations for scalar series
r182 /// @return the data of the variable, nullptr if there is no data
Add dataseries getter with new signature
r543 std::shared_ptr<IDataSeries> dataSeries() const noexcept;
Alexandre Leroux
Handles creations for scalar series
r182
Alexandre Leroux
Reads variable's metadata to retrieve the type of data series (scalar, vector, spectrogram)
r1279 /// @return the type of data that the variable holds
DataSeriesType type() const noexcept;
Alexandre Leroux
Adds QVariantHash to store metadata in a variable
r406 QVariantHash metadata() const noexcept;
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 bool contains(const DateTimeRange &range) const noexcept;
bool intersect(const DateTimeRange &range) const noexcept;
bool isInside(const DateTimeRange &range) const noexcept;
add CacheRange for Variable and the provideNotInCacheRangeList method
r532
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 bool cacheContains(const DateTimeRange &range) const noexcept;
bool cacheIntersect(const DateTimeRange &range) const noexcept;
bool cacheIsInside(const DateTimeRange &range) const noexcept;
add CacheRange for Variable and the provideNotInCacheRangeList method
r532
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 QVector<DateTimeRange> provideNotInCacheRangeList(const DateTimeRange &range) const noexcept;
QVector<DateTimeRange> provideInCacheRangeList(const DateTimeRange &range) const noexcept;
Update Variable impl for v5
r538 void mergeDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept;
The mock plugin can now create data with view operation
r235
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 static QVector<DateTimeRange> provideNotInCacheRangeList(const DateTimeRange &oldRange,
const DateTimeRange &nextRange);
Add satic method to compute vector of in or not in ranges between...
r816
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 static QVector<DateTimeRange> provideInCacheRangeList(const DateTimeRange &oldRange,
const DateTimeRange &nextRange);
Add satic method to compute vector of in or not in ranges between...
r816
The mock plugin can now create data with view operation
r235 signals:
Fix the cosinus bug....
r298 void updated();
Alexandre Leroux
Calls the update of the graph's units and range data of a variable have been loaded...
r1284 /// Signal emitted when when the data series of the variable is loaded for the first time
void dataInitialized();
The mock plugin can now create data with view operation
r235
Alexandre Leroux
Changes Variable from struct to class
r163 private:
class VariablePrivate;
spimpl::unique_impl_ptr<VariablePrivate> impl;
Alexandre Leroux
Creates the variable model...
r112 };
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170 // Required for using shared_ptr in signals/slots
Alexandre Leroux
Centralization of qregistermetatype management
r308 SCIQLOP_REGISTER_META_TYPE(VARIABLE_PTR_REGISTRY, std::shared_ptr<Variable>)
Update Variable impl for v5
r538 SCIQLOP_REGISTER_META_TYPE(VARIABLE_PTR_VECTOR_REGISTRY, QVector<std::shared_ptr<Variable> >)
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170
Alexandre Leroux
Creates the variable model...
r112 #endif // SCIQLOP_VARIABLE_H