public override void WriteGroupCodes() { WriteGroupCodeValue(2, ViewName.Trim()); WriteGroupCodeValue(40, ViewHeight.ToString().Trim()); WriteGroupCodeValue(41, ViewWidth.ToString().Trim()); WriteGroupCodeValue(10, ViewCenterX.ToString().Trim()); WriteGroupCodeValue(20, ViewCenterY.ToString().Trim()); WriteGroupCodeValue(11, ViewDirectionX.ToString().Trim()); WriteGroupCodeValue(21, ViewDirectionY.ToString().Trim()); WriteGroupCodeValue(31, ViewDirectionZ.ToString().Trim()); WriteGroupCodeValue(12, ViewTargetX.ToString().Trim()); WriteGroupCodeValue(22, ViewTargetY.ToString().Trim()); WriteGroupCodeValue(32, ViewTargetZ.ToString().Trim()); WriteGroupCodeValue(42, LensLength.ToString().Trim()); WriteGroupCodeValue(43, FrontClippingPlaneOffset.ToString().Trim()); WriteGroupCodeValue(44, BackClippingPlaneOffset.ToString().Trim()); WriteGroupCodeValue(50, TwistAngle.ToString().Trim()); WriteGroupCodeValue(70, GetStandardFlags().ToString().Trim()); }
private void txtWinWidth_TextChanged(object sender, EventArgs e) { float t; float.TryParse(txtWinWidth.Text, out t); WinWidth = t; ViewWidth = (int)Math.Round(WinWidth * Resolution); txtViewWidth.Text = ViewWidth.ToString(CultureInfo.InvariantCulture); }