public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfVPort dxfVport = (DxfVPort)from; this.string_0 = dxfVport.string_0; this.point2D_0 = dxfVport.point2D_0; this.point2D_1 = dxfVport.point2D_1; this.point2D_2 = dxfVport.point2D_2; this.point2D_3 = dxfVport.point2D_3; this.vector2D_0 = dxfVport.vector2D_0; this.vector2D_1 = dxfVport.vector2D_1; this.vector3D_0 = dxfVport.vector3D_0; this.point3D_0 = dxfVport.point3D_0; this.double_0 = dxfVport.double_0; this.double_1 = dxfVport.double_1; this.double_2 = dxfVport.double_2; this.double_3 = dxfVport.double_3; this.double_4 = dxfVport.double_4; this.double_5 = dxfVport.double_5; this.double_6 = dxfVport.double_6; this.standardFlags_0 = dxfVport.standardFlags_0; this.ViewMode = dxfVport.viewMode_0; this.short_0 = dxfVport.short_0; this.short_1 = dxfVport.short_1; this.bool_0 = dxfVport.bool_0; this.bool_1 = dxfVport.bool_1; this.snapStyle_0 = dxfVport.snapStyle_0; this.short_2 = dxfVport.short_2; this.renderMode_0 = dxfVport.renderMode_0; this.bool_2 = dxfVport.bool_2; this.bool_3 = dxfVport.bool_3; this.Ucs = Class906.smethod_2(cloneContext, dxfVport.Ucs); this.orthographicType_0 = dxfVport.orthographicType_0; }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfLayout dxfLayout = (DxfLayout)from; this.bool_0 = dxfLayout.bool_0; this.string_8 = dxfLayout.string_8; this.layoutOptions_0 = dxfLayout.layoutOptions_0; this.int_0 = dxfLayout.int_0; this.rectangle2D_1 = dxfLayout.rectangle2D_1; this.point3D_0 = dxfLayout.point3D_0; this.point3D_1 = dxfLayout.point3D_1; this.point3D_2 = dxfLayout.point3D_2; this.double_7 = dxfLayout.double_7; this.Ucs = Class906.smethod_2(cloneContext, dxfLayout.Ucs); this.orthographicType_0 = dxfLayout.orthographicType_0; DxfBlock ownerBlock = dxfLayout.OwnerBlock; if (ownerBlock != null && ownerBlock.BlockBegin != null) { this.OwnerBlock = Class906.smethod_0(cloneContext, ownerBlock, true); } foreach (DxfHandledObject dxfHandledObject in (DxfHandledObjectCollection <DxfViewport>)dxfLayout.dxfViewportCollection_0) { this.dxfViewportCollection_0.Add((DxfViewport)dxfHandledObject.Clone(cloneContext)); } this.LastActiveViewport = (DxfHandledObject)cloneContext.GetExistingClone((IGraphCloneable)dxfLayout.LastActiveViewport); switch (dxfLayout.Handle) { case 30: case 34: this.SetHandle(dxfLayout.Handle); break; } }
public void SetRelativeOrigin(OrthographicType orthographic, Vector3D relativeOrigin) { switch (orthographic) { case OrthographicType.Top: this.vector3D_2 = relativeOrigin; break; case OrthographicType.Bottom: this.vector3D_3 = relativeOrigin; break; case OrthographicType.Front: this.vector3D_6 = relativeOrigin; break; case OrthographicType.Back: this.vector3D_7 = relativeOrigin; break; case OrthographicType.Left: this.vector3D_4 = relativeOrigin; break; case OrthographicType.Right: this.vector3D_5 = relativeOrigin; break; default: throw new Exception("Illegal OrthographicType."); } }
public Vector3D GetRelativeOrigin(OrthographicType orthographic) { switch (orthographic) { case OrthographicType.Top: return(this.vector3D_2); case OrthographicType.Bottom: return(this.vector3D_3); case OrthographicType.Front: return(this.vector3D_6); case OrthographicType.Back: return(this.vector3D_7); case OrthographicType.Left: return(this.vector3D_4); case OrthographicType.Right: return(this.vector3D_5); default: throw new Exception("Illegal OrthographicType."); } }
private static Matrix4x4 GetMatrixFor(OrthographicType dir) { switch (dir) { case OrthographicType.Top: return(TopMatrix); case OrthographicType.Front: return(FrontMatrix); case OrthographicType.Side: return(SideMatrix); default: throw new ArgumentOutOfRangeException(nameof(dir)); } }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfViewport dxfViewport = (DxfViewport)from; this.point3D_0 = dxfViewport.point3D_0; this.size2D_0 = dxfViewport.size2D_0; this.point2D_0 = dxfViewport.point2D_0; this.point2D_1 = dxfViewport.point2D_1; this.vector2D_0 = dxfViewport.vector2D_0; this.vector2D_1 = dxfViewport.vector2D_1; this.vector3D_0 = dxfViewport.vector3D_0; this.point3D_1 = dxfViewport.point3D_1; this.double_1 = dxfViewport.double_1; this.double_2 = dxfViewport.double_2; this.double_3 = dxfViewport.double_3; this.double_4 = dxfViewport.double_4; this.double_5 = dxfViewport.double_5; this.double_6 = dxfViewport.double_6; this.double_7 = dxfViewport.double_7; foreach (DxfLayer from1 in dxfViewport.dxfHandledObjectCollection_1) { DxfLayer layer = Class906.GetLayer(cloneContext, from1); if (!this.dxfHandledObjectCollection_1.Contains(layer)) { this.dxfHandledObjectCollection_1.Add(layer); } } this.StatusFlags = dxfViewport.viewportStatusFlags_0; this.dxfObjectReference_6 = DxfObjectReference.Null; this.string_1 = dxfViewport.string_1; this.renderMode_0 = dxfViewport.renderMode_0; this.bool_2 = dxfViewport.bool_2; this.bool_3 = dxfViewport.bool_3; this.dxfUcs_0 = Class906.smethod_2(cloneContext, dxfViewport.dxfUcs_0); this.orthographicType_0 = dxfViewport.orthographicType_0; this.shadePlotMode_0 = dxfViewport.shadePlotMode_0; this.short_1 = dxfViewport.short_1; this.bool_4 = dxfViewport.bool_4; this.lightingType_0 = dxfViewport.lightingType_0; this.double_8 = dxfViewport.double_8; this.double_9 = dxfViewport.double_9; this.color_0 = dxfViewport.color_0; this.ViewportEntityHeader = dxfViewport.dxfViewportEntityHeader_0 != null ? (DxfViewportEntityHeader)dxfViewport.dxfViewportEntityHeader_0.Clone(cloneContext) : (DxfViewportEntityHeader)null; this.method_23(); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfView dxfView = (DxfView)from; this.string_0 = dxfView.string_0; this.viewFlags_0 = dxfView.viewFlags_0; this.point2D_0 = dxfView.point2D_0; this.size2D_0 = dxfView.size2D_0; this.vector3D_0 = dxfView.vector3D_0; this.point3D_0 = dxfView.point3D_0; this.double_0 = dxfView.double_0; this.double_1 = dxfView.double_1; this.double_2 = dxfView.double_2; this.double_3 = dxfView.double_3; this.ViewMode = dxfView.viewMode_0; this.renderMode_0 = dxfView.renderMode_0; this.bool_0 = dxfView.bool_0; this.Ucs = Class906.smethod_2(cloneContext, dxfView.Ucs); this.orthographicType_0 = dxfView.orthographicType_0; }