##// END OF EJS Templates
Add sleep to permits AMDA to wait 1 sec between each request
Add sleep to permits AMDA to wait 1 sec between each request

File last commit:

r553:53bba55aedf8
r587:40f1a68a746c
Show More
VariableController.h
121 lines | 4.2 KiB | text/x-c | CLexer
/ core / include / Variable / VariableController.h
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 #ifndef SCIQLOP_VARIABLECONTROLLER_H
#define SCIQLOP_VARIABLECONTROLLER_H
Alexandre Leroux
Exports core module as a shared library...
r425 #include "CoreGlobal.h"
Implementation of V5 acquisition
r510 #include <Data/AcquisitionDataPacket.h>
Change SqpRange for SqpDateTime
r471 #include <Data/SqpRange.h>
The mock plugin can now create data with view operation
r219
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 #include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 class IDataProvider;
Temporal parameters of the selected variables can be updated using the...
r281 class QItemSelectionModel;
Time widget is now used with the variable createion request
r179 class TimeController;
Alexandre Leroux
Adds Variable model in the Variable controller
r108 class Variable;
Alexandre Leroux
Affects model to the Variable Widget
r143 class VariableModel;
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 Q_DECLARE_LOGGING_CATEGORY(LOG_VariableController)
Implementation of V5 acquisition
r510
/**
* Possible types of zoom operation
*/
enum class AcquisitionZoomType { ZoomOut, ZoomIn, PanRight, PanLeft, Unknown };
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 /**
* @brief The VariableController class aims to handle the variables in SciQlop.
*/
Alexandre Leroux
Exports core module as a shared library...
r425 class SCIQLOP_CORE_EXPORT VariableController : public QObject {
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 Q_OBJECT
public:
explicit VariableController(QObject *parent = 0);
virtual ~VariableController();
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 VariableModel *variableModel() noexcept;
Temporal parameters of the selected variables can be updated using the...
r281 QItemSelectionModel *variableSelectionModel() noexcept;
Alexandre Leroux
Updates VariableController::createVariable() method...
r154
Time widget is now used with the variable createion request
r179 void setTimeController(TimeController *timeController) noexcept;
Alexandre Leroux
Variable deletion (1)...
r303 /**
* Deletes from the controller the variable passed in parameter.
*
Alexandre Leroux
Variable deletion (2)...
r304 * Delete a variable includes:
Alexandre Leroux
Variable deletion (7)...
r310 * - the deletion of the various references to the variable in SciQlop
Alexandre Leroux
Variable deletion (3)...
r306 * - the deletion of the model variable
Alexandre Leroux
Variable deletion (2)...
r304 * - the deletion of the provider associated with the variable
Alexandre Leroux
Variable deletion (2)...
r305 * - removing the cache associated with the variable
Alexandre Leroux
Variable deletion (1)...
r303 *
* @param variable the variable to delete from the controller.
*/
void deleteVariable(std::shared_ptr<Variable> variable) noexcept;
/**
* Deletes from the controller the variables passed in parameter.
* @param variables the variables to delete from the controller.
* @sa deleteVariable()
*/
void deleteVariables(const QVector<std::shared_ptr<Variable> > &variables) noexcept;
The mock plugin can now create data with view operation
r219
Implement of the abort download process
r388 /**
* @brief abort the variable retrieve data progression
*/
void abortProgress(std::shared_ptr<Variable> variable);
Implementation of V5 acquisition
r510 static AcquisitionZoomType getZoomType(const SqpRange &range, const SqpRange &oldRange);
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 signals:
Alexandre Leroux
Variable deletion (7)...
r310 /// Signal emitted when a variable is about to be deleted from the controller
void variableAboutToBeDeleted(std::shared_ptr<Variable> variable);
Alexandre Leroux
Updates VariableController::createVariable() method...
r154
Add connection logical for the rescale operation
r403 /// Signal emitted when a data acquisition is requested on a range for a variable
Change SqpRange for SqpDateTime
r471 void rangeChanged(std::shared_ptr<Variable> variable, const SqpRange &range);
Add connection logical for the rescale operation
r403
add Skeleton for displaying data which are already in cache
r538 /// Signal emitted when a sub range of the cacheRange of the variable can be displayed
void updateVarDisplaying(std::shared_ptr<Variable> variable, const SqpRange &range);
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 public slots:
Implementation of V5 acquisition
r510 /// Request the data loading of the variable whithin range
void onRequestDataLoading(QVector<std::shared_ptr<Variable> > variables, const SqpRange &range,
const SqpRange &oldRange, bool synchronise);
Alexandre Leroux
Adds Variable model in the Variable controller
r108 /**
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 * Creates a new variable and adds it to the model
Alexandre Leroux
Adds Variable model in the Variable controller
r108 * @param name the name of the new variable
Alexandre Leroux
Updates variable creation to pass metadata...
r377 * @param metadata the metadata of the new variable
Alexandre Leroux
Updates VariableController::createVariable() method...
r154 * @param provider the data provider for the new variable
Add test acquisition.
r553 * @return the pointer to the new variable or nullptr if the creation failed
Alexandre Leroux
Adds Variable model in the Variable controller
r108 */
Add test acquisition.
r553 std::shared_ptr<Variable> createVariable(const QString &name, const QVariantHash &metadata,
std::shared_ptr<IDataProvider> provider) noexcept;
Alexandre Leroux
Adds Variable model in the Variable controller
r108
Temporal parameters of the selected variables can be updated using the...
r281 /// Update the temporal parameters of every selected variable to dateTime
Change SqpRange for SqpDateTime
r471 void onDateTimeOnSelection(const SqpRange &dateTime);
Temporal parameters of the selected variables can be updated using the...
r281
Add implementation of progress bar on variable inspector connected to...
r369
Implementation of V5 acquisition
r510 void onDataProvided(QUuid vIdentifier, const SqpRange &rangeRequested,
const SqpRange &cacheRangeRequested,
QVector<AcquisitionDataPacket> dataAcquired);
Add implementation of progress bar on variable inspector connected to...
r369 void onVariableRetrieveDataInProgress(QUuid identifier, double progress);
Implementation of V5 acquisition
r510 /// Cancel the current request for the variable
Implement of the abort download process
r388 void onAbortProgressRequested(std::shared_ptr<Variable> variable);
Implementation of V5 acquisition
r510 /// synchronization group methods
void onAddSynchronizationGroupId(QUuid synchronizationGroupId);
void onRemoveSynchronizationGroupId(QUuid synchronizationGroupId);
Add synchronization part of v5 acquisition
r511 void onAddSynchronized(std::shared_ptr<Variable> variable, QUuid synchronizationGroupId);
Implementation of V5 acquisition
r510
Alexandre Leroux
Inits variable controller and adds it to the SciQlop app
r106 void initialize();
void finalize();
private:
void waitForFinish();
class VariableControllerPrivate;
spimpl::unique_impl_ptr<VariableControllerPrivate> impl;
};
#endif // SCIQLOP_VARIABLECONTROLLER_H