public Layer(MasterBeat masterBeat, string layername, ObservableCollection <OSCMessenger> messengers, int index, Mementor mementor) : base(messengers, mementor) { MessageAddress = layername; LayerName = layername; Index = index; Index = 0; Enabled = false; BlendMode = ((BlendMode)0).ToString(); Fade = new Slider(MessageAddress + nameof(Fade), messengers, mementor); BeatModifier = new BeatModifier(MessageAddress, messengers, masterBeat, mementor); Content = new Content(BeatModifier, MessageAddress, messengers, mementor); Mask = new Mask(BeatModifier, MessageAddress, messengers, mementor); Coloration = new Coloration(MessageAddress, messengers, mementor, BeatModifier); PostFX = new PostFX(MessageAddress, messengers, mementor); CopyContentCommand = new RelayCommand(p => CopyContent()); PasteContentCommand = new RelayCommand(p => PasteContent()); CopyMaskCommand = new RelayCommand(p => CopyMask()); PasteMaskCommand = new RelayCommand(p => PasteMask()); CopyColorationCommand = new RelayCommand(p => CopyColoration()); PasteColorationCommand = new RelayCommand(p => PasteColoration()); }
public void UpdateMessageAddress(string messageaddress) { MessageAddress = messageaddress; BeatModifier.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(BeatModifier))); Geometry.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Geometry))); Texture.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Texture))); PostFX.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(PostFX))); }
public Coloration(BeatModifier beatModifier, Color objectColor, Color backgroundColor, HSVPoint hue, HSVPoint saturation, HSVPoint value) { BeatModifier = beatModifier ?? throw new ArgumentNullException(nameof(beatModifier)); ObjectColor = objectColor; BackgroundColor = backgroundColor; Hue = hue ?? throw new ArgumentNullException(nameof(hue)); Saturation = saturation ?? throw new ArgumentNullException(nameof(saturation)); Value = value ?? throw new ArgumentNullException(nameof(value)); }
public Mask(bool enable, string layerName, BeatModifier beatModifier, Geometry geometry, Texture texture, PostFX postFX) { Enable = enable; LayerName = layerName; BeatModifier = beatModifier ?? throw new ArgumentNullException(nameof(beatModifier)); Geometry = geometry ?? throw new ArgumentNullException(nameof(geometry)); Texture = texture ?? throw new ArgumentNullException(nameof(texture)); PostFX = postFX ?? throw new ArgumentNullException(nameof(postFX)); }
public Layer(MasterBeat masterBeat, string name) { Name = name; Fade = 0.0; BlendMode = default; BeatModifier = new BeatModifier(masterBeat); Content = new Content(BeatModifier, name); Mask = new Mask(BeatModifier, name); Coloration = new Coloration(BeatModifier); }
public void UpdateMessageAddress(string messageaddress) { MessageAddress = messageaddress; Fade.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Fade))); BeatModifier.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(BeatModifier))); Content.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Content))); Mask.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Mask))); Coloration.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(Coloration))); PostFX.UpdateMessageAddress(String.Format("{0}{1}/", MessageAddress, nameof(PostFX))); }
public Camera(ObservableCollection <OSCMessenger> oscmessengers, MasterBeat masterBeat, Mementor mementor) : base(oscmessengers, mementor) { MessageAddress = "/Camera/"; Rotation = ((CameraRotation)0).ToString(); LookAt = ((CameraLookAt)0).ToString(); View = ((CameraView)0).ToString(); BeatModifier = new BeatModifier(MessageAddress, oscmessengers, masterBeat, mementor); FOV = new Slider(MessageAddress + nameof(FOV), oscmessengers, mementor); Zoom = new Slider(MessageAddress + nameof(Zoom), oscmessengers, mementor); }
public Layer( string name, double fade, BlendMode blendMode, BeatModifier beatModifier, Content content, Mask mask, Coloration coloration) { Name = name; Fade = fade; BlendMode = blendMode; BeatModifier = beatModifier ?? throw new ArgumentNullException(nameof(beatModifier)); Content = content ?? throw new ArgumentNullException(nameof(content)); Mask = mask ?? throw new ArgumentNullException(nameof(mask)); Coloration = coloration ?? throw new ArgumentNullException(nameof(coloration)); }
public Coloration(string messageaddress, ObservableCollection <OSCMessenger> oscmessengers, Mementor mementor, Beat masterbeat) : base(oscmessengers, mementor) { MessageAddress = String.Format("{0}{1}/", messageaddress, nameof(Coloration)); ObjColor = Utils.HexStringToColor("#FF00FF"); BgColor = Utils.HexStringToColor("#FF00FF"); BeatModifier = new BeatModifier(MessageAddress, oscmessengers, masterbeat, mementor); Hue = new RangeControl(oscmessengers, MessageAddress + nameof(Hue), mementor); Saturation = new RangeControl(oscmessengers, MessageAddress + nameof(Saturation), mementor); Value = new RangeControl(oscmessengers, MessageAddress + nameof(Value), mementor); //CopySelfCommand = new RelayCommand(p => CopySelf()); //PasteSelfCommand = new RelayCommand(p => PasteSelf()); ResetCommand = new RelayCommand(p => Reset()); MouseDownCommand = new RelayCommand(p => MouseDown()); }
public Content(Beat masterbeat, string messageaddress, ObservableCollection <OSCMessenger> oscmessengers, Mementor mementor) : base(oscmessengers, mementor) { MessageAddress = String.Format("{0}{1}/", messageaddress, nameof(Content)); Enable = true; BeatModifier = new BeatModifier(MessageAddress, oscmessengers, masterbeat, mementor); Geometry = new Geometry(MessageAddress, oscmessengers, mementor); Texture = new Texture(MessageAddress, oscmessengers, mementor); PostFX = new PostFX(MessageAddress, oscmessengers, mementor); ResetCommand = new RelayCommand(p => Reset()); CopyTextureCommand = new RelayCommand(p => CopyTexture()); PasteTextureCommand = new RelayCommand(p => PasteTexture()); CopyGeometryCommand = new RelayCommand(p => CopyGeometry()); PasteGeometryCommand = new RelayCommand(p => PasteGeometry()); CopyPostFXCommand = new RelayCommand(p => CopyPostFX()); PastePostFXCommand = new RelayCommand(p => PastePostFX()); }
public Camera(IMessenger messenger, CameraRotation rotation, CameraLookAt lookAt, CameraView view, BeatModifier beatModifier, double fov, double zoom) { Messenger = messenger ?? throw new ArgumentNullException(nameof(messenger)); Rotation = rotation; LookAt = lookAt; View = view; BeatModifier = beatModifier ?? throw new ArgumentNullException(nameof(beatModifier)); FOV = fov; Zoom = zoom; }