public Texture(string messageaddress, ObservableCollection <OSCMessenger> oscmessengers, Mementor mementor) : base(oscmessengers, mementor) { MessageAddress = String.Format("{0}{1}/", messageaddress, nameof(Texture)); FileSelector = new FileSelector(MessageAddress, "Single", new List <string> { ".PNG", ".JPG", ".MOV", ".TXT" }, oscmessengers, mementor); Brightness = new Slider(MessageAddress + nameof(Brightness), oscmessengers, mementor); Contrast = new Slider(MessageAddress + nameof(Contrast), oscmessengers, mementor); Invert = new Slider(MessageAddress + nameof(Invert), oscmessengers, mementor); InvertMode = ((TextureInvertMode)0).ToString(); Hue = new Slider(MessageAddress + nameof(Hue), oscmessengers, mementor); Saturation = new Slider(MessageAddress + nameof(Saturation), oscmessengers, mementor); Luminosity = new Slider(MessageAddress + nameof(Luminosity), oscmessengers, mementor); Keying = new Slider(MessageAddress + nameof(Keying), oscmessengers, mementor); Scale = new Slider(MessageAddress + nameof(Scale), oscmessengers, mementor); Rotate = new Slider(MessageAddress + nameof(Rotate), oscmessengers, mementor); Pan = new Slider(MessageAddress + nameof(Pan), oscmessengers, mementor); Tilt = new Slider(MessageAddress + nameof(Tilt), oscmessengers, mementor); //CopySelfCommand = new RelayCommand(p => CopySelf()); //PasteSelfCommand = new RelayCommand(p => PasteSelf()); ResetCommand = new RelayCommand(p => Reset()); }
public void UpdateMessageAddress(string messageaddress) { MessageAddress = messageaddress; FileSelector.UpdateMessageAddress(MessageAddress); TranslateMode.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(TranslateMode))); ScaleMode.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(ScaleMode))); RotationMode.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(RotationMode))); Translate.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Translate))); Scale.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Scale))); Rotation.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Rotation))); Counter.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Counter))); GeometryFX.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(GeometryFX))); }
public void UpdateMessageAddress(string messageaddress) { MessageAddress = messageaddress; FileSelector.UpdateMessageAddress(MessageAddress); Brightness.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Brightness))); Contrast.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Contrast))); Invert.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Invert))); Hue.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Hue))); Saturation.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Saturation))); Luminosity.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Luminosity))); Keying.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Keying))); Scale.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Scale))); Rotate.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Rotate))); Pan.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Pan))); Tilt.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Tilt))); }
public Geometry(string messageaddress, ObservableCollection <OSCMessenger> oscmessengers, Mementor mementor) : base(oscmessengers, mementor) { MessageAddress = String.Format("{0}{1}/", messageaddress, nameof(Geometry)); Is3D = false; KeepAspectRatio = false; FileSelector = new FileSelector(MessageAddress, "Single", new List <string> { ".FBX", ".OBJ" }, oscmessengers, mementor); TranslateMode = new GeometryTranslate(MessageAddress + nameof(TranslateMode), oscmessengers, mementor); ScaleMode = new GeometryScale(MessageAddress + nameof(ScaleMode), oscmessengers, mementor); RotationMode = new GeometryRotation(MessageAddress + nameof(RotationMode), oscmessengers, mementor); Translate = new Slider(MessageAddress + nameof(Translate), oscmessengers, mementor); Scale = new Slider(MessageAddress + nameof(Scale), oscmessengers, mementor); Rotation = new Slider(MessageAddress + nameof(Rotation), oscmessengers, mementor); Counter = new Counter(MessageAddress, oscmessengers, mementor); GeometryFX = new GeometryFX(MessageAddress, oscmessengers, mementor); ResetCommand = new RelayCommand(p => Reset()); }