public SymbolItemDesignStruct(SymbolItemModel symbolItemModel)
 {
     ItemField                  = symbolItemModel.ItemField.Trim();
     ItemName                   = symbolItemModel.ItemName.Trim();
     ItemTable                  = symbolItemModel.ItemTable.Trim();
     this.SyblIfHorFill         = BoolUtil.GetBoolByBindID(symbolItemModel.SyblIfHorFill.Trim(), false);
     this.SyBolOffset           = StrUtil.StrToDouble(symbolItemModel.SyBolOffset.Trim(), 0, "符号项设置有误");
     this.SyHeaderStartheigh    = StrUtil.StrToDouble(symbolItemModel.SyHeaderStartheigh.Trim(), 0, "符号项设置有误");
     this.SyItemTxtVerSpace     = StrUtil.StrToDouble(symbolItemModel.SyItemTxtVerSpace.Trim(), 0, "符号项设置有误");
     this.SyJDBottom            = symbolItemModel.SyJDBottom.Trim();
     this.SyJDHeigh             = symbolItemModel.SyJDHeigh.Trim();
     this.SyJDTop               = symbolItemModel.SyJDTop.Trim();
     this.SymbolFramePro        = EnumUtil.GetEnumByStr(symbolItemModel.SymbolFrame, SymbolFrame.NoFrame);        //SymbolItemClass.GetSymbolFrameStyle(symbolItemModel.SymbolFrame.Trim());
     this.SymbolItemColor       = StrUtil.StrToInt(symbolItemModel.SymbolItemColor.Trim(), DrawCommonData.BlackColorRGB, "符号项颜色设置有误");
     this.SymbolItemTitleHorPos = EnumUtil.GetEnumByStr(symbolItemModel.SymbolItemTitleHorPos, ItemTitlePos.Mid); //ItemOper.GetDrawingItemTitlePos(symbolItemModel.SymbolItemTitleHorPos.Trim());
     this.SymbolOrder           = StrUtil.StrToInt(symbolItemModel.SymbolOrder, 0, "符号项设置有误");
     this.SymDISubStyle         = SymbolItemClass.GetSymDISubStyleByStr(symbolItemModel.SymDISubStyle.Trim());
     this.SymDepthFieldStyle    = ZuoBiaoOper.GetDepthFieldStyle(symbolItemModel.SyJDTop, symbolItemModel.SyJDBottom, symbolItemModel.SyJDHeigh);
 }
Exemple #2
0
        public KLEIBuild(BinaryReader reader)
        {
            signature  = reader.ReadBytes(8);
            StructSize = reader.ReadUInt32();

            Name = new EncodedString(reader);

            SymbolsCount = reader.ReadUInt32();
            symbols      = new Symbol[SymbolsCount];
            for (var i = 0; i < SymbolsCount; i++)
            {
                symbols[i] = new Symbol(reader);
            }

            SymbolFrameCount = reader.ReadUInt32();
            symbolFrames     = new SymbolFrame[SymbolFrameCount];
            for (var i = 0; i < SymbolFrameCount; i++)
            {
                symbolFrames[i] = new SymbolFrame(reader);
            }
        }
Exemple #3
0
        public KLEIBuild(BinaryReader reader)
        {
            signature = reader.ReadBytes(8);
            StructSize = reader.ReadUInt32();

            Name = new EncodedString(reader);

            SymbolsCount = reader.ReadUInt32();
            symbols = new Symbol[SymbolsCount];
            for (var i = 0; i < SymbolsCount; i++)
            {
                symbols[i] = new Symbol(reader);
            }

            SymbolFrameCount = reader.ReadUInt32();
            symbolFrames = new SymbolFrame[SymbolFrameCount];
            for (var i = 0; i < SymbolFrameCount; i++)
            {
                symbolFrames[i] = new SymbolFrame(reader);
            }
        }
Exemple #4
0
 protected bool Equals(SymbolFrame other)
 {
     return(ModelResourceIdx == other.ModelResourceIdx && Affine3D.Equals(other.Affine3D));
 }
Exemple #5
0
 protected bool Equals(SymbolFrame other)
 {
     return ModelResourceIdx == other.ModelResourceIdx && Affine3D.Equals(other.Affine3D);
 }