コード例 #1
0
        internal override void CopyValues(IfcObjectPlacement value)
        {
            IfcGridPlacement gp = value as IfcGridPlacement;

            PlacementLocation     = gp.PlacementLocation;
            PlacementRefDirection = gp.PlacementRefDirection;
        }
コード例 #2
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _placementLocation = (IfcVirtualGridIntersection) value.EntityVal;
             break;
         case 1:
             _placementRefDirection = (IfcVirtualGridIntersection) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
コード例 #3
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _placementLocation = (IfcVirtualGridIntersection)value.EntityVal;
                break;

            case 1:
                _placementRefDirection = (IfcVirtualGridIntersection)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #4
0
ファイル: IfcGridPlacement.cs プロジェクト: keremer/inFizYon
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _placementLocation = (IfcVirtualGridIntersection)(value.EntityVal);
                return;

            case 1:
                _placementRefDirection = (IfcVirtualGridIntersection)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #5
0
        public override bool Equals(object obj)
        {
            // Check for null
            if (obj == null)
            {
                return(false);
            }

            // Check for type
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // Cast as IfcRoot
            IfcVirtualGridIntersection root = (IfcVirtualGridIntersection)obj;

            return(this == root);
        }
コード例 #6
0
 internal override void CopyValues(IfcObjectPlacement value)
 {
     IfcGridPlacement gp = value as IfcGridPlacement;
     PlacementLocation = gp.PlacementLocation;
     PlacementRefDirection = gp.PlacementRefDirection;
 }