/// <summary>
        /// Constructer.
        /// </summary>
        public AnimationControl()
        {
            InitializeComponent();
            _mainAnimationControl = this;
            if (ParameterInput.MainParameterInput != null && ParameterInput.MainParameterInput.MainDataViewControl != null)
            {
                _propertyControl      = new DataViewControlPage(ParameterInput.MainParameterInput.MainDataViewControl);
                _propertyControl.Dock = DockStyle.Fill;
                _propertyControl.Create("Animation");
                panel3.Controls.Add(_propertyControl);
                this.cbSmooth.Visible = false;
                this.tbSize.Visible   = false;
                this.label1.Visible   = false;
                this.tbAnimationDescription.ScrollBars  = ScrollBars.None;
                this.tbAnimationDescription.BorderStyle = BorderStyle.None;
//                this.tbAnimationDescription.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            }
        }
Example #2
0
        /// <summary>
        /// Contructer.
        /// </summary>
        public NavigateControl()
        {
            InitializeComponent();
            panel2.Visible = false;

            UpdateMoveButtonAppearance();
            UpdateMoveAngleButtonAppearance();

            // This prevents the designer to read this block.
            if (ParameterInput.MainParameterInput != null && ParameterInput.MainParameterInput.MainDataViewControl != null)
            {
                _propertyControl      = new DataViewControlPage(ParameterInput.MainParameterInput.MainDataViewControl);
                _propertyControl.Dock = DockStyle.Fill;
                _propertyControl.Create("Transformation");
                pnlProperties.Controls.Add(_propertyControl);
                _propertyControlBbox      = new DataViewControlPage(ParameterInput.MainParameterInput.MainDataViewControl);
                _propertyControlBbox.Dock = DockStyle.Fill;
                _propertyControlBbox.Create("Scene");
                pnlBorderProperties.Controls.Add(_propertyControlBbox);
            }
            mZoomFactor = 1.2;
        }
        public MaterialControl()
        {
            InitializeComponent();

            // Test if this control is openened in Visual Studio Designer:
            if (ParameterInput.MainParameterInput != null && ParameterInput.MainParameterInput.MainDataViewControl != null)
            {
                _rendererControl      = new DataViewControlPage(ParameterInput.MainParameterInput.MainDataViewControl);
                _rendererControl.Dock = DockStyle.Fill;
                _rendererControl.Create(new string[]
                {
                    "Renderer.Brightness",
                    "Renderer.Contrast",
                    "Renderer.BrightLightLevel",
                    "Renderer.ShadowGlow",
                    "Renderer.ShadowJustify",
                    "Renderer.AmbientIntensity",
                    "Renderer.MinFieldOfView",
                    "Renderer.MaxFieldOfView",
                    "Renderer.Normalize",
                }
                                        );
                pnlRenderer.Controls.Add(_rendererControl);

                _lightControl      = new DataViewControlPage(ParameterInput.MainParameterInput.MainDataViewControl);
                _lightControl.Dock = DockStyle.Fill;
                _lightControl.Create(new string[]
                {
                    "Renderer.ShininessFactor",
                    "Renderer.Shininess",
                    "Renderer.Light.X",
                    "Renderer.Light.Y",
                    "Renderer.Light.Z",
                }
                                     );
                pnlLight.Controls.Add(_lightControl);

                _colorControl      = new DataViewControlPage(ParameterInput.MainParameterInput.MainDataViewControl);
                _colorControl.Dock = DockStyle.Fill;
                _colorControl.Create(new string[]
                {
                    "Renderer.ColorInside",
                    "Renderer.ColorOutside",
                    "Renderer.ColorIntensity",
                    "Renderer.ColorGreyness",
                    "Renderer.ColorFactor.Red",
                    "Renderer.ColorFactor.Green",
                    "Renderer.ColorFactor.Blue",
                    "Renderer.ColorFactor.Threshold",
                }
                                     );
                pnlColor.Controls.Add(_colorControl);

                _backgroundControl      = new DataViewControlPage(ParameterInput.MainParameterInput.MainDataViewControl);
                _backgroundControl.Dock = DockStyle.Fill;
                _backgroundControl.Create(new string[]
                {
                    "Renderer.UseDarken",
                    "Renderer.BackColor.Red",
                    "Renderer.BackColor.Green",
                    "Renderer.BackColor.Blue",
                    "Renderer.BackColor.Transparent"
                }
                                          );
                pnlBackground.Controls.Add(_backgroundControl);
            }
        }