public override IGraphCloneable Clone(CloneContext cloneContext) { DxfViewport dxfViewport = (DxfViewport)cloneContext.GetExistingClone((IGraphCloneable)this); if (dxfViewport == null) { dxfViewport = new DxfViewport(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfViewport); dxfViewport.CopyFrom((DxfHandledObject)this, cloneContext); } return((IGraphCloneable)dxfViewport); }
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 virtual void Visit(DxfViewport viewport) { }
public Class428(DxfViewport viewport) { this.dxfViewport_0 = viewport; }
public virtual void Visit(DxfViewport viewport) { this.VisitEntity((DxfEntity)viewport); }