public static int getNrOfPropertySets(IfcProduct ifcProduct) { int nrPropertySets = 0; for (IfcRelDefines ifcRelDefines : ifcProduct.getIsDefinedBy()) { if (ifcRelDefines instanceof IfcRelDefinesByProperties) { IfcRelDefinesByProperties ifcRelDefinesByProperties = (IfcRelDefinesByProperties) ifcRelDefines; IfcPropertySetDefinition propertySetDefinition = ifcRelDefinesByProperties.getRelatingPropertyDefinition(); if (propertySetDefinition instanceof IfcPropertySet) { nrPropertySets++; } } } return nrPropertySets; }
private void setIfcConnectionPointEccentricity(IdEObject idEObject, float scale) { IfcConnectionPointEccentricity ifcConnectionPointEccentricity = (IfcConnectionPointEccentricity) idEObject; if (ifcConnectionPointEccentricity.isSetEccentricityInX()) { ifcConnectionPointEccentricity.setEccentricityInX(ifcConnectionPointEccentricity.getEccentricityInX() * scale); } if (ifcConnectionPointEccentricity.isSetEccentricityInY()) { ifcConnectionPointEccentricity.setEccentricityInY(ifcConnectionPointEccentricity.getEccentricityInY() * scale); } if (ifcConnectionPointEccentricity.isSetEccentricityInZ()) { ifcConnectionPointEccentricity.setEccentricityInZ(ifcConnectionPointEccentricity.getEccentricityInZ() * scale); } }
private void setIfcSlippageConnectionCondition(IdEObject idEObject, float scale) { IfcSlippageConnectionCondition ifcSlippageConnectionCondition = (IfcSlippageConnectionCondition) idEObject; if (ifcSlippageConnectionCondition.isSetSlippageX()) { ifcSlippageConnectionCondition.setSlippageX(ifcSlippageConnectionCondition.getSlippageX() * scale); } if (ifcSlippageConnectionCondition.isSetSlippageY()) { ifcSlippageConnectionCondition.setSlippageY(ifcSlippageConnectionCondition.getSlippageY() * scale); } if (ifcSlippageConnectionCondition.isSetSlippageZ()) { ifcSlippageConnectionCondition.setSlippageZ(ifcSlippageConnectionCondition.getSlippageZ() * scale); } }
private void setIfcIShapeProfileDef(IdEObject idEObject, float scale) { IfcIShapeProfileDef ifcIShapeProfileDef = (IfcIShapeProfileDef) idEObject; if (ifcIShapeProfileDef.isSetFilletRadius()) { ifcIShapeProfileDef.setFilletRadius(ifcIShapeProfileDef.getFilletRadius() * scale); } ifcIShapeProfileDef.setFlangeThickness(ifcIShapeProfileDef.getFlangeThickness() * scale); ifcIShapeProfileDef.setOverallDepth(ifcIShapeProfileDef.getOverallDepth() * scale); ifcIShapeProfileDef.setOverallWidth(ifcIShapeProfileDef.getOverallWidth() * scale); ifcIShapeProfileDef.setWebThickness(ifcIShapeProfileDef.getWebThickness() * scale); }
private void setIfcBoundingBox(IdEObject idEObject, float scale) { IfcBoundingBox ifcBoundingBox = (IfcBoundingBox) idEObject; ifcBoundingBox.setXDim(ifcBoundingBox.getXDim() * scale); ifcBoundingBox.setYDim(ifcBoundingBox.getYDim() * scale); ifcBoundingBox.setZDim(ifcBoundingBox.getZDim() * scale); }
private void setIfcStructuralLoadSingleDisplacement(IdEObject idEObject, float scale) { IfcStructuralLoadSingleDisplacement ifcStructuralLoadSingleDisplacement = (IfcStructuralLoadSingleDisplacement) idEObject; if (ifcStructuralLoadSingleDisplacement.isSetDisplacementX()) { ifcStructuralLoadSingleDisplacement.setDisplacementX(ifcStructuralLoadSingleDisplacement.getDisplacementX() * scale); } if (ifcStructuralLoadSingleDisplacement.isSetDisplacementY()) { ifcStructuralLoadSingleDisplacement.setDisplacementY(ifcStructuralLoadSingleDisplacement.getDisplacementY() * scale); } if (ifcStructuralLoadSingleDisplacement.isSetDisplacementZ()) { ifcStructuralLoadSingleDisplacement.setDisplacementZ(ifcStructuralLoadSingleDisplacement.getDisplacementZ() * scale); } }
private void setIfcTrapeziumProfileDef(IdEObject idEObject, float scale) { IfcTrapeziumProfileDef ifcTrapeziumProfileDef = (IfcTrapeziumProfileDef) idEObject; ifcTrapeziumProfileDef.setBottomXDim(ifcTrapeziumProfileDef.getBottomXDim() * scale); ifcTrapeziumProfileDef.setTopXDim(ifcTrapeziumProfileDef.getTopXDim() * scale); ifcTrapeziumProfileDef.setTopXOffset(ifcTrapeziumProfileDef.getTopXOffset() * scale); ifcTrapeziumProfileDef.setYDim(ifcTrapeziumProfileDef.getYDim() * scale); }
private void setIfcGeneralProfileProperties(IdEObject idEObject, float scale) { IfcGeneralProfileProperties ifcGeneralProfileProperties = (IfcGeneralProfileProperties) idEObject; if (ifcGeneralProfileProperties.isSetMaximumPlateThickness()) { ifcGeneralProfileProperties.setMaximumPlateThickness(ifcGeneralProfileProperties.getMaximumPlateThickness() * scale); } if (ifcGeneralProfileProperties.isSetMinimumPlateThickness()) { ifcGeneralProfileProperties.setMinimumPlateThickness(ifcGeneralProfileProperties.getMinimumPlateThickness() * scale); } ifcGeneralProfileProperties.setPerimeter(ifcGeneralProfileProperties.getPerimeter() * scale); }
private void setIfcSectionReinforcementProperties(IdEObject idEObject, float scale) { IfcSectionReinforcementProperties ifcSectionReinforcementProperties = (IfcSectionReinforcementProperties) idEObject; ifcSectionReinforcementProperties.setLongitudinalEndPosition(ifcSectionReinforcementProperties.getLongitudinalEndPosition() * scale); ifcSectionReinforcementProperties.setLongitudinalStartPosition(ifcSectionReinforcementProperties.getLongitudinalStartPosition() * scale); if (ifcSectionReinforcementProperties.isSetTransversePosition()) { ifcSectionReinforcementProperties.setTransversePosition(ifcSectionReinforcementProperties.getTransversePosition() * scale); } }
private void setIfcBuilding(IdEObject idEObject, float scale) { IfcBuilding ifcBuilding = (IfcBuilding) idEObject; if (ifcBuilding.isSetElevationOfRefHeight()) { ifcBuilding.setElevationOfRefHeight(ifcBuilding.getElevationOfRefHeight() * scale); } if (ifcBuilding.isSetElevationOfTerrain()) { ifcBuilding.setElevationOfTerrain(ifcBuilding.getElevationOfTerrain() * scale); } }
private void setIfcTextStyleWithBoxCharacteristics(IdEObject idEObject, float scale) { IfcTextStyleWithBoxCharacteristics ifcTextStyleWithBoxCharacteristics = (IfcTextStyleWithBoxCharacteristics) idEObject; if (ifcTextStyleWithBoxCharacteristics.isSetBoxHeight()) { ifcTextStyleWithBoxCharacteristics.setBoxHeight(ifcTextStyleWithBoxCharacteristics.getBoxHeight() * scale); } if (ifcTextStyleWithBoxCharacteristics.isSetBoxWidth()) { ifcTextStyleWithBoxCharacteristics.setBoxWidth(ifcTextStyleWithBoxCharacteristics.getBoxWidth() * scale); } }
private void setIfcWindow(IdEObject idEObject, float scale) { IfcWindow ifcWindow = (IfcWindow) idEObject; if (ifcWindow.isSetOverallHeight()) { ifcWindow.setOverallHeight(ifcWindow.getOverallHeight() * scale); } if (ifcWindow.isSetOverallWidth()) { ifcWindow.setOverallWidth(ifcWindow.getOverallWidth() * scale); } }
private void setIfcBlock(IdEObject idEObject, float scale) { IfcBlock ifcBlock = (IfcBlock) idEObject; ifcBlock.setXLength(ifcBlock.getXLength() * scale); ifcBlock.setYLength(ifcBlock.getYLength() * scale); ifcBlock.setZLength(ifcBlock.getZLength() * scale); }
private void setIfcDoor(IdEObject idEObject, float scale) { IfcDoor ifcDoor = (IfcDoor) idEObject; if (ifcDoor.isSetOverallHeight()) { ifcDoor.setOverallHeight(ifcDoor.getOverallHeight() * scale); } if (ifcDoor.isSetOverallWidth()) { ifcDoor.setOverallWidth(ifcDoor.getOverallWidth() * scale); } }
private void setIfcSweptDiskSolid(IdEObject idEObject, float scale) { IfcSweptDiskSolid ifcSweptDiskSolid = (IfcSweptDiskSolid) idEObject; if (ifcSweptDiskSolid.isSetInnerRadius()) { ifcSweptDiskSolid.setInnerRadius(ifcSweptDiskSolid.getInnerRadius() * scale); } ifcSweptDiskSolid.setRadius(ifcSweptDiskSolid.getRadius() * scale); }
private void setIfcReinforcingBar(IdEObject idEObject, float scale) { IfcReinforcingBar ifcReinforcingBar = (IfcReinforcingBar) idEObject; if (ifcReinforcingBar.isSetBarLength()) { ifcReinforcingBar.setBarLength(ifcReinforcingBar.getBarLength() * scale); } ifcReinforcingBar.setNominalDiameter(ifcReinforcingBar.getNominalDiameter() * scale); }
private void setIfcEllipse(IdEObject idEObject, float scale) { IfcEllipse ifcEllipse = (IfcEllipse) idEObject; ifcEllipse.setSemiAxis1(ifcEllipse.getSemiAxis1() * scale); ifcEllipse.setSemiAxis2(ifcEllipse.getSemiAxis2() * scale); }
private void setIfcPlanarExtent(IdEObject idEObject, float scale) { IfcPlanarExtent ifcPlanarExtent = (IfcPlanarExtent) idEObject; ifcPlanarExtent.setSizeInX(ifcPlanarExtent.getSizeInX() * scale); ifcPlanarExtent.setSizeInY(ifcPlanarExtent.getSizeInY() * scale); }
private void setIfcRightCircularCylinder(IdEObject idEObject, float scale) { IfcRightCircularCylinder ifcRightCircularCylinder = (IfcRightCircularCylinder) idEObject; ifcRightCircularCylinder.setHeight(ifcRightCircularCylinder.getHeight() * scale); ifcRightCircularCylinder.setRadius(ifcRightCircularCylinder.getRadius() * scale); }
private void setIfcDoorPanelProperties(IdEObject idEObject, float scale) { IfcDoorPanelProperties ifcDoorPanelProperties = (IfcDoorPanelProperties) idEObject; if (ifcDoorPanelProperties.isSetPanelDepth()) { ifcDoorPanelProperties.setPanelDepth(ifcDoorPanelProperties.getPanelDepth() * scale); } }