##// END OF EJS Templates
Sets variable name
Sets variable name

File last commit:

r638:0d7fa2ed1e86
r638:0d7fa2ed1e86
Show More
Variable.h
75 lines | 2.4 KiB | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r107 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Alexandre Leroux
Exports core module as a shared library...
r425 #include "CoreGlobal.h"
Alexandre Leroux
Fixed untimely update of the range to be displayed in the variable widget
r611 #include <Data/DataSeriesIterator.h>
Change SqpRange for SqpDateTime
r471 #include <Data/SqpRange.h>
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>
Alexandre Leroux
Centralization of qregistermetatype management
r285 #include <Common/MetaTypes.h>
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 */
Alexandre Leroux
Exports core module as a shared library...
r425 class SCIQLOP_CORE_EXPORT Variable : public QObject {
The mock plugin can now create data with view operation
r219
Q_OBJECT
Alexandre Leroux
Changes Variable from struct to class
r151 public:
Change SqpRange for SqpDateTime
r471 explicit Variable(const QString &name, const SqpRange &dateTime,
Alexandre Leroux
Adds QVariantHash to store metadata in a variable
r373 const QVariantHash &metadata = {});
Alexandre Leroux
Changes Variable from struct to class
r151
QString name() const noexcept;
Alexandre Leroux
Sets variable name
r638 void setName(const QString &name) noexcept;
add CacheRange for Variable and the provideNotInCacheRangeList method
r503 SqpRange range() const noexcept;
void setRange(const SqpRange &range) noexcept;
SqpRange cacheRange() const noexcept;
void setCacheRange(const SqpRange &cacheRange) noexcept;
Alexandre Leroux
Adds data series to a variable
r152
Alexandre Leroux
Fixed untimely update of the range to be displayed in the variable widget
r611 /// 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()
SqpRange realRange() const noexcept;
Alexandre Leroux
Handles creations for scalar series
r169 /// @return the data of the variable, nullptr if there is no data
Add dataseries getter with new signature
r514 std::shared_ptr<IDataSeries> dataSeries() const noexcept;
Alexandre Leroux
Handles creations for scalar series
r169
Alexandre Leroux
Adds QVariantHash to store metadata in a variable
r373 QVariantHash metadata() const noexcept;
add CacheRange for Variable and the provideNotInCacheRangeList method
r503 bool contains(const SqpRange &range) const noexcept;
bool intersect(const SqpRange &range) const noexcept;
bool isInside(const SqpRange &range) const noexcept;
bool cacheContains(const SqpRange &range) const noexcept;
bool cacheIntersect(const SqpRange &range) const noexcept;
bool cacheIsInside(const SqpRange &range) const noexcept;
Add thread protection on variable
r512 QVector<SqpRange> provideNotInCacheRangeList(const SqpRange &range) const noexcept;
Add method to get range in cacheRange
r537 QVector<SqpRange> provideInCacheRangeList(const SqpRange &range) const noexcept;
Update Variable impl for v5
r509 void mergeDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept;
The mock plugin can now create data with view operation
r219
signals:
Fix the cosinus bug....
r276 void updated();
The mock plugin can now create data with view operation
r219
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
Alexandre Leroux
Centralization of qregistermetatype management
r285 SCIQLOP_REGISTER_META_TYPE(VARIABLE_PTR_REGISTRY, std::shared_ptr<Variable>)
Update Variable impl for v5
r509 SCIQLOP_REGISTER_META_TYPE(VARIABLE_PTR_VECTOR_REGISTRY, QVector<std::shared_ptr<Variable> >)
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r158
Alexandre Leroux
Creates the variable model...
r107 #endif // SCIQLOP_VARIABLE_H