コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StructureObjectWithCrossSection{T}" /> class.
 /// </summary>
 /// <param name="componentsProperties">The components properties.</param>
 /// <param name="name">The name.</param>
 internal StructureObjectWithCrossSection(
     StructureComponentsProperties <T> componentsProperties,
     string name) : base(componentsProperties, name)
 {
     _materials = componentsProperties.Materials;
     _piers     = componentsProperties.Piers;
     _spandrels = componentsProperties.Spandrels;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StructureObject2D{T}" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="componentsProperties">The components properties.</param>
 /// <param name="name">The name.</param>
 internal StructureObject2D(ApiCSiApplication app,
                            StructureComponentsProperties <T> componentsProperties,
                            string name) : base(app, name)
 {
     _points        = componentsProperties.Points;
     _crossSections = componentsProperties.CrossSections;
     _materials     = componentsProperties.Materials;
     _piers         = componentsProperties.Piers;
     _spandrels     = componentsProperties.Spandrels;
 }