Exemplo n.º 1
0
        internal static DxfLayer smethod_3()
        {
            DxfLayer dxfLayer = new DxfLayer();

            dxfLayer.Name   = "DEFPOINTS";
            dxfLayer.bool_1 = false;
            return(dxfLayer);
        }
Exemplo n.º 2
0
 public DxfLayer GetEffectiveLayer(DxfLayer insertLayer)
 {
     if (!this.IsZeroLayer)
     {
         return(this);
     }
     return(insertLayer);
 }
Exemplo n.º 3
0
        public int CompareTo(object obj)
        {
            DxfLayer dxfLayer = obj as DxfLayer;

            if (dxfLayer == null)
            {
                return(1);
            }
            return(this.string_9.CompareTo(dxfLayer.string_9));
        }
Exemplo n.º 4
0
        internal static DxfLayer smethod_2(DxfModel model, bool useFixedHandles)
        {
            DxfLayer dxfLayer = new DxfLayer();

            if (useFixedHandles)
            {
                dxfLayer.SetHandle(16UL);
            }
            dxfLayer.Name = "0";
            return(dxfLayer);
        }
Exemplo n.º 5
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfLayer dxfLayer = (DxfLayer)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfLayer == null)
            {
                dxfLayer = new DxfLayer();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfLayer);
                dxfLayer.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfLayer);
        }
Exemplo n.º 6
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfLayer dxfLayer = (DxfLayer)from;

            this.string_9       = dxfLayer.string_9;
            this.layerFlags_0   = dxfLayer.layerFlags_0;
            this.bool_0         = dxfLayer.bool_0;
            this.color_0        = dxfLayer.color_0;
            this.transparency_0 = dxfLayer.transparency_0;
            this.LineType       = Class906.GetLineType(cloneContext, dxfLayer.LineType);
            this.short_0        = dxfLayer.short_0;
            this.bool_1         = dxfLayer.bool_1;
            this.bool_2         = dxfLayer.bool_2;
            if (dxfLayer.Handle != 16UL)
            {
                return;
            }
            this.SetHandle(16UL);
        }