public void AppendScrollBar(ImageButtonRender render)
        {
            render.Buttons.Add(sliderTrack);

            render.Buttons.Add(labelButton);
            render.Buttons.Add(sliderButton);
            render.Buttons.Add(valueButton);
        }
        protected override bool Setup()
        {
            System.Console.WriteLine("Input Directory: " + inputDirectory);
            System.Console.WriteLine("Output Directory: " + outputDirectory);
            if (inputDirectory == null)
            {
                int counter = 0;
                if (Directory.Exists(outputDirectory))
                {
                    while (Directory.Exists(outputDirectory + @"\capture" + counter.ToString("0000")))
                    {
                        counter++;
                    }
                    outputDirectory = outputDirectory + @"\capture" + counter.ToString("0000");
                    Directory.CreateDirectory(outputDirectory);
                }
                else
                {
                    Directory.CreateDirectory(outputDirectory);
                }
                devices.Add(new GestureCamera(outputDirectory));

            }
            else
            {
                devices.Add(new PlayBackDevice(new GestureCamera(inputDirectory), inputDirectory));
                processors.Add(new PointCloudWriter(inputDirectory));
            }
            filters.Add(filter = new AdaptiveTemporalFilter());
            TextOverlayRender textRender;
            renderers.Add(new CameraSetupRender(CameraSetupRender.SceneType.GL3D));
            renderers.Add(quadSurf = new QuadSurfaceRender());
            renderers.Add(pointCloud = new PointCloudRender());
            renderers.Add(sceneRender = new SceneBBoxRender());
            renderers.Add(new CameraSetupRender(CameraSetupRender.SceneType.GL2D));
            renderers.Add(overlayRender = new CameraOverlayRender());
            renderers.Add(textRender = new TextOverlayRender());
            textRender.Messages.Add(hints = new Message("", 0, glw.GLCtrl.Height - 200, 10));
            UpdateHints();
            return true;
        }
        public void AppendColorMixer(ImageButtonRender imageRender)
        {
            hueScroll.AppendScrollBar(imageRender);
            saturationScroll.AppendScrollBar(imageRender);
            valueScroll.AppendScrollBar(imageRender);
            imageRender.Buttons.Add(mixedColor);
            imageRender.Buttons.Add(chosenColor);

            for (int i = 0; i < NUM_CONTROL_PTS; i++)
            {

                imageRender.Buttons.Add(controlPoints[i]);

                imageRender.Buttons.Add(controlPointsBorder[i]);

                imageRender.Buttons.Add(stems[i]);
            }
        }