예제 #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());
   }
 }
예제 #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());
   }
 }
예제 #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());
    }
  }
}
예제 #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());
   }
 }
예제 #8
0
 virtual void setupFromObject(Kst::Object* dataObject) {
   if (ShiftSource* source = static_cast<ShiftSource*>(dataObject)) {
     setSelectedVector(source->vector());
     setSelectedScalar(source->scalar());
   }
 }
예제 #9
0
 virtual void setupFromObject(Kst::Object* dataObject) {
   if (NoiseAdditionSource* source = static_cast<NoiseAdditionSource*>(dataObject)) {
     setSelectedVector(source->vector());
     setSelectedScalar(source->scalarSigma());
   }
 }
예제 #10
0
파일: filterflag.cpp 프로젝트: KDE/kst-plot
 virtual void setupFromObject(Kst::Object* dataObject) {
   if (FilterFlagSource* source = static_cast<FilterFlagSource*>(dataObject)) {
     setSelectedVector(source->vector());
     setSelectedFlag(source->flagVector());
   }
 }
예제 #11
0
파일: filterflag.cpp 프로젝트: KDE/kst-plot
 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());
   }
 }
예제 #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());
   }
 }