/// <summary>
 /// Gets the panel operation from door style operation.
 /// </summary>
 /// <param name="ifcDoorStyleOperationType">
 /// The IFCDoorStyleOperation.
 /// </param>
 /// <returns>
 /// The string represents the door panel operation.
 /// </returns>
 public static IFCDoorPanelOperation GetPanelOperationFromDoorStyleOperation(IFCDoorStyleOperation ifcDoorStyleOperationType)
 {
     switch (ifcDoorStyleOperationType)
     {
         case IFCDoorStyleOperation.SingleSwingLeft:
         case IFCDoorStyleOperation.SingleSwingRight:
         case IFCDoorStyleOperation.DoubleDoorSingleSwing:
         case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeLeft:
         case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeRight:
             return IFCDoorPanelOperation.Swinging;
         case IFCDoorStyleOperation.DoubleSwingLeft:
         case IFCDoorStyleOperation.DoubleSwingRight:
         case IFCDoorStyleOperation.DoubleDoorDoubleSwing:
             return IFCDoorPanelOperation.Double_Acting;
         case IFCDoorStyleOperation.SlidingToLeft:
         case IFCDoorStyleOperation.SlidingToRight:
         case IFCDoorStyleOperation.DoubleDoorSliding:
             return IFCDoorPanelOperation.Sliding;
         case IFCDoorStyleOperation.FoldingToLeft:
         case IFCDoorStyleOperation.FoldingToRight:
         case IFCDoorStyleOperation.DoubleDoorFolding:
             return IFCDoorPanelOperation.Folding;
         case IFCDoorStyleOperation.Revolving:
             return IFCDoorPanelOperation.Revolving;
         case IFCDoorStyleOperation.RollingUp:
             return IFCDoorPanelOperation.RollingUp;
         case IFCDoorStyleOperation.UserDefined:
             return IFCDoorPanelOperation.UserDefined;
         default:
             return IFCDoorPanelOperation.NotDefined;
     }
 }
 /// <summary>
 /// Gets the panel operation from door style operation.
 /// </summary>
 /// <parameter name="ifcDoorStyleOperationType">
 /// The IFCDoorStyleOperation.
 /// </parameter>
 /// <returns>
 /// The string represents the door panel operation.
 /// </returns>
 public static string GetPanelOperationFromDoorStyleOperation(IFCDoorStyleOperation ifcDoorStyleOperationType)
 {
     switch (ifcDoorStyleOperationType)
     {
         case IFCDoorStyleOperation.SingleSwingLeft:
         case IFCDoorStyleOperation.SingleSwingRight:
         case IFCDoorStyleOperation.DoubleDoorSingleSwing:
         case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeLeft:
         case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeRight:
             return "Swinging";
         case IFCDoorStyleOperation.DoubleSwingLeft:
         case IFCDoorStyleOperation.DoubleSwingRight:
         case IFCDoorStyleOperation.DoubleDoorDoubleSwing:
             return "DoubleActing";
         case IFCDoorStyleOperation.SlidingToLeft:
         case IFCDoorStyleOperation.SlidingToRight:
         case IFCDoorStyleOperation.DoubleDoorSliding:
             return "Sliding";
         case IFCDoorStyleOperation.FoldingToLeft:
         case IFCDoorStyleOperation.FoldingToRight:
         case IFCDoorStyleOperation.DoubleDoorFolding:
             return "Folding";
         case IFCDoorStyleOperation.Revolving:
             return "Revolving";
         case IFCDoorStyleOperation.RollingUp:
             return "RollingUp";
         case IFCDoorStyleOperation.UserDefined:
             return "UserDefined";
         default:
             return "NotDefined";
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Gets the panel operation from door style operation.
        /// </summary>
        /// <param name="ifcDoorStyleOperationType">
        /// The IFCDoorStyleOperation.
        /// </param>
        /// <returns>
        /// The string represents the door panel operation.
        /// </returns>
        public static IFCDoorPanelOperation GetPanelOperationFromDoorStyleOperation(IFCDoorStyleOperation ifcDoorStyleOperationType)
        {
            switch (ifcDoorStyleOperationType)
            {
            case IFCDoorStyleOperation.SingleSwingLeft:
            case IFCDoorStyleOperation.SingleSwingRight:
            case IFCDoorStyleOperation.DoubleDoorSingleSwing:
            case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeLeft:
            case IFCDoorStyleOperation.DoubleDoorSingleSwingOppositeRight:
                return(IFCDoorPanelOperation.Swinging);

            case IFCDoorStyleOperation.DoubleSwingLeft:
            case IFCDoorStyleOperation.DoubleSwingRight:
            case IFCDoorStyleOperation.DoubleDoorDoubleSwing:
                return(IFCDoorPanelOperation.Double_Acting);

            case IFCDoorStyleOperation.SlidingToLeft:
            case IFCDoorStyleOperation.SlidingToRight:
            case IFCDoorStyleOperation.DoubleDoorSliding:
                return(IFCDoorPanelOperation.Sliding);

            case IFCDoorStyleOperation.FoldingToLeft:
            case IFCDoorStyleOperation.FoldingToRight:
            case IFCDoorStyleOperation.DoubleDoorFolding:
                return(IFCDoorPanelOperation.Folding);

            case IFCDoorStyleOperation.Revolving:
                return(IFCDoorPanelOperation.Revolving);

            case IFCDoorStyleOperation.RollingUp:
                return(IFCDoorPanelOperation.RollingUp);

            case IFCDoorStyleOperation.UserDefined:
                return(IFCDoorPanelOperation.UserDefined);

            default:
                return(IFCDoorPanelOperation.NotDefined);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Creates an IfcDoorStyle, and assigns it to the file.
        /// </summary>
        /// <param name="file">The file.</param>
        /// <param name="guid">The GUID.</param>
        /// <param name="ownerHistory">The owner history.</param>
        /// <param name="name">The name.</param>
        /// <param name="description">The description.</param>
        /// <param name="applicableOccurrence">The attribute optionally defines the data type of the occurrence object.</param>
        /// <param name="propertySets">The property set(s) associated with the type.</param>
        /// <param name="representationMaps">The mapped geometries associated with the type.</param>
        /// <param name="elementTag">The tag that represents the entity.</param>
        /// <param name="operationType">The operation type.</param>
        /// <param name="constructionType">The construction type.</param>
        /// <param name="parameterTakesPrecedence">True if the parameter given in the attached lining and panel properties exactly define the geometry,
        /// false if the attached style shape takes precedence.</param>
        /// <param name="sizeable">True if the attached IfcMappedRepresentation (if given) can be sized (using scale factor of transformation), false if not.</param>
        /// <returns>The handle.</returns>
        public static IFCAnyHandle CreateDoorStyle(IFCFile file, string guid, IFCAnyHandle ownerHistory,
            string name, string description, string applicableOccurrence, HashSet<IFCAnyHandle> propertySets,
            IList<IFCAnyHandle> representationMaps, string elementTag, IFCDoorStyleOperation operationType,
            IFCDoorStyleConstruction constructionType, bool parameterTakesPrecedence, bool sizeable)
        {
            ValidateTypeProduct(guid, ownerHistory, name, description, applicableOccurrence, propertySets, representationMaps, elementTag);

            IFCAnyHandle doorStyle = CreateInstance(file, IFCEntityType.IfcDoorStyle);
            IFCAnyHandleUtil.SetAttribute(doorStyle, "OperationType", operationType);
            IFCAnyHandleUtil.SetAttribute(doorStyle, "ConstructionType", constructionType);
            IFCAnyHandleUtil.SetAttribute(doorStyle, "ParameterTakesPrecedence", parameterTakesPrecedence);
            IFCAnyHandleUtil.SetAttribute(doorStyle, "Sizeable", sizeable);
            SetTypeProduct(doorStyle, guid, ownerHistory, name, description, applicableOccurrence, propertySets, representationMaps, elementTag);
            return doorStyle;
        }