Search in sources :

Example 1 with IfcIShapeProfileDef

use of org.bimserver.models.ifc2x3tc1.IfcIShapeProfileDef in project BIMserver by opensourceBIM.

the class Scaler method setIfcIShapeProfileDef.

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);
}
Also used : IfcIShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcIShapeProfileDef)

Example 2 with IfcIShapeProfileDef

use of org.bimserver.models.ifc2x3tc1.IfcIShapeProfileDef in project BIMserver by opensourceBIM.

the class Scaler method scale.

public void scale(float scale) {
    if (scale != 1.0f) {
        for (long key : ifcModel.keySet()) {
            IdEObject idEObject = (IdEObject) ifcModel.get(key);
            if (idEObject instanceof IfcAsymmetricIShapeProfileDef) {
                setIfcAsymmetricIShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcBlock) {
                setIfcBlock(idEObject, scale);
            } else if (idEObject instanceof IfcBoundingBox) {
                setIfcBoundingBox(idEObject, scale);
            } else if (idEObject instanceof IfcBuilding) {
                setIfcBuilding(idEObject, scale);
            } else if (idEObject instanceof IfcBuildingStorey) {
                setIfcBuildingStorey(idEObject, scale);
            } else if (idEObject instanceof IfcCartesianPoint) {
                setIfcCartesianPoint(idEObject, scale);
            } else if (idEObject instanceof IfcCenterLineProfileDef) {
                setIfcCenterLineProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcChamferEdgeFeature) {
                setIfcChamferEdgeFeature(idEObject, scale);
            } else if (idEObject instanceof IfcCircle) {
                setIfcCircle(idEObject, scale);
            } else if (idEObject instanceof IfcCircleHollowProfileDef) {
                setIfcCircleHollowProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcCircleProfileDef) {
                setIfcCircleProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcCraneRailAShapeProfileDef) {
                setIfcCraneRailAShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcCraneRailFShapeProfileDef) {
                setIfcCraneRailFShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcConnectionPointEccentricity) {
                setIfcConnectionPointEccentricity(idEObject, scale);
            } else if (idEObject instanceof IfcCShapeProfileDef) {
                setIfcCShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcCurveStyleFontPattern) {
                setIfcCurveStyleFontPattern(idEObject, scale);
            } else if (idEObject instanceof IfcDoor) {
                setIfcDoor(idEObject, scale);
            } else if (idEObject instanceof IfcDoorLiningProperties) {
                setIfcDoorLiningProperties(idEObject, scale);
            } else if (idEObject instanceof IfcDoorPanelProperties) {
                setIfcDoorPanelProperties(idEObject, scale);
            } else if (idEObject instanceof IfcEdgeFeature) {
                setIfcEdgeFeature(idEObject, scale);
            } else if (idEObject instanceof IfcEllipse) {
                setIfcEllipse(idEObject, scale);
            } else if (idEObject instanceof IfcEllipseProfileDef) {
                setIfcEllipseProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcExtrudedAreaSolid) {
                setIfcExtrudedAreaSolid(idEObject, scale);
            } else if (idEObject instanceof IfcGeneralProfileProperties) {
                setIfcGeneralProfileProperties(idEObject, scale);
            } else if (idEObject instanceof IfcIShapeProfileDef) {
                setIfcIShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcLightSourcePositional) {
                setIfcLightSourcePositional(idEObject, scale);
            } else if (idEObject instanceof IfcLShapeProfileDef) {
                setIfcLShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcMaterialLayer) {
                setIfcMaterialLayer(idEObject, scale);
            } else if (idEObject instanceof IfcMaterialLayerSetUsage) {
                setIfcMaterialLayerSetUsage(idEObject, scale);
            } else if (idEObject instanceof IfcMechanicalConcreteMaterialProperties) {
                setIfcMechanicalConcreteMaterialProperties(idEObject, scale);
            } else if (idEObject instanceof IfcMechanicalFastener) {
                setIfcMechanicalFastener(idEObject, scale);
            } else if (idEObject instanceof IfcOffsetCurve2D) {
                setIfcOffsetCurve2D(idEObject, scale);
            } else if (idEObject instanceof IfcOffsetCurve3D) {
                setIfcOffsetCurve3D(idEObject, scale);
            } else if (idEObject instanceof IfcPermeableCoveringProperties) {
                setIfcPermeableCoveringProperties(idEObject, scale);
            } else if (idEObject instanceof IfcPlanarExtent) {
                setIfcPlanarExtent(idEObject, scale);
            } else if (idEObject instanceof IfcQuantityLength) {
                setIfcQuantityLength(idEObject, scale);
            } else if (idEObject instanceof IfcRectangleHollowProfileDef) {
                setIfcRectangleHollowProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcRectangleProfileDef) {
                setIfcRectangleProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcRectangularPyramid) {
                setIfcRectangularPyramid(idEObject, scale);
            } else if (idEObject instanceof IfcReinforcementBarProperties) {
                setIfcReinforcementBarProperties(idEObject, scale);
            } else if (idEObject instanceof IfcReinforcingBar) {
                setIfcReinforcingBar(idEObject, scale);
            } else if (idEObject instanceof IfcReinforcingMesh) {
                setIfcReinforcingMesh(idEObject, scale);
            } else if (idEObject instanceof IfcRelConnectsStructuralMember) {
                setIfcRelConnectsStructuralMember(idEObject, scale);
            } else if (idEObject instanceof IfcRibPlateProfileProperties) {
                setIfcRibPlateProfileProperties(idEObject, scale);
            } else if (idEObject instanceof IfcRightCircularCone) {
                setIfcRightCircularCone(idEObject, scale);
            } else if (idEObject instanceof IfcRightCircularCylinder) {
                setIfcRightCircularCylinder(idEObject, scale);
            } else if (idEObject instanceof IfcRoundedEdgeFeature) {
                setIfcRoundedEdgeFeature(idEObject, scale);
            } else if (idEObject instanceof IfcRoundedRectangleProfileDef) {
                setIfcRoundedRectangleProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcSectionReinforcementProperties) {
                setIfcSectionReinforcementProperties(idEObject, scale);
            } else if (idEObject instanceof IfcSite) {
                setIfcSite(idEObject, scale);
            } else if (idEObject instanceof IfcSlippageConnectionCondition) {
                setIfcSlippageConnectionCondition(idEObject, scale);
            } else if (idEObject instanceof IfcSpace) {
                setIfcSpace(idEObject, scale);
            } else if (idEObject instanceof IfcSphere) {
                setIfcSphere(idEObject, scale);
            } else if (idEObject instanceof IfcStairFlight) {
                setIfcStairFlight(idEObject, scale);
            } else if (idEObject instanceof IfcStructuralLoadSingleDisplacement) {
                setIfcStructuralLoadSingleDisplacement(idEObject, scale);
            } else if (idEObject instanceof IfcStructuralProfileProperties) {
                setIfcStructuralProfileProperties(idEObject, scale);
            } else if (idEObject instanceof IfcStructuralSurfaceMember) {
                setIfcStructuralSurfaceMember(idEObject, scale);
            } else if (idEObject instanceof IfcStructuralSurfaceMemberVarying) {
                setIfcStructuralSurfaceMemberVarying(idEObject, scale);
            } else if (idEObject instanceof IfcSurfaceOfLinearExtrusion) {
                setIfcSurfaceOfLinearExtrusion(idEObject, scale);
            } else if (idEObject instanceof IfcSweptDiskSolid) {
                setIfcSweptDiskSolid(idEObject, scale);
            } else if (idEObject instanceof IfcTendon) {
                setIfcTendon(idEObject, scale);
            } else if (idEObject instanceof IfcTextStyleWithBoxCharacteristics) {
                setIfcTextStyleWithBoxCharacteristics(idEObject, scale);
            } else if (idEObject instanceof IfcTrapeziumProfileDef) {
                setIfcTrapeziumProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcTShapeProfileDef) {
                setIfcTShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcUShapeProfileDef) {
                setIfcUShapeProfileDef(idEObject, scale);
            } else if (idEObject instanceof IfcVector) {
                setIfcVector(idEObject, scale);
            } else if (idEObject instanceof IfcVirtualGridIntersection) {
                setIfcVirtualGridIntersection(idEObject, scale);
            } else if (idEObject instanceof IfcWindow) {
                setIfcWindow(idEObject, scale);
            } else if (idEObject instanceof IfcWindowLiningProperties) {
                setIfcWindowLiningProperties(idEObject, scale);
            } else if (idEObject instanceof IfcWindowPanelProperties) {
                setIfcWindowPanelProperties(idEObject, scale);
            } else if (idEObject instanceof IfcZShapeProfileDef) {
                setIfcZShapeProfileDef(idEObject, scale);
            }
            setDoubleAsStringValues(idEObject);
        }
    }
}
Also used : IfcCenterLineProfileDef(org.bimserver.models.ifc2x3tc1.IfcCenterLineProfileDef) IfcCircleHollowProfileDef(org.bimserver.models.ifc2x3tc1.IfcCircleHollowProfileDef) IfcQuantityLength(org.bimserver.models.ifc2x3tc1.IfcQuantityLength) IfcStructuralSurfaceMember(org.bimserver.models.ifc2x3tc1.IfcStructuralSurfaceMember) IfcReinforcementBarProperties(org.bimserver.models.ifc2x3tc1.IfcReinforcementBarProperties) IfcStairFlight(org.bimserver.models.ifc2x3tc1.IfcStairFlight) IfcRibPlateProfileProperties(org.bimserver.models.ifc2x3tc1.IfcRibPlateProfileProperties) IfcUShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcUShapeProfileDef) IfcCraneRailAShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcCraneRailAShapeProfileDef) IfcRectangleHollowProfileDef(org.bimserver.models.ifc2x3tc1.IfcRectangleHollowProfileDef) IfcStructuralSurfaceMemberVarying(org.bimserver.models.ifc2x3tc1.IfcStructuralSurfaceMemberVarying) IfcMaterialLayer(org.bimserver.models.ifc2x3tc1.IfcMaterialLayer) IfcCraneRailFShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcCraneRailFShapeProfileDef) IfcRightCircularCylinder(org.bimserver.models.ifc2x3tc1.IfcRightCircularCylinder) IfcExtrudedAreaSolid(org.bimserver.models.ifc2x3tc1.IfcExtrudedAreaSolid) IfcBuilding(org.bimserver.models.ifc2x3tc1.IfcBuilding) IfcCircle(org.bimserver.models.ifc2x3tc1.IfcCircle) IfcSurfaceOfLinearExtrusion(org.bimserver.models.ifc2x3tc1.IfcSurfaceOfLinearExtrusion) IfcCShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcCShapeProfileDef) IfcTextStyleWithBoxCharacteristics(org.bimserver.models.ifc2x3tc1.IfcTextStyleWithBoxCharacteristics) IdEObject(org.bimserver.emf.IdEObject) IfcRightCircularCone(org.bimserver.models.ifc2x3tc1.IfcRightCircularCone) IfcWindowPanelProperties(org.bimserver.models.ifc2x3tc1.IfcWindowPanelProperties) IfcLightSourcePositional(org.bimserver.models.ifc2x3tc1.IfcLightSourcePositional) IfcConnectionPointEccentricity(org.bimserver.models.ifc2x3tc1.IfcConnectionPointEccentricity) IfcRectangularPyramid(org.bimserver.models.ifc2x3tc1.IfcRectangularPyramid) IfcTendon(org.bimserver.models.ifc2x3tc1.IfcTendon) IfcReinforcingMesh(org.bimserver.models.ifc2x3tc1.IfcReinforcingMesh) IfcCircleProfileDef(org.bimserver.models.ifc2x3tc1.IfcCircleProfileDef) IfcZShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcZShapeProfileDef) IfcEllipseProfileDef(org.bimserver.models.ifc2x3tc1.IfcEllipseProfileDef) IfcBoundingBox(org.bimserver.models.ifc2x3tc1.IfcBoundingBox) IfcIShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcIShapeProfileDef) IfcVirtualGridIntersection(org.bimserver.models.ifc2x3tc1.IfcVirtualGridIntersection) IfcAsymmetricIShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcAsymmetricIShapeProfileDef) IfcRelConnectsStructuralMember(org.bimserver.models.ifc2x3tc1.IfcRelConnectsStructuralMember) IfcDoorPanelProperties(org.bimserver.models.ifc2x3tc1.IfcDoorPanelProperties) IfcOffsetCurve2D(org.bimserver.models.ifc2x3tc1.IfcOffsetCurve2D) IfcChamferEdgeFeature(org.bimserver.models.ifc2x3tc1.IfcChamferEdgeFeature) IfcMechanicalFastener(org.bimserver.models.ifc2x3tc1.IfcMechanicalFastener) IfcRectangleProfileDef(org.bimserver.models.ifc2x3tc1.IfcRectangleProfileDef) IfcRoundedRectangleProfileDef(org.bimserver.models.ifc2x3tc1.IfcRoundedRectangleProfileDef) IfcSpace(org.bimserver.models.ifc2x3tc1.IfcSpace) IfcBlock(org.bimserver.models.ifc2x3tc1.IfcBlock) IfcLShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcLShapeProfileDef) IfcTrapeziumProfileDef(org.bimserver.models.ifc2x3tc1.IfcTrapeziumProfileDef) IfcSweptDiskSolid(org.bimserver.models.ifc2x3tc1.IfcSweptDiskSolid) IfcWindowLiningProperties(org.bimserver.models.ifc2x3tc1.IfcWindowLiningProperties) IfcBuildingStorey(org.bimserver.models.ifc2x3tc1.IfcBuildingStorey) IfcDoor(org.bimserver.models.ifc2x3tc1.IfcDoor) IfcDoorLiningProperties(org.bimserver.models.ifc2x3tc1.IfcDoorLiningProperties) IfcMaterialLayerSetUsage(org.bimserver.models.ifc2x3tc1.IfcMaterialLayerSetUsage) IfcTShapeProfileDef(org.bimserver.models.ifc2x3tc1.IfcTShapeProfileDef) IfcCurveStyleFontPattern(org.bimserver.models.ifc2x3tc1.IfcCurveStyleFontPattern) IfcSlippageConnectionCondition(org.bimserver.models.ifc2x3tc1.IfcSlippageConnectionCondition) IfcSite(org.bimserver.models.ifc2x3tc1.IfcSite) IfcWindow(org.bimserver.models.ifc2x3tc1.IfcWindow) IfcReinforcingBar(org.bimserver.models.ifc2x3tc1.IfcReinforcingBar) IfcEdgeFeature(org.bimserver.models.ifc2x3tc1.IfcEdgeFeature) IfcGeneralProfileProperties(org.bimserver.models.ifc2x3tc1.IfcGeneralProfileProperties) IfcPermeableCoveringProperties(org.bimserver.models.ifc2x3tc1.IfcPermeableCoveringProperties) IfcRoundedEdgeFeature(org.bimserver.models.ifc2x3tc1.IfcRoundedEdgeFeature) IfcVector(org.bimserver.models.ifc2x3tc1.IfcVector) IfcStructuralProfileProperties(org.bimserver.models.ifc2x3tc1.IfcStructuralProfileProperties) IfcOffsetCurve3D(org.bimserver.models.ifc2x3tc1.IfcOffsetCurve3D) IfcStructuralLoadSingleDisplacement(org.bimserver.models.ifc2x3tc1.IfcStructuralLoadSingleDisplacement) IfcSphere(org.bimserver.models.ifc2x3tc1.IfcSphere) IfcPlanarExtent(org.bimserver.models.ifc2x3tc1.IfcPlanarExtent) IfcCartesianPoint(org.bimserver.models.ifc2x3tc1.IfcCartesianPoint) IfcMechanicalConcreteMaterialProperties(org.bimserver.models.ifc2x3tc1.IfcMechanicalConcreteMaterialProperties) IfcEllipse(org.bimserver.models.ifc2x3tc1.IfcEllipse) IfcSectionReinforcementProperties(org.bimserver.models.ifc2x3tc1.IfcSectionReinforcementProperties)

