Ejemplo n.º 1
0
        private void ConnectDependants()
        {
            horizontalStretchConnector.AddDependantConnector(horizontalShiftConnector);
            verticalStretchConnector.AddDependantConnector(verticalShiftConnector);
            verticalShiftConnector.AddDependantConnector(verticalShiftConnector);
            horizontalShiftConnector.AddDependantConnector(horizontalShiftConnector);

            for (int z = 0; z < colorGamutConnectors.Length; z++)
            {
                for (int y = 0; y < colorGamutConnectors[z].Length; y++)
                {
                    for (int x = 0; x < colorGamutConnectors[z][y].Length; x++)
                    {
                        dayNightProfileConnector.AddDependantConnector(colorGamutConnectors[z][y][x]);
                    }
                }
            }

            for (int x = 0; x < grayscaleConnectors[0].Length; x++)
            {
                for (int y = 0; y < 3; y++)
                {
                    dayNightProfileConnector.AddDependantConnector(grayscaleConnectors[y][x]);
                    grayscaleConnectors[y][x].AddDependantConnector(grayscaleConnectors[3][x]);
                    grayscaleConnectors[y][x].AddDependantConnector(grayscaleConnectors[4][x]);
                    grayscaleConnectors[y][x].AddDependantConnector(grayscaleConnectors[5][x]);
                }
                for (int y = 3; y < 6; y++)
                {
                    dayNightProfileConnector.AddDependantConnector(grayscaleConnectors[y][x]);
                    grayscaleConnectors[y][x].AddDependantConnector(grayscaleConnectors[0][x]);
                    grayscaleConnectors[y][x].AddDependantConnector(grayscaleConnectors[1][x]);
                    grayscaleConnectors[y][x].AddDependantConnector(grayscaleConnectors[2][x]);
                }
            }

            foreach (IConnector connector in inputConnectors)
            {
                inputSelectConnector.AddDependantConnector(connector);
            }

            autoARConnector.AddDependantConnector(presetARConnector);
            autoARConnector.AddDependantConnector(activeARConnector);
            autoARConnector.AddDependantConnector(pictureARConnector);
            autoARConnector.AddDependantConnector(panoramaARConnector);

            presetARConnector.AddDependantConnector(autoARConnector);
            presetARConnector.AddDependantConnector(activeARConnector);
            presetARConnector.AddDependantConnector(pictureARConnector);
            presetARConnector.AddDependantConnector(panoramaARConnector);

            activeARConnector.AddDependantConnector(autoARConnector);
            activeARConnector.AddDependantConnector(panoramaARConnector);

            pictureARConnector.AddDependantConnector(autoARConnector);
            panoramaARConnector.AddDependantConnector(autoARConnector);

            autoARConnector.EnableableCheckValue = false;
            autoARConnector.AddEnableableConnector(presetARConnector);
            autoARConnector.AddEnableableConnector(activeARConnector);
            autoARConnector.AddEnableableConnector(pictureARConnector);
            autoARConnector.AddEnableableConnector(panoramaARConnector);
        }