virtual void setupFromObject(Kst::Object* dataObject) { if (FilterWindowSource* source = static_cast<FilterWindowSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedMaximumScalar(source->maximumScalar()); setSelectedMinimumScalar(source->minimumScalar()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (FilterButterworthLowPassSource* source = static_cast<FilterButterworthLowPassSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedOrderScalar(source->orderScalar()); setSelectedCutoffScalar(source->cutoffScalar()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (FilterDespikeSource* source = static_cast<FilterDespikeSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedNSigmaScalar(source->nSigmaScalar()); setSelectedSpacingScalar(source->spacingScalar()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (FilterButterworthBandStopSource* source = static_cast<FilterButterworthBandStopSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedOrderScalar(source->orderScalar()); setSelectedRateScalar(source->rateScalar()); setSelectedBandwidthScalar(source->bandwidthScalar()); } }
void VectorSelector::setToLastX(QString field) { if (!_store) { return; } int match = -1; VectorList vectors = _store->getObjects<Vector>(); int size = vectors.size(); for (int i = 0; i < size; ++i) { if (vectors.at(i)->descriptiveName() == field) { match = i; } } if (match >-1) { setSelectedVector(vectors.at(match)); } else { CurveList objects = _store->getObjects<Curve>(); if (objects.count()>0) { setSelectedVector(objects.at(objects.count()-1)->xVector()); } } }
void VectorSelector::newVector() { QString newName; if (_isX) { newName = dialogDefaults().value("curve/xvectorfield","INDEX").toString(); } DialogLauncher::self()->showVectorDialog(newName, 0, true); fillVectors(); VectorPtr vector = kst_cast<Vector>(_store->retrieveObject(newName)); if (vector) { setSelectedVector(vector); emitSelectionChanged(); emit contentChanged(); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (StatisticsSource* source = static_cast<StatisticsSource*>(dataObject)) { setSelectedVector(source->vector()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (ShiftSource* source = static_cast<ShiftSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedScalar(source->scalar()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (NoiseAdditionSource* source = static_cast<NoiseAdditionSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedScalar(source->scalarSigma()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (FilterFlagSource* source = static_cast<FilterFlagSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedFlag(source->flagVector()); } }
void setVectorY(Kst::VectorPtr vector) { setSelectedVector(vector); }
virtual void setupFromObject(Kst::Object* dataObject) { if (DifferentiationSource* source = static_cast<DifferentiationSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedScalar(source->scalarStep()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (CumulativeSumSource* source = static_cast<CumulativeSumSource*>(dataObject)) { setSelectedVector(source->vector()); setSelectedScalar(source->scalarStep()); } }
virtual void setupFromObject(Kst::Object* dataObject) { if (AutoCorrelationSource* source = static_cast<AutoCorrelationSource*>(dataObject)) { setSelectedVector(source->vector()); } }