Aggregations

IfcIShapeProfileDef (org.bimserver.models.ifc2x3tc1.IfcIShapeProfileDef)2 IdEObject (org.bimserver.emf.IdEObject)1 IfcAsymmetricIShapeProfileDef (org.bimserver.models.ifc2x3tc1.IfcAsymmetricIShapeProfileDef)1 IfcBlock (org.bimserver.models.ifc2x3tc1.IfcBlock)1 IfcBoundingBox (org.bimserver.models.ifc2x3tc1.IfcBoundingBox)1 IfcBuilding (org.bimserver.models.ifc2x3tc1.IfcBuilding)1 IfcBuildingStorey (org.bimserver.models.ifc2x3tc1.IfcBuildingStorey)1 IfcCShapeProfileDef (org.bimserver.models.ifc2x3tc1.IfcCShapeProfileDef)1 IfcCartesianPoint (org.bimserver.models.ifc2x3tc1.IfcCartesianPoint)1 IfcCenterLineProfileDef (org.bimserver.models.ifc2x3tc1.IfcCenterLineProfileDef)1 IfcChamferEdgeFeature (org.bimserver.models.ifc2x3tc1.IfcChamferEdgeFeature)1 IfcCircle (org.bimserver.models.ifc2x3tc1.IfcCircle)1 IfcCircleHollowProfileDef (org.bimserver.models.ifc2x3tc1.IfcCircleHollowProfileDef)1 IfcCircleProfileDef (org.bimserver.models.ifc2x3tc1.IfcCircleProfileDef)1 IfcConnectionPointEccentricity (org.bimserver.models.ifc2x3tc1.IfcConnectionPointEccentricity)1 IfcCraneRailAShapeProfileDef (org.bimserver.models.ifc2x3tc1.IfcCraneRailAShapeProfileDef)1 IfcCraneRailFShapeProfileDef (org.bimserver.models.ifc2x3tc1.IfcCraneRailFShapeProfileDef)1 IfcCurveStyleFontPattern (org.bimserver.models.ifc2x3tc1.IfcCurveStyleFontPattern)1 IfcDoor (org.bimserver.models.ifc2x3tc1.IfcDoor)1 IfcDoorLiningProperties (org.bimserver.models.ifc2x3tc1.IfcDoorLiningProperties)1