Exemple #1
0
 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());
   }
 }
Exemple #3
0
 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());
   }
 }
Exemple #5
0
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());
    }
  }
}
Exemple #6
0
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());
   }
 }
Exemple #9
0
 virtual void setupFromObject(Kst::Object* dataObject) {
   if (NoiseAdditionSource* source = static_cast<NoiseAdditionSource*>(dataObject)) {
     setSelectedVector(source->vector());
     setSelectedScalar(source->scalarSigma());
   }
 }
Exemple #10
0
 virtual void setupFromObject(Kst::Object* dataObject) {
   if (FilterFlagSource* source = static_cast<FilterFlagSource*>(dataObject)) {
     setSelectedVector(source->vector());
     setSelectedFlag(source->flagVector());
   }
 }
Exemple #11
0
 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());
   }
 }
Exemple #13
0
 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());
   }
 }