public void Reset() { for (int i = 0; i < _markers.Count; i++) { RTPMarker rTPMarker = _markers[i]; rTPMarker._keyOff = false; } }
public void KeyOffMarker() { if (_keyOffMarker != null) { _keyOffMarker._keyOff = true; _keyOffMarker = null; } }
public void SetValueFromMarker(string label) { RTPMarker marker = _markers.GetMarker(label); if (marker != null) { SetValue(marker._value); } }
public bool RemoveMarker(string label) { RTPMarker marker = GetMarker(label); if (marker != null) { _markers.Remove(marker); return(true); } return(false); }
public bool Update(float value, float direction) { for (int i = 0; i < _markers.Count; i++) { RTPMarker rTPMarker = _markers[i]; if (rTPMarker._keyOffEnabled) { if (direction >= 0f && value >= rTPMarker._value && !rTPMarker._keyOff) { _keyOffMarker = rTPMarker; return(true); } if (direction < 0f && value <= rTPMarker._value && !rTPMarker._keyOff) { _keyOffMarker = rTPMarker; return(true); } } } return(false); }
public EventStatus SetMarker(Event zEvent) { EventStatus result = EventStatus.Failed_Uknown; if (_parameters == null) { return(result); } for (int i = 0; i < _parameters.Length; i++) { RTPParameterToProperty rTPParameterToProperty = _parameters[i]; string label = (string)zEvent._parameter; RTPMarker marker = rTPParameterToProperty._parameter._markers.GetMarker(label); if (marker != null) { rTPParameterToProperty._parameter.SetNormalisedValue(marker._value); result = EventStatus.Handled; } } return(result); }
public void RemoveMarker(RTPMarker rtpMarker) { _markers.Remove(rtpMarker); }