Ejemplo n.º 1
0
void QuaternionValue::valueChanged(Value *value) {
	if(dynamic_cast<DoubleValue*>(value) == 0) {
		return;
	}
	if(!mSettingValue && mQuaternion.contains(dynamic_cast<DoubleValue*>(value))) {
		notifyValueChanged();
	}
}
Ejemplo n.º 2
0
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();
}
Ejemplo n.º 3
0
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();
}
Ejemplo n.º 4
0
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();
	}
}
Ejemplo n.º 5
0
/**
 * 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());
}
Ejemplo n.º 6
0
void MultinodePropertyConnectorInterface::connectValueChangedSignal(const QObject *receiver, const char *method, Qt::ConnectionType type) {
    connect(this, SIGNAL(sigValueChanged()), receiver, method, type);
    notifyValueChanged();
}
Ejemplo n.º 7
0
void BoolValue::set(bool value) {
	if(mNotifyAllSetAttempts || value != mValue) {
		mValue = value;
		notifyValueChanged();
	}
}