Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        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)));
        }
Esempio n. 4
0
 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));
 }