예제 #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());
        }
예제 #2
0
 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)));
 }
예제 #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)));
        }
예제 #4
0
        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());
        }
예제 #5
0
파일: Mask.cs 프로젝트: Trinitek/CMiX
 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));
 }