コード例 #1
0
        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());
        }
コード例 #2
0
        public override void WriteGroupCodes()
        {
            WriteGroupCodeValue(2, ViewportName.Trim());

            WriteGroupCodeValue(10, LowerLeftX.ToString().Trim());
            WriteGroupCodeValue(20, LowerLeftY.ToString().Trim());

            WriteGroupCodeValue(11, UpperRightX.ToString().Trim());
            WriteGroupCodeValue(21, UpperRightY.ToString().Trim());

            WriteGroupCodeValue(12, CenterX.ToString().Trim());
            WriteGroupCodeValue(22, CenterY.ToString().Trim());

            WriteGroupCodeValue(13, SnapBaseX.ToString().Trim());
            WriteGroupCodeValue(23, SnapBaseY.ToString().Trim());

            WriteGroupCodeValue(14, SnapSpacingX.ToString().Trim());
            WriteGroupCodeValue(24, SnapSpacingY.ToString().Trim());

            WriteGroupCodeValue(15, GridSpacingX.ToString().Trim());
            WriteGroupCodeValue(25, GridSpacingY.ToString().Trim());

            WriteGroupCodeValue(16, ViewDirectionX.ToString().Trim());
            WriteGroupCodeValue(26, ViewDirectionY.ToString().Trim());
            WriteGroupCodeValue(36, ViewDirectionZ.ToString().Trim());

            WriteGroupCodeValue(17, ViewTargetX.ToString().Trim());
            WriteGroupCodeValue(27, ViewTargetY.ToString().Trim());
            WriteGroupCodeValue(37, ViewTargetZ.ToString().Trim());

            WriteGroupCodeValue(40, ViewHeight.ToString().Trim());

            WriteGroupCodeValue(41, ViewportAspectRatio.ToString().Trim());

            WriteGroupCodeValue(42, LensLength.ToString().Trim());

            WriteGroupCodeValue(43, FrontClippingPlaneOffset.ToString().Trim());
            WriteGroupCodeValue(44, BackClippingPlaneOffset.ToString().Trim());

            WriteGroupCodeValue(50, SnapRotationAngle.ToString().Trim());

            WriteGroupCodeValue(51, TwistAngle.ToString().Trim());

            WriteGroupCodeValue(70, GetStandardFlags().ToString().Trim());
        }