Search in sources :

Example 6 with IfcRepresentation

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

the class IfcUtils method dumpRepresentationInfo.

public static String dumpRepresentationInfo(IfcProduct ifcProduct) {
    StringBuilder sb = new StringBuilder();
    sb.append("Dumping representation info for " + ifcProduct.eClass().getName() + "\n");
    IfcProductRepresentation representation = ifcProduct.getRepresentation();
    for (IfcRepresentation ifcRepresentation : representation.getRepresentations()) {
        sb.append("\t" + ifcRepresentation.eClass().getName() + "\n");
        if (ifcRepresentation instanceof IfcShapeRepresentation) {
            IfcShapeRepresentation ifcShapeRepresentation = (IfcShapeRepresentation) ifcRepresentation;
            sb.append("\t\tRepresentationIdentifier: " + ifcShapeRepresentation.getRepresentationIdentifier() + "\n");
            sb.append("\t\tRepresentationType: " + ifcShapeRepresentation.getRepresentationType() + "\n");
        }
        for (IfcRepresentationItem ifcRepresentationItem : ifcRepresentation.getItems()) {
            sb.append("\t\t" + ifcRepresentationItem.eClass().getName() + "\n");
        }
    }
    return sb.toString();
}
Also used : IfcProductRepresentation(org.bimserver.models.ifc2x3tc1.IfcProductRepresentation) IfcRepresentationItem(org.bimserver.models.ifc2x3tc1.IfcRepresentationItem) IfcShapeRepresentation(org.bimserver.models.ifc2x3tc1.IfcShapeRepresentation) IfcRepresentation(org.bimserver.models.ifc2x3tc1.IfcRepresentation)

Aggregations

IfcRepresentation (org.bimserver.models.ifc2x3tc1.IfcRepresentation)6 IfcProductRepresentation (org.bimserver.models.ifc2x3tc1.IfcProductRepresentation)5 IfcRepresentationItem (org.bimserver.models.ifc2x3tc1.IfcRepresentationItem)4 IfcShapeRepresentation (org.bimserver.models.ifc2x3tc1.IfcShapeRepresentation)3 HashSet (java.util.HashSet)2 IfcModelInterfaceException (org.bimserver.emf.IfcModelInterfaceException)2 IfcCartesianPoint (org.bimserver.models.ifc2x3tc1.IfcCartesianPoint)2 IfcStyledItem (org.bimserver.models.ifc2x3tc1.IfcStyledItem)2 Area (java.awt.geom.Area)1 Path2D (java.awt.geom.Path2D)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 Set (java.util.Set)1 IdEObject (org.bimserver.emf.IdEObject)1 IfcModelInterface (org.bimserver.emf.IfcModelInterface)1 GeometryData (org.bimserver.models.geometry.GeometryData)1 GeometryInfo (org.bimserver.models.geometry.GeometryInfo)1 IfcAxis2Placement3D (org.bimserver.models.ifc2x3tc1.IfcAxis2Placement3D)1 IfcBuildingStorey (org.bimserver.models.ifc2x3tc1.IfcBuildingStorey)1 IfcColourRgb (org.bimserver.models.ifc2x3tc1.IfcColourRgb)1