Inheritance: BaseClassIfc, IfcResourceObjectSelect
コード例 #1
0
 internal override void ParseXml(XmlElement xml)
 {
     base.ParseXml(xml);
     foreach (XmlNode child in xml.ChildNodes)
     {
         string name = child.Name;
         if (string.Compare(name, "Profiles") == 0)
         {
             List <IfcProfileDef> profiles = new List <IfcProfileDef>(child.ChildNodes.Count);
             foreach (XmlNode cn in child.ChildNodes)
             {
                 IfcProfileDef p = mDatabase.ParseXml <IfcProfileDef>(cn as XmlElement);
                 if (p != null)
                 {
                     profiles.Add(p);
                 }
             }
             Profiles = profiles;
         }
     }
     if (xml.HasAttribute("Label"))
     {
         Label = xml.Attributes["Label"].Value;
     }
 }
コード例 #2
0
ファイル: IFC D.cs プロジェクト: jmirtsch/GeometryGymIFC
		public IfcDerivedProfileDef(IfcProfileDef container, IfcCartesianTransformationOperator2D op, string name) : base(container.mDatabase, name) { ContainerProfile = container; Operator = op; }
コード例 #3
0
ファイル: IFC E.cs プロジェクト: jenca-cloud/ggIFC
		public IfcExtrudedAreaSolidTapered(IfcDerivedProfileDef start, IfcAxis2Placement3D placement, double depth, IfcDerivedProfileDef end) : base(start, placement,new IfcDirection(start.mDatabase,0,0,1), depth ) { EndSweptArea = end; }
コード例 #4
0
ファイル: IFC G.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcGeneralProfileProperties(string name, List<IfcProperty> props, IfcProfileDef p) : base(name, props, p) { }
コード例 #5
0
ファイル: IFC O.cs プロジェクト: jddaigle/GeometryGymIFC
        internal void setMaterial(IfcMaterialSelect material)
        {
            IfcMaterialSelect m = material;

            if (mDatabase.mRelease == ReleaseVersion.IFC2x3)
            {
                IfcMaterialProfile profile = material as IfcMaterialProfile;
                if (profile != null)
                {
                    m = profile.Material;
                    mMaterialSelectIFC4 = profile;
                    IfcProfileDef pd = profile.Profile;
                    if (pd != null)
                    {
                        if (pd.mHasProperties.Count == 0)
                        {
                            IfcProfileProperties pp = new IfcProfileProperties(pd.Name, pd);
                            pp.mAssociates.addRelated(this);
                        }
                        else
                        {
                            pd.mHasProperties[0].mAssociates.addRelated(this);
                        }
                    }
                }
                else
                {
                    IfcMaterialProfileSet profileSet = material as IfcMaterialProfileSet;
                    if (profileSet == null)
                    {
                        IfcMaterialProfileSetUsage profileSetUsage = material as IfcMaterialProfileSetUsage;
                        if (profileSetUsage != null)
                        {
                            profileSet = profileSetUsage.ForProfileSet;
                        }
                    }
                    if (profileSet != null)
                    {
                        m = profileSet.PrimaryMaterial;
                        mMaterialSelectIFC4 = profileSet;
                        foreach (IfcMaterialProfile matp in profileSet.MaterialProfiles)
                        {
                            IfcProfileDef pd = matp.Profile;
                            if (pd != null)
                            {
                                if (pd.mHasProperties.Count == 0)
                                {
                                    IfcProfileProperties pp = new IfcProfileProperties(pd.Name, null, pd);
                                }
                                pd.mHasProperties[0].mAssociates.addRelated(this);
                            }
                        }
                    }
                    else
                    {
                        //constituentset....
                    }
                }
            }
            for (int icounter = 0; icounter < mHasAssociations.Count; icounter++)
            {
                IfcRelAssociatesMaterial rm = mHasAssociations[icounter] as IfcRelAssociatesMaterial;
                if (rm != null)
                {
                    rm.unassign(this);
                }
            }
            if (m != null)
            {
                m.Associates.addRelated(this);
            }
        }
コード例 #6
0
 internal IfcGeneralProfileProperties(string name, List <IfcProperty> props, IfcProfileDef p) : base(name, props, p)
 {
 }
コード例 #7
0
ファイル: IFC R.cs プロジェクト: jenca-cloud/ggIFC
		public IfcRevolvedAreaSolid(IfcProfileDef profile, IfcAxis2Placement3D pl, IfcAxis1Placement axis, double angle) : base(profile, pl) { Axis = axis; mAngle = angle; }
コード例 #8
0
ファイル: IFC M.cs プロジェクト: jenca-cloud/ggIFC
		public IfcMaterialProfile(string name, IfcMaterial mat, IfcProfileDef p) : base(mat == null ? p.mDatabase : mat.mDatabase)
		{
			Name = name;
			Material = mat;
			Profile = p;
		}
コード例 #9
0
ファイル: IFC E.cs プロジェクト: jmirtsch/GeometryGymIFC
		internal IfcExtrudedAreaSolidTapered(DatabaseIfc db, IfcExtrudedAreaSolidTapered e) : base(db,e) { EndSweptArea = db.Factory.Duplicate(e.EndSweptArea) as IfcProfileDef; }
コード例 #10
0
ファイル: IFC E.cs プロジェクト: jmirtsch/GeometryGymIFC
		public IfcExtrudedAreaSolid(IfcProfileDef prof, IfcAxis2Placement3D position, double depth) : base(prof, position) { ExtrudedDirection = mDatabase.Factory.ZAxis; mDepth = depth; }
