void QuaternionValue::valueChanged(Value *value) { if(dynamic_cast<DoubleValue*>(value) == 0) { return; } if(!mSettingValue && mQuaternion.contains(dynamic_cast<DoubleValue*>(value))) { notifyValueChanged(); } }
void ofxBKDoubleSlider::setValue2(float _value, bool notify) { _value = max(value,_value); _value = min(max(_value,minValue),maxValue); if(value2 == _value) return; value2 = _value; updateLabelTF(); if(notify) notifyValueChanged(); }
void Parameter::setValue(var _value, bool silentSet, bool force) { if (!force && checkValueIsTheSame(_value, value)) return; lastValue = var(value); setValueInternal(_value); if (_value != defaultValue) isOverriden = true; if (!silentSet) notifyValueChanged(); }
void QuaternionValue::set(double w, double x, double y, double z) { if(mNotifyAllSetAttempts || w != mQuaternion[0]->get() || x != mQuaternion[1]->get() || y != mQuaternion[2]->get() || z != mQuaternion[3]->get()) { mSettingValue = true; mQuaternion[0]->set(w); mQuaternion[1]->set(x); mQuaternion[2]->set(y); mQuaternion[3]->set(z); mSettingValue = false; notifyValueChanged(); } }
/** * Called when a config property's value is changed. * * @param notification The Poco notification object. */ void ConfigObserver::notifyValueChanged( ConfigValChangeNotification_ptr notification) { notifyValueChanged(notification->key(), notification->curValue(), notification->preValue()); }
void MultinodePropertyConnectorInterface::connectValueChangedSignal(const QObject *receiver, const char *method, Qt::ConnectionType type) { connect(this, SIGNAL(sigValueChanged()), receiver, method, type); notifyValueChanged(); }
void BoolValue::set(bool value) { if(mNotifyAllSetAttempts || value != mValue) { mValue = value; notifyValueChanged(); } }