@@ -59,8 +59,8 void updateScalarData(QCPAbstractPlottable *component, ScalarSeries &scalarSerie | |||||
59 | xValue.resize(n); |
|
59 | xValue.resize(n); | |
60 | vValue.resize(n); |
|
60 | vValue.resize(n); | |
61 |
|
61 | |||
62 |
qCInfo(LOG_VisualizationGraphHelper()) << "TORM: Current points displayed" |
|
62 | qCInfo(LOG_VisualizationGraphHelper()) << "TORM: Current points displayed" | |
63 |
<< |
|
63 | << xValue.count(); | |
64 |
|
64 | |||
65 | qcpGraph->setData(xValue, vValue); |
|
65 | qcpGraph->setData(xValue, vValue); | |
66 |
|
66 |
@@ -87,7 +87,6 void VisualizationGraphWidget::addVariableUsingGraph(std::shared_ptr<Variable> v | |||||
87 | auto grapheRange = ui->widget->xAxis->range(); |
|
87 | auto grapheRange = ui->widget->xAxis->range(); | |
88 | auto dateTime = SqpDateTime{grapheRange.lower, grapheRange.upper}; |
|
88 | auto dateTime = SqpDateTime{grapheRange.lower, grapheRange.upper}; | |
89 | variable->setDateTime(dateTime); |
|
89 | variable->setDateTime(dateTime); | |
90 | qCInfo(LOG_VisualizationGraphWidget()) << "ADD Variable with range : " << dateTime; |
|
|||
91 |
|
90 | |||
92 | auto variableDateTimeWithTolerance = dateTime; |
|
91 | auto variableDateTimeWithTolerance = dateTime; | |
93 |
|
92 | |||
@@ -96,9 +95,6 void VisualizationGraphWidget::addVariableUsingGraph(std::shared_ptr<Variable> v | |||||
96 | variableDateTimeWithTolerance.m_TStart -= tolerance; |
|
95 | variableDateTimeWithTolerance.m_TStart -= tolerance; | |
97 | variableDateTimeWithTolerance.m_TEnd += tolerance; |
|
96 | variableDateTimeWithTolerance.m_TEnd += tolerance; | |
98 |
|
97 | |||
99 | qCInfo(LOG_VisualizationGraphWidget()) << "ADD Variable with range TOL: " |
|
|||
100 | << variableDateTimeWithTolerance; |
|
|||
101 |
|
||||
102 | // Uses delegate to create the qcpplot components according to the variable |
|
98 | // Uses delegate to create the qcpplot components according to the variable | |
103 | auto createdPlottables = VisualizationGraphHelper::create(variable, *ui->widget); |
|
99 | auto createdPlottables = VisualizationGraphHelper::create(variable, *ui->widget); | |
104 |
|
100 | |||
@@ -170,8 +166,7 void VisualizationGraphWidget::onGraphMenuRequested(const QPoint &pos) noexcept | |||||
170 |
|
166 | |||
171 | void VisualizationGraphWidget::onRangeChanged(const QCPRange &t1) |
|
167 | void VisualizationGraphWidget::onRangeChanged(const QCPRange &t1) | |
172 | { |
|
168 | { | |
173 |
|
169 | qCDebug(LOG_VisualizationGraphWidget()) << tr("VisualizationGraphWidget::onRangeChanged"); | ||
174 | qCInfo(LOG_VisualizationGraphWidget()) << tr("VisualizationGraphWidget::onRangeChanged"); |
|
|||
175 |
|
170 | |||
176 | for (auto it = impl->m_VariableToPlotMultiMap.cbegin(); |
|
171 | for (auto it = impl->m_VariableToPlotMultiMap.cbegin(); | |
177 | it != impl->m_VariableToPlotMultiMap.cend(); ++it) { |
|
172 | it != impl->m_VariableToPlotMultiMap.cend(); ++it) { | |
@@ -180,7 +175,6 void VisualizationGraphWidget::onRangeChanged(const QCPRange &t1) | |||||
180 | auto dateTime = SqpDateTime{t1.lower, t1.upper}; |
|
175 | auto dateTime = SqpDateTime{t1.lower, t1.upper}; | |
181 |
|
176 | |||
182 | if (!variable->contains(dateTime)) { |
|
177 | if (!variable->contains(dateTime)) { | |
183 | qCInfo(LOG_VisualizationGraphWidget()) << dateTime << variable->dateTime(); |
|
|||
184 |
|
178 | |||
185 | auto variableDateTimeWithTolerance = dateTime; |
|
179 | auto variableDateTimeWithTolerance = dateTime; | |
186 | if (variable->intersect(dateTime)) { |
|
180 | if (variable->intersect(dateTime)) { |
General Comments 0
You need to be logged in to leave comments.
Login now