コード例 #11
0
ファイル: IFC E.cs プロジェクト: jmirtsch/GeometryGymIFC
		public IfcExtrudedAreaSolid(IfcProfileDef prof, IfcDirection dir, double depth) : base(prof) { mExtrudedDirection = dir.mIndex; mDepth = depth; }
コード例 #12
0
ファイル: IFC E.cs プロジェクト: jmirtsch/GeometryGymIFC
		public IfcExtrudedAreaSolid(IfcProfileDef prof, double depth) : base(prof) { ExtrudedDirection = mDatabase.Factory.ZAxis; mDepth = depth; }
コード例 #13
0
ファイル: IFC F.cs プロジェクト: xeolabs/GeometryGymIFC
 public IfcFixedReferenceSweptAreaSolid(IfcProfileDef sweptArea, IfcCurve directrix, IfcDirection reference) : base(sweptArea)
 {
     Directrix      = directrix;
     FixedReference = reference;
 }
コード例 #14
0
ファイル: IFC G.cs プロジェクト: pietlambert/GeometryGymIFC
 public IfcGeneralProfileProperties(List <IfcProperty> props, IfcProfileDef p) : base(props, p)
 {
 }
コード例 #15
0
ファイル: IFC P.cs プロジェクト: jenca-cloud/ggIFC
		protected IfcProfileDef(IfcProfileDef i) : base(i) { mProfileType = i.mProfileType; mProfileName = i.mProfileName; }
コード例 #16
0
ファイル: IFC F.cs プロジェクト: jmirtsch/GeometryGymIFC
        internal double mStartParam = double.NaN; // : OPT IfcParameterValue;

        #endregion Fields

        #region Constructors

        public IfcFixedReferenceSweptAreaSolid(IfcProfileDef sweptArea, IfcCurve directrix, IfcDirection reference)
            : base(sweptArea)
        {
            Directrix = directrix;
            FixedReference = reference;
        }
コード例 #17
0
ファイル: IFC P.cs プロジェクト: jenca-cloud/ggIFC
		internal static IfcProfileDef Parse(string strDef) { IfcProfileDef p = new IfcProfileDef(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return p; }
コード例 #18
0
ファイル: IFC M.cs プロジェクト: jenca-cloud/ggIFC
		public IfcMaterialProfileWithOffsets(string name, IfcMaterial mat, IfcProfileDef p, double startOffset,double endOffset)
			: base(name, mat, p) { mOffsetValues = new double[] { startOffset,endOffset }; }
コード例 #19
0
ファイル: IFC P.cs プロジェクト: jenca-cloud/ggIFC
		protected static void parseFields(IfcProfileDef p, List<string> arrFields, ref int ipos)
		{
			string str = arrFields[ipos++];
			if (str.StartsWith("."))
				p.mProfileType = (IfcProfileTypeEnum)Enum.Parse(typeof(IfcProfileTypeEnum), str.Replace(".", ""));
			p.mProfileName = arrFields[ipos++].Replace("'", "");
		}
コード例 #20
0
 public IfcGeneralProfileProperties(string name, IfcProfileDef p) : base(name, p)
 {
 }
コード例 #21
0
ファイル: IFC P.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcProfileProperties(string name, List<IfcProperty> props, IfcProfileDef p)
			: base(name, props)
		{
			mProfileDefinition = p.mIndex;
			if (p.mDatabase.mSchema == Schema.IFC2x3)
				mAssociates = new IfcRelAssociatesProfileProperties(this) { Name = p.ProfileName };
		}
コード例 #22
0
 public IfcInclinedReferenceSweptAreaSolid(IfcProfileDef sweptArea, IfcCurve directrix, IfcAxisLateralInclination inclinating)
     : base(sweptArea, directrix)
 {
     Inclinating = inclinating;
 }
コード例 #23
0
 public Pset_ProfileMechanical(IfcProfileDef profileDef) : base("Pset_ProfileMechanical", profileDef)
 {
     Description = profileDef.Name;
 }
コード例 #24
0
ファイル: IFC G.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcGeneralProfileProperties(string name, IfcProfileDef p) : base(name, p) { }
コード例 #25
0
 public Pset_ProfileMechanical(IfcProfileDef profileDef)
     : base("Pset_ProfileMechanical", profileDef)
 {
     Description = profileDef.Name;
 }
コード例 #26
0
ファイル: IFC E.cs プロジェクト: jenca-cloud/ggIFC
		public IfcExtrudedAreaSolid(IfcProfileDef prof, IfcAxis2Placement3D placement, IfcDirection dir, double depth) : base(prof, placement) { mExtrudedDirection = dir.mIndex; mDepth = depth; }
コード例 #27
0
ファイル: IFC C.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcCompositeProfileDef(string name, IfcProfileDef p1, IfcProfileDef p2, string label) : this(p1.mDatabase, name, label) { mProfiles.Add(p1.mIndex); mProfiles.Add(p2.mIndex); }
コード例 #28
0
 public IfcGeneralProfileProperties(IfcProfileDef p) : base(p)
 {
 }
コード例 #29
0
ファイル: IFC S.cs プロジェクト: jenca-cloud/ggIFC
		protected IfcSweptAreaSolid(IfcProfileDef prof, IfcAxis2Placement3D placement) : base(prof.mDatabase) { SweptArea = prof; Position = placement; }