示例#1
0
        public void SaveFile(BinaryWriter w)
        {
            w.Write(Name);

            SectionProperties.SaveFile(w);
            SoilParameters.SaveFile(w);
        }
示例#2
0
        public Section(Project parent, string name)
        {
            mParent = parent;
            mName = name;
            SectionProperties = new SectionProperties(this);
            SoilParameters = new SoilParameters(this);
            AnalysisModel = new CulvertAnalysisModel(this);

            AnalysisModel.UpdateModel();
        }
示例#3
0
        public Section(Project parent, string name)
        {
            mParent           = parent;
            mName             = name;
            SectionProperties = new SectionProperties(this);
            SoilParameters    = new SoilParameters(this);
            AnalysisModel     = new CulvertAnalysisModel(this);

            AnalysisModel.UpdateModel();
        }
示例#4
0
        public Section Clone()
        {
            Section s = new Section(mParent);

            s.Name = Name;

            s.SectionProperties = SectionProperties.Clone();
            s.SoilParameters    = SoilParameters.Clone();

            return(s);
        }
示例#5
0
        public static Section FromStream(Project parent, BinaryReader r)
        {
            Section s = new Section(parent);

            s.Name = r.ReadString();

            s.SectionProperties = SectionProperties.FromStream(s, r);
            s.SoilParameters    = SoilParameters.FromStream(s, r);

            return(s);
        }
示例#6
0
        public SectionProperties Clone()
        {
            SectionProperties s = new SectionProperties(mParent);

            s.InnerWidth          = InnerWidth;
            s.InnerHeight         = InnerHeight;
            s.SlabThickness       = SlabThickness;
            s.FoundationThickness = FoundationThickness;
            s.OuterWallThickness  = OuterWallThickness;
            s.InnerWalls          = InnerWalls;
            s.InnerWallThickness  = InnerWallThickness;
            s.HasSlabGussets      = HasSlabGussets;
            s.SlabGussetWidth     = SlabGussetWidth;
            s.SlabGussetHeight    = SlabGussetHeight;

            return(s);
        }
示例#7
0
        public static SectionProperties FromStream(Section parent, BinaryReader r)
        {
            SectionProperties s = new SectionProperties(parent);

            s.InnerWidth          = r.ReadSingle();
            s.InnerHeight         = r.ReadSingle();
            s.SlabThickness       = r.ReadSingle();
            s.FoundationThickness = r.ReadSingle();
            s.OuterWallThickness  = r.ReadSingle();
            s.InnerWalls          = r.ReadInt32();
            s.InnerWallThickness  = r.ReadSingle();
            s.HasSlabGussets      = r.ReadBoolean();
            s.SlabGussetWidth     = r.ReadSingle();
            s.SlabGussetHeight    = r.ReadSingle();

            s.mParent.AnalysisModel.UpdateModel();

            return(s);
        }
示例#8
0
        public SectionProperties Clone()
        {
            SectionProperties s = new SectionProperties(mParent);

            s.InnerWidth = InnerWidth;
            s.InnerHeight = InnerHeight;
            s.SlabThickness = SlabThickness;
            s.FoundationThickness = FoundationThickness;
            s.OuterWallThickness = OuterWallThickness;
            s.InnerWalls = InnerWalls;
            s.InnerWallThickness = InnerWallThickness;
            s.HasSlabGussets = HasSlabGussets;
            s.SlabGussetWidth = SlabGussetWidth;
            s.SlabGussetHeight = SlabGussetHeight;

            return s;
        }
示例#9
0
        public static SectionProperties FromStream(Section parent, BinaryReader r)
        {
            SectionProperties s = new SectionProperties(parent);

            s.InnerWidth = r.ReadSingle();
            s.InnerHeight = r.ReadSingle();
            s.SlabThickness = r.ReadSingle();
            s.FoundationThickness = r.ReadSingle();
            s.OuterWallThickness = r.ReadSingle();
            s.InnerWalls = r.ReadInt32();
            s.InnerWallThickness = r.ReadSingle();
            s.HasSlabGussets = r.ReadBoolean();
            s.SlabGussetWidth = r.ReadSingle();
            s.SlabGussetHeight = r.ReadSingle();

            s.mParent.AnalysisModel.UpdateModel();

            return s;
